Function at 0x14001138e
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Generate random numbers via winapi

Disassembly:
jmp 0x140011c90
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x210
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x48
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x238]
mov rax, qword [0x14001f008]
xor rax, rbp
mov qword [rbp + 0x1d8], rax
lea rcx, [0x1400250a4]
call fcn.1400113d4
mov qword [rbp + 0x98], 0
mov qword [rbp + 0xb8], 0
cmp qword [rbp + 0x200], 0
jne 0x140011d1d
lea r8, str.Null_pointer_passed_as_context
mov edx, 0x400
lea rcx, [0x14001f8e0]
call qword [sym.imp.ucrtbased.dll_strcpy_s]
mov eax, 0xc0000008
jmp 0x140011f2c
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 0x18
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x98]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jne 0x140011d72
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, str.CryptAcquireContextA_failed_with_code__d
mov edx, 0x400
lea rcx, [0x14001f8e0]
call fcn.140011230
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140011f2c
lea r8, [rbp + 0x28]
mov edx, 0x20
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x140011db8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, str.CryptGenRandom_for_key_failed_with_code__d
mov edx, 0x400
lea rcx, [0x14001f8e0]
call fcn.140011230
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140011f2c
lea r8, [rbp + 0x68]
mov edx, 0x10
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x140011dfe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, str.CryptGenRandom_for_IV_failed_with_code__d
mov edx, 0x400
lea rcx, [0x14001f8e0]
call fcn.140011230
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140011f2c
mov byte [rbp + 0xd8], 8
mov byte [rbp + 0xd9], 2
xor eax, eax
mov word [rbp + 0xda], ax
mov dword [rbp + 0xdc], 0x6610
mov dword [rbp + 0xe0], 0x20
mov r8d, 0x20
lea rdx, [rbp + 0x28]
lea rcx, [rbp + 0xe4]
call fcn.1400111d6
lea rax, [rbp + 0xb8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0x2c
lea rdx, [rbp + 0xd8]
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jne 0x140011ea5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, str.CryptImportKey_failed_with_code__d
mov edx, 0x400
lea rcx, [0x14001f8e0]
call fcn.140011230
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140011f2c
xor r9d, r9d
lea r8, [rbp + 0x68]
mov edx, 1
mov rcx, qword [rbp + 0xb8]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
jne 0x140011eeb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, str.CryptSetKeyParam_failed_with_code__d
mov edx, 0x400
lea rcx, [0x14001f8e0]
call fcn.140011230
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140011f2c
mov rax, qword [rbp + 0x200]
mov rcx, qword [rbp + 0xb8]
mov qword [rax + 8], rcx
mov rax, qword [rbp + 0x200]
mov rcx, qword [rbp + 0x98]
mov qword [rax], rcx
mov rax, qword [rbp + 0x200]
lea rcx, [rbp + 0xd8]
lea rdi, [rax + 0x10]
mov rsi, rcx
mov ecx, 0x2c
rep movsb byte [rdi], byte [rsi]
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14001be30]
call fcn.140011357
mov rax, rdi
mov rcx, qword [rbp + 0x1d8]
xor rcx, rbp
call fcn.1400111d1
lea rsp, [rbp + 0x1e0]
pop rdi
pop rsi
pop rbp
ret