Function at 0x417f20
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push edi
mov edi, ecx
mov dword [ebp - 0xc], edi
cmp dword [edi], 0x3f
jne 0x417f99
xor edx, edx
cmp dword [edi + 4], edx
jbe 0x417f4e
nop dword [eax + eax]
mov al, byte [edi + edx + 8]
mov byte [edi + edx + 0x20], al
inc edx
cmp edx, dword [edi + 4]
jb 0x417f40
xor ecx, ecx
cmp dword [edi + 0x1c], ecx
jbe 0x417f6f
cmp edx, 0x20
jae 0x418138
mov eax, dword [edi + 0x18]
mov al, byte [ecx + eax]
inc ecx
mov byte [edx + edi + 0x20], al
inc edx
cmp ecx, dword [edi + 0x1c]
jb 0x417f55
cmp edx, 0x20
jae 0x418138
add edi, 0x20
mov ecx, 0x20
sub ecx, edx
add edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 4]
add eax, 8
push ebx
push esi
xor esi, esi
add eax, ecx
mov dword [ebp - 8], eax
je 0x417fbb
push eax
call fcn.0041e320
mov ecx, dword [edi + 4]
add esp, 4
mov esi, eax
push ecx
lea eax, [edi + 8]
push eax
push esi
call fcn.0041b340
push dword [edi + 0x1c]
mov eax, dword [edi + 4]
push dword [edi + 0x18]
add eax, esi
push eax
call fcn.0041b340
mov ebx, dword [edi + 0x1c]
xorps xmm0, xmm0
add ebx, dword [edi + 4]
xor ecx, ecx
add ebx, esi
mov dword [ebp - 0x74], 0x6a09e667
mov dword [ebp - 0x70], 0xbb67ae85
add esp, 0x18
mov dword [ebp - 0x6c], 0x3c6ef372
mov dword [ebp - 0x68], 0xa54ff53a
mov dword [ebp - 0x64], 0x510e527f
mov dword [ebp - 0x60], 0x9b05688c
mov dword [ebp - 0x5c], 0x1f83d9ab
mov dword [ebp - 0x58], 0x5be0cd19
movlpd qword [ebp - 0x54], xmm0
movq qword [ebx], xmm0
mov eax, dword [edi]
xor edi, edi
bts edi, eax
cmp eax, 0x20
cmovae ecx, edi
xor edi, ecx
cmp eax, 0x40
cmovae ecx, edi
mov dword [ebp - 4], ecx
push dword [ebp - 8]
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.00419920
add esp, 0xc
xor eax, eax
add byte [eax + ebx], 1
jne 0x41805e
inc eax
cmp eax, 8
jb 0x418052
mov ecx, dword [ebp - 4]
add edi, 0xffffffff
mov eax, edi
adc ecx, 0xffffffff
or eax, ecx
mov dword [ebp - 4], ecx
jne 0x418040
mov edi, dword [ebp - 0x54]
mov ebx, dword [ebp - 0xc]
and edi, 0x3f
add ebx, 0x20
mov byte [ebp + edi - 0x4c], 0x80
inc edi
cmp edi, 0x38
je 0x4180a3
and edi, 0x3f
jne 0x418098
lea eax, [ebp - 0x74]
push eax
call fcn.00419ba0
add esp, 4
mov byte [ebp + edi - 0x4c], 0
inc edi
cmp edi, 0x38
jne 0x418087
mov ecx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x50]
shld eax, ecx, 3
bswap eax
shl ecx, 3
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x74]
bswap ecx
push eax
mov dword [ebp - 0x10], ecx
call fcn.00419ba0
add esp, 4
xor ecx, ecx
nop dword [eax + eax]
mov eax, dword [ebp + ecx*4 - 0x74]
lea ebx, [ebx + 8]
bswap eax
mov dword [ebx - 8], eax
mov eax, dword [ebp + ecx*4 - 0x70]
add ecx, 2
bswap eax
mov dword [ebx - 4], eax
cmp ecx, 8
jb 0x4180d0
xorps xmm0, xmm0
mov dword [ebp - 0x74], 0x6a09e667
push esi
mov dword [ebp - 0x70], 0xbb67ae85
mov dword [ebp - 0x6c], 0x3c6ef372
mov dword [ebp - 0x68], 0xa54ff53a
mov dword [ebp - 0x64], 0x510e527f
mov dword [ebp - 0x60], 0x9b05688c
mov dword [ebp - 0x5c], 0x1f83d9ab
mov dword [ebp - 0x58], 0x5be0cd19
movlpd qword [ebp - 0x54], xmm0
call fcn.0041e329
add esp, 4
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret