Function at 0x43bb20
Capabilities:
Hash data using sha256

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xac
mov esi, dword [esp + 0xc4]
mov dword [esp + 0x58], 0
mov dword [esp + 0x30], 0
mov ebp, dword [esp + 0xc0]
mov dword [esp], esi
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0x6a09e667
mov dword [esp + 0x3c], 0xbb67ae85
mov dword [esp + 0x40], 0x3c6ef372
mov dword [esp + 0x44], 0xa54ff53a
mov dword [esp + 0x48], 0x510e527f
mov dword [esp + 0x4c], 0x9b05688c
mov dword [esp + 0x50], 0x1f83d9ab
mov dword [esp + 0x54], 0x5be0cd19
call sym._strlen
mov dword [esp], eax
call sym._curlx_uztoui
test eax, eax
je 0x43be68
mov ebx, eax
mov dword [esp + 0xc0], ebp
xor eax, eax
lea edi, [esp + 0x30]
jmp 0x43bbff
mov edx, 0x40
lea ecx, [esp + 0x5c]
mov dword [esp + 4], esi
sub edx, eax
cmp edx, ebx
cmova edx, ebx
add eax, ecx
mov dword [esp], eax
mov dword [esp + 8], edx
mov ebp, edx
add esi, ebp
sub ebx, ebp
call sym._memcpy
mov eax, dword [esp + 0x58]
add eax, ebp
mov dword [esp + 0x58], eax
cmp eax, 0x40
je 0x43bd00
test ebx, ebx
je 0x43bc34
test eax, eax
jne 0x43bbc0
cmp ebx, 0x3f
jbe 0x43bbc0
mov edx, esi
mov eax, edi
call sym._sha256_compress
test eax, eax
js 0x43be58
add dword [esp + 0x30], 0x200
mov eax, dword [esp + 0x58]
adc dword [esp + 0x34], 0
sub ebx, 0x40
add esi, 0x40
test ebx, ebx
jne 0x43bbff
mov ebp, dword [esp + 0xc0]
cmp eax, 0x3f
ja 0x43bdfe
xor ebx, ebx
lea ecx, [eax*8]
add ecx, dword [esp + 0x30]
adc ebx, dword [esp + 0x34]
mov esi, ebx
mov ebx, ecx
lea ecx, [eax + 1]
mov byte [esp + eax + 0x5c], pe_nt_image_headers32
mov dword [esp + 0x18], ecx
mov ecx, esi
mov edx, ebx
shr ecx, 0x18
mov dword [esp + 0x34], esi
mov dword [esp + 0x1c], ecx
mov ecx, esi
shr ecx, 0x10
mov byte [esp + 0x2b], bl
mov byte [esp + 0x2a], cl
mov ecx, esi
movzx ecx, ch
mov dword [esp + 0x30], ebx
mov dword [esp + 0x24], ecx
mov ecx, esi
mov byte [esp + 0x29], cl
mov ecx, ebx
shr ecx, 0x18
mov dword [esp + 0x20], ecx
mov ecx, esi
mov esi, dword [esp + 0x18]
shrd edx, ecx, 0x10
movzx ecx, bh
mov byte [esp + 0x28], dl
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x58], esi
cmp esi, 0x38
jbe 0x43be10
cmp esi, 0x40
je 0x43bce6
mov ecx, 0x40
lea eax, [edi + eax + 0x2d]
sub ecx, esi
je 0x43bcde
xor edx, edx
mov byte [eax + edx], 0
add edx, 1
cmp edx, ecx
jb 0x43bcd3
mov dword [esp + 0x58], 0x40
lea ebx, [esp + 0x5c]
mov eax, edi
mov edx, ebx
call sym._sha256_compress
mov dword [esp + 0x18], 0
jmp 0x43be1a
lea edx, [esp + 0x5c]
mov eax, edi
call sym._sha256_compress
test eax, eax
js 0x43be58
add dword [esp + 0x30], 0x200
mov dword [esp + 0x58], 0
adc dword [esp + 0x34], 0
xor eax, eax
jmp 0x43bbfb
lea edx, [esi + 4]
mov dword [esi], 0
and edx, 0xfffffffc
mov dword [esi + eax - 4], 0
sub esi, edx
add eax, esi
and eax, 0xfffffffc
cmp eax, 4
jb 0x43bd5f
and eax, 0xfffffffc
xor esi, esi
mov dword [edx + esi], ecx
add esi, 4
cmp esi, eax
jb 0x43bd55
mov dword [esp + 0x58], 0x38
movzx eax, byte [esp + 0x1c]
mov edx, ebx
mov byte [esp + 0x94], al
movzx eax, byte [esp + 0x2a]
mov byte [esp + 0x95], al
movzx eax, byte [esp + 0x24]
mov byte [esp + 0x96], al
movzx eax, byte [esp + 0x29]
mov byte [esp + 0x97], al
movzx eax, byte [esp + 0x20]
mov byte [esp + 0x98], al
movzx eax, byte [esp + 0x28]
mov byte [esp + 0x99], al
movzx eax, byte [esp + 0x2c]
mov byte [esp + 0x9a], al
movzx eax, byte [esp + 0x2b]
mov byte [esp + 0x9b], al
mov eax, edi
call sym._sha256_compress
xor eax, eax
lea esi, [esi]
mov edx, dword [edi + eax*4 + 8]
mov ecx, edx
mov byte [ebp + eax*4 + 2], dh
shr ecx, 0x18
mov byte [ebp + eax*4 + 3], dl
mov byte [ebp + eax*4], cl
mov ecx, edx
shr ecx, 0x10
mov byte [ebp + eax*4 + 1], cl
add eax, 1
cmp eax, 8
jne 0x43bdd8
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
lea ebx, [esp + 0x5c]
je 0x43bd67
mov esi, dword [esp + 0x18]
mov eax, 0x38
xor ecx, ecx
sub eax, esi
lea esi, [edi + esi + 0x2c]
cmp eax, 4
jae 0x43bd30
test eax, eax
je 0x43bd5f
mov byte [esi], 0
test al, 2
je 0x43bd5f
xor edx, edx
mov word [esi + eax - 2], dx
jmp 0x43bd5f
mov ebp, dword [esp + 0xc0]
mov eax, dword [esp + 0x58]
jmp 0x43bc3b
mov dword [esp + 0x30], 0
lea edi, [esp + 0x30]
lea ebx, [esp + 0x5c]
mov dword [esp + 0x34], 0
mov byte [esp + 0x5c], pe_nt_image_headers32
mov byte [esp + 0x2b], 0
mov byte [esp + 0x2c], 0
mov byte [esp + 0x28], 0
mov byte [esp + 0x20], 0
mov byte [esp + 0x29], 0
mov byte [esp + 0x24], 0
mov byte [esp + 0x2a], 0
mov byte [esp + 0x1c], 0
mov dword [esp + 0x18], 1
jmp 0x43be1a