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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x1001c060]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x54], ecx
mov byte [ebp - 0x49], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x3c], 4
push str.CryptDecrypt
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1001df08], eax
push 0xf0000000
push 0x18
push 0
push 0
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x10014c3d
xor al, al
jmp 0x10014dee
mov byte [ebp - 0x30], 8
mov byte [ebp - 0x2f], 2
xor ecx, ecx
mov word [ebp - 0x2e], cx
mov dword [ebp - 0x2c], 0x6610
mov dword [ebp - 0x28], 0x20
push 0x20
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.100042a0
add esp, 0xc
mov eax, dword [ebp + 0x14]
cmp dword [eax], 0x20
jae 0x10014c7b
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov dword [ebp - 0x58], edx
jmp 0x10014c82
mov dword [ebp - 0x58], 0x20
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x24]
push edx
call fcn.10003f30
add esp, 0xc
lea eax, [ebp - 0x38]
push eax
push 1
push 0
push 0x2c
lea ecx, [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x10014dc9
push 0
lea eax, [ebp - 0x34]
push eax
push 4
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
mov edx, dword [ebp - 0x54]
mov dword [edx + 0x5c], eax
mov eax, dword [ebp - 0x54]
cmp dword [eax + 0x5c], 0
je 0x10014dc9
push 0
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x44]
push edx
push 8
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGetKeyParam]
test eax, eax
je 0x10014dc9
mov ecx, dword [ebp - 0x44]
shr ecx, 3
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x44]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x10014dc9
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0xc]
mov edx, dword [eax]
cmp edx, dword [ecx]
jae 0x10014d31
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax]
mov dword [ebp - 0x5c], ecx
jmp 0x10014d39
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0x18]
push eax
call fcn.10003f30
add esp, 0xc
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
push 0
push 0
push 0
mov eax, dword [ebp - 0x38]
push eax
call dword [0x1001df08]
sub eax, 1
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x49], al
movzx ecx, byte [ebp - 0x49]
test ecx, ecx
je 0x10014dc9
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0xc]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10014db8
mov ecx, dword [ebp - 0x50]
sub ecx, 0x10
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x50]
push edx
mov eax, dword [ebp + 0x18]
add eax, 0x10
push eax
mov ecx, dword [ebp + 0x18]
push ecx
call fcn.10003f30
add esp, 0xc
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0x50]
mov dword [edx], eax
mov ecx, dword [ebp + 0x18]
add ecx, dword [ebp - 0x50]
mov byte [ecx], 0
cmp dword [ebp - 0x38], 0
je 0x10014dd9
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp dword [ebp - 0x40], 0
je 0x10014deb
push 0
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, byte [ebp - 0x49]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10003f16
mov esp, ebp
pop ebp
ret 0x18