Function at 0x513c78
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
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], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], esp
push 0xf0000000
push 1
push 0x68478d
push 0x68478d
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
nop
nop
nop
nop
cmp dword [ebp - 0x28], esp
je 0x513cf7
push 6
call fcn.0054cd6b
add esp, 4
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x513d52
mov dword [ebp - 0x28], esp
push 0
push 1
push 0x68478d
push 0x68478d
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
nop
nop
nop
nop
cmp dword [ebp - 0x28], esp
je 0x513d3b
push 6
call fcn.0054cd6b
add esp, 4
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x513d52
mov eax, 0x68478d
jmp 0x5142bd
mov dword [ebp - 0x28], esp
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
nop
nop
nop
nop
cmp dword [ebp - 0x28], esp
je 0x513d87
push 6
call fcn.0054cd6b
add esp, 4
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x513dc5
mov dword [ebp - 0x28], esp
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
nop
nop
nop
cmp dword [ebp - 0x28], esp
je 0x513dbb
push 6
call fcn.0054cd6b
add esp, 4
mov eax, 0x68478d
jmp 0x5142bd
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x513de1
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0054cd5f
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x513df2
push ebx
call fcn.0054cd65
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x513e09
mov eax, 0x6847be
push eax
push 1
mov ebx, 0x194
call fcn.0054d860
add esp, 0x10
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], esp
push 0
push dword [ebp - 0x28]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x513e34
add eax, 8
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x513e54
push 6
call fcn.0054cd6b
add esp, 4
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x513eb4
mov dword [ebp - 0x28], esp
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
nop
nop
nop
nop
cmp dword [ebp - 0x28], esp
je 0x513e83
push 6
call fcn.0054cd6b
add esp, 4
mov dword [ebp - 0x28], esp
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
nop
nop
nop
cmp dword [ebp - 0x28], esp
je 0x513eaa
push 6
call fcn.0054cd6b
add esp, 4
mov eax, 0x68478d
jmp 0x5142bd
push 0x80000301
push 0
push 0x10
push 1
mov ebx, 0x1bc
call fcn.0054d870
add esp, 0x10
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x513ee9
push ebx
call fcn.0054cd65
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0x10
mov dword [ebp - 0x28], esp
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x513f0a
add eax, 8
push eax
push 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
nop
nop
nop
nop
cmp dword [ebp - 0x28], esp
je 0x513f2f
push 6
call fcn.0054cd6b
add esp, 4
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x513f8f
mov dword [ebp - 0x28], esp
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
nop
nop
nop
nop
cmp dword [ebp - 0x28], esp
je 0x513f5e
push 6
call fcn.0054cd6b
add esp, 4
mov dword [ebp - 0x28], esp
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
nop
nop
nop
cmp dword [ebp - 0x28], esp
je 0x513f85
push 6
call fcn.0054cd6b
add esp, 4
mov eax, 0x68478d
jmp 0x5142bd
mov eax, 0x6847c6
test eax, eax
je 0x513fab
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0054cd5f
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x513fbc
push ebx
call fcn.0054cd65
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
push 0x80000301
push 0
push 0x20
push 1
mov ebx, 0x1bc
call fcn.0054d870
add esp, 0x10
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x513ff5
push ebx
call fcn.0054cd65
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
fild dword [ebp - 0x14]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fsub qword [0x6847de]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
call fcn.00512743
push eax
lea eax, [ebp - 0x20]
mov ebx, eax
mov ecx, 0
pop edx
push edx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, edx
jg 0x514240
mov ebx, dword [ebp - 0x10]
call fcn.00512b05
push ebx
push ecx
fild dword [ebp - 0x20]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fadd qword [0x6847de]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
call fcn.00512743
dec eax
jns 0x514060
push 4
call fcn.0054cd6b
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x514073
push 1
call fcn.0054cd6b
add esp, 4
add ebx, eax
mov dword [ebp - 0x38], ebx
mov ebx, dword [ebp - 0x38]
mov al, byte [ebx]
and eax, 0xff
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x1c]
call fcn.00512b05
push ebx
push ecx
fild dword [ebp - 0x20]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fmul qword [0x6847e6]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
fadd qword [0x6847de]
fstp qword [ebp - 0x3c]
fld qword [ebp - 0x3c]
call fcn.00512743
dec eax
jns 0x5140c5
push 4
call fcn.0054cd6b
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x5140d8
push 1
call fcn.0054cd6b
add esp, 4
add ebx, eax
mov dword [ebp - 0x40], ebx
mov ebx, dword [ebp - 0x18]
call fcn.00512b05
push ebx
push ecx
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push dword [ebp - 0x24]
push 2
mov ebx, 0x9fc
call fcn.0054d8a0
add esp, 0x1c
mov dword [ebp - 0x4c], eax
fild dword [ebp - 0x4c]
fstp qword [ebp - 0x4c]
fld qword [ebp - 0x4c]
fadd qword [0x6847de]
fstp qword [ebp - 0x54]
fld qword [ebp - 0x54]
call fcn.00512743
dec eax
jns 0x51413c
push 4
call fcn.0054cd6b
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x51414f
push 1
call fcn.0054cd6b
add esp, 4
add ebx, eax
mov dword [ebp - 0x58], ebx
mov ebx, dword [ebp - 0x58]
mov al, byte [ebx]
mov ebx, dword [ebp - 0x40]
mov byte [ebx], al
mov ebx, dword [ebp - 0x1c]
call fcn.00512b05
push ebx
push ecx
fild dword [ebp - 0x20]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fmul qword [0x6847e6]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
fadd qword [0x6847e6]
fstp qword [ebp - 0x3c]
fld qword [ebp - 0x3c]
call fcn.00512743
dec eax
jns 0x51419e
push 4
call fcn.0054cd6b
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x5141b1
push 1
call fcn.0054cd6b
add esp, 4
add ebx, eax
mov dword [ebp - 0x40], ebx
mov ebx, dword [ebp - 0x18]
call fcn.00512b05
push ebx
push ecx
push 0x80000301
push 0
push 0xf
push 0x80000301
push 0
push dword [ebp - 0x24]
push 2
mov ebx, 0xc4
call fcn.0054d8b0
add esp, 0x1c
mov dword [ebp - 0x4c], eax
fild dword [ebp - 0x4c]
fstp qword [ebp - 0x4c]
fld qword [ebp - 0x4c]
fadd qword [0x6847de]
fstp qword [ebp - 0x54]
fld qword [ebp - 0x54]
call fcn.00512743
dec eax
jns 0x514215
push 4
call fcn.0054cd6b
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x514228
push 1
call fcn.0054cd6b
add esp, 4
add ebx, eax
mov dword [ebp - 0x58], ebx
mov ebx, dword [ebp - 0x58]
mov al, byte [ebx]
mov ebx, dword [ebp - 0x40]
mov byte [ebx], al
pop ebx
pop ecx
pop edx
inc ecx
jmp 0x51401f
add esp, 0xc
mov dword [ebp - 0x28], esp
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
nop
nop
nop
nop
cmp dword [ebp - 0x28], esp
je 0x514265
push 6
call fcn.0054cd6b
add esp, 4
mov dword [ebp - 0x28], esp
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
nop
nop
nop
cmp dword [ebp - 0x28], esp
je 0x51428c
push 6
call fcn.0054cd6b
add esp, 4
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x51429f
mov eax, 0x6847be
push eax
push 1
mov ebx, 0x168
call fcn.0054d260
add esp, 0x10
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
jmp 0x5142bd
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x5142ce
push ebx
call fcn.0054cd65
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x5142de
push ebx
call fcn.0054cd65
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x5142ee
push ebx
call fcn.0054cd65
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x5142fe
push ebx
call fcn.0054cd65
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4