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

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [edi + 0x20]
push ebp
mov ebp, dword [edi + 0x20]
push esi
mov esi, eax
mov eax, dword [edi + 0x24]
shld eax, ebx, 3
add ebx, ebx
and ebp, 0x3f
add ebx, ebx
mov byte [edi + ebp + 0x28], 0x80
inc ebp
add ebx, ebx
mov dword [esp + 0x10], eax
cmp ebp, 0x38
je 0x10066bd8
and ebp, 0x3f
jne 0x10066bcd
mov edx, edi
call fcn.10066a90
mov eax, dword [esp + 0x10]
mov byte [edi + ebp + 0x28], 0
inc ebp
cmp ebp, 0x38
jne 0x10066bbd
mov ecx, eax
shld eax, ebx, 8
mov edx, eax
shl ebx, 8
shld eax, ebx, 8
shr ecx, 0x18
mov byte [edi + ebp + 0x28], cl
mov ecx, eax
shl ebx, 8
shld eax, ebx, 8
shr edx, 0x18
mov byte [edi + ebp + 0x29], dl
mov edx, eax
shl ebx, 8
shld eax, ebx, 8
shr ecx, 0x18
mov byte [edi + ebp + 0x2a], cl
mov ecx, eax
shl ebx, 8
shld eax, ebx, 8
shr edx, 0x18
mov byte [edi + ebp + 0x2b], dl
mov edx, eax
shl ebx, 8
shld eax, ebx, 8
shr ecx, 0x18
mov byte [edi + ebp + 0x2c], cl
shr edx, 0x18
mov ecx, eax
mov byte [edi + ebp + 0x2d], dl
shr ecx, 0x18
shr eax, 0x10
shl ebx, 8
mov edx, edi
mov dword [esp + 0xc], ebx
mov byte [edi + ebp + 0x2e], cl
mov byte [edi + ebp + 0x2f], al
call fcn.10066a90
movzx edx, byte [edi + 3]
mov byte [esi], dl
movzx eax, byte [edi + 2]
mov byte [esi + 1], al
mov ecx, dword [edi]
inc esi
inc esi
inc esi
shr ecx, 8
mov byte [esi - 1], cl
movzx edx, byte [edi]
mov byte [esi], dl
movzx eax, byte [edi + 7]
mov byte [esi + 1], al
movzx ecx, byte [edi + 6]
inc esi
mov byte [esi + 1], cl
mov edx, dword [edi + 4]
inc esi
inc esi
shr edx, 8
mov byte [esi], dl
movzx eax, byte [edi + 4]
mov byte [esi + 1], al
movzx ecx, byte [edi + 0xb]
inc esi
mov byte [esi + 1], cl
movzx edx, byte [edi + 0xa]
inc esi
mov byte [esi + 1], dl
mov eax, dword [edi + 8]
inc esi
inc esi
shr eax, 8
mov byte [esi], al
movzx ecx, byte [edi + 8]
inc esi
mov byte [esi], cl
movzx edx, byte [edi + 0xf]
inc esi
mov byte [esi], dl
movzx eax, byte [edi + 0xe]
inc esi
mov byte [esi], al
mov ecx, dword [edi + 0xc]
inc esi
inc esi
shr ecx, 8
mov byte [esi - 1], cl
movzx edx, byte [edi + 0xc]
mov byte [esi], dl
movzx eax, byte [edi + 0x13]
mov byte [esi + 1], al
movzx ecx, byte [edi + 0x12]
inc esi
mov byte [esi + 1], cl
mov edx, dword [edi + 0x10]
inc esi
inc esi
inc esi
shr edx, 8
mov byte [esi - 1], dl
movzx eax, byte [edi + 0x10]
mov byte [esi], al
movzx ecx, byte [edi + 0x17]
mov byte [esi + 1], cl
movzx edx, byte [edi + 0x16]
inc esi
mov byte [esi + 1], dl
mov eax, dword [edi + 0x14]
inc esi
inc esi
shr eax, 8
mov byte [esi], al
movzx ecx, byte [edi + 0x14]
mov byte [esi + 1], cl
movzx edx, byte [edi + 0x1b]
inc esi
mov byte [esi + 1], dl
movzx eax, byte [edi + 0x1a]
inc esi
mov byte [esi + 1], al
mov ecx, dword [edi + 0x18]
inc esi
inc esi
shr ecx, 8
mov byte [esi], cl
movzx edx, byte [edi + 0x18]
mov byte [esi + 1], dl
movzx eax, byte [edi + 0x1f]
inc esi
mov byte [esi + 1], al
movzx ecx, byte [edi + 0x1e]
inc esi
mov byte [esi + 1], cl
mov edx, dword [edi + 0x1c]
inc esi
inc esi
shr edx, 8
mov byte [esi], dl
movzx eax, byte [edi + 0x1c]
mov byte [esi + 1], al
pop esi
xor eax, eax
pop ebp
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], eax
mov dword [edi + 0x24], eax
pop ebx
add esp, 8
ret