Function at 0x100168a6
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
push 0x18
call fcn.1002ffeb
add esp, 4
mov dword [ebp - 0x28], eax
mov edi, eax
mov esi, 0x10060368
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
mov ecx, 4
rep stosd dword es:[edi], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], esp
push 0xf0000000
push 1
push 0x100542f9
push 0x100542f9
lea eax, [ebp - 4]
push eax
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
nop
nop
cmp dword [ebp - 0x30], esp
je 0x1001695a
push 0x1d
push 0x402e22f
push 6
call fcn.1002fffd
add esp, 0xc
mov dword [ebp - 0x30], esp
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 4]
xor eax, eax
call dword [0x1014886e]
nop
nop
cmp dword [ebp - 0x30], esp
je 0x10016999
push 0x73
push 0x402e22f
push 6
call fcn.1002fffd
add esp, 0xc
mov dword [ebp - 0x30], esp
push 0
push 0x8000080
push 3
push 0
push 1
push connect
mov ebx, dword [ebp + 8]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
nop
nop
cmp dword [ebp - 0x30], esp
je 0x100169e5
push 0xe8
push 0x402e22f
push 6
call fcn.1002fffd
add esp, 0xc
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x30], esp
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0xc]
xor eax, eax
call dword [0x10148872]
nop
nop
cmp dword [ebp - 0x30], esp
je 0x10016a18
push 0x159
push 0x402e22f
push 6
call fcn.1002fffd
add esp, 0xc
xor eax, eax
cmp dword [ebp - 0x10], 0
jl 0x10016a2c
jg 0x10016a2b
cmp dword [ebp - 0x14], 0x40000000
jbe 0x10016a2c
inc eax
test eax, eax
je 0x10016a55
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10016a50
push eax
mov ebx, eax
call fcn.1000188c
inc eax
push eax
call fcn.1002ffeb
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x10016d6c
push 0x80000301
push 0
push 0x200
push 1
mov ebx, 0x184
call fcn.100314d0
add esp, 0x10
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x10016a8a
push ebx
call fcn.1002fff1
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x30], esp
push 0
lea eax, [ebp - 0x20]
push eax
push 0x200
push dword [ebp - 0x1c]
push dword [ebp - 0xc]
xor eax, eax
call dword [0x10148876]
nop
nop
cmp dword [ebp - 0x30], esp
je 0x10016acb
push 0x235
push 0x402e22f
push 6
call fcn.1002fffd
add esp, 0xc
mov dword [ebp - 0x30], esp
push 0
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push dword [ebp - 8]
xor eax, eax
call dword [0x1014887a]
nop
nop
cmp dword [ebp - 0x30], esp
je 0x10016b02
push 0x26f
push 0x402e22f
push 6
call fcn.1002fffd
add esp, 0xc
fild qword [ebp - 0x14]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
fild dword [ebp - 0x20]
fstp qword [ebp - 0x3c]
fsub qword [ebp - 0x3c]
fstp qword [ebp - 0x44]
fld qword [ebp - 0x44]
call fcn.1000114b
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
xor eax, eax
cmp dword [ebp - 0x10], 0
jl 0x10016b36
jg 0x10016b35
cmp dword [ebp - 0x14], 0
jbe 0x10016b36
inc eax
test eax, eax
jne 0x10016a55
mov dword [ebp - 0x30], esp
push dword [ebp - 0xc]
xor eax, eax
call dword [0x101487ee]
nop
nop
cmp dword [ebp - 0x30], esp
je 0x10016b6a
push 0x312
push 0x402e22f
push 6
call fcn.1002fffd
add esp, 0xc
mov dword [ebp - 0x24], 0x10
mov dword [ebp - 0x30], esp
push 0
lea eax, [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x28]
call fcn.1000155f
push ebx
push 2
push dword [ebp - 8]
xor eax, eax
call dword [0x1014887e]
nop
nop
cmp dword [ebp - 0x30], esp
je 0x10016bb4
push 0x36d
push 0x402e22f
push 6
call fcn.1002fffd
add esp, 0xc
mov dword [ebp - 0x30], esp
push 0
push dword [ebp - 4]
xor eax, eax
call dword [0x10148882]
nop
nop
cmp dword [ebp - 0x30], esp
je 0x10016be5
push 0x3a7
push 0x402e22f
push 6
call fcn.1002fffd
add esp, 0xc
mov dword [ebp - 0x30], esp
push dword [ebp - 8]
xor eax, eax
call dword [0x10148886]
nop
nop
cmp dword [ebp - 0x30], esp
je 0x10016c11
push 0x3ca
push 0x402e22f
push 6
call fcn.1002fffd
add esp, 0xc
xor ecx, ecx
lea eax, [ebp - 0x2c]
mov ebx, eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, 0x10
jg 0x10016d48
mov ebx, dword [ebp - 0x28]
call fcn.1000155f
push ebx
push ecx
mov eax, dword [ebp - 0x2c]
dec eax
jns 0x10016c4d
push 0x486
push 0x402e22f
push 4
call fcn.1002fffd
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x10016c6a
push 0x486
push 0x402e22f
push 1
call fcn.1002fffd
add esp, 0xc
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.10033370
add esp, 0x10
mov dword [ebp - 0x34], eax
push dword [ebp - 0x34]
push 0x10060143
mov ecx, 2
call fcn.100018f7
add esp, 8
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x10016cbe
push ebx
call fcn.1002fff1
add esp, 4
push 0x80000301
push 0
push 2
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x10016cdd
mov eax, 0x100542f9
push eax
push 2
mov ebx, 0x138
call fcn.10031620
add esp, 0x1c
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x10016d03
push ebx
call fcn.1002fff1
add esp, 4
push dword [ebp - 0x3c]
push dword [ebp - 0x18]
mov ecx, 2
call fcn.100018f7
add esp, 8
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x10016d29
push ebx
call fcn.1002fff1
add esp, 4
mov eax, dword [ebp - 0x40]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x10016d3d
push ebx
call fcn.1002fff1
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
pop ebx
pop ecx
jmp 0x10016c18
add esp, 8
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10016d67
push eax
mov ebx, eax
call fcn.1000188c
inc eax
push eax
call fcn.1002ffeb
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x10016d6c
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x10016d7d
push ebx
call fcn.1002fff1
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x10016d8d
push ebx
call fcn.1002fff1
add esp, 4
mov ebx, dword [ebp - 0x28]
push ebx
call fcn.1002fff1
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4