Function at 0x404b80
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x58], edx
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x64], edi
test edx, edx
je 0x405083
test edi, edi
je 0x405083
xor eax, eax
mov dword [edi], 0x6a09e667
mov esi, ebx
mov dword [edi + 4], 0xbb67ae85
shld eax, esi, 3
mov dword [edi + 8], 0x3c6ef372
mov dword [ebp - 0x54], eax
xor eax, eax
shl esi, 3
mov dword [ebp - 0x50], esi
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 [ebp - 0x60], eax
cmp ebx, 0x40
jb 0x404d06
shr ecx, 6
mov dword [ebp - 0x5c], ecx
lea ebx, [ebx]
add eax, edx
push 0x40
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0040a5b0
add esp, 0xc
lea eax, [ebp - 0x48]
mov edi, 4
lea esp, [esp]
mov edx, dword [eax - 4]
lea eax, [eax + 0x10]
mov esi, edx
mov ecx, edx
shl esi, 0x10
and ecx, 0xff00
or esi, ecx
shr edx, 8
movzx ecx, byte [eax - 0x11]
and edx, 0xff00
shl esi, 8
or esi, edx
or esi, ecx
mov dword [eax - 0x14], esi
mov edx, dword [eax - 0x10]
mov esi, edx
shl esi, 0x10
mov ecx, edx
and ecx, 0xff00
shr edx, 8
or esi, ecx
and edx, 0xff00
movzx ecx, byte [eax - 0xd]
shl esi, 8
or esi, edx
or esi, ecx
mov dword [eax - 0x10], esi
mov edx, dword [eax - 0xc]
mov esi, edx
shl esi, 0x10
mov ecx, edx
and ecx, 0xff00
shr edx, 8
or esi, ecx
and edx, 0xff00
movzx ecx, byte [eax - 9]
shl esi, 8
or esi, edx
or esi, ecx
mov dword [eax - 0xc], esi
mov edx, dword [eax - 8]
mov esi, edx
shl esi, 0x10
mov ecx, edx
and ecx, 0xff00
shr edx, 8
or esi, ecx
and edx, 0xff00
movzx ecx, byte [eax - 5]
shl esi, 8
or esi, edx
or esi, ecx
mov dword [eax - 8], esi
dec edi
jne 0x404c30
mov edi, dword [ebp - 0x64]
lea ecx, [ebp - 0x4c]
mov edx, edi
call fcn.004049f0
mov eax, dword [ebp - 0x60]
sub ebx, 0x40
mov edx, dword [ebp - 0x58]
add eax, 0x40
dec dword [ebp - 0x5c]
mov dword [ebp - 0x60], eax
jne 0x404c10
mov esi, dword [ebp - 0x50]
cmp ebx, 0x38
jae 0x404f12
test ebx, ebx
je 0x404d23
add eax, edx
push ebx
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0040a5b0
add esp, 0xc
lea eax, [ebx + 1]
mov byte [ebp + ebx - 0x4c], 0x80
cmp eax, 0x38
jae 0x404d44
cmp eax, 0x40
jae 0x405096
mov byte [ebp + eax - 0x4c], 0
inc eax
cmp eax, 0x38
jb 0x404d30
mov eax, dword [ebp - 0x54]
mov ebx, 7
mov dword [ebp - 0x14], esi
lea esi, [ebp - 0x48]
mov dword [ebp - 0x10], eax
mov ecx, dword [esi - 4]
lea esi, [esi + 8]
mov edx, ecx
mov eax, ecx
shl edx, 0x10
and eax, 0xff00
or edx, eax
shr ecx, 8
movzx eax, byte [esi - 9]
and ecx, 0xff00
shl edx, 8
or edx, ecx
or edx, eax
mov dword [esi - 0xc], edx
mov edx, dword [esi - 8]
mov ecx, edx
shl ecx, 0x10
mov eax, edx
and eax, 0xff00
shr edx, 8
or ecx, eax
and edx, 0xff00
movzx eax, byte [esi - 5]
shl ecx, 8
or ecx, eax
or ecx, edx
mov dword [esi - 8], ecx
dec ebx
jne 0x404d55
mov ecx, dword [ebp - 0x14]
mov edx, edi
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x14], eax
call fcn.004049f0
mov ecx, dword [edi]
mov edx, ecx
shl edx, 0x10
mov eax, ecx
and eax, 0xff00
shr ecx, 8
or edx, eax
and ecx, 0xff00
movzx eax, byte [edi + 3]
shl edx, 8
or edx, ecx
or edx, eax
mov dword [edi], edx
mov ecx, dword [edi + 4]
mov edx, ecx
shl edx, 0x10
mov eax, ecx
and eax, 0xff00
shr ecx, 8
or edx, eax
and ecx, 0xff00
movzx eax, byte [edi + 7]
shl edx, 8
or edx, ecx
or edx, eax
mov dword [edi + 4], edx
mov ecx, dword [edi + 8]
mov edx, ecx
shl edx, 0x10
mov eax, ecx
and eax, 0xff00
shr ecx, 8
or edx, eax
and ecx, 0xff00
movzx eax, byte [edi + 0xb]
shl edx, 8
or edx, ecx
or edx, eax
mov dword [edi + 8], edx
mov ecx, dword [edi + 0xc]
mov edx, ecx
shl edx, 0x10
mov eax, ecx
and eax, 0xff00
shr ecx, 8
or edx, eax
and ecx, 0xff00
movzx eax, byte [edi + 0xf]
shl edx, 8
or edx, ecx
or edx, eax
mov dword [edi + 0xc], edx
mov ecx, dword [edi + 0x10]
mov edx, ecx
shl edx, 0x10
mov eax, ecx
and eax, 0xff00
shr ecx, 8
or edx, eax
and ecx, 0xff00
movzx eax, byte [edi + 0x13]
shl edx, 8
or edx, ecx
or edx, eax
mov dword [edi + 0x10], edx
mov ecx, dword [edi + 0x14]
mov edx, ecx
mov eax, ecx
shl edx, 0x10
and eax, 0xff00
shr ecx, 8
or edx, eax
shl edx, 8
and ecx, 0xff00
movzx eax, byte [edi + 0x17]
or edx, ecx
or edx, eax
mov dword [edi + 0x14], edx
mov ecx, dword [edi + 0x18]
mov edx, ecx
shl edx, 0x10
mov eax, ecx
and eax, 0xff00
shr ecx, 8
or edx, eax
and ecx, 0xff00
movzx eax, byte [edi + 0x1b]
shl edx, 8
or edx, ecx
or edx, eax
mov dword [edi + 0x18], edx
mov ecx, dword [edi + 0x1c]
mov edx, ecx
mov eax, ecx
shl edx, 0x10
and eax, 0xff00
shr ecx, 8
or edx, eax
and ecx, 0xff00
movzx eax, byte [edi + 0x1f]
shl edx, 8
or edx, ecx
or edx, eax
mov al, 1
mov dword [edi + 0x1c], edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004051f4
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x404f26
add eax, edx
push ebx
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0040a5b0
add esp, 0xc
lea eax, [ebx + 1]
mov byte [ebp + ebx - 0x4c], 0x80
cmp eax, 0x40
jae 0x404f3e
mov byte [ebp + eax - 0x4c], 0
inc eax
cmp eax, 0x40
jb 0x404f33
lea esi, [ebp - 0x48]
mov ebx, 4
mov ecx, dword [esi - 4]
lea esi, [esi + 0x10]
mov edx, ecx
mov eax, ecx
shl edx, 0x10
and eax, 0xff00
or edx, eax
shr ecx, 8
movzx eax, byte [esi - 0x11]
and ecx, 0xff00
shl edx, 8
or edx, ecx
or edx, eax
mov dword [esi - 0x14], edx
mov edx, dword [esi - 0x10]
mov ecx, edx
mov eax, edx
shl ecx, 0x10
shr edx, 8
and eax, 0xff00
or ecx, eax
and edx, 0xff00
movzx eax, byte [esi - 0xd]
shl ecx, 8
or ecx, eax
or ecx, edx
mov dword [esi - 0x10], ecx
mov ecx, dword [esi - 0xc]
mov edx, ecx
shl edx, 0x10
mov eax, ecx
and eax, 0xff00
shr ecx, 8
or edx, eax
and ecx, 0xff00
movzx eax, byte [esi - 9]
shl edx, 8
or edx, ecx
or edx, eax
mov dword [esi - 0xc], edx
mov ecx, dword [esi - 8]
mov edx, ecx
shl edx, 0x10
mov eax, ecx
and eax, 0xff00
shr ecx, 8
or edx, eax
and ecx, 0xff00
movzx eax, byte [esi - 5]
shl edx, 8
or edx, ecx
or edx, eax
mov dword [esi - 8], edx
dec ebx
jne 0x404f46
mov edx, edi
lea ecx, [ebp - 0x4c]
call fcn.004049f0
xor eax, eax
lea esp, [esp]
cmp eax, 0x40
jae 0x405096
mov byte [ebp + eax - 0x4c], 0
inc eax
cmp eax, 0x38
jb 0x405000
mov eax, dword [ebp - 0x50]
lea esi, [ebp - 0x48]
mov dword [ebp - 0x14], eax
mov ebx, 7
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x10], eax
mov ecx, dword [esi - 4]
lea esi, [esi + 8]
mov edx, ecx
mov eax, ecx
shl edx, 0x10
and eax, 0xff00
or edx, eax
shr ecx, 8
movzx eax, byte [esi - 9]
and ecx, 0xff00
shl edx, 8
or edx, ecx
or edx, eax
mov dword [esi - 0xc], edx
mov edx, dword [esi - 8]
mov ecx, edx
shl ecx, 0x10
mov eax, edx
and eax, 0xff00
shr edx, 8
or ecx, eax
and edx, 0xff00
movzx eax, byte [esi - 5]
shl ecx, 8
or ecx, eax
or ecx, edx
mov dword [esi - 8], ecx
dec ebx
jne 0x405028
jmp 0x404dab
mov ecx, dword [ebp - 8]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004051f4
mov esp, ebp
pop ebp
ret
call fcn.004055ec
int3