Function at 0x40fa90
Capabilities:
Hash data using sha256

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esi + 0x2c]
push ebp
mov ebp, dword [esi + 0x28]
push edi
mov edi, dword [esi + 0x28]
shld ebx, ebp, 3
add ebp, ebp
and edi, 0x3f
add ebp, ebp
mov byte [edi + esi + 0x30], 0x80
inc edi
add ebp, ebp
cmp edi, 0x38
je 0x40face
and edi, 0x3f
jne 0x40fac3
mov edx, esi
call fcn.0040f990
mov byte [esi + edi + 0x30], 0
inc edi
cmp edi, 0x38
jne 0x40fab7
mov eax, ebx
shr eax, 0x18
shld ebx, ebp, 8
mov byte [edi + esi + 0x30], 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 + 0x31], cl
mov ecx, eax
shl ebp, 8
shld eax, ebp, 8
shr edx, 0x18
mov byte [edi + esi + 0x32], dl
mov edx, eax
shl ebp, 8
shld eax, ebp, 8
shr ecx, 0x18
mov byte [edi + esi + 0x33], cl
mov ecx, eax
shl ebp, 8
shld eax, ebp, 8
shr edx, 0x18
mov byte [edi + esi + 0x34], dl
mov edx, eax
shr edx, 0x18
shr ecx, 0x18
mov byte [edi + esi + 0x36], dl
shr eax, 0x10
shl ebp, 8
mov edx, esi
mov byte [edi + esi + 0x35], cl
mov dword [esp + 0xc], ebp
mov byte [edi + esi + 0x37], al
call fcn.0040f990
movzx ecx, byte [esi + 0xb]
mov byte [esi + 0x70], cl
movzx edx, byte [esi + 0xa]
lea eax, [esi + 0x70]
mov byte [eax + 1], dl
mov ecx, dword [esi + 8]
inc eax
inc eax
shr ecx, 8
mov byte [eax], cl
movzx edx, byte [esi + 8]
mov byte [eax + 1], dl
movzx ecx, byte [esi + 0xf]
inc eax
mov byte [eax + 1], cl
movzx edx, byte [esi + 0xe]
inc eax
mov byte [eax + 1], dl
mov ecx, dword [esi + 0xc]
inc eax
inc eax
shr ecx, 8
mov byte [eax], cl
movzx edx, byte [esi + 0xc]
mov byte [eax + 1], dl
movzx ecx, byte [esi + 0x13]
inc eax
mov byte [eax + 1], cl
movzx edx, byte [esi + 0x12]
inc eax
mov byte [eax + 1], dl
mov ecx, dword [esi + 0x10]
inc eax
inc eax
shr ecx, 8
mov byte [eax], cl
movzx edx, byte [esi + 0x10]
inc eax
mov byte [eax], dl
movzx ecx, byte [esi + 0x17]
inc eax
mov byte [eax], cl
movzx edx, byte [esi + 0x16]
mov byte [eax + 1], dl
mov ecx, dword [esi + 0x14]
inc eax
inc eax
shr ecx, 8
mov byte [eax], cl
movzx edx, byte [esi + 0x14]
mov byte [eax + 1], dl
movzx ecx, byte [esi + 0x1b]
inc eax
mov byte [eax + 1], cl
movzx edx, byte [esi + 0x1a]
inc eax
mov byte [eax + 1], dl
mov ecx, dword [esi + 0x18]
inc eax
inc eax
shr ecx, 8
mov byte [eax], cl
movzx edx, byte [esi + 0x18]
mov byte [eax + 1], dl
movzx ecx, byte [esi + 0x1f]
inc eax
mov byte [eax + 1], cl
movzx edx, byte [esi + 0x1e]
inc eax
mov byte [eax + 1], dl
mov ecx, dword [esi + 0x1c]
inc eax
inc eax
shr ecx, 8
mov byte [eax], cl
movzx edx, byte [esi + 0x1c]
mov byte [eax + 1], dl
movzx ecx, byte [esi + 0x23]
inc eax
mov byte [eax + 1], cl
movzx edx, byte [esi + 0x22]
inc eax
mov byte [eax + 1], dl
mov ecx, dword [esi + 0x20]
inc eax
inc eax
shr ecx, 8
mov byte [eax], cl
movzx edx, byte [esi + 0x20]
mov byte [eax + 1], dl
movzx ecx, byte [esi + 0x27]
inc eax
mov byte [eax + 1], cl
movzx edx, byte [esi + 0x26]
inc eax
mov byte [eax + 1], dl
mov ecx, dword [esi + 0x24]
inc eax
inc eax
shr ecx, 8
mov byte [eax], cl
movzx edx, byte [esi + 0x24]
mov byte [eax + 1], dl
pop edi
xor eax, eax
pop ebp
mov dword [esi + 8], 0x6a09e667
mov dword [esi + 0xc], 0xbb67ae85
mov dword [esi + 0x10], 0x3c6ef372
mov dword [esi + 0x14], 0xa54ff53a
mov dword [esi + 0x18], 0x510e527f
mov dword [esi + 0x1c], 0x9b05688c
mov dword [esi + 0x20], 0x1f83d9ab
mov dword [esi + 0x24], 0x5be0cd19
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
pop ebx
add esp, 8
ret