Function at 0x5a58b0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x8c
mov ebx, dword [esp + 0xa8]
mov ebp, dword [esp + 0xa4]
test ebx, ebx
je 0x5a5b78
lea edx, [esp + 0x30]
xor eax, eax
mov ecx, 0x13
mov edi, edx
rep stosd dword es:[edi], eax
lea esi, [esp + 0x10]
mov dword [esp + 0x10], 0x6a09e667
mov dword [esp + 0x14], 0xbb67ae85
mov dword [esp + 0x18], 0x3c6ef372
mov dword [esp + 0x1c], 0xa54ff53a
mov dword [esp + 0x20], 0x510e527f
mov dword [esp + 0x24], 0x9b05688c
mov dword [esp + 0x28], 0x1f83d9ab
mov dword [esp + 0x2c], 0x5be0cd19
mov dword [esp + 0x7c], 0x20
test ebp, ebp
jne 0x5a5ac6
mov byte [esp + 0x38], pe_nt_image_headers32
lea edi, [esp + 0x39]
mov eax, 1
lea ebp, [esp + 0x38]
mov edx, 0x38
sub edx, eax
cmp edx, 4
jae 0x5a5aa0
test dl, 2
je 0x5a5962
mov word [edi], 0
add edi, 2
and edx, 1
je 0x5a596a
mov byte [edi], 0
mov dword [esp + 8], 1
mov dword [esp + 4], ebp
mov dword [esp], esi
mov eax, dword [esp + 0x34]
bswap eax
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x30]
bswap eax
mov dword [esp + 0x74], eax
call fcn.0065edc0
mov dword [esp + 4], 0x40
mov dword [esp], ebp
mov dword [esp + 0x78], 0
call fcn.005d8510
mov eax, dword [esp + 0x7c]
cmp eax, 0x1c
je 0x5a5b35
cmp eax, 0x20
jne 0x5a5a20
mov eax, dword [esp + 0x10]
bswap eax
mov dword [ebx], eax
mov eax, dword [esp + 0x14]
bswap eax
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x18]
bswap eax
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x1c]
bswap eax
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x20]
bswap eax
mov dword [ebx + 0x10], eax
mov eax, dword [esp + 0x24]
bswap eax
mov dword [ebx + 0x14], eax
mov eax, dword [esp + 0x28]
bswap eax
mov dword [ebx + 0x18], eax
mov eax, dword [esp + 0x2c]
bswap eax
mov dword [ebx + 0x1c], eax
mov dword [esp], esi
mov dword [esp + 4], 0x70
call fcn.005d8510
add esp, 0x8c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
ja 0x5a5a03
shr eax, 2
je 0x5a5a03
mov edx, dword [esp + 0x10]
bswap edx
cmp eax, 1
mov dword [ebx], edx
je 0x5a5a03
mov edx, dword [esp + 0x14]
bswap edx
cmp eax, 2
mov dword [ebx + 4], edx
je 0x5a5a03
mov edx, dword [esp + 0x18]
bswap edx
cmp eax, 3
mov dword [ebx + 8], edx
je 0x5a5a03
mov edx, dword [esp + 0x1c]
bswap edx
cmp eax, 4
mov dword [ebx + 0xc], edx
je 0x5a5a03
mov edx, dword [esp + 0x20]
bswap edx
cmp eax, 5
mov dword [ebx + 0x10], edx
je 0x5a5a03
mov edx, dword [esp + 0x24]
bswap edx
cmp eax, 6
mov dword [ebx + 0x14], edx
je 0x5a5a03
mov edx, dword [esp + 0x28]
bswap edx
cmp eax, 8
mov dword [ebx + 0x18], edx
jne 0x5a5a03
mov eax, dword [esp + 0x2c]
bswap eax
mov dword [ebx + 0x1c], eax
jmp 0x5a5a03
test edi, 1
jne 0x5a5bc7
test edi, 2
jne 0x5a5bd1
mov ecx, edx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
jmp 0x5a5955
mov ecx, ebp
mov edx, dword [esp + 0xa0]
mov eax, esi
lea ebp, [esp + 0x38]
call fcn.005a5290
mov edx, dword [esp + 0x78]
lea eax, [edx + 1]
mov byte [esp + edx + 0x38], pe_nt_image_headers32
cmp eax, 0x38
lea edi, [ebp + eax]
jbe 0x5a5945
mov edx, 0x40
sub edx, eax
cmp edx, 4
jae 0x5a5ba3
test dl, 2
jne 0x5a5b90
and edx, 1
jne 0x5a5b82
mov dword [esp + 4], ebp
mov dword [esp + 8], 1
mov dword [esp], esi
lea ebp, [esp + 0x38]
call fcn.0065edc0
mov edi, ebp
mov edx, 0x38
jmp 0x5a594c
mov eax, dword [esp + 0x10]
bswap eax
mov dword [ebx], eax
mov eax, dword [esp + 0x14]
bswap eax
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x18]
bswap eax
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x1c]
bswap eax
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x20]
bswap eax
mov dword [ebx + 0x10], eax
mov eax, dword [esp + 0x24]
bswap eax
mov dword [ebx + 0x14], eax
mov eax, dword [esp + 0x28]
bswap eax
mov dword [ebx + 0x18], eax
jmp 0x5a5a03
mov ebx, 0x7bc6e0
jmp 0x5a58d0
mov byte [edi], 0
jmp 0x5a5b11
mov word [edi], 0
add edi, 2
and edx, 1
je 0x5a5b11
jmp 0x5a5b82
test edi, 1
jne 0x5a5bf0
test edi, 2
jne 0x5a5be1
mov ecx, edx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
test dl, 2
je 0x5a5b0c
jmp 0x5a5b90
mov byte [edi], 0
dec edx
inc edi
jmp 0x5a5aac
mov word [edi], 0
sub edx, 2
add edi, 2
jmp 0x5a5ab8
mov word [edi], 0
sub edx, 2
add edi, 2
jmp 0x5a5bb3
mov byte [edi], 0
dec edx
inc edi
jmp 0x5a5bab