Function at 0x405840
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x41e568]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
je 0x40585c
cmp dword [ebp + 0x10], 0
jne 0x405863
xor al, al
jmp 0x405c1b
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], ecx
push 0
push 8
mov edx, dword [ebp - 0x54]
push edx
mov eax, dword [ebp - 0x58]
push eax
call fcn.00406940
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], edx
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [ebp + 0x10]
mov dword [eax + edx], 0x6a09e667
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + 0x10]
mov dword [edx + ecx], 0xbb67ae85
mov eax, 4
shl eax, 1
mov ecx, dword [ebp + 0x10]
mov dword [ecx + eax], 0x3c6ef372
mov edx, 4
imul eax, edx, 3
mov ecx, dword [ebp + 0x10]
mov dword [ecx + eax], 0xa54ff53a
mov edx, 4
shl edx, 2
mov eax, dword [ebp + 0x10]
mov dword [eax + edx], 0x510e527f
mov ecx, 4
imul edx, ecx, 5
mov eax, dword [ebp + 0x10]
mov dword [eax + edx], 0x9b05688c
mov ecx, 4
imul edx, ecx, 6
mov eax, dword [ebp + 0x10]
mov dword [eax + edx], 0x1f83d9ab
mov ecx, 4
imul edx, ecx, 7
mov eax, dword [ebp + 0x10]
mov dword [eax + edx], 0x5be0cd19
mov dword [ebp - 0x50], 0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x4c], ecx
cmp dword [ebp - 0x4c], 0x40
jb 0x4059a5
mov dword [ebp - 0x48], 0
jmp 0x405939
mov edx, dword [ebp - 0x48]
add edx, 1
mov dword [ebp - 0x48], edx
cmp dword [ebp - 0x48], 0x40
jae 0x405954
mov eax, dword [ebp - 0x50]
add eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp + 0xc]
mov al, byte [edx + eax]
mov byte [ebp + ecx - 0x44], al
jmp 0x405930
mov dword [ebp - 0x48], 0
jmp 0x405966
mov ecx, dword [ebp - 0x48]
add ecx, 1
mov dword [ebp - 0x48], ecx
cmp dword [ebp - 0x48], 0x10
jae 0x40597e
mov edx, dword [ebp - 0x48]
lea eax, [ebp + edx*4 - 0x44]
push eax
call fcn.00405400
add esp, 4
jmp 0x40595d
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x44]
push edx
call fcn.00405480
add esp, 8
mov eax, dword [ebp - 0x50]
add eax, 0x40
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x4c]
sub ecx, 0x40
mov dword [ebp - 0x4c], ecx
jmp 0x405921
cmp dword [ebp - 0x4c], 0x38
jae 0x405ab0
mov dword [ebp - 0x48], 0
jmp 0x4059c1
mov edx, dword [ebp - 0x48]
add edx, 1
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp - 0x4c]
jae 0x4059de
mov ecx, dword [ebp - 0x50]
add ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp + 0xc]
mov cl, byte [eax + ecx]
mov byte [ebp + edx - 0x44], cl
jmp 0x4059b8
mov edx, dword [ebp - 0x4c]
mov byte [ebp + edx - 0x44], 0x80
mov eax, dword [ebp - 0x4c]
add eax, 1
mov dword [ebp - 0x48], eax
jmp 0x4059fa
mov ecx, dword [ebp - 0x48]
add ecx, 1
mov dword [ebp - 0x48], ecx
cmp dword [ebp - 0x48], 0x38
jae 0x405a1d
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x5c], edx
cmp dword [ebp - 0x5c], 0x40
jae 0x405a0e
jmp 0x405a13
call fcn.00406b20
mov eax, dword [ebp - 0x5c]
mov byte [ebp + eax - 0x44], 0
jmp 0x4059f1
mov ecx, 8
imul edx, ecx, 7
mov eax, dword [ebp - 0x58]
mov dword [ebp + edx - 0x44], eax
mov ecx, dword [ebp - 0x54]
mov dword [ebp + edx - 0x40], ecx
mov dword [ebp - 0x48], 0
jmp 0x405a45
mov edx, dword [ebp - 0x48]
add edx, 1
mov dword [ebp - 0x48], edx
cmp dword [ebp - 0x48], 0xe
jae 0x405a5d
mov eax, dword [ebp - 0x48]
lea ecx, [ebp + eax*4 - 0x44]
push ecx
call fcn.00405400
add esp, 4
jmp 0x405a3c
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0xc]
push eax
call fcn.00405450
add esp, 8
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x44]
push edx
call fcn.00405480
add esp, 8
mov dword [ebp - 0x48], 0
jmp 0x405a8f
mov eax, dword [ebp - 0x48]
add eax, 1
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 8
jae 0x405aa9
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp + 0x10]
lea eax, [edx + ecx*4]
push eax
call fcn.00405400
add esp, 4
jmp 0x405a86
mov al, 1
jmp 0x405c1b
mov dword [ebp - 0x48], 0
jmp 0x405ac2
mov ecx, dword [ebp - 0x48]
add ecx, 1
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x48]
cmp edx, dword [ebp - 0x4c]
jae 0x405adf
mov eax, dword [ebp - 0x50]
add eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp + 0xc]
mov al, byte [edx + eax]
mov byte [ebp + ecx - 0x44], al
jmp 0x405ab9
mov ecx, dword [ebp - 0x4c]
mov byte [ebp + ecx - 0x44], 0x80
mov edx, dword [ebp - 0x4c]
add edx, 1
mov dword [ebp - 0x48], edx
jmp 0x405afb
mov eax, dword [ebp - 0x48]
add eax, 1
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0x40
jae 0x405b1e
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x60], ecx
cmp dword [ebp - 0x60], 0x40
jae 0x405b0f
jmp 0x405b14
call fcn.00406b20
mov edx, dword [ebp - 0x60]
mov byte [ebp + edx - 0x44], 0
jmp 0x405af2
mov dword [ebp - 0x48], 0
jmp 0x405b30
mov eax, dword [ebp - 0x48]
add eax, 1
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0x10
jae 0x405b48
mov ecx, dword [ebp - 0x48]
lea edx, [ebp + ecx*4 - 0x44]
push edx
call fcn.00405400
add esp, 4
jmp 0x405b27
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x44]
push ecx
call fcn.00405480
add esp, 8
mov dword [ebp - 0x48], 0
jmp 0x405b6a
mov edx, dword [ebp - 0x48]
add edx, 1
mov dword [ebp - 0x48], edx
cmp dword [ebp - 0x48], 0x38
jae 0x405b8d
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0x40
jae 0x405b7e
jmp 0x405b83
call fcn.00406b20
mov ecx, dword [ebp - 0x64]
mov byte [ebp + ecx - 0x44], 0
jmp 0x405b61
mov edx, 8
imul eax, edx, 7
mov ecx, dword [ebp - 0x58]
mov dword [ebp + eax - 0x44], ecx
mov edx, dword [ebp - 0x54]
mov dword [ebp + eax - 0x40], edx
mov dword [ebp - 0x48], 0
jmp 0x405bb5
mov eax, dword [ebp - 0x48]
add eax, 1
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0xe
jae 0x405bcd
mov ecx, dword [ebp - 0x48]
lea edx, [ebp + ecx*4 - 0x44]
push edx
call fcn.00405400
add esp, 4
jmp 0x405bac
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0xc]
push ecx
call fcn.00405450
add esp, 8
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x44]
push eax
call fcn.00405480
add esp, 8
mov dword [ebp - 0x48], 0
jmp 0x405bff
mov ecx, dword [ebp - 0x48]
add ecx, 1
mov dword [ebp - 0x48], ecx
cmp dword [ebp - 0x48], 8
jae 0x405c19
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp + 0x10]
lea ecx, [eax + edx*4]
push ecx
call fcn.00405400
add esp, 4
jmp 0x405bf6
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406010
mov esp, ebp
pop ebp
ret