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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xc], edx
mov esi, dword [edi + 0x20]
mov ebx, dword [edi + 0x20]
and esi, 0x3f
mov ecx, dword [edi + 0x24]
shld ecx, ebx, 3
mov byte [esi + edi + 0x28], 0x80
inc esi
shl ebx, 3
mov dword [ebp - 4], ecx
cmp esi, 0x38
je 0x47108a
nop
and esi, 0x3f
jne 0x47107c
mov ecx, edi
call fcn.00470d20
mov byte [edi + esi + 0x28], 0
inc esi
cmp esi, 0x38
jne 0x471070
mov ecx, dword [ebp - 4]
mov eax, ecx
shld ecx, ebx, 8
shr eax, 0x18
mov byte [esi + edi + 0x28], al
mov eax, ecx
shl ebx, 8
shld ecx, ebx, 8
shr eax, 0x18
mov byte [esi + edi + 0x29], al
mov eax, ecx
shl ebx, 8
shld ecx, ebx, 8
shr eax, 0x18
mov byte [esi + edi + 0x2a], al
mov eax, ecx
shl ebx, 8
shld ecx, ebx, 8
shr eax, 0x18
mov byte [esi + edi + 0x2b], al
mov eax, ecx
shl ebx, 8
shld ecx, ebx, 8
shr eax, 0x18
mov byte [esi + edi + 0x2c], al
mov eax, ecx
shl ebx, 8
shld ecx, ebx, 8
shr eax, 0x18
mov byte [esi + edi + 0x2d], al
mov eax, ecx
shr ecx, 0x10
shr eax, 0x18
mov byte [esi + edi + 0x2f], cl
mov ecx, edi
shl ebx, 8
mov dword [ebp - 8], ebx
mov byte [esi + edi + 0x2e], al
call fcn.00470d20
mov ecx, dword [ebp - 0xc]
movzx eax, byte [edi + 3]
mov byte [ecx], al
movzx eax, byte [edi + 2]
mov byte [ecx + 1], al
mov eax, dword [edi]
shr eax, 8
mov byte [ecx + 2], al
movzx eax, byte [edi]
mov byte [ecx + 3], al
movzx eax, byte [edi + 7]
mov byte [ecx + 4], al
movzx eax, byte [edi + 6]
mov byte [ecx + 5], al
mov eax, dword [edi + 4]
shr eax, 8
mov byte [ecx + 6], al
movzx eax, byte [edi + 4]
mov byte [ecx + 7], al
movzx eax, byte [edi + 0xb]
mov byte [ecx + 8], al
movzx eax, byte [edi + 0xa]
mov byte [ecx + 9], al
mov eax, dword [edi + 8]
shr eax, 8
mov byte [ecx + 0xa], al
movzx eax, byte [edi + 8]
mov byte [ecx + 0xb], al
movzx eax, byte [edi + 0xf]
mov byte [ecx + 0xc], al
movzx eax, byte [edi + 0xe]
mov byte [ecx + 0xd], al
mov eax, dword [edi + 0xc]
shr eax, 8
mov byte [ecx + 0xe], al
movzx eax, byte [edi + 0xc]
mov byte [ecx + 0xf], al
movzx eax, byte [edi + 0x13]
mov byte [ecx + 0x10], al
movzx eax, byte [edi + 0x12]
mov byte [ecx + 0x11], al
mov eax, dword [edi + 0x10]
shr eax, 8
mov byte [ecx + 0x12], al
movzx eax, byte [edi + 0x10]
mov byte [ecx + 0x13], al
movzx eax, byte [edi + 0x17]
mov byte [ecx + 0x14], al
movzx eax, byte [edi + 0x16]
mov byte [ecx + 0x15], al
mov eax, dword [edi + 0x14]
shr eax, 8
mov byte [ecx + 0x16], al
movzx eax, byte [edi + 0x14]
mov byte [ecx + 0x17], al
movzx eax, byte [edi + 0x1b]
mov byte [ecx + 0x18], al
movzx eax, byte [edi + 0x1a]
mov byte [ecx + 0x19], al
mov eax, dword [edi + 0x18]
shr eax, 8
mov byte [ecx + 0x1a], al
movzx eax, byte [edi + 0x18]
mov byte [ecx + 0x1b], al
movzx eax, byte [edi + 0x1f]
mov byte [ecx + 0x1c], al
movzx eax, byte [edi + 0x1e]
mov byte [ecx + 0x1d], al
mov eax, dword [edi + 0x1c]
shr eax, 8
mov byte [ecx + 0x1e], al
movzx eax, byte [edi + 0x1c]
mov byte [ecx + 0x1f], al
mov dword [edi], 0x6a09e667
mov dword [edi + 4], 0xbb67ae85
mov dword [edi + 8], 0x3c6ef372
mov dword [edi + 0xc], 0xa54ff53a
mov dword [edi + 0x10], 0x510e527f
mov dword [edi + 0x14], 0x9b05688c
mov dword [edi + 0x18], 0x1f83d9ab
mov dword [edi + 0x1c], 0x5be0cd19
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret