Function at 0x10001b00
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt

Disassembly:
sub esp, 0x50
mov eax, dword [0x100180d8]
xor eax, esp
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
push ebx
mov ebx, dword [esp + 0x60]
push ebp
mov ebp, dword [esp + 0x6c]
push esi
mov esi, dword [esp + 0x74]
push edi
mov edi, dword [esp + 0x70]
push 0xf0000000
push 0x18
mov dword [esp + 0x30], eax
xor eax, eax
push eax
push eax
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x38], ecx
mov byte [esp + 0x27], 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x10001cfb
xor eax, eax
mov word [esp + 0x32], ax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov eax, dword [edi]
mov byte [esp + 0x30], 8
mov byte [esp + 0x31], 2
mov dword [esp + 0x34], 0x6610
mov dword [esp + 0x38], 0x20
cmp eax, 0x20
jb 0x10001baa
mov eax, 0x20
push eax
lea ecx, [esp + 0x40]
push ebx
push ecx
call fcn.10005df0
mov ecx, dword [esp + 0x28]
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push 1
push 0
push 0x2c
lea eax, [esp + 0x40]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x10001cea
mov eax, dword [esp + 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
push 0
lea edx, [esp + 0x24]
push edx
push 4
push eax
mov dword [esp + 0x30], 1
call ebx
test eax, eax
je 0x10001cdb
mov eax, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x20]
push edx
push 8
push eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x40], 4
call dword [sym.imp.ADVAPI32.dll_CryptGetKeyParam]
test eax, eax
je 0x10001cdb
mov eax, dword [esp + 0x18]
shr eax, 3
push eax
push 0
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x10001cdb
mov ecx, dword [esp + 0x18]
push ecx
push 0
push edi
call fcn.10005770
mov edx, dword [esp + 0x20]
add esp, 0xc
push 0
push edi
push 1
push edx
call ebx
push edi
test eax, eax
jne 0x10001c7a
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x10001cdb
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, dword [esp + 0x24]
mov eax, dword [esi]
mov ecx, dword [edi]
cmp eax, ecx
jb 0x10001c8e
mov eax, ecx
push eax
mov eax, dword [esp + 0x2c]
push eax
push ebp
call fcn.10005df0
mov edx, dword [esp + 0x20]
mov ecx, dword [edi]
add esp, 0xc
push esi
push ebp
push 0
push 0
push 0
push edx
mov dword [esi], ecx
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x10001cc0
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10001cdb
mov eax, dword [esi]
sub eax, 0x10
push eax
lea ecx, [ebp + 0x10]
push ecx
push ebp
call fcn.10005a80
add esp, 0xc
add dword [esi], 0xfffffff0
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10001cea
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10001cfb
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [esp + 0x5c]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100052c3
add esp, 0x50
ret