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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1011dd66
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 0x10060de3
push dword [ebp - 0x18]
push dword [ebp + 0x10]
call fcn.100636c0
add esp, 8
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x10060d17
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 0x10060d2c
add eax, dword [edx]
mov edx, dword [edx]
mov dword [ebp + 0xc], edx
jmp 0x10060d2e
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 0x10060d7c
cmp eax, 0x7fffffff
ja 0x10060f48
push eax
lea ecx, [ebp - 0x38]
call fcn.10062970
mov ebx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x38]
push ebx
push dword [ebp + 0xc]
push edi
call fcn.100ecd50
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 0x10060df7
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 0x10060de3
sub ebx, edi
mov eax, edi
cmp ebx, 0x1000
jb 0x10060dd9
mov edi, dword [eax - 4]
add ebx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10060f43
push ebx
push edi
call fcn.100d08bc
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 0x10060eb5
cmp ecx, 0x7fffffff
ja 0x10060f4d
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 0x10060e40
mov dword [ebp - 0x24], connect
jmp 0x10060e4a
add esi, eax
cmp esi, ecx
cmovb esi, ecx
mov dword [ebp - 0x24], esi
mov esi, dword [ebp - 0x1c]
test edx, edx
je 0x10060e92
cmp eax, 0x1000
jb 0x10060e74
mov ecx, dword [edx - 4]
add eax, 0x23
sub edx, ecx
mov dword [ebp - 0x14], eax
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x10060f43
mov eax, dword [ebp - 0x14]
mov edx, ecx
push eax
push edx
call fcn.100d08bc
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.10062970
push dword [ebp - 0x10]
mov esi, dword [esi]
push edi
push esi
call fcn.100ecd50
mov eax, dword [ebp - 0x10]
add esp, 0xc
add eax, esi
mov esi, dword [ebp - 0x1c]
jmp 0x10060f00
mov eax, dword [esi + 4]
sub eax, edx
mov dword [ebp + 8], eax
cmp ecx, eax
jbe 0x10060eef
push eax
push edi
push edx
call fcn.100ecd50
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.100ecd50
mov eax, dword [ebp - 0x10]
add esp, 0x18
add eax, esi
mov esi, dword [ebp - 0x1c]
jmp 0x10060f00
push ecx
push edi
push edx
call fcn.100ecd50
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 0x10060de3
sub ebx, edi
mov eax, edi
cmp ebx, 0x1000
jb 0x10060dd9
mov edi, dword [eax - 4]
add ebx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10060dd9
call fcn.100fc635
call fcn.10042be0
call fcn.10042be0
int3