Function at 0x40f243
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
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], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], esp
push 0xf0000020
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push 0
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x40f2d0
push 6
call fcn.00444c22
add esp, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
and eax, 1
xor eax, 1
test eax, eax
je 0x40f339
mov dword [ebp - 0x30], esp
push 0x28
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push 0
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x40f31b
push 6
call fcn.00444c22
add esp, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
and eax, 1
xor eax, 1
test eax, eax
je 0x40f339
mov eax, 0x4562bc
jmp 0x40f8e2
cmp dword [ebp + 0x10], 0
jne 0x40f34a
mov dword [ebp + 0xc], 0x8003
mov dword [ebp - 0x30], esp
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x40f37d
push 6
call fcn.00444c22
add esp, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
and eax, 1
xor eax, 1
test eax, eax
je 0x40f3c2
mov dword [ebp - 0x30], esp
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x40f3b8
push 6
call fcn.00444c22
add esp, 4
mov eax, 0x4562bc
jmp 0x40f8e2
push VariantClear
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x40f3d7
mov eax, 0x4562bc
push eax
push 1
mov ebx, 0x168
call fcn.00446140
add esp, 0x10
mov dword [ebp - 0x30], eax
push 0
push 0
push 0
push 0x80000301
push 0
push 1
push VariantClear
push 0
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x40f412
mov eax, 0x4562bc
push eax
push 3
mov ebx, 0x270
call fcn.00447cc0
add esp, 0x28
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40f438
push ebx
call fcn.00444c1c
add esp, 4
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40f655
push 0x80000301
push 0
push dword [ebp - 0x10]
push 1
mov ebx, 0x2bc
call fcn.00447da0
add esp, 0x10
mov dword [ebp - 0x14], eax
push 0
push 0
push 0
push 0x80000301
push 0
push dword [ebp - 0x14]
push 2
mov ebx, 0x2b4
call fcn.00447df0
add esp, 0x1c
test eax, eax
je 0x40f639
cmp dword [ebp + 0x20], 0
jne 0x40f4a2
mov dword [ebp + 0x1c], 0x3200000
push 0x80000301
push 0
push dword [ebp + 0x1c]
push 0x80000301
push 0
push dword [ebp - 0x10]
push 2
mov ebx, 0x294
call fcn.00447f50
add esp, 0x1c
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40f4df
push ebx
call fcn.00444c1c
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
push VariantClear
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x40f4f6
mov eax, 0x45636d
push eax
push 1
mov ebx, 0x194
call fcn.00445ad0
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, 0x45636d
xor ecx, ecx
test eax, eax
je 0x40f51a
mov ecx, dword [eax + 4]
push ecx
add eax, 8
push eax
mov eax, dword [ebp - 0x18]
xor ebx, ebx
test eax, eax
je 0x40f52b
mov ebx, dword [eax + 4]
add eax, 8
push eax
cmp ebx, ecx
mov eax, 1
jne 0x40f542
dec eax
test ecx, ecx
je 0x40f542
call fcn.0040f197
add esp, 0xc
test eax, eax
jne 0x40f552
jmp 0x40f639
mov dword [ebp - 0x30], esp
push 0
push dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40f567
add eax, 8
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x40f587
push 6
call fcn.00444c22
add esp, 4
and eax, 1
xor eax, 1
test eax, eax
je 0x40f59a
jmp 0x40f639
fild dword [ebp - 0x20]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x3c]
fadd qword [ebp - 0x3c]
fstp qword [ebp - 0x44]
fld qword [ebp - 0x44]
call fcn.00401181
mov dword [ebp - 0x20], eax
cmp dword [ebp + 0x14], 0
je 0x40f634
fild dword [ebp - 0x20]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
fild dword [ebp - 0x14]
fstp qword [ebp - 0x3c]
fdiv qword [ebp - 0x3c]
fstp qword [ebp - 0x44]
fld qword [ebp - 0x44]
fmul qword [0x49f67f]
fstp qword [ebp - 0x4c]
push 0x80000601
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
push 1
mov ebx, 0x9dc
call fcn.00448030
add esp, 0x10
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], esp
push 0
push dword [ebp - 0x50]
push 0x402
push dword [ebp + 0x14]
call dword [sym.imp.USER32.dll_SendMessageA]
nop
nop
nop
nop
cmp dword [ebp - 0x54], esp
je 0x40f634
push 6
call fcn.00444c22
add esp, 4
jmp 0x40f467
push 0x80000301
push 0
push dword [ebp - 0x14]
push 1
mov ebx, 0x278
call fcn.00448110
add esp, 0x10
mov dword [ebp - 0x30], esp
push 0
mov eax, 4
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
push eax
push 4
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x40f691
push 6
call fcn.00444c22
add esp, 4
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [ebp - 0x24]
push 1
mov ebx, 0x1bc
call fcn.004457a0
add esp, 0x10
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40f6c7
push ebx
call fcn.00444c1c
add esp, 4
pop eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x30], esp
push 0
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x40f6e1
add eax, 8
push eax
push 2
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x40f706
push 6
call fcn.00444c22
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40f878
mov eax, dword [ebp - 0x24]
xor ecx, ecx
push eax
lea eax, [ebp - 0x20]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x40f875
mov ebx, dword [ebp - 0x28]
call fcn.0040737e
push ebx
push ecx
mov eax, dword [ebp - 0x20]
dec eax
jns 0x40f74a
push 4
call fcn.00444c22
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x40f75d
push 1
call fcn.00444c22
add esp, 4
add ebx, eax
mov dword [ebp - 0x30], ebx
mov ebx, dword [ebp - 0x30]
mov al, byte [ebx]
and eax, 0xff
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x1d4
call fcn.004475f0
add esp, 0x10
mov dword [ebp - 0x34], eax
push VariantClear
push 0
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x40f79c
mov eax, 0x4562bc
push eax
push 1
mov ebx, 0x154
call fcn.00446410
add esp, 0x10
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x40f7c2
push ebx
call fcn.00444c1c
add esp, 4
push dword [ebp - 0x38]
push 0x4ad4b7
mov ecx, 2
call fcn.00401125
add esp, 8
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x40f7ea
push ebx
call fcn.00444c1c
add esp, 4
push 0x80000301
push 0
push 2
push VariantClear
push 0
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x40f809
mov eax, 0x4562bc
push eax
push 2
mov ebx, 0x138
call fcn.00448120
add esp, 0x1c
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x40f82f
push ebx
call fcn.00444c1c
add esp, 4
push dword [ebp - 0x40]
push dword [ebp - 0x2c]
mov ecx, 2
call fcn.00401125
add esp, 8
mov dword [ebp - 0x44], eax
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x40f855
push ebx
call fcn.00444c1c
add esp, 4
mov eax, dword [ebp - 0x44]
push eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40f869
push ebx
call fcn.00444c1c
add esp, 4
pop eax
mov dword [ebp - 0x2c], eax
pop eax
pop ebx
pop ecx
jmp 0x40f71f
add esp, 0xc
mov dword [ebp - 0x30], esp
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x40f89a
push 6
call fcn.00444c22
add esp, 4
mov dword [ebp - 0x30], esp
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x40f8c1
push 6
call fcn.00444c22
add esp, 4
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x40f8dd
push eax
mov ebx, eax
call fcn.004010ba
inc eax
push eax
call fcn.00444c16
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40f8e2
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40f8f3
push ebx
call fcn.00444c1c
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40f903
push ebx
call fcn.00444c1c
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40f913
push ebx
call fcn.00444c1c
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x1c