Function at 0x403a5e
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], esp
lea eax, [ebp - 4]
push eax
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x403abd
push 6
call fcn.004481f1
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x403ad4
mov eax, 0x48c3a9
jmp 0x403d4c
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx]
test eax, eax
je 0x403af0
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.004481fd
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x403b01
push ebx
call fcn.00448209
add esp, 4
pop eax
mov dword [ebp - 8], eax
push reloc.WSOCK32.dll_getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x403b18
mov eax, 0x48c3a9
push eax
push 1
mov ebx, 0x194
call fcn.00449860
add esp, 0x10
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], esp
push 0
push dword [ebp - 0xc]
mov eax, dword [ebp - 8]
test eax, eax
je 0x403b43
add eax, 8
push eax
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x403b63
push 6
call fcn.004481f1
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x403b9c
mov dword [ebp - 0x18], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x403b92
push 6
call fcn.004481f1
add esp, 4
mov eax, 0x48c3a9
jmp 0x403d4c
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], esp
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push 2
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x403bd8
push 6
call fcn.004481f1
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x403c11
mov dword [ebp - 0x18], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x403c07
push 6
call fcn.004481f1
add esp, 4
mov eax, 0x48c3a9
jmp 0x403d4c
push 0x80000301
push 0
push dword [ebp - 0x10]
push 1
mov ebx, 0x1bc
call fcn.00449630
add esp, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x403c44
push ebx
call fcn.00448209
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.00403d74
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esp
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x18]
push 2
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x403c87
push 6
call fcn.004481f1
add esp, 4
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x403cc0
mov dword [ebp - 0x18], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x403cb6
push 6
call fcn.004481f1
add esp, 4
mov eax, 0x48c3a9
jmp 0x403d4c
mov dword [ebp - 0x18], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x403ce2
push 6
call fcn.004481f1
add esp, 4
push 0x80000301
push 0
push dword [ebp - 0x10]
push reloc.WSOCK32.dll_getpeername
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x403cff
mov eax, 0x48c3a9
push eax
push 2
mov ebx, 0x1a0
call fcn.00449870
add esp, 0x1c
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x403d29
push ebx
call fcn.00448209
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x403d47
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.004481fd
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x403d4c
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x403d5d
push ebx
call fcn.00448209
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x403d6d
push ebx
call fcn.00448209
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc