mirror of
https://github.com/acidanthera/audk.git
synced 2025-08-31 14:38:09 +02:00
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=2507 Adding the auto-generated assembly files for X64 architectures. Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Jian J Wang <jian.j.wang@intel.com> Cc: Xiaoyu Lu <xiaoyux.lu@intel.com> Cc: Mike Kinney <michael.d.kinney@intel.com> Cc: Ard Biesheuvel <ardb@kernel.org> Signed-off-by: Christopher Zurcher <christopher.zurcher@microsoft.com> Reviewed-by: Jiewen Yao <Jiewen.yao@intel.com>
1939 lines
43 KiB
NASM
1939 lines
43 KiB
NASM
; WARNING: do not edit!
|
|
; Generated from openssl/crypto/sha/asm/sha512-x86_64.pl
|
|
;
|
|
; Copyright 2005-2020 The OpenSSL Project Authors. All Rights Reserved.
|
|
;
|
|
; Licensed under the OpenSSL license (the "License"). You may not use
|
|
; this file except in compliance with the License. You can obtain a copy
|
|
; in the file LICENSE in the source distribution or at
|
|
; https://www.openssl.org/source/license.html
|
|
|
|
default rel
|
|
%define XMMWORD
|
|
%define YMMWORD
|
|
%define ZMMWORD
|
|
section .text code align=64
|
|
|
|
|
|
EXTERN OPENSSL_ia32cap_P
|
|
global sha512_block_data_order
|
|
|
|
ALIGN 16
|
|
sha512_block_data_order:
|
|
mov QWORD[8+rsp],rdi ;WIN64 prologue
|
|
mov QWORD[16+rsp],rsi
|
|
mov rax,rsp
|
|
$L$SEH_begin_sha512_block_data_order:
|
|
mov rdi,rcx
|
|
mov rsi,rdx
|
|
mov rdx,r8
|
|
|
|
|
|
|
|
mov rax,rsp
|
|
|
|
push rbx
|
|
|
|
push rbp
|
|
|
|
push r12
|
|
|
|
push r13
|
|
|
|
push r14
|
|
|
|
push r15
|
|
|
|
shl rdx,4
|
|
sub rsp,16*8+4*8
|
|
lea rdx,[rdx*8+rsi]
|
|
and rsp,-64
|
|
mov QWORD[((128+0))+rsp],rdi
|
|
mov QWORD[((128+8))+rsp],rsi
|
|
mov QWORD[((128+16))+rsp],rdx
|
|
mov QWORD[152+rsp],rax
|
|
|
|
$L$prologue:
|
|
|
|
mov rax,QWORD[rdi]
|
|
mov rbx,QWORD[8+rdi]
|
|
mov rcx,QWORD[16+rdi]
|
|
mov rdx,QWORD[24+rdi]
|
|
mov r8,QWORD[32+rdi]
|
|
mov r9,QWORD[40+rdi]
|
|
mov r10,QWORD[48+rdi]
|
|
mov r11,QWORD[56+rdi]
|
|
jmp NEAR $L$loop
|
|
|
|
ALIGN 16
|
|
$L$loop:
|
|
mov rdi,rbx
|
|
lea rbp,[K512]
|
|
xor rdi,rcx
|
|
mov r12,QWORD[rsi]
|
|
mov r13,r8
|
|
mov r14,rax
|
|
bswap r12
|
|
ror r13,23
|
|
mov r15,r9
|
|
|
|
xor r13,r8
|
|
ror r14,5
|
|
xor r15,r10
|
|
|
|
mov QWORD[rsp],r12
|
|
xor r14,rax
|
|
and r15,r8
|
|
|
|
ror r13,4
|
|
add r12,r11
|
|
xor r15,r10
|
|
|
|
ror r14,6
|
|
xor r13,r8
|
|
add r12,r15
|
|
|
|
mov r15,rax
|
|
add r12,QWORD[rbp]
|
|
xor r14,rax
|
|
|
|
xor r15,rbx
|
|
ror r13,14
|
|
mov r11,rbx
|
|
|
|
and rdi,r15
|
|
ror r14,28
|
|
add r12,r13
|
|
|
|
xor r11,rdi
|
|
add rdx,r12
|
|
add r11,r12
|
|
|
|
lea rbp,[8+rbp]
|
|
add r11,r14
|
|
mov r12,QWORD[8+rsi]
|
|
mov r13,rdx
|
|
mov r14,r11
|
|
bswap r12
|
|
ror r13,23
|
|
mov rdi,r8
|
|
|
|
xor r13,rdx
|
|
ror r14,5
|
|
xor rdi,r9
|
|
|
|
mov QWORD[8+rsp],r12
|
|
xor r14,r11
|
|
and rdi,rdx
|
|
|
|
ror r13,4
|
|
add r12,r10
|
|
xor rdi,r9
|
|
|
|
ror r14,6
|
|
xor r13,rdx
|
|
add r12,rdi
|
|
|
|
mov rdi,r11
|
|
add r12,QWORD[rbp]
|
|
xor r14,r11
|
|
|
|
xor rdi,rax
|
|
ror r13,14
|
|
mov r10,rax
|
|
|
|
and r15,rdi
|
|
ror r14,28
|
|
add r12,r13
|
|
|
|
xor r10,r15
|
|
add rcx,r12
|
|
add r10,r12
|
|
|
|
lea rbp,[24+rbp]
|
|
add r10,r14
|
|
mov r12,QWORD[16+rsi]
|
|
mov r13,rcx
|
|
mov r14,r10
|
|
bswap r12
|
|
ror r13,23
|
|
mov r15,rdx
|
|
|
|
xor r13,rcx
|
|
ror r14,5
|
|
xor r15,r8
|
|
|
|
mov QWORD[16+rsp],r12
|
|
xor r14,r10
|
|
and r15,rcx
|
|
|
|
ror r13,4
|
|
add r12,r9
|
|
xor r15,r8
|
|
|
|
ror r14,6
|
|
xor r13,rcx
|
|
add r12,r15
|
|
|
|
mov r15,r10
|
|
add r12,QWORD[rbp]
|
|
xor r14,r10
|
|
|
|
xor r15,r11
|
|
ror r13,14
|
|
mov r9,r11
|
|
|
|
and rdi,r15
|
|
ror r14,28
|
|
add r12,r13
|
|
|
|
xor r9,rdi
|
|
add rbx,r12
|
|
add r9,r12
|
|
|
|
lea rbp,[8+rbp]
|
|
add r9,r14
|
|
mov r12,QWORD[24+rsi]
|
|
mov r13,rbx
|
|
mov r14,r9
|
|
bswap r12
|
|
ror r13,23
|
|
mov rdi,rcx
|
|
|
|
xor r13,rbx
|
|
ror r14,5
|
|
xor rdi,rdx
|
|
|
|
mov QWORD[24+rsp],r12
|
|
xor r14,r9
|
|
and rdi,rbx
|
|
|
|
ror r13,4
|
|
add r12,r8
|
|
xor rdi,rdx
|
|
|
|
ror r14,6
|
|
xor r13,rbx
|
|
add r12,rdi
|
|
|
|
mov rdi,r9
|
|
add r12,QWORD[rbp]
|
|
xor r14,r9
|
|
|
|
xor rdi,r10
|
|
ror r13,14
|
|
mov r8,r10
|
|
|
|
and r15,rdi
|
|
ror r14,28
|
|
add r12,r13
|
|
|
|
xor r8,r15
|
|
add rax,r12
|
|
add r8,r12
|
|
|
|
lea rbp,[24+rbp]
|
|
add r8,r14
|
|
mov r12,QWORD[32+rsi]
|
|
mov r13,rax
|
|
mov r14,r8
|
|
bswap r12
|
|
ror r13,23
|
|
mov r15,rbx
|
|
|
|
xor r13,rax
|
|
ror r14,5
|
|
xor r15,rcx
|
|
|
|
mov QWORD[32+rsp],r12
|
|
xor r14,r8
|
|
and r15,rax
|
|
|
|
ror r13,4
|
|
add r12,rdx
|
|
xor r15,rcx
|
|
|
|
ror r14,6
|
|
xor r13,rax
|
|
add r12,r15
|
|
|
|
mov r15,r8
|
|
add r12,QWORD[rbp]
|
|
xor r14,r8
|
|
|
|
xor r15,r9
|
|
ror r13,14
|
|
mov rdx,r9
|
|
|
|
and rdi,r15
|
|
ror r14,28
|
|
add r12,r13
|
|
|
|
xor rdx,rdi
|
|
add r11,r12
|
|
add rdx,r12
|
|
|
|
lea rbp,[8+rbp]
|
|
add rdx,r14
|
|
mov r12,QWORD[40+rsi]
|
|
mov r13,r11
|
|
mov r14,rdx
|
|
bswap r12
|
|
ror r13,23
|
|
mov rdi,rax
|
|
|
|
xor r13,r11
|
|
ror r14,5
|
|
xor rdi,rbx
|
|
|
|
mov QWORD[40+rsp],r12
|
|
xor r14,rdx
|
|
and rdi,r11
|
|
|
|
ror r13,4
|
|
add r12,rcx
|
|
xor rdi,rbx
|
|
|
|
ror r14,6
|
|
xor r13,r11
|
|
add r12,rdi
|
|
|
|
mov rdi,rdx
|
|
add r12,QWORD[rbp]
|
|
xor r14,rdx
|
|
|
|
xor rdi,r8
|
|
ror r13,14
|
|
mov rcx,r8
|
|
|
|
and r15,rdi
|
|
ror r14,28
|
|
add r12,r13
|
|
|
|
xor rcx,r15
|
|
add r10,r12
|
|
add rcx,r12
|
|
|
|
lea rbp,[24+rbp]
|
|
add rcx,r14
|
|
mov r12,QWORD[48+rsi]
|
|
mov r13,r10
|
|
mov r14,rcx
|
|
bswap r12
|
|
ror r13,23
|
|
mov r15,r11
|
|
|
|
xor r13,r10
|
|
ror r14,5
|
|
xor r15,rax
|
|
|
|
mov QWORD[48+rsp],r12
|
|
xor r14,rcx
|
|
and r15,r10
|
|
|
|
ror r13,4
|
|
add r12,rbx
|
|
xor r15,rax
|
|
|
|
ror r14,6
|
|
xor r13,r10
|
|
add r12,r15
|
|
|
|
mov r15,rcx
|
|
add r12,QWORD[rbp]
|
|
xor r14,rcx
|
|
|
|
xor r15,rdx
|
|
ror r13,14
|
|
mov rbx,rdx
|
|
|
|
and rdi,r15
|
|
ror r14,28
|
|
add r12,r13
|
|
|
|
xor rbx,rdi
|
|
add r9,r12
|
|
add rbx,r12
|
|
|
|
lea rbp,[8+rbp]
|
|
add rbx,r14
|
|
mov r12,QWORD[56+rsi]
|
|
mov r13,r9
|
|
mov r14,rbx
|
|
bswap r12
|
|
ror r13,23
|
|
mov rdi,r10
|
|
|
|
xor r13,r9
|
|
ror r14,5
|
|
xor rdi,r11
|
|
|
|
mov QWORD[56+rsp],r12
|
|
xor r14,rbx
|
|
and rdi,r9
|
|
|
|
ror r13,4
|
|
add r12,rax
|
|
xor rdi,r11
|
|
|
|
ror r14,6
|
|
xor r13,r9
|
|
add r12,rdi
|
|
|
|
mov rdi,rbx
|
|
add r12,QWORD[rbp]
|
|
xor r14,rbx
|
|
|
|
xor rdi,rcx
|
|
ror r13,14
|
|
mov rax,rcx
|
|
|
|
and r15,rdi
|
|
ror r14,28
|
|
add r12,r13
|
|
|
|
xor rax,r15
|
|
add r8,r12
|
|
add rax,r12
|
|
|
|
lea rbp,[24+rbp]
|
|
add rax,r14
|
|
mov r12,QWORD[64+rsi]
|
|
mov r13,r8
|
|
mov r14,rax
|
|
bswap r12
|
|
ror r13,23
|
|
mov r15,r9
|
|
|
|
xor r13,r8
|
|
ror r14,5
|
|
xor r15,r10
|
|
|
|
mov QWORD[64+rsp],r12
|
|
xor r14,rax
|
|
and r15,r8
|
|
|
|
ror r13,4
|
|
add r12,r11
|
|
xor r15,r10
|
|
|
|
ror r14,6
|
|
xor r13,r8
|
|
add r12,r15
|
|
|
|
mov r15,rax
|
|
add r12,QWORD[rbp]
|
|
xor r14,rax
|
|
|
|
xor r15,rbx
|
|
ror r13,14
|
|
mov r11,rbx
|
|
|
|
and rdi,r15
|
|
ror r14,28
|
|
add r12,r13
|
|
|
|
xor r11,rdi
|
|
add rdx,r12
|
|
add r11,r12
|
|
|
|
lea rbp,[8+rbp]
|
|
add r11,r14
|
|
mov r12,QWORD[72+rsi]
|
|
mov r13,rdx
|
|
mov r14,r11
|
|
bswap r12
|
|
ror r13,23
|
|
mov rdi,r8
|
|
|
|
xor r13,rdx
|
|
ror r14,5
|
|
xor rdi,r9
|
|
|
|
mov QWORD[72+rsp],r12
|
|
xor r14,r11
|
|
and rdi,rdx
|
|
|
|
ror r13,4
|
|
add r12,r10
|
|
xor rdi,r9
|
|
|
|
ror r14,6
|
|
xor r13,rdx
|
|
add r12,rdi
|
|
|
|
mov rdi,r11
|
|
add r12,QWORD[rbp]
|
|
xor r14,r11
|
|
|
|
xor rdi,rax
|
|
ror r13,14
|
|
mov r10,rax
|
|
|
|
and r15,rdi
|
|
ror r14,28
|
|
add r12,r13
|
|
|
|
xor r10,r15
|
|
add rcx,r12
|
|
add r10,r12
|
|
|
|
lea rbp,[24+rbp]
|
|
add r10,r14
|
|
mov r12,QWORD[80+rsi]
|
|
mov r13,rcx
|
|
mov r14,r10
|
|
bswap r12
|
|
ror r13,23
|
|
mov r15,rdx
|
|
|
|
xor r13,rcx
|
|
ror r14,5
|
|
xor r15,r8
|
|
|
|
mov QWORD[80+rsp],r12
|
|
xor r14,r10
|
|
and r15,rcx
|
|
|
|
ror r13,4
|
|
add r12,r9
|
|
xor r15,r8
|
|
|
|
ror r14,6
|
|
xor r13,rcx
|
|
add r12,r15
|
|
|
|
mov r15,r10
|
|
add r12,QWORD[rbp]
|
|
xor r14,r10
|
|
|
|
xor r15,r11
|
|
ror r13,14
|
|
mov r9,r11
|
|
|
|
and rdi,r15
|
|
ror r14,28
|
|
add r12,r13
|
|
|
|
xor r9,rdi
|
|
add rbx,r12
|
|
add r9,r12
|
|
|
|
lea rbp,[8+rbp]
|
|
add r9,r14
|
|
mov r12,QWORD[88+rsi]
|
|
mov r13,rbx
|
|
mov r14,r9
|
|
bswap r12
|
|
ror r13,23
|
|
mov rdi,rcx
|
|
|
|
xor r13,rbx
|
|
ror r14,5
|
|
xor rdi,rdx
|
|
|
|
mov QWORD[88+rsp],r12
|
|
xor r14,r9
|
|
and rdi,rbx
|
|
|
|
ror r13,4
|
|
add r12,r8
|
|
xor rdi,rdx
|
|
|
|
ror r14,6
|
|
xor r13,rbx
|
|
add r12,rdi
|
|
|
|
mov rdi,r9
|
|
add r12,QWORD[rbp]
|
|
xor r14,r9
|
|
|
|
xor rdi,r10
|
|
ror r13,14
|
|
mov r8,r10
|
|
|
|
and r15,rdi
|
|
ror r14,28
|
|
add r12,r13
|
|
|
|
xor r8,r15
|
|
add rax,r12
|
|
add r8,r12
|
|
|
|
lea rbp,[24+rbp]
|
|
add r8,r14
|
|
mov r12,QWORD[96+rsi]
|
|
mov r13,rax
|
|
mov r14,r8
|
|
bswap r12
|
|
ror r13,23
|
|
mov r15,rbx
|
|
|
|
xor r13,rax
|
|
ror r14,5
|
|
xor r15,rcx
|
|
|
|
mov QWORD[96+rsp],r12
|
|
xor r14,r8
|
|
and r15,rax
|
|
|
|
ror r13,4
|
|
add r12,rdx
|
|
xor r15,rcx
|
|
|
|
ror r14,6
|
|
xor r13,rax
|
|
add r12,r15
|
|
|
|
mov r15,r8
|
|
add r12,QWORD[rbp]
|
|
xor r14,r8
|
|
|
|
xor r15,r9
|
|
ror r13,14
|
|
mov rdx,r9
|
|
|
|
and rdi,r15
|
|
ror r14,28
|
|
add r12,r13
|
|
|
|
xor rdx,rdi
|
|
add r11,r12
|
|
add rdx,r12
|
|
|
|
lea rbp,[8+rbp]
|
|
add rdx,r14
|
|
mov r12,QWORD[104+rsi]
|
|
mov r13,r11
|
|
mov r14,rdx
|
|
bswap r12
|
|
ror r13,23
|
|
mov rdi,rax
|
|
|
|
xor r13,r11
|
|
ror r14,5
|
|
xor rdi,rbx
|
|
|
|
mov QWORD[104+rsp],r12
|
|
xor r14,rdx
|
|
and rdi,r11
|
|
|
|
ror r13,4
|
|
add r12,rcx
|
|
xor rdi,rbx
|
|
|
|
ror r14,6
|
|
xor r13,r11
|
|
add r12,rdi
|
|
|
|
mov rdi,rdx
|
|
add r12,QWORD[rbp]
|
|
xor r14,rdx
|
|
|
|
xor rdi,r8
|
|
ror r13,14
|
|
mov rcx,r8
|
|
|
|
and r15,rdi
|
|
ror r14,28
|
|
add r12,r13
|
|
|
|
xor rcx,r15
|
|
add r10,r12
|
|
add rcx,r12
|
|
|
|
lea rbp,[24+rbp]
|
|
add rcx,r14
|
|
mov r12,QWORD[112+rsi]
|
|
mov r13,r10
|
|
mov r14,rcx
|
|
bswap r12
|
|
ror r13,23
|
|
mov r15,r11
|
|
|
|
xor r13,r10
|
|
ror r14,5
|
|
xor r15,rax
|
|
|
|
mov QWORD[112+rsp],r12
|
|
xor r14,rcx
|
|
and r15,r10
|
|
|
|
ror r13,4
|
|
add r12,rbx
|
|
xor r15,rax
|
|
|
|
ror r14,6
|
|
xor r13,r10
|
|
add r12,r15
|
|
|
|
mov r15,rcx
|
|
add r12,QWORD[rbp]
|
|
xor r14,rcx
|
|
|
|
xor r15,rdx
|
|
ror r13,14
|
|
mov rbx,rdx
|
|
|
|
and rdi,r15
|
|
ror r14,28
|
|
add r12,r13
|
|
|
|
xor rbx,rdi
|
|
add r9,r12
|
|
add rbx,r12
|
|
|
|
lea rbp,[8+rbp]
|
|
add rbx,r14
|
|
mov r12,QWORD[120+rsi]
|
|
mov r13,r9
|
|
mov r14,rbx
|
|
bswap r12
|
|
ror r13,23
|
|
mov rdi,r10
|
|
|
|
xor r13,r9
|
|
ror r14,5
|
|
xor rdi,r11
|
|
|
|
mov QWORD[120+rsp],r12
|
|
xor r14,rbx
|
|
and rdi,r9
|
|
|
|
ror r13,4
|
|
add r12,rax
|
|
xor rdi,r11
|
|
|
|
ror r14,6
|
|
xor r13,r9
|
|
add r12,rdi
|
|
|
|
mov rdi,rbx
|
|
add r12,QWORD[rbp]
|
|
xor r14,rbx
|
|
|
|
xor rdi,rcx
|
|
ror r13,14
|
|
mov rax,rcx
|
|
|
|
and r15,rdi
|
|
ror r14,28
|
|
add r12,r13
|
|
|
|
xor rax,r15
|
|
add r8,r12
|
|
add rax,r12
|
|
|
|
lea rbp,[24+rbp]
|
|
jmp NEAR $L$rounds_16_xx
|
|
ALIGN 16
|
|
$L$rounds_16_xx:
|
|
mov r13,QWORD[8+rsp]
|
|
mov r15,QWORD[112+rsp]
|
|
|
|
mov r12,r13
|
|
ror r13,7
|
|
add rax,r14
|
|
mov r14,r15
|
|
ror r15,42
|
|
|
|
xor r13,r12
|
|
shr r12,7
|
|
ror r13,1
|
|
xor r15,r14
|
|
shr r14,6
|
|
|
|
ror r15,19
|
|
xor r12,r13
|
|
xor r15,r14
|
|
add r12,QWORD[72+rsp]
|
|
|
|
add r12,QWORD[rsp]
|
|
mov r13,r8
|
|
add r12,r15
|
|
mov r14,rax
|
|
ror r13,23
|
|
mov r15,r9
|
|
|
|
xor r13,r8
|
|
ror r14,5
|
|
xor r15,r10
|
|
|
|
mov QWORD[rsp],r12
|
|
xor r14,rax
|
|
and r15,r8
|
|
|
|
ror r13,4
|
|
add r12,r11
|
|
xor r15,r10
|
|
|
|
ror r14,6
|
|
xor r13,r8
|
|
add r12,r15
|
|
|
|
mov r15,rax
|
|
add r12,QWORD[rbp]
|
|
xor r14,rax
|
|
|
|
xor r15,rbx
|
|
ror r13,14
|
|
mov r11,rbx
|
|
|
|
and rdi,r15
|
|
ror r14,28
|
|
add r12,r13
|
|
|
|
xor r11,rdi
|
|
add rdx,r12
|
|
add r11,r12
|
|
|
|
lea rbp,[8+rbp]
|
|
mov r13,QWORD[16+rsp]
|
|
mov rdi,QWORD[120+rsp]
|
|
|
|
mov r12,r13
|
|
ror r13,7
|
|
add r11,r14
|
|
mov r14,rdi
|
|
ror rdi,42
|
|
|
|
xor r13,r12
|
|
shr r12,7
|
|
ror r13,1
|
|
xor rdi,r14
|
|
shr r14,6
|
|
|
|
ror rdi,19
|
|
xor r12,r13
|
|
xor rdi,r14
|
|
add r12,QWORD[80+rsp]
|
|
|
|
add r12,QWORD[8+rsp]
|
|
mov r13,rdx
|
|
add r12,rdi
|
|
mov r14,r11
|
|
ror r13,23
|
|
mov rdi,r8
|
|
|
|
xor r13,rdx
|
|
ror r14,5
|
|
xor rdi,r9
|
|
|
|
mov QWORD[8+rsp],r12
|
|
xor r14,r11
|
|
and rdi,rdx
|
|
|
|
ror r13,4
|
|
add r12,r10
|
|
xor rdi,r9
|
|
|
|
ror r14,6
|
|
xor r13,rdx
|
|
add r12,rdi
|
|
|
|
mov rdi,r11
|
|
add r12,QWORD[rbp]
|
|
xor r14,r11
|
|
|
|
xor rdi,rax
|
|
ror r13,14
|
|
mov r10,rax
|
|
|
|
and r15,rdi
|
|
ror r14,28
|
|
add r12,r13
|
|
|
|
xor r10,r15
|
|
add rcx,r12
|
|
add r10,r12
|
|
|
|
lea rbp,[24+rbp]
|
|
mov r13,QWORD[24+rsp]
|
|
mov r15,QWORD[rsp]
|
|
|
|
mov r12,r13
|
|
ror r13,7
|
|
add r10,r14
|
|
mov r14,r15
|
|
ror r15,42
|
|
|
|
xor r13,r12
|
|
shr r12,7
|
|
ror r13,1
|
|
xor r15,r14
|
|
shr r14,6
|
|
|
|
ror r15,19
|
|
xor r12,r13
|
|
xor r15,r14
|
|
add r12,QWORD[88+rsp]
|
|
|
|
add r12,QWORD[16+rsp]
|
|
mov r13,rcx
|
|
add r12,r15
|
|
mov r14,r10
|
|
ror r13,23
|
|
mov r15,rdx
|
|
|
|
xor r13,rcx
|
|
ror r14,5
|
|
xor r15,r8
|
|
|
|
mov QWORD[16+rsp],r12
|
|
xor r14,r10
|
|
and r15,rcx
|
|
|
|
ror r13,4
|
|
add r12,r9
|
|
xor r15,r8
|
|
|
|
ror r14,6
|
|
xor r13,rcx
|
|
add r12,r15
|
|
|
|
mov r15,r10
|
|
add r12,QWORD[rbp]
|
|
xor r14,r10
|
|
|
|
xor r15,r11
|
|
ror r13,14
|
|
mov r9,r11
|
|
|
|
and rdi,r15
|
|
ror r14,28
|
|
add r12,r13
|
|
|
|
xor r9,rdi
|
|
add rbx,r12
|
|
add r9,r12
|
|
|
|
lea rbp,[8+rbp]
|
|
mov r13,QWORD[32+rsp]
|
|
mov rdi,QWORD[8+rsp]
|
|
|
|
mov r12,r13
|
|
ror r13,7
|
|
add r9,r14
|
|
mov r14,rdi
|
|
ror rdi,42
|
|
|
|
xor r13,r12
|
|
shr r12,7
|
|
ror r13,1
|
|
xor rdi,r14
|
|
shr r14,6
|
|
|
|
ror rdi,19
|
|
xor r12,r13
|
|
xor rdi,r14
|
|
add r12,QWORD[96+rsp]
|
|
|
|
add r12,QWORD[24+rsp]
|
|
mov r13,rbx
|
|
add r12,rdi
|
|
mov r14,r9
|
|
ror r13,23
|
|
mov rdi,rcx
|
|
|
|
xor r13,rbx
|
|
ror r14,5
|
|
xor rdi,rdx
|
|
|
|
mov QWORD[24+rsp],r12
|
|
xor r14,r9
|
|
and rdi,rbx
|
|
|
|
ror r13,4
|
|
add r12,r8
|
|
xor rdi,rdx
|
|
|
|
ror r14,6
|
|
xor r13,rbx
|
|
add r12,rdi
|
|
|
|
mov rdi,r9
|
|
add r12,QWORD[rbp]
|
|
xor r14,r9
|
|
|
|
xor rdi,r10
|
|
ror r13,14
|
|
mov r8,r10
|
|
|
|
and r15,rdi
|
|
ror r14,28
|
|
add r12,r13
|
|
|
|
xor r8,r15
|
|
add rax,r12
|
|
add r8,r12
|
|
|
|
lea rbp,[24+rbp]
|
|
mov r13,QWORD[40+rsp]
|
|
mov r15,QWORD[16+rsp]
|
|
|
|
mov r12,r13
|
|
ror r13,7
|
|
add r8,r14
|
|
mov r14,r15
|
|
ror r15,42
|
|
|
|
xor r13,r12
|
|
shr r12,7
|
|
ror r13,1
|
|
xor r15,r14
|
|
shr r14,6
|
|
|
|
ror r15,19
|
|
xor r12,r13
|
|
xor r15,r14
|
|
add r12,QWORD[104+rsp]
|
|
|
|
add r12,QWORD[32+rsp]
|
|
mov r13,rax
|
|
add r12,r15
|
|
mov r14,r8
|
|
ror r13,23
|
|
mov r15,rbx
|
|
|
|
xor r13,rax
|
|
ror r14,5
|
|
xor r15,rcx
|
|
|
|
mov QWORD[32+rsp],r12
|
|
xor r14,r8
|
|
and r15,rax
|
|
|
|
ror r13,4
|
|
add r12,rdx
|
|
xor r15,rcx
|
|
|
|
ror r14,6
|
|
xor r13,rax
|
|
add r12,r15
|
|
|
|
mov r15,r8
|
|
add r12,QWORD[rbp]
|
|
xor r14,r8
|
|
|
|
xor r15,r9
|
|
ror r13,14
|
|
mov rdx,r9
|
|
|
|
and rdi,r15
|
|
ror r14,28
|
|
add r12,r13
|
|
|
|
xor rdx,rdi
|
|
add r11,r12
|
|
add rdx,r12
|
|
|
|
lea rbp,[8+rbp]
|
|
mov r13,QWORD[48+rsp]
|
|
mov rdi,QWORD[24+rsp]
|
|
|
|
mov r12,r13
|
|
ror r13,7
|
|
add rdx,r14
|
|
mov r14,rdi
|
|
ror rdi,42
|
|
|
|
xor r13,r12
|
|
shr r12,7
|
|
ror r13,1
|
|
xor rdi,r14
|
|
shr r14,6
|
|
|
|
ror rdi,19
|
|
xor r12,r13
|
|
xor rdi,r14
|
|
add r12,QWORD[112+rsp]
|
|
|
|
add r12,QWORD[40+rsp]
|
|
mov r13,r11
|
|
add r12,rdi
|
|
mov r14,rdx
|
|
ror r13,23
|
|
mov rdi,rax
|
|
|
|
xor r13,r11
|
|
ror r14,5
|
|
xor rdi,rbx
|
|
|
|
mov QWORD[40+rsp],r12
|
|
xor r14,rdx
|
|
and rdi,r11
|
|
|
|
ror r13,4
|
|
add r12,rcx
|
|
xor rdi,rbx
|
|
|
|
ror r14,6
|
|
xor r13,r11
|
|
add r12,rdi
|
|
|
|
mov rdi,rdx
|
|
add r12,QWORD[rbp]
|
|
xor r14,rdx
|
|
|
|
xor rdi,r8
|
|
ror r13,14
|
|
mov rcx,r8
|
|
|
|
and r15,rdi
|
|
ror r14,28
|
|
add r12,r13
|
|
|
|
xor rcx,r15
|
|
add r10,r12
|
|
add rcx,r12
|
|
|
|
lea rbp,[24+rbp]
|
|
mov r13,QWORD[56+rsp]
|
|
mov r15,QWORD[32+rsp]
|
|
|
|
mov r12,r13
|
|
ror r13,7
|
|
add rcx,r14
|
|
mov r14,r15
|
|
ror r15,42
|
|
|
|
xor r13,r12
|
|
shr r12,7
|
|
ror r13,1
|
|
xor r15,r14
|
|
shr r14,6
|
|
|
|
ror r15,19
|
|
xor r12,r13
|
|
xor r15,r14
|
|
add r12,QWORD[120+rsp]
|
|
|
|
add r12,QWORD[48+rsp]
|
|
mov r13,r10
|
|
add r12,r15
|
|
mov r14,rcx
|
|
ror r13,23
|
|
mov r15,r11
|
|
|
|
xor r13,r10
|
|
ror r14,5
|
|
xor r15,rax
|
|
|
|
mov QWORD[48+rsp],r12
|
|
xor r14,rcx
|
|
and r15,r10
|
|
|
|
ror r13,4
|
|
add r12,rbx
|
|
xor r15,rax
|
|
|
|
ror r14,6
|
|
xor r13,r10
|
|
add r12,r15
|
|
|
|
mov r15,rcx
|
|
add r12,QWORD[rbp]
|
|
xor r14,rcx
|
|
|
|
xor r15,rdx
|
|
ror r13,14
|
|
mov rbx,rdx
|
|
|
|
and rdi,r15
|
|
ror r14,28
|
|
add r12,r13
|
|
|
|
xor rbx,rdi
|
|
add r9,r12
|
|
add rbx,r12
|
|
|
|
lea rbp,[8+rbp]
|
|
mov r13,QWORD[64+rsp]
|
|
mov rdi,QWORD[40+rsp]
|
|
|
|
mov r12,r13
|
|
ror r13,7
|
|
add rbx,r14
|
|
mov r14,rdi
|
|
ror rdi,42
|
|
|
|
xor r13,r12
|
|
shr r12,7
|
|
ror r13,1
|
|
xor rdi,r14
|
|
shr r14,6
|
|
|
|
ror rdi,19
|
|
xor r12,r13
|
|
xor rdi,r14
|
|
add r12,QWORD[rsp]
|
|
|
|
add r12,QWORD[56+rsp]
|
|
mov r13,r9
|
|
add r12,rdi
|
|
mov r14,rbx
|
|
ror r13,23
|
|
mov rdi,r10
|
|
|
|
xor r13,r9
|
|
ror r14,5
|
|
xor rdi,r11
|
|
|
|
mov QWORD[56+rsp],r12
|
|
xor r14,rbx
|
|
and rdi,r9
|
|
|
|
ror r13,4
|
|
add r12,rax
|
|
xor rdi,r11
|
|
|
|
ror r14,6
|
|
xor r13,r9
|
|
add r12,rdi
|
|
|
|
mov rdi,rbx
|
|
add r12,QWORD[rbp]
|
|
xor r14,rbx
|
|
|
|
xor rdi,rcx
|
|
ror r13,14
|
|
mov rax,rcx
|
|
|
|
and r15,rdi
|
|
ror r14,28
|
|
add r12,r13
|
|
|
|
xor rax,r15
|
|
add r8,r12
|
|
add rax,r12
|
|
|
|
lea rbp,[24+rbp]
|
|
mov r13,QWORD[72+rsp]
|
|
mov r15,QWORD[48+rsp]
|
|
|
|
mov r12,r13
|
|
ror r13,7
|
|
add rax,r14
|
|
mov r14,r15
|
|
ror r15,42
|
|
|
|
xor r13,r12
|
|
shr r12,7
|
|
ror r13,1
|
|
xor r15,r14
|
|
shr r14,6
|
|
|
|
ror r15,19
|
|
xor r12,r13
|
|
xor r15,r14
|
|
add r12,QWORD[8+rsp]
|
|
|
|
add r12,QWORD[64+rsp]
|
|
mov r13,r8
|
|
add r12,r15
|
|
mov r14,rax
|
|
ror r13,23
|
|
mov r15,r9
|
|
|
|
xor r13,r8
|
|
ror r14,5
|
|
xor r15,r10
|
|
|
|
mov QWORD[64+rsp],r12
|
|
xor r14,rax
|
|
and r15,r8
|
|
|
|
ror r13,4
|
|
add r12,r11
|
|
xor r15,r10
|
|
|
|
ror r14,6
|
|
xor r13,r8
|
|
add r12,r15
|
|
|
|
mov r15,rax
|
|
add r12,QWORD[rbp]
|
|
xor r14,rax
|
|
|
|
xor r15,rbx
|
|
ror r13,14
|
|
mov r11,rbx
|
|
|
|
and rdi,r15
|
|
ror r14,28
|
|
add r12,r13
|
|
|
|
xor r11,rdi
|
|
add rdx,r12
|
|
add r11,r12
|
|
|
|
lea rbp,[8+rbp]
|
|
mov r13,QWORD[80+rsp]
|
|
mov rdi,QWORD[56+rsp]
|
|
|
|
mov r12,r13
|
|
ror r13,7
|
|
add r11,r14
|
|
mov r14,rdi
|
|
ror rdi,42
|
|
|
|
xor r13,r12
|
|
shr r12,7
|
|
ror r13,1
|
|
xor rdi,r14
|
|
shr r14,6
|
|
|
|
ror rdi,19
|
|
xor r12,r13
|
|
xor rdi,r14
|
|
add r12,QWORD[16+rsp]
|
|
|
|
add r12,QWORD[72+rsp]
|
|
mov r13,rdx
|
|
add r12,rdi
|
|
mov r14,r11
|
|
ror r13,23
|
|
mov rdi,r8
|
|
|
|
xor r13,rdx
|
|
ror r14,5
|
|
xor rdi,r9
|
|
|
|
mov QWORD[72+rsp],r12
|
|
xor r14,r11
|
|
and rdi,rdx
|
|
|
|
ror r13,4
|
|
add r12,r10
|
|
xor rdi,r9
|
|
|
|
ror r14,6
|
|
xor r13,rdx
|
|
add r12,rdi
|
|
|
|
mov rdi,r11
|
|
add r12,QWORD[rbp]
|
|
xor r14,r11
|
|
|
|
xor rdi,rax
|
|
ror r13,14
|
|
mov r10,rax
|
|
|
|
and r15,rdi
|
|
ror r14,28
|
|
add r12,r13
|
|
|
|
xor r10,r15
|
|
add rcx,r12
|
|
add r10,r12
|
|
|
|
lea rbp,[24+rbp]
|
|
mov r13,QWORD[88+rsp]
|
|
mov r15,QWORD[64+rsp]
|
|
|
|
mov r12,r13
|
|
ror r13,7
|
|
add r10,r14
|
|
mov r14,r15
|
|
ror r15,42
|
|
|
|
xor r13,r12
|
|
shr r12,7
|
|
ror r13,1
|
|
xor r15,r14
|
|
shr r14,6
|
|
|
|
ror r15,19
|
|
xor r12,r13
|
|
xor r15,r14
|
|
add r12,QWORD[24+rsp]
|
|
|
|
add r12,QWORD[80+rsp]
|
|
mov r13,rcx
|
|
add r12,r15
|
|
mov r14,r10
|
|
ror r13,23
|
|
mov r15,rdx
|
|
|
|
xor r13,rcx
|
|
ror r14,5
|
|
xor r15,r8
|
|
|
|
mov QWORD[80+rsp],r12
|
|
xor r14,r10
|
|
and r15,rcx
|
|
|
|
ror r13,4
|
|
add r12,r9
|
|
xor r15,r8
|
|
|
|
ror r14,6
|
|
xor r13,rcx
|
|
add r12,r15
|
|
|
|
mov r15,r10
|
|
add r12,QWORD[rbp]
|
|
xor r14,r10
|
|
|
|
xor r15,r11
|
|
ror r13,14
|
|
mov r9,r11
|
|
|
|
and rdi,r15
|
|
ror r14,28
|
|
add r12,r13
|
|
|
|
xor r9,rdi
|
|
add rbx,r12
|
|
add r9,r12
|
|
|
|
lea rbp,[8+rbp]
|
|
mov r13,QWORD[96+rsp]
|
|
mov rdi,QWORD[72+rsp]
|
|
|
|
mov r12,r13
|
|
ror r13,7
|
|
add r9,r14
|
|
mov r14,rdi
|
|
ror rdi,42
|
|
|
|
xor r13,r12
|
|
shr r12,7
|
|
ror r13,1
|
|
xor rdi,r14
|
|
shr r14,6
|
|
|
|
ror rdi,19
|
|
xor r12,r13
|
|
xor rdi,r14
|
|
add r12,QWORD[32+rsp]
|
|
|
|
add r12,QWORD[88+rsp]
|
|
mov r13,rbx
|
|
add r12,rdi
|
|
mov r14,r9
|
|
ror r13,23
|
|
mov rdi,rcx
|
|
|
|
xor r13,rbx
|
|
ror r14,5
|
|
xor rdi,rdx
|
|
|
|
mov QWORD[88+rsp],r12
|
|
xor r14,r9
|
|
and rdi,rbx
|
|
|
|
ror r13,4
|
|
add r12,r8
|
|
xor rdi,rdx
|
|
|
|
ror r14,6
|
|
xor r13,rbx
|
|
add r12,rdi
|
|
|
|
mov rdi,r9
|
|
add r12,QWORD[rbp]
|
|
xor r14,r9
|
|
|
|
xor rdi,r10
|
|
ror r13,14
|
|
mov r8,r10
|
|
|
|
and r15,rdi
|
|
ror r14,28
|
|
add r12,r13
|
|
|
|
xor r8,r15
|
|
add rax,r12
|
|
add r8,r12
|
|
|
|
lea rbp,[24+rbp]
|
|
mov r13,QWORD[104+rsp]
|
|
mov r15,QWORD[80+rsp]
|
|
|
|
mov r12,r13
|
|
ror r13,7
|
|
add r8,r14
|
|
mov r14,r15
|
|
ror r15,42
|
|
|
|
xor r13,r12
|
|
shr r12,7
|
|
ror r13,1
|
|
xor r15,r14
|
|
shr r14,6
|
|
|
|
ror r15,19
|
|
xor r12,r13
|
|
xor r15,r14
|
|
add r12,QWORD[40+rsp]
|
|
|
|
add r12,QWORD[96+rsp]
|
|
mov r13,rax
|
|
add r12,r15
|
|
mov r14,r8
|
|
ror r13,23
|
|
mov r15,rbx
|
|
|
|
xor r13,rax
|
|
ror r14,5
|
|
xor r15,rcx
|
|
|
|
mov QWORD[96+rsp],r12
|
|
xor r14,r8
|
|
and r15,rax
|
|
|
|
ror r13,4
|
|
add r12,rdx
|
|
xor r15,rcx
|
|
|
|
ror r14,6
|
|
xor r13,rax
|
|
add r12,r15
|
|
|
|
mov r15,r8
|
|
add r12,QWORD[rbp]
|
|
xor r14,r8
|
|
|
|
xor r15,r9
|
|
ror r13,14
|
|
mov rdx,r9
|
|
|
|
and rdi,r15
|
|
ror r14,28
|
|
add r12,r13
|
|
|
|
xor rdx,rdi
|
|
add r11,r12
|
|
add rdx,r12
|
|
|
|
lea rbp,[8+rbp]
|
|
mov r13,QWORD[112+rsp]
|
|
mov rdi,QWORD[88+rsp]
|
|
|
|
mov r12,r13
|
|
ror r13,7
|
|
add rdx,r14
|
|
mov r14,rdi
|
|
ror rdi,42
|
|
|
|
xor r13,r12
|
|
shr r12,7
|
|
ror r13,1
|
|
xor rdi,r14
|
|
shr r14,6
|
|
|
|
ror rdi,19
|
|
xor r12,r13
|
|
xor rdi,r14
|
|
add r12,QWORD[48+rsp]
|
|
|
|
add r12,QWORD[104+rsp]
|
|
mov r13,r11
|
|
add r12,rdi
|
|
mov r14,rdx
|
|
ror r13,23
|
|
mov rdi,rax
|
|
|
|
xor r13,r11
|
|
ror r14,5
|
|
xor rdi,rbx
|
|
|
|
mov QWORD[104+rsp],r12
|
|
xor r14,rdx
|
|
and rdi,r11
|
|
|
|
ror r13,4
|
|
add r12,rcx
|
|
xor rdi,rbx
|
|
|
|
ror r14,6
|
|
xor r13,r11
|
|
add r12,rdi
|
|
|
|
mov rdi,rdx
|
|
add r12,QWORD[rbp]
|
|
xor r14,rdx
|
|
|
|
xor rdi,r8
|
|
ror r13,14
|
|
mov rcx,r8
|
|
|
|
and r15,rdi
|
|
ror r14,28
|
|
add r12,r13
|
|
|
|
xor rcx,r15
|
|
add r10,r12
|
|
add rcx,r12
|
|
|
|
lea rbp,[24+rbp]
|
|
mov r13,QWORD[120+rsp]
|
|
mov r15,QWORD[96+rsp]
|
|
|
|
mov r12,r13
|
|
ror r13,7
|
|
add rcx,r14
|
|
mov r14,r15
|
|
ror r15,42
|
|
|
|
xor r13,r12
|
|
shr r12,7
|
|
ror r13,1
|
|
xor r15,r14
|
|
shr r14,6
|
|
|
|
ror r15,19
|
|
xor r12,r13
|
|
xor r15,r14
|
|
add r12,QWORD[56+rsp]
|
|
|
|
add r12,QWORD[112+rsp]
|
|
mov r13,r10
|
|
add r12,r15
|
|
mov r14,rcx
|
|
ror r13,23
|
|
mov r15,r11
|
|
|
|
xor r13,r10
|
|
ror r14,5
|
|
xor r15,rax
|
|
|
|
mov QWORD[112+rsp],r12
|
|
xor r14,rcx
|
|
and r15,r10
|
|
|
|
ror r13,4
|
|
add r12,rbx
|
|
xor r15,rax
|
|
|
|
ror r14,6
|
|
xor r13,r10
|
|
add r12,r15
|
|
|
|
mov r15,rcx
|
|
add r12,QWORD[rbp]
|
|
xor r14,rcx
|
|
|
|
xor r15,rdx
|
|
ror r13,14
|
|
mov rbx,rdx
|
|
|
|
and rdi,r15
|
|
ror r14,28
|
|
add r12,r13
|
|
|
|
xor rbx,rdi
|
|
add r9,r12
|
|
add rbx,r12
|
|
|
|
lea rbp,[8+rbp]
|
|
mov r13,QWORD[rsp]
|
|
mov rdi,QWORD[104+rsp]
|
|
|
|
mov r12,r13
|
|
ror r13,7
|
|
add rbx,r14
|
|
mov r14,rdi
|
|
ror rdi,42
|
|
|
|
xor r13,r12
|
|
shr r12,7
|
|
ror r13,1
|
|
xor rdi,r14
|
|
shr r14,6
|
|
|
|
ror rdi,19
|
|
xor r12,r13
|
|
xor rdi,r14
|
|
add r12,QWORD[64+rsp]
|
|
|
|
add r12,QWORD[120+rsp]
|
|
mov r13,r9
|
|
add r12,rdi
|
|
mov r14,rbx
|
|
ror r13,23
|
|
mov rdi,r10
|
|
|
|
xor r13,r9
|
|
ror r14,5
|
|
xor rdi,r11
|
|
|
|
mov QWORD[120+rsp],r12
|
|
xor r14,rbx
|
|
and rdi,r9
|
|
|
|
ror r13,4
|
|
add r12,rax
|
|
xor rdi,r11
|
|
|
|
ror r14,6
|
|
xor r13,r9
|
|
add r12,rdi
|
|
|
|
mov rdi,rbx
|
|
add r12,QWORD[rbp]
|
|
xor r14,rbx
|
|
|
|
xor rdi,rcx
|
|
ror r13,14
|
|
mov rax,rcx
|
|
|
|
and r15,rdi
|
|
ror r14,28
|
|
add r12,r13
|
|
|
|
xor rax,r15
|
|
add r8,r12
|
|
add rax,r12
|
|
|
|
lea rbp,[24+rbp]
|
|
cmp BYTE[7+rbp],0
|
|
jnz NEAR $L$rounds_16_xx
|
|
|
|
mov rdi,QWORD[((128+0))+rsp]
|
|
add rax,r14
|
|
lea rsi,[128+rsi]
|
|
|
|
add rax,QWORD[rdi]
|
|
add rbx,QWORD[8+rdi]
|
|
add rcx,QWORD[16+rdi]
|
|
add rdx,QWORD[24+rdi]
|
|
add r8,QWORD[32+rdi]
|
|
add r9,QWORD[40+rdi]
|
|
add r10,QWORD[48+rdi]
|
|
add r11,QWORD[56+rdi]
|
|
|
|
cmp rsi,QWORD[((128+16))+rsp]
|
|
|
|
mov QWORD[rdi],rax
|
|
mov QWORD[8+rdi],rbx
|
|
mov QWORD[16+rdi],rcx
|
|
mov QWORD[24+rdi],rdx
|
|
mov QWORD[32+rdi],r8
|
|
mov QWORD[40+rdi],r9
|
|
mov QWORD[48+rdi],r10
|
|
mov QWORD[56+rdi],r11
|
|
jb NEAR $L$loop
|
|
|
|
mov rsi,QWORD[152+rsp]
|
|
|
|
mov r15,QWORD[((-48))+rsi]
|
|
|
|
mov r14,QWORD[((-40))+rsi]
|
|
|
|
mov r13,QWORD[((-32))+rsi]
|
|
|
|
mov r12,QWORD[((-24))+rsi]
|
|
|
|
mov rbp,QWORD[((-16))+rsi]
|
|
|
|
mov rbx,QWORD[((-8))+rsi]
|
|
|
|
lea rsp,[rsi]
|
|
|
|
$L$epilogue:
|
|
mov rdi,QWORD[8+rsp] ;WIN64 epilogue
|
|
mov rsi,QWORD[16+rsp]
|
|
DB 0F3h,0C3h ;repret
|
|
|
|
$L$SEH_end_sha512_block_data_order:
|
|
ALIGN 64
|
|
|
|
K512:
|
|
DQ 0x428a2f98d728ae22,0x7137449123ef65cd
|
|
DQ 0x428a2f98d728ae22,0x7137449123ef65cd
|
|
DQ 0xb5c0fbcfec4d3b2f,0xe9b5dba58189dbbc
|
|
DQ 0xb5c0fbcfec4d3b2f,0xe9b5dba58189dbbc
|
|
DQ 0x3956c25bf348b538,0x59f111f1b605d019
|
|
DQ 0x3956c25bf348b538,0x59f111f1b605d019
|
|
DQ 0x923f82a4af194f9b,0xab1c5ed5da6d8118
|
|
DQ 0x923f82a4af194f9b,0xab1c5ed5da6d8118
|
|
DQ 0xd807aa98a3030242,0x12835b0145706fbe
|
|
DQ 0xd807aa98a3030242,0x12835b0145706fbe
|
|
DQ 0x243185be4ee4b28c,0x550c7dc3d5ffb4e2
|
|
DQ 0x243185be4ee4b28c,0x550c7dc3d5ffb4e2
|
|
DQ 0x72be5d74f27b896f,0x80deb1fe3b1696b1
|
|
DQ 0x72be5d74f27b896f,0x80deb1fe3b1696b1
|
|
DQ 0x9bdc06a725c71235,0xc19bf174cf692694
|
|
DQ 0x9bdc06a725c71235,0xc19bf174cf692694
|
|
DQ 0xe49b69c19ef14ad2,0xefbe4786384f25e3
|
|
DQ 0xe49b69c19ef14ad2,0xefbe4786384f25e3
|
|
DQ 0x0fc19dc68b8cd5b5,0x240ca1cc77ac9c65
|
|
DQ 0x0fc19dc68b8cd5b5,0x240ca1cc77ac9c65
|
|
DQ 0x2de92c6f592b0275,0x4a7484aa6ea6e483
|
|
DQ 0x2de92c6f592b0275,0x4a7484aa6ea6e483
|
|
DQ 0x5cb0a9dcbd41fbd4,0x76f988da831153b5
|
|
DQ 0x5cb0a9dcbd41fbd4,0x76f988da831153b5
|
|
DQ 0x983e5152ee66dfab,0xa831c66d2db43210
|
|
DQ 0x983e5152ee66dfab,0xa831c66d2db43210
|
|
DQ 0xb00327c898fb213f,0xbf597fc7beef0ee4
|
|
DQ 0xb00327c898fb213f,0xbf597fc7beef0ee4
|
|
DQ 0xc6e00bf33da88fc2,0xd5a79147930aa725
|
|
DQ 0xc6e00bf33da88fc2,0xd5a79147930aa725
|
|
DQ 0x06ca6351e003826f,0x142929670a0e6e70
|
|
DQ 0x06ca6351e003826f,0x142929670a0e6e70
|
|
DQ 0x27b70a8546d22ffc,0x2e1b21385c26c926
|
|
DQ 0x27b70a8546d22ffc,0x2e1b21385c26c926
|
|
DQ 0x4d2c6dfc5ac42aed,0x53380d139d95b3df
|
|
DQ 0x4d2c6dfc5ac42aed,0x53380d139d95b3df
|
|
DQ 0x650a73548baf63de,0x766a0abb3c77b2a8
|
|
DQ 0x650a73548baf63de,0x766a0abb3c77b2a8
|
|
DQ 0x81c2c92e47edaee6,0x92722c851482353b
|
|
DQ 0x81c2c92e47edaee6,0x92722c851482353b
|
|
DQ 0xa2bfe8a14cf10364,0xa81a664bbc423001
|
|
DQ 0xa2bfe8a14cf10364,0xa81a664bbc423001
|
|
DQ 0xc24b8b70d0f89791,0xc76c51a30654be30
|
|
DQ 0xc24b8b70d0f89791,0xc76c51a30654be30
|
|
DQ 0xd192e819d6ef5218,0xd69906245565a910
|
|
DQ 0xd192e819d6ef5218,0xd69906245565a910
|
|
DQ 0xf40e35855771202a,0x106aa07032bbd1b8
|
|
DQ 0xf40e35855771202a,0x106aa07032bbd1b8
|
|
DQ 0x19a4c116b8d2d0c8,0x1e376c085141ab53
|
|
DQ 0x19a4c116b8d2d0c8,0x1e376c085141ab53
|
|
DQ 0x2748774cdf8eeb99,0x34b0bcb5e19b48a8
|
|
DQ 0x2748774cdf8eeb99,0x34b0bcb5e19b48a8
|
|
DQ 0x391c0cb3c5c95a63,0x4ed8aa4ae3418acb
|
|
DQ 0x391c0cb3c5c95a63,0x4ed8aa4ae3418acb
|
|
DQ 0x5b9cca4f7763e373,0x682e6ff3d6b2b8a3
|
|
DQ 0x5b9cca4f7763e373,0x682e6ff3d6b2b8a3
|
|
DQ 0x748f82ee5defb2fc,0x78a5636f43172f60
|
|
DQ 0x748f82ee5defb2fc,0x78a5636f43172f60
|
|
DQ 0x84c87814a1f0ab72,0x8cc702081a6439ec
|
|
DQ 0x84c87814a1f0ab72,0x8cc702081a6439ec
|
|
DQ 0x90befffa23631e28,0xa4506cebde82bde9
|
|
DQ 0x90befffa23631e28,0xa4506cebde82bde9
|
|
DQ 0xbef9a3f7b2c67915,0xc67178f2e372532b
|
|
DQ 0xbef9a3f7b2c67915,0xc67178f2e372532b
|
|
DQ 0xca273eceea26619c,0xd186b8c721c0c207
|
|
DQ 0xca273eceea26619c,0xd186b8c721c0c207
|
|
DQ 0xeada7dd6cde0eb1e,0xf57d4f7fee6ed178
|
|
DQ 0xeada7dd6cde0eb1e,0xf57d4f7fee6ed178
|
|
DQ 0x06f067aa72176fba,0x0a637dc5a2c898a6
|
|
DQ 0x06f067aa72176fba,0x0a637dc5a2c898a6
|
|
DQ 0x113f9804bef90dae,0x1b710b35131c471b
|
|
DQ 0x113f9804bef90dae,0x1b710b35131c471b
|
|
DQ 0x28db77f523047d84,0x32caab7b40c72493
|
|
DQ 0x28db77f523047d84,0x32caab7b40c72493
|
|
DQ 0x3c9ebe0a15c9bebc,0x431d67c49c100d4c
|
|
DQ 0x3c9ebe0a15c9bebc,0x431d67c49c100d4c
|
|
DQ 0x4cc5d4becb3e42b6,0x597f299cfc657e2a
|
|
DQ 0x4cc5d4becb3e42b6,0x597f299cfc657e2a
|
|
DQ 0x5fcb6fab3ad6faec,0x6c44198c4a475817
|
|
DQ 0x5fcb6fab3ad6faec,0x6c44198c4a475817
|
|
|
|
DQ 0x0001020304050607,0x08090a0b0c0d0e0f
|
|
DQ 0x0001020304050607,0x08090a0b0c0d0e0f
|
|
DB 83,72,65,53,49,50,32,98,108,111,99,107,32,116,114,97
|
|
DB 110,115,102,111,114,109,32,102,111,114,32,120,56,54,95,54
|
|
DB 52,44,32,67,82,89,80,84,79,71,65,77,83,32,98,121
|
|
DB 32,60,97,112,112,114,111,64,111,112,101,110,115,115,108,46
|
|
DB 111,114,103,62,0
|
|
EXTERN __imp_RtlVirtualUnwind
|
|
|
|
ALIGN 16
|
|
se_handler:
|
|
push rsi
|
|
push rdi
|
|
push rbx
|
|
push rbp
|
|
push r12
|
|
push r13
|
|
push r14
|
|
push r15
|
|
pushfq
|
|
sub rsp,64
|
|
|
|
mov rax,QWORD[120+r8]
|
|
mov rbx,QWORD[248+r8]
|
|
|
|
mov rsi,QWORD[8+r9]
|
|
mov r11,QWORD[56+r9]
|
|
|
|
mov r10d,DWORD[r11]
|
|
lea r10,[r10*1+rsi]
|
|
cmp rbx,r10
|
|
jb NEAR $L$in_prologue
|
|
|
|
mov rax,QWORD[152+r8]
|
|
|
|
mov r10d,DWORD[4+r11]
|
|
lea r10,[r10*1+rsi]
|
|
cmp rbx,r10
|
|
jae NEAR $L$in_prologue
|
|
mov rsi,rax
|
|
mov rax,QWORD[((128+24))+rax]
|
|
|
|
mov rbx,QWORD[((-8))+rax]
|
|
mov rbp,QWORD[((-16))+rax]
|
|
mov r12,QWORD[((-24))+rax]
|
|
mov r13,QWORD[((-32))+rax]
|
|
mov r14,QWORD[((-40))+rax]
|
|
mov r15,QWORD[((-48))+rax]
|
|
mov QWORD[144+r8],rbx
|
|
mov QWORD[160+r8],rbp
|
|
mov QWORD[216+r8],r12
|
|
mov QWORD[224+r8],r13
|
|
mov QWORD[232+r8],r14
|
|
mov QWORD[240+r8],r15
|
|
|
|
lea r10,[$L$epilogue]
|
|
cmp rbx,r10
|
|
jb NEAR $L$in_prologue
|
|
|
|
lea rsi,[((128+32))+rsi]
|
|
lea rdi,[512+r8]
|
|
mov ecx,12
|
|
DD 0xa548f3fc
|
|
|
|
$L$in_prologue:
|
|
mov rdi,QWORD[8+rax]
|
|
mov rsi,QWORD[16+rax]
|
|
mov QWORD[152+r8],rax
|
|
mov QWORD[168+r8],rsi
|
|
mov QWORD[176+r8],rdi
|
|
|
|
mov rdi,QWORD[40+r9]
|
|
mov rsi,r8
|
|
mov ecx,154
|
|
DD 0xa548f3fc
|
|
|
|
mov rsi,r9
|
|
xor rcx,rcx
|
|
mov rdx,QWORD[8+rsi]
|
|
mov r8,QWORD[rsi]
|
|
mov r9,QWORD[16+rsi]
|
|
mov r10,QWORD[40+rsi]
|
|
lea r11,[56+rsi]
|
|
lea r12,[24+rsi]
|
|
mov QWORD[32+rsp],r10
|
|
mov QWORD[40+rsp],r11
|
|
mov QWORD[48+rsp],r12
|
|
mov QWORD[56+rsp],rcx
|
|
call QWORD[__imp_RtlVirtualUnwind]
|
|
|
|
mov eax,1
|
|
add rsp,64
|
|
popfq
|
|
pop r15
|
|
pop r14
|
|
pop r13
|
|
pop r12
|
|
pop rbp
|
|
pop rbx
|
|
pop rdi
|
|
pop rsi
|
|
DB 0F3h,0C3h ;repret
|
|
|
|
section .pdata rdata align=4
|
|
ALIGN 4
|
|
DD $L$SEH_begin_sha512_block_data_order wrt ..imagebase
|
|
DD $L$SEH_end_sha512_block_data_order wrt ..imagebase
|
|
DD $L$SEH_info_sha512_block_data_order wrt ..imagebase
|
|
section .xdata rdata align=8
|
|
ALIGN 8
|
|
$L$SEH_info_sha512_block_data_order:
|
|
DB 9,0,0,0
|
|
DD se_handler wrt ..imagebase
|
|
DD $L$prologue wrt ..imagebase,$L$epilogue wrt ..imagebase
|