Function at 0x13193d0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 4], edi
cmp dword [ebp + 8], edi
je 0x1319625
cmp dword [ebp + 0x14], edi
je 0x1319625
push dword [esi + 0x14]
call fcn.0103e4a5
push dword [esi + 0xc]
mov dword [esi + 0x14], edi
call fcn.0103e4a5
lea eax, [esi + 0x20]
mov dword [ebp - 8], eax
mov eax, dword [eax]
pop ecx
pop ecx
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
cmp eax, edi
je 0x1319429
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov eax, dword [ebp - 8]
mov dword [eax], edi
lea eax, [esi + 0x24]
mov dword [ebp - 0xc], eax
cmp dword [eax], edi
jne 0x1319463
push 0xf0000000
push 0x18
push edi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1319463
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x131945b
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
jmp 0x131962c
cmp dword [ebp + 0xc], edi
je 0x13194c1
push dword [esi + 0xc]
call fcn.0103e4a5
mov eax, dword [ebp + 0xc]
pop ecx
mov dword [esi + 0xc], edi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, di
jne 0x131947a
sub eax, ecx
sar eax, 1
mov dword [esi + 0x10], eax
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0103e496
pop ecx
mov dword [esi + 0xc], eax
cmp eax, edi
je 0x13194d7
push dword [ebp + 0xc]
mov ecx, dword [esi + 0x10]
inc ecx
push ecx
push eax
call fcn.0104574b
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x131962c
mov eax, dword [ebp + 0x10]
add eax, 0xc
push eax
mov dword [ebp + 0xc], eax
call fcn.0103e496
mov ebx, eax
pop ecx
cmp ebx, edi
jne 0x13194e3
mov dword [ebp - 4], 0x8007000e
jmp 0x131962c
xor eax, eax
cmp dword [ebp + 0x10], 0x10
mov byte [ebx], 8
mov byte [ebx + 1], 2
mov word [ebx + 2], ax
jne 0x1319544
mov eax, dword [ebp + 8]
mov ecx, 0x10320b8
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1319524
cmp dx, di
je 0x1319520
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1319524
add eax, 4
add ecx, 4
cmp dx, di
jne 0x13194fe
xor eax, eax
jmp 0x1319529
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
jne 0x13195d2
mov dword [ebx + 4], 0x660e
mov dword [esi + 8], 1
jmp 0x13195e9
cmp dword [ebp + 0x10], 0x18
jne 0x1319591
mov eax, dword [ebp + 8]
mov ecx, 0x1032060
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1319578
cmp dx, di
je 0x1319574
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1319578
add eax, 4
add ecx, 4
cmp dx, di
jne 0x1319552
xor eax, eax
jmp 0x131957d
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
jne 0x13195d2
mov dword [ebx + 4], 0x660f
mov dword [esi + 8], 2
jmp 0x13195e9
cmp dword [ebp + 0x10], 0x20
jne 0x131961c
mov eax, dword [ebp + 8]
mov ecx, 0x1032008
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x13195c9
cmp dx, di
je 0x13195c5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x13195c9
add eax, 4
add ecx, 4
cmp dx, di
jne 0x13195a3
xor eax, eax
jmp 0x13195ce
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x13195db
mov dword [ebp - 4], 0x80049e2f
jmp 0x131962c
mov dword [ebx + 4], 0x6610
mov dword [esi + 8], 3
mov eax, dword [ebp + 0x10]
push eax
push dword [ebp + 0x14]
mov dword [ebx + 8], eax
lea eax, [ebx + 0xc]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0xc]
add esp, 0xc
push dword [ebp - 8]
push edi
push edi
push dword [ebp + 0xc]
push ebx
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x131962c
jmp 0x1319447
mov dword [ebp - 4], 0x80049e2e
jmp 0x131962c
mov dword [ebp - 4], 0x80070057
push ebx
call fcn.0103e4a5
mov eax, dword [ebp - 4]
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x10