Function at 0x401835
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
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], esp
push 0
push 1
push 0x404216
push 0x404216
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x40189f
push 6
call fcn.00401f76
add esp, 4
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x4018fa
mov dword [ebp - 0x1c], esp
push 8
push 1
push 0x404216
push 0x404216
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x4018e3
push 6
call fcn.00401f76
add esp, 4
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x4018fa
mov eax, 0x404216
jmp 0x401c74
mov dword [ebp - 0x1c], 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 - 0x1c], esp
je 0x40192f
push 6
call fcn.00401f76
add esp, 4
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x40196d
mov dword [ebp - 0x1c], esp
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x401963
push 6
call fcn.00401f76
add esp, 4
mov eax, 0x404216
jmp 0x401c74
push 0x80000005
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x401982
mov eax, 0x404243
push eax
push 1
mov ebx, 0x194
call fcn.00402780
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], esp
push 0
push dword [ebp - 0x1c]
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x4019af
add eax, 8
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
nop
nop
nop
nop
cmp dword [ebp - 0x20], esp
je 0x4019cf
push 6
call fcn.00401f76
add esp, 4
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x401a2f
mov dword [ebp - 0x1c], esp
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x4019fe
push 6
call fcn.00401f76
add esp, 4
mov dword [ebp - 0x1c], esp
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x401a25
push 6
call fcn.00401f76
add esp, 4
mov eax, 0x404216
jmp 0x401c74
mov dword [ebp - 0x1c], esp
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x401a45
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 - 0x1c], esp
je 0x401a6a
push 6
call fcn.00401f76
add esp, 4
push 0x80000301
push 0
push dword [ebp - 0x10]
push 1
mov ebx, 0x1bc
call fcn.00402620
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x401a9d
push ebx
call fcn.00401f64
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], esp
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x401ab7
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 - 0x1c], esp
je 0x401adc
push 6
call fcn.00401f76
add esp, 4
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x401b3c
mov dword [ebp - 0x1c], esp
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x401b0b
push 6
call fcn.00401f76
add esp, 4
mov dword [ebp - 0x1c], esp
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x401b32
push 6
call fcn.00401f76
add esp, 4
mov eax, 0x404216
jmp 0x401c74
push 0x80000005
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x401b4f
mov eax, 0x404243
push eax
push 1
mov ebx, 0x194
call fcn.00402780
add esp, 0x10
xor ecx, ecx
push eax
lea eax, [ebp - 0x14]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x401c07
mov ebx, dword [ebp - 0xc]
call fcn.00401815
push ebx
push ecx
mov eax, dword [ebp - 0x14]
dec eax
jns 0x401b96
push 4
call fcn.00401f76
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x401ba9
push 1
call fcn.00401f76
add esp, 4
add ebx, eax
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov al, byte [ebx]
and eax, 0xff
push eax
call fcn.00401c9c
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
push dword [ebp - 0x18]
mov ecx, 2
call fcn.004011cb
add esp, 8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x401be7
push ebx
call fcn.00401f64
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x401bfb
push ebx
call fcn.00401f64
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
pop eax
pop ebx
pop ecx
jmp 0x401b6b
add esp, 0xc
mov dword [ebp - 0x1c], esp
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x401c2c
push 6
call fcn.00401f76
add esp, 4
mov dword [ebp - 0x1c], esp
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x401c53
push 6
call fcn.00401f76
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x401c6f
push eax
mov ebx, eax
call fcn.00401160
inc eax
push eax
call fcn.00401f6a
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x401c74
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x401c85
push ebx
call fcn.00401f64
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x401c95
push ebx
call fcn.00401f64
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4