Function at 0x100609a0
Capabilities:
Create new key via cryptacquirecontext
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1011da66
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x1015bc40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], 1
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1c], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push 0xf0000000
push 0x18
push 0
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x28], 1
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x10060b13
push dword [ebp - 0x18]
push dword [ebp + 0x10]
call fcn.100633f0
add esp, 8
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x10060a47
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x14], 0xf
mov eax, dword [edx + 0x10]
jbe 0x10060a5c
add eax, dword [edx]
mov edx, dword [edx]
mov dword [ebp + 0xc], edx
jmp 0x10060a5e
add eax, edx
xor ecx, ecx
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x38], edi
sub eax, edx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x24], eax
je 0x10060aac
cmp eax, 0x7fffffff
ja 0x10060c78
push eax
lea ecx, [ebp - 0x38]
call fcn.100626a0
mov ebx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x38]
push ebx
push dword [ebp + 0xc]
push edi
call fcn.100eca80
lea eax, [ebx + edi]
add esp, 0xc
mov ebx, dword [ebp - 0x30]
mov ecx, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x34], eax
sub ecx, edi
mov dword [ebp - 4], 1
push ecx
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], ecx
push eax
push edi
push 0
push 1
push 0
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x10060b27
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test edi, edi
je 0x10060b13
sub ebx, edi
mov eax, edi
cmp ebx, 0x1000
jb 0x10060b09
mov edi, dword [eax - 4]
add ebx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10060c73
push ebx
push edi
call fcn.100d04ec
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10]
mov edx, dword [esi]
sub ecx, edi
mov eax, dword [esi + 8]
sub eax, edx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x14], eax
cmp ecx, eax
jbe 0x10060be5
cmp ecx, 0x7fffffff
ja 0x10060c7d
shr eax, 1
mov dword [ebp - 0x24], eax
mov eax, accept
mov esi, dword [ebp - 0x24]
sub eax, esi
cmp dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
jbe 0x10060b70
mov dword [ebp - 0x24], connect
jmp 0x10060b7a
add esi, eax
cmp esi, ecx
cmovb esi, ecx
mov dword [ebp - 0x24], esi
mov esi, dword [ebp - 0x1c]
test edx, edx
je 0x10060bc2
cmp eax, 0x1000
jb 0x10060ba4
mov ecx, dword [edx - 4]
add eax, 0x23
sub edx, ecx
mov dword [ebp - 0x14], eax
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x10060c73
mov eax, dword [ebp - 0x14]
mov edx, ecx
push eax
push edx
call fcn.100d04ec
mov dword [esi], 0
add esp, 8
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push dword [ebp - 0x24]
mov ecx, esi
call fcn.100626a0
push dword [ebp - 0x10]
mov esi, dword [esi]
push edi
push esi
call fcn.100eca80
mov eax, dword [ebp - 0x10]
add esp, 0xc
add eax, esi
mov esi, dword [ebp - 0x1c]
jmp 0x10060c30
mov eax, dword [esi + 4]
sub eax, edx
mov dword [ebp + 8], eax
cmp ecx, eax
jbe 0x10060c1f
push eax
push edi
push edx
call fcn.100eca80
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov esi, dword [esi + 4]
sub ecx, edx
push ecx
lea eax, [edx + edi]
mov dword [ebp - 0x10], ecx
push eax
push esi
call fcn.100eca80
mov eax, dword [ebp - 0x10]
add esp, 0x18
add eax, esi
mov esi, dword [ebp - 0x1c]
jmp 0x10060c30
push ecx
push edi
push edx
call fcn.100eca80
mov eax, dword [ebp - 0x10]
add esp, 0xc
add eax, dword [ebp - 0x24]
push dword [ebp - 0x20]
mov dword [esi + 4], eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test edi, edi
je 0x10060b13
sub ebx, edi
mov eax, edi
cmp ebx, 0x1000
jb 0x10060b09
mov edi, dword [eax - 4]
add ebx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10060b09
call fcn.100fc365
call fcn.10042b10
call fcn.10042b10
int3