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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x74e694]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xa8]
push edi
mov edi, dword [ebp + 0xc]
push 0x40
mov dword [ebp - 0xb4], esi
push 0
push eax
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 0
call fcn.00667150
add esp, 0xc
cmp dword [edi + 0x14], 0x10
jb 0x616930
mov edi, dword [edi]
push edi
lea eax, [ebp - 0xa8]
push 0x40
push eax
call fcn.00674527
add esp, 0xc
lea eax, [ebp - 0xb0]
push 0xf0000000
push 0x18
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x6169c4
lea eax, [ebp - 0xac]
push eax
push 0
push 0
push 0x800c
push dword [ebp - 0xb0]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x6169b6
lea ecx, [ebp - 0xa8]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x616987
push 0
sub ecx, edx
lea eax, [ebp - 0xa8]
push ecx
push eax
push dword [ebp - 0xac]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x6169f7
push dword [ebp - 0xac]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0xb0]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi], 0
mov eax, esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov dword [esi + 0x10], 0
pop edi
mov byte [esi], 0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00663ada
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0xb4]
mov dword [ebp - 0xb4], 0x20
push eax
lea eax, [ebp - 0x24]
xorps xmm0, xmm0
push eax
push 2
push dword [ebp - 0xac]
movups xmmword [ebp - 0x24], xmm0
movups xmmword [ebp - 0x14], xmm0
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [ebp - 0xac]
test eax, eax
je 0x6169b0
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0xb0]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x41
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.00667150
add esp, 0xc
xor edx, edx
nop dword [eax + eax]
movzx ecx, byte [ebp + edx - 0x24]
mov eax, ecx
and ecx, 0xf
shr eax, 4
movzx eax, byte [eax + str.0123456789abcdef]
mov byte [ebp + edx*2 - 0x68], al
movzx eax, byte [ecx + str.0123456789abcdef]
movzx ecx, byte [ebp + edx - 0x23]
mov byte [ebp + edx*2 - 0x67], al
mov eax, ecx
shr eax, 4
and ecx, 0xf
movzx eax, byte [eax + str.0123456789abcdef]
mov byte [ebp + edx*2 - 0x66], al
movzx eax, byte [ecx + str.0123456789abcdef]
movzx ecx, byte [ebp + edx - 0x22]
mov byte [ebp + edx*2 - 0x65], al
mov eax, ecx
shr eax, 4
and ecx, 0xf
movzx eax, byte [eax + str.0123456789abcdef]
mov byte [ebp + edx*2 - 0x64], al
movzx eax, byte [ecx + str.0123456789abcdef]
movzx ecx, byte [ebp + edx - 0x21]
mov byte [ebp + edx*2 - 0x63], al
mov eax, ecx
shr eax, 4
and ecx, 0xf
movzx eax, byte [eax + str.0123456789abcdef]
mov byte [ebp + edx*2 - 0x62], al
movzx eax, byte [ecx + str.0123456789abcdef]
mov byte [ebp + edx*2 - 0x61], al
add edx, 4
cmp edx, 0x20
jl 0x616a60
mov dword [esi], 0
mov ecx, esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
push 0x50
mov byte [esi], 0
call fcn.00448c50
movups xmm0, xmmword [ebp - 0x68]
mov ecx, eax
mov dword [esi + 0x10], 0x41
mov al, byte [ebp - 0x28]
mov dword [esi + 0x14], 0x4f
pop edi
movups xmmword [ecx], xmm0
movups xmm0, xmmword [ebp - 0x58]
movups xmmword [ecx + 0x10], xmm0
movups xmm0, xmmword [ebp - 0x48]
movups xmmword [ecx + 0x20], xmm0
movups xmm0, xmmword [ebp - 0x38]
movups xmmword [ecx + 0x30], xmm0
mov byte [ecx + 0x40], al
mov eax, esi
mov byte [ecx + 0x41], 0
mov dword [esi], ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00663ada
mov esp, ebp
pop ebp
ret