Function at 0x4156a0
Capabilities:
Hash data using sha256
Resolve function by parsing pe exports

Disassembly:
push ebp
mov eax, 0x463100
push edi
push esi
push ebx
sub esp, 0x10c
mov ebx, dword [esp + 0x128]
mov ebp, dword [esp + 0x124]
mov dword [esp + 0x28], 0xf3bcc908
mov dword [esp + 0x2c], 0x6a09e667
test ebx, ebx
mov dword [esp + 0x30], 0x84caa73b
mov dword [esp + 0x34], 0xbb67ae85
cmove ebx, eax
mov dword [esp + 0x38], 0xfe94f82b
mov dword [esp + 0x3c], 0x3c6ef372
mov dword [esp + 0x40], 0x5f1d36f1
mov dword [esp + 0x44], 0xa54ff53a
mov dword [esp + 0x48], 0xade682d1
mov dword [esp + 0x4c], 0x510e527f
mov dword [esp + 0x50], 0x2b3e6c1f
mov dword [esp + 0x54], 0x9b05688c
mov dword [esp + 0x58], 0xfb41bd6b
mov dword [esp + 0x5c], 0x1f83d9ab
mov dword [esp + 0x60], 0x137e2179
mov dword [esp + 0x64], 0x5be0cd19
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0xf8], 0
mov dword [esp + 0xfc], 0x40
test ebp, ebp
je 0x415bb8
mov eax, ebp
xor edx, edx
shl eax, 3
shld edx, ebp, 3
mov dword [esp + 0x68], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x18], eax
cmp ebp, 0x7f
ja 0x415850
lea edx, [esp + 0x78]
mov esi, dword [esp + 0x120]
mov edi, edx
cmp ebp, 4
jae 0x415d88
xor ecx, ecx
test ebp, 2
jne 0x415d68
test ebp, 1
jne 0x415d50
mov dword [esp + 0xf8], ebp
mov byte [esp + ebp + 0x78], pe_nt_image_headers32
add ebp, 1
lea ecx, [edx + ebp]
cmp ebp, 0x70
jbe 0x41588b
mov eax, pe_nt_image_headers32
mov dword [esp], ecx
sub eax, ebp
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp + 0x1c], edx
call sym._memset
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
call sym._sha512_block_data_order.constprop.0
mov edx, dword [esp + 0x1c]
mov eax, 0x70
mov ecx, edx
cmp eax, 4
jb 0x415897
lea edi, [ecx + 4]
mov dword [ecx], 0
and edi, 0xfffffffc
mov dword [ecx + eax - 4], 0
sub ecx, edi
add ecx, eax
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
jmp 0x4158a6
mov edx, dword [esp + 0x120]
mov ecx, ebp
shr ecx, 7
call sym._sha512_block_data_order
mov eax, ebp
and eax, 0x7f
jne 0x415da4
mov ebp, dword [esp + 0xf8]
lea edx, [esp + 0x78]
mov byte [esp + ebp + 0x78], pe_nt_image_headers32
add ebp, 1
lea ecx, [edx + ebp]
cmp ebp, 0x70
ja 0x4157ef
mov eax, 0x70
sub eax, ebp
cmp eax, 4
jae 0x41582b
test eax, eax
je 0x4158a6
mov byte [ecx], 0
test al, 2
jne 0x415d98
mov eax, dword [esp + 0x74]
xor ecx, ecx
mov edi, dword [esp + 0x74]
shr eax, 0x18
mov cl, al
mov eax, dword [esp + 0x74]
shr eax, 0x10
mov ch, al
mov eax, dword [esp + 0x74]
movzx esi, ah
movzx eax, cx
mov ecx, dword [esp + 0x74]
shl esi, 0x10
or eax, esi
mov esi, dword [esp + 0x70]
shl ecx, 0x18
or ecx, eax
xor eax, eax
shrd esi, edi, 0x18
mov dword [esp + 0xe8], ecx
mov edi, dword [esp + 0x74]
mov ecx, esi
mov esi, dword [esp + 0x70]
mov al, cl
shrd esi, edi, 0x10
mov edi, dword [esp + 0x74]
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x70]
mov ah, byte [esp + 0x1c]
shrd esi, edi, 8
mov edi, dword [esp + 0x6c]
mov ecx, esi
movzx eax, ax
movzx esi, cl
mov ecx, dword [esp + 0x70]
shl esi, 0x10
or eax, esi
shl ecx, 0x18
or ecx, eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0xec], ecx
xor ecx, ecx
shr eax, 0x18
mov cl, al
mov eax, dword [esp + 0x6c]
shr eax, 0x10
mov ch, al
mov eax, dword [esp + 0x6c]
movzx esi, ah
movzx eax, cx
mov ecx, dword [esp + 0x6c]
shl esi, 0x10
or eax, esi
mov esi, dword [esp + 0x68]
shl ecx, 0x18
or ecx, eax
xor eax, eax
shrd esi, edi, 0x18
mov dword [esp + 0xf0], ecx
mov edi, dword [esp + 0x6c]
mov ecx, esi
mov esi, dword [esp + 0x68]
mov al, cl
shrd esi, edi, 0x10
mov edi, dword [esp + 0x6c]
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x68]
mov ah, byte [esp + 0x1c]
shrd esi, edi, 8
mov ecx, esi
movzx eax, ax
movzx esi, cl
mov ecx, dword [esp + 0x68]
shl esi, 0x10
or eax, esi
shl ecx, 0x18
or ecx, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0xf4], ecx
call sym._sha512_block_data_order.constprop.0
mov eax, dword [esp + 0xfc]
cmp eax, 0x30
je 0x415c70
ja 0x415a90
cmp eax, 0x1c
je 0x415be0
cmp eax, 0x20
jne 0x415a66
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ecx, eax
mov byte [ebx + 2], ah
bswap edx
shr ecx, 0x18
mov byte [ebx + 3], al
mov byte [ebx], cl
mov ecx, eax
mov eax, dword [esp + 0x34]
shr ecx, 0x10
mov dword [ebx + 4], edx
mov edx, dword [esp + 0x30]
mov byte [ebx + 1], cl
mov ecx, eax
shr ecx, 0x18
mov byte [ebx + 0xa], ah
bswap edx
mov byte [ebx + 8], cl
mov ecx, eax
mov byte [ebx + 0xb], al
mov eax, dword [esp + 0x3c]
shr ecx, 0x10
mov byte [ebx + 9], cl
mov ecx, eax
mov byte [ebx + 0x12], ah
shr ecx, 0x18
mov byte [ebx + 0x13], al
mov byte [ebx + 0x10], cl
mov ecx, eax
mov eax, dword [esp + 0x44]
shr ecx, 0x10
mov dword [ebx + 0xc], edx
mov edx, dword [esp + 0x38]
mov byte [ebx + 0x11], cl
mov ecx, eax
shr ecx, 0x18
bswap edx
mov dword [ebx + 0x14], edx
mov edx, dword [esp + 0x40]
mov byte [ebx + 0x18], cl
mov ecx, eax
shr ecx, 0x10
bswap edx
mov byte [ebx + 0x1a], ah
mov byte [ebx + 0x19], cl
mov byte [ebx + 0x1b], al
mov dword [ebx + 0x1c], edx
mov eax, dword [esp + 0x18]
mov dword [esp + 4], 0xd8
mov dword [esp], eax
call sym._OPENSSL_cleanse
add esp, 0x10c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 0x40
jne 0x415a66
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ecx, eax
mov byte [ebx + 2], ah
bswap edx
shr ecx, 0x18
mov byte [ebx + 3], al
mov byte [ebx], cl
mov ecx, eax
mov eax, dword [esp + 0x34]
shr ecx, 0x10
mov dword [ebx + 4], edx
mov edx, dword [esp + 0x30]
mov byte [ebx + 1], cl
mov ecx, eax
shr ecx, 0x18
mov byte [ebx + 0xa], ah
bswap edx
mov byte [ebx + 8], cl
mov ecx, eax
mov byte [ebx + 0xb], al
mov eax, dword [esp + 0x3c]
shr ecx, 0x10
mov byte [ebx + 9], cl
mov ecx, eax
mov byte [ebx + 0x12], ah
shr ecx, 0x18
mov byte [ebx + 0x13], al
mov byte [ebx + 0x10], cl
mov ecx, eax
mov eax, dword [esp + 0x44]
shr ecx, 0x10
mov dword [ebx + 0xc], edx
mov edx, dword [esp + 0x38]
mov byte [ebx + 0x11], cl
mov ecx, eax
shr ecx, 0x18
mov byte [ebx + 0x1a], ah
bswap edx
mov byte [ebx + 0x18], cl
mov ecx, eax
mov byte [ebx + 0x1b], al
mov eax, dword [esp + 0x4c]
shr ecx, 0x10
mov byte [ebx + 0x19], cl
mov ecx, eax
mov dword [ebx + 0x14], edx
mov edx, dword [esp + 0x40]
shr ecx, 0x18
mov byte [ebx + 0x20], cl
mov ecx, eax
bswap edx
shr ecx, 0x10
mov dword [ebx + 0x1c], edx
mov edx, dword [esp + 0x48]
mov byte [ebx + 0x21], cl
mov byte [ebx + 0x22], ah
bswap edx
mov byte [ebx + 0x23], al
mov eax, dword [esp + 0x54]
mov dword [ebx + 0x24], edx
mov edx, dword [esp + 0x50]
mov ecx, eax
mov byte [ebx + 0x2a], ah
shr ecx, 0x18
mov byte [ebx + 0x2b], al
bswap edx
mov byte [ebx + 0x28], cl
mov ecx, eax
mov eax, dword [esp + 0x5c]
shr ecx, 0x10
mov dword [ebx + 0x2c], edx
mov edx, dword [esp + 0x58]
mov byte [ebx + 0x29], cl
mov ecx, eax
shr ecx, 0x18
mov byte [ebx + 0x32], ah
bswap edx
mov byte [ebx + 0x30], cl
mov ecx, eax
mov byte [ebx + 0x33], al
mov eax, dword [esp + 0x64]
shr ecx, 0x10
mov byte [ebx + 0x31], cl
mov ecx, eax
mov dword [ebx + 0x34], edx
mov edx, dword [esp + 0x60]
shr ecx, 0x18
mov byte [ebx + 0x3a], ah
mov byte [ebx + 0x38], cl
mov ecx, eax
bswap edx
shr ecx, 0x10
mov byte [ebx + 0x3b], al
mov byte [ebx + 0x39], cl
mov dword [ebx + 0x3c], edx
jmp 0x415a66
lea edi, [esp + 0x28]
mov byte [esp + 0x78], pe_nt_image_headers32
lea ecx, [esp + 0x79]
mov eax, 0x6f
mov dword [esp + 0x18], edi
lea edx, [esp + 0x78]
jmp 0x415892
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ecx, eax
mov byte [ebx + 2], ah
bswap edx
shr ecx, 0x18
mov byte [ebx + 3], al
mov byte [ebx], cl
mov ecx, eax
mov eax, dword [esp + 0x34]
shr ecx, 0x10
mov dword [ebx + 4], edx
mov edx, dword [esp + 0x30]
mov byte [ebx + 1], cl
mov ecx, eax
shr ecx, 0x18
mov byte [ebx + 0xa], ah
bswap edx
mov byte [ebx + 8], cl
mov ecx, eax
mov byte [ebx + 0xb], al
mov eax, dword [esp + 0x3c]
shr ecx, 0x10
mov byte [ebx + 9], cl
mov ecx, eax
mov dword [ebx + 0xc], edx
mov edx, dword [esp + 0x38]
shr ecx, 0x18
mov byte [ebx + 0x12], ah
mov byte [ebx + 0x10], cl
mov ecx, eax
bswap edx
mov byte [ebx + 0x13], al
mov eax, dword [esp + 0x44]
shr ecx, 0x10
mov dword [ebx + 0x14], edx
mov edx, eax
mov byte [ebx + 0x11], cl
shr edx, 0x18
mov byte [ebx + 0x1a], ah
mov byte [ebx + 0x18], dl
mov edx, eax
shr edx, 0x10
mov byte [ebx + 0x1b], al
mov byte [ebx + 0x19], dl
jmp 0x415a66
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ecx, eax
mov byte [ebx + 2], ah
bswap edx
shr ecx, 0x18
mov byte [ebx + 3], al
mov byte [ebx], cl
mov ecx, eax
mov eax, dword [esp + 0x34]
shr ecx, 0x10
mov dword [ebx + 4], edx
mov edx, dword [esp + 0x30]
mov byte [ebx + 1], cl
mov ecx, eax
shr ecx, 0x18
mov byte [ebx + 0xa], ah
bswap edx
mov byte [ebx + 8], cl
mov ecx, eax
mov byte [ebx + 0xb], al
mov eax, dword [esp + 0x3c]
shr ecx, 0x10
mov byte [ebx + 9], cl
mov ecx, eax
mov byte [ebx + 0x12], ah
shr ecx, 0x18
mov byte [ebx + 0x13], al
mov byte [ebx + 0x10], cl
mov ecx, eax
mov eax, dword [esp + 0x44]
shr ecx, 0x10
mov dword [ebx + 0xc], edx
mov edx, dword [esp + 0x38]
mov byte [ebx + 0x11], cl
mov ecx, eax
shr ecx, 0x18
mov byte [ebx + 0x1a], ah
bswap edx
mov byte [ebx + 0x18], cl
mov ecx, eax
mov byte [ebx + 0x1b], al
mov eax, dword [esp + 0x4c]
shr ecx, 0x10
mov byte [ebx + 0x19], cl
mov ecx, eax
mov dword [ebx + 0x14], edx
mov edx, dword [esp + 0x40]
shr ecx, 0x18
mov byte [ebx + 0x20], cl
mov ecx, eax
bswap edx
shr ecx, 0x10
mov dword [ebx + 0x1c], edx
mov edx, dword [esp + 0x48]
mov byte [ebx + 0x21], cl
mov byte [ebx + 0x22], ah
bswap edx
mov byte [ebx + 0x23], al
mov eax, dword [esp + 0x54]
mov dword [ebx + 0x24], edx
mov edx, dword [esp + 0x50]
mov ecx, eax
mov byte [ebx + 0x2a], ah
shr ecx, 0x18
bswap edx
mov byte [ebx + 0x2b], al
mov byte [ebx + 0x28], cl
mov ecx, eax
shr ecx, 0x10
mov dword [ebx + 0x2c], edx
mov byte [ebx + 0x29], cl
jmp 0x415a66
movzx eax, byte [esi + ecx]
mov byte [edi + ecx], al
mov dword [esp + 0xf8], ebp
jmp 0x4157db
movzx eax, word [esi]
mov ecx, 2
mov word [edi], ax
test ebp, 1
je 0x4157d4
jmp 0x415d50
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
jmp 0x4157ba
xor esi, esi
mov word [ecx + eax - 2], si
jmp 0x4158a6
sub ebp, eax
add dword [esp + 0x120], ebp
mov ebp, eax
jmp 0x4157a4