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

Disassembly:
sub esp, 0xb4
mov eax, dword [0x4b1ae0]
xor eax, esp
mov dword [esp + 0xb0], eax
push ebx
push esi
mov esi, dword [esp + 0xc0]
push edi
mov edi, dword [esp + 0xc8]
xor ebx, ebx
push 0x3f
mov dword [esp + 0x18], ebx
lea eax, [esp + 0x81]
push ebx
push eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov byte [esp + 0x88], bl
call fcn.004747b0
add esp, 0xc
cmp dword [edi + 0x18], 0x10
jb 0x4668a8
mov edi, dword [edi + 4]
jmp 0x4668ab
add edi, 4
push edi
lea ecx, [esp + 0x80]
push 0x40
push ecx
call fcn.00477197
add esp, 0xc
push 0xf0000000
push 0x18
push ebx
push ebx
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x4668fd
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
push ebx
push ebx
push 0x800c
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x46691c
mov edx, dword [esp + 0x10]
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push ebx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push 0x494729
mov ecx, esi
mov byte [esi + 4], bl
call fcn.0040b5a0
jmp 0x466ac1
lea eax, [esp + 0x7c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x466923
mov ecx, dword [esp + 0xc]
push ebx
sub eax, edx
push eax
lea eax, [esp + 0x84]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x46696d
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 0x10]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x494729
mov ecx, esi
call fcn.0040b8c0
jmp 0x466ac1
xor eax, eax
push ebx
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x25], eax
mov dword [esp + 0x29], eax
mov dword [esp + 0x2d], eax
mov dword [esp + 0x31], eax
mov dword [esp + 0x35], eax
mov dword [esp + 0x39], eax
mov dword [esp + 0x3d], eax
mov word [esp + 0x41], ax
mov byte [esp + 0x43], al
mov eax, dword [esp + 0x18]
push 2
push eax
mov byte [esp + 0x2c], bl
mov dword [esp + 0x28], 0x20
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x4669cf
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov edx, dword [esp + 0x10]
push ebx
push edx
jmp 0x466956
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [esp + 0x10]
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x40
lea edx, [esp + 0x3d]
push ebx
push edx
mov byte [esp + 0x44], bl
call fcn.004747b0
add esp, 0xc
xor eax, eax
lea esp, [esp]
movzx ecx, byte [esp + eax + 0x18]
mov edx, ecx
shr edx, 4
mov dl, byte [edx + str.0123456789abcdef]
and ecx, 0xf
mov byte [esp + eax*2 + 0x38], dl
mov cl, byte [ecx + str.0123456789abcdef]
mov byte [esp + eax*2 + 0x39], cl
inc eax
cmp eax, 0x20
jl 0x466a00
mov dword [esi + 0x18], 0xf
lea edi, [esi + 4]
mov dword [esi + 0x14], ebx
mov byte [edi], bl
mov eax, dword [esi + 0x18]
cmp eax, 0x10
jb 0x466a42
mov ecx, dword [edi]
jmp 0x466a44
mov ecx, edi
lea edx, [esp + 0x38]
cmp edx, ecx
jb 0x466a7e
cmp eax, 0x10
jb 0x466a55
mov ecx, dword [edi]
jmp 0x466a57
mov ecx, edi
mov edx, dword [esi + 0x14]
add edx, ecx
lea ecx, [esp + 0x38]
cmp edx, ecx
jbe 0x466a7e
cmp eax, 0x10
jb 0x466a6b
mov edi, dword [edi]
push 0x41
lea edx, [esp + 0x3c]
sub edx, edi
push edx
push esi
mov ecx, esi
call fcn.0040b380
jmp 0x466ac1
cmp eax, 0x41
jae 0x466a90
mov eax, dword [esi + 0x14]
push eax
push 0x41
mov ecx, esi
call fcn.0040aa20
mov ecx, dword [esi + 0x18]
cmp ecx, 0x10
jb 0x466a9c
mov eax, dword [edi]
jmp 0x466a9e
mov eax, edi
push 0x41
lea edx, [esp + 0x3c]
push edx
push ecx
push eax
call fcn.00473bda
add esp, 0x10
cmp dword [esi + 0x18], 0x10
mov dword [esi + 0x14], 0x41
jb 0x466abe
mov edi, dword [edi]
mov byte [edi + 0x41], bl
mov ecx, dword [esp + 0xbc]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.00474468
add esp, 0xb4
ret