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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101223d6
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x1015fc40]
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 0x10062633
push dword [ebp - 0x18]
push dword [ebp + 0x10]
call fcn.10065050
add esp, 8
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x10062567
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 0x1006257c
add eax, dword [edx]
mov edx, dword [edx]
mov dword [ebp + 0xc], edx
jmp 0x1006257e
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 0x100625cc
cmp eax, 0x7fffffff
ja 0x10062798
push eax
lea ecx, [ebp - 0x38]
call fcn.10064300
mov ebx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x38]
push ebx
push dword [ebp + 0xc]
push edi
call fcn.100f13f0
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 0x10062647
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 0x10062633
sub ebx, edi
mov eax, edi
cmp ebx, 0x1000
jb 0x10062629
mov edi, dword [eax - 4]
add ebx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10062793
push ebx
push edi
call fcn.100d4f2c
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 0x10062705
cmp ecx, 0x7fffffff
ja 0x1006279d
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 0x10062690
mov dword [ebp - 0x24], connect
jmp 0x1006269a
add esi, eax
cmp esi, ecx
cmovb esi, ecx
mov dword [ebp - 0x24], esi
mov esi, dword [ebp - 0x1c]
test edx, edx
je 0x100626e2
cmp eax, 0x1000
jb 0x100626c4
mov ecx, dword [edx - 4]
add eax, 0x23
sub edx, ecx
mov dword [ebp - 0x14], eax
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x10062793
mov eax, dword [ebp - 0x14]
mov edx, ecx
push eax
push edx
call fcn.100d4f2c
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.10064300
push dword [ebp - 0x10]
mov esi, dword [esi]
push edi
push esi
call fcn.100f13f0
mov eax, dword [ebp - 0x10]
add esp, 0xc
add eax, esi
mov esi, dword [ebp - 0x1c]
jmp 0x10062750
mov eax, dword [esi + 4]
sub eax, edx
mov dword [ebp + 8], eax
cmp ecx, eax
jbe 0x1006273f
push eax
push edi
push edx
call fcn.100f13f0
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.100f13f0
mov eax, dword [ebp - 0x10]
add esp, 0x18
add eax, esi
mov esi, dword [ebp - 0x1c]
jmp 0x10062750
push ecx
push edi
push edx
call fcn.100f13f0
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 0x10062633
sub ebx, edi
mov eax, edi
cmp ebx, 0x1000
jb 0x10062629
mov edi, dword [eax - 4]
add ebx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10062629
call fcn.10100cd5
call fcn.10042e30
call fcn.10042e30
int3