Function at 0x40a970
Capabilities:
Enumerate pe sections
Hash data using sha256

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
mov ebp, dword [esi + 0x20]
mov ebx, dword [esi + 0x24]
push edi
mov edi, dword [esi + 0x20]
shld ebx, ebp, 3
add ebp, ebp
and edi, 0x3f
add ebp, ebp
mov byte [edi + esi + 0x28], 0x80
add edi, 1
add ebp, ebp
cmp edi, 0x38
je 0x40a9b9
mov edi, edi
and edi, 0x3f
jne 0x40a9ac
mov edx, esi
call fcn.0040a860
mov byte [esi + edi + 0x28], 0
add edi, 1
cmp edi, 0x38
jne 0x40a9a0
mov eax, ebx
shr eax, 0x18
shld ebx, ebp, 8
mov byte [edi + esi + 0x28], al
shl ebp, 8
mov eax, ebx
mov ecx, eax
shld eax, ebp, 8
mov edx, eax
shl ebp, 8
shld eax, ebp, 8
shr ecx, 0x18
mov byte [edi + esi + 0x29], cl
mov ecx, eax
shl ebp, 8
shld eax, ebp, 8
shr edx, 0x18
mov byte [edi + esi + 0x2a], dl
mov edx, eax
shl ebp, 8
shld eax, ebp, 8
shr ecx, 0x18
mov byte [edi + esi + 0x2b], cl
mov ecx, eax
shl ebp, 8
shld eax, ebp, 8
shr edx, 0x18
mov byte [edi + esi + 0x2c], dl
mov edx, eax
shr edx, 0x18
shr ecx, 0x18
mov byte [edi + esi + 0x2e], dl
shr eax, 0x10
shl ebp, 8
mov edx, esi
mov byte [edi + esi + 0x2d], cl
mov dword [esp + 0x10], ebp
mov byte [edi + esi + 0x2f], al
call fcn.0040a860
movzx ecx, byte [esi + 3]
mov eax, dword [esp + 0x20]
mov byte [eax], cl
movzx edx, byte [esi + 2]
mov byte [eax + 1], dl
mov ecx, dword [esi]
add eax, 1
add eax, 1
shr ecx, 8
mov byte [eax], cl
movzx edx, byte [esi]
mov byte [eax + 1], dl
movzx ecx, byte [esi + 7]
add eax, 1
mov byte [eax + 1], cl
movzx edx, byte [esi + 6]
add eax, 1
mov byte [eax + 1], dl
mov ecx, dword [esi + 4]
add eax, 1
add eax, 1
shr ecx, 8
mov byte [eax], cl
movzx edx, byte [esi + 4]
mov byte [eax + 1], dl
movzx ecx, byte [esi + 0xb]
add eax, 1
mov byte [eax + 1], cl
movzx edx, byte [esi + 0xa]
add eax, 1
mov byte [eax + 1], dl
mov ecx, dword [esi + 8]
add eax, 1
add eax, 1
shr ecx, 8
mov byte [eax], cl
movzx edx, byte [esi + 8]
add eax, 1
mov byte [eax], dl
movzx ecx, byte [esi + 0xf]
add eax, 1
mov byte [eax], cl
movzx edx, byte [esi + 0xe]
mov byte [eax + 1], dl
mov ecx, dword [esi + 0xc]
add eax, 1
add eax, 1
shr ecx, 8
mov byte [eax], cl
movzx edx, byte [esi + 0xc]
mov byte [eax + 1], dl
movzx ecx, byte [esi + 0x13]
add eax, 1
mov byte [eax + 1], cl
movzx edx, byte [esi + 0x12]
add eax, 1
mov byte [eax + 1], dl
mov ecx, dword [esi + 0x10]
add eax, 1
add eax, 1
shr ecx, 8
mov byte [eax], cl
movzx edx, byte [esi + 0x10]
mov byte [eax + 1], dl
movzx ecx, byte [esi + 0x17]
add eax, 1
mov byte [eax + 1], cl
movzx edx, byte [esi + 0x16]
add eax, 1
mov byte [eax + 1], dl
mov ecx, dword [esi + 0x14]
add eax, 1
add eax, 1
shr ecx, 8
mov byte [eax], cl
movzx edx, byte [esi + 0x14]
mov byte [eax + 1], dl
movzx ecx, byte [esi + 0x1b]
add eax, 1
mov byte [eax + 1], cl
movzx edx, byte [esi + 0x1a]
add eax, 1
mov byte [eax + 1], dl
mov ecx, dword [esi + 0x18]
add eax, 1
add eax, 1
shr ecx, 8
mov byte [eax], cl
movzx edx, byte [esi + 0x18]
mov byte [eax + 1], dl
movzx ecx, byte [esi + 0x1f]
add eax, 1
mov byte [eax + 1], cl
movzx edx, byte [esi + 0x1e]
add eax, 1
mov byte [eax + 1], dl
mov ecx, dword [esi + 0x1c]
add eax, 1
add eax, 1
shr ecx, 8
mov byte [eax], cl
movzx edx, byte [esi + 0x1c]
mov byte [eax + 1], dl
xor eax, eax
pop edi
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
pop esi
pop ebp
pop ebx
add esp, 8
ret