Function at 0x5e8f20
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
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], esp
push 0xf0000000
push 0x18
push 0xa13344
push 0xa13344
lea eax, [ebp - 4]
push eax
xor eax, eax
call dword [sym.imp.advapi32.dll_CryptAcquireContextA]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x5e8f9b
push 0x24
push 0x4367c46
push 6
call fcn.00645a6f
add esp, 0xc
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x5e9000
mov dword [ebp - 0x20], esp
push 0
push 0x18
push 0xa13344
push 0xa13344
lea eax, [ebp - 4]
push eax
xor eax, eax
call dword [sym.imp.advapi32.dll_CryptAcquireContextA]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x5e8fe9
push 0x7d
push 0x4367c46
push 6
call fcn.00645a6f
add esp, 0xc
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x5e9000
mov eax, 0xa13348
jmp 0x5e960a
cmp dword [ebp + 0x10], 0x800d
je 0x5e901e
cmp dword [ebp + 0x10], 0x800e
je 0x5e901e
xor eax, eax
jmp 0x5e9023
mov eax, 1
test eax, eax
je 0x5e9037
mov dword [ebp - 8], 0x80
jmp 0x5e903e
mov dword [ebp - 8], 0x40
push reloc.WS2_32.dll_getpeername
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x5e9053
mov eax, 0xa13348
push eax
push 1
mov ebx, 0x194
call fcn.00646e60
add esp, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x24], eax
jle 0x5e914e
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push dword [ebp - 4]
call fcn.005e8714
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x5e909a
push ebx
call fcn.00645a87
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov eax, 0xa13348
xor ecx, ecx
test eax, eax
je 0x5e90ac
mov ecx, dword [eax + 4]
push ecx
add eax, 8
push eax
mov eax, dword [ebp - 0xc]
xor ebx, ebx
test eax, eax
je 0x5e90bd
mov ebx, dword [eax + 4]
add eax, 8
push eax
cmp ebx, ecx
mov eax, 1
jne 0x5e90d4
dec eax
test ecx, ecx
je 0x5e90d4
call fcn.004f28d8
add esp, 0xc
test eax, eax
jne 0x5e911a
mov dword [ebp - 0x20], esp
push 0
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.advapi32.dll_CryptReleaseContext]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x5e9110
push 0x26b
push 0x4367c46
push 6
call fcn.00645a6f
add esp, 0xc
mov eax, 0xa13348
jmp 0x5e960a
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x5e9134
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.00645a7b
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x5e9145
push ebx
call fcn.00645a87
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
jmp 0x5e917f
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
je 0x5e916a
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.00645a7b
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x5e917b
push ebx
call fcn.00645a87
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x5e9192
mov eax, 0xa13348
push eax
push 1
mov ebx, 0x194
call fcn.00646e60
add esp, 0x10
mov dword [ebp - 0x20], eax
fild dword [ebp - 8]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
fild dword [ebp - 0x20]
fstp qword [ebp - 0x30]
fsub qword [ebp - 0x30]
fstp qword [ebp - 0x38]
fld qword [ebp - 0x38]
call fcn.004ef9d0
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x1bc
call fcn.00646e70
add esp, 0x10
mov dword [ebp - 0x3c], eax
push dword [ebp - 0x3c]
push dword [ebp - 0x10]
mov ecx, 2
call fcn.005668a8
add esp, 8
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x5e9208
push ebx
call fcn.00645a87
add esp, 4
mov eax, dword [ebp - 0x40]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x5e921c
push ebx
call fcn.00645a87
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
push 0x80000301
push 0
push dword [ebp - 8]
push 1
mov ebx, 0x1bc
call fcn.00646e70
add esp, 0x10
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x5e9253
push ebx
call fcn.00645a87
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push 0x80000301
push 0
push dword [ebp - 8]
push 1
mov ebx, 0x1bc
call fcn.00646e70
add esp, 0x10
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x5e928a
push ebx
call fcn.00645a87
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
xor ecx, ecx
push eax
lea eax, [ebp - 0x1c]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x5e943e
mov ebx, dword [ebp - 0x14]
call fcn.004efe34
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x5e92cf
push 0x401
push 0x4367c46
push 4
call fcn.00645a6f
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x5e92ec
push 0x401
push 0x4367c46
push 1
call fcn.00645a6f
add esp, 0xc
add ebx, eax
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x10]
call fcn.004efe34
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x5e9318
push 0x421
push 0x4367c46
push 4
call fcn.00645a6f
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x5e9335
push 0x421
push 0x4367c46
push 1
call fcn.00645a6f
add esp, 0xc
add ebx, eax
mov dword [ebp - 0x24], ebx
push 0x80000301
push 0
push 0x36
mov ebx, dword [ebp - 0x24]
mov al, byte [ebx]
and eax, 0xff
push 0x80000301
push 0
push eax
push 2
mov ebx, 0xcc
call fcn.0064b460
add esp, 0x1c
mov ebx, dword [ebp - 0x20]
mov byte [ebx], al
mov ebx, dword [ebp - 0x18]
call fcn.004efe34
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x5e9396
push 0x44c
push 0x4367c46
push 4
call fcn.00645a6f
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x5e93b3
push 0x44c
push 0x4367c46
push 1
call fcn.00645a6f
add esp, 0xc
add ebx, eax
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x10]
call fcn.004efe34
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x5e93df
push 0x46c
push 0x4367c46
push 4
call fcn.00645a6f
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x5e93fc
push 0x46c
push 0x4367c46
push 1
call fcn.00645a6f
add esp, 0xc
add ebx, eax
mov dword [ebp - 0x24], ebx
push 0x80000301
push 0
push 0x5c
mov ebx, dword [ebp - 0x24]
mov al, byte [ebx]
and eax, 0xff
push 0x80000301
push 0
push eax
push 2
mov ebx, 0xcc
call fcn.0064b460
add esp, 0x1c
mov ebx, dword [ebp - 0x20]
mov byte [ebx], al
pop eax
pop ebx
pop ecx
jmp 0x5e929a
add esp, 0xc
mov ebx, dword [ebp + 8]
push dword [ebx]
push dword [ebp - 0x14]
mov ecx, 2
call fcn.005668a8
add esp, 8
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x5e946d
push ebx
call fcn.00645a87
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
push dword [ebp - 4]
call fcn.005e8714
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x5e9497
push ebx
call fcn.00645a87
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov eax, 0xa13348
xor ecx, ecx
test eax, eax
je 0x5e94a9
mov ecx, dword [eax + 4]
push ecx
add eax, 8
push eax
mov eax, dword [ebp - 0xc]
xor ebx, ebx
test eax, eax
je 0x5e94ba
mov ebx, dword [eax + 4]
add eax, 8
push eax
cmp ebx, ecx
mov eax, 1
jne 0x5e94d1
dec eax
test ecx, ecx
je 0x5e94d1
call fcn.004f28d8
add esp, 0xc
test eax, eax
jne 0x5e9517
mov dword [ebp - 0x20], esp
push 0
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.advapi32.dll_CryptReleaseContext]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x5e950d
push 0x56a
push 0x4367c46
push 6
call fcn.00645a6f
add esp, 0xc
mov eax, 0xa13348
jmp 0x5e960a
push dword [ebp - 0xc]
push dword [ebp - 0x18]
mov ecx, 2
call fcn.005668a8
add esp, 8
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x5e9541
push ebx
call fcn.00645a87
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x10]
push dword [ebp - 4]
call fcn.005e8714
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x5e956b
push ebx
call fcn.00645a87
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov eax, 0xa13348
xor ecx, ecx
test eax, eax
je 0x5e957d
mov ecx, dword [eax + 4]
push ecx
add eax, 8
push eax
mov eax, dword [ebp - 0xc]
xor ebx, ebx
test eax, eax
je 0x5e958e
mov ebx, dword [eax + 4]
add eax, 8
push eax
cmp ebx, ecx
mov eax, 1
jne 0x5e95a5
dec eax
test ecx, ecx
je 0x5e95a5
call fcn.004f28d8
add esp, 0xc
test eax, eax
jne 0x5e95eb
mov dword [ebp - 0x20], esp
push 0
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.advapi32.dll_CryptReleaseContext]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x5e95e1
push 0x676
push 0x4367c46
push 6
call fcn.00645a6f
add esp, 0xc
mov eax, 0xa13348
jmp 0x5e960a
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x5e9605
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.00645a7b
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x5e960a
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x5e961b
push ebx
call fcn.00645a87
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x5e962b
push ebx
call fcn.00645a87
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x5e963b
push ebx
call fcn.00645a87
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x5e964b
push ebx
call fcn.00645a87
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc