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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x100]
sub rsp, 0x200
mov rdi, rdx
mov r14, rcx
mov edx, dword [rdx + 0x2cc]
lea rcx, [rbp - 0x50]
call fcn.140001514
lea rbx, [rbp - 0x40]
mov esi, 0x10
call fcn.140005f58
mov byte [rbx], al
inc rbx
sub rsi, 1
jne 0x14000176b
movups xmm0, xmmword [rdi + 0x190]
xor ebx, ebx
lea r8, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
movups xmm1, xmmword [rdi + 0x1a0]
lea rcx, [rbp - 0x80]
xor edx, edx
movaps xmmword [rbp - 0x30], xmm0
movaps xmm0, xmmword [rbp - 0x50]
lea esi, [rbx + 0x18]
mov r9d, esi
movaps xmmword [rbp - 0x20], xmm1
mov dword [rbp + 0x128], 0x20
mov dword [rbp + 0x138], 1
mov dword [rsp + 0x78], 1
mov dword [rbp - 0x78], 0x208
mov dword [rbp - 0x74], 0x660e
mov dword [rbp - 0x70], 0x10
movdqu xmmword [rbp - 0x6c], xmm0
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x14000180c
mov r9d, esi
mov dword [rsp + 0x20], 8
lea r8, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
xor edx, edx
lea rcx, [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov rcx, qword [rbp - 0x80]
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [rbp - 0x78]
mov dword [rsp + 0x20], ebx
lea r8d, [r9 + 0x1c]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
mov rcx, qword [rsp + 0x70]
lea r8, [rbp + 0x138]
xor r9d, r9d
lea edx, [r9 + 3]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
mov rcx, qword [rsp + 0x70]
lea r8, [rsp + 0x78]
xor r9d, r9d
lea edx, [r9 + 4]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
mov rcx, qword [rsp + 0x70]
lea r8, [rbp - 0x40]
xor r9d, r9d
lea edx, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
mov eax, dword [rbp + 0x128]
xor r9d, r9d
mov rcx, qword [rsp + 0x70]
add eax, 0x20
mov dword [rsp + 0x30], eax
xor edx, edx
lea rax, [rbp + 0x128]
mov qword [rsp + 0x28], rax
lea r8d, [r9 + 1]
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rbp - 0x80]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor edx, edx
lea rcx, [rbp]
mov r8d, 0x100
call fcn.140003930
mov rdx, rbx
lea r9, str.0123456789abcdef
movzx ecx, byte [rbp + rdx - 0x40]
mov eax, ecx
and ecx, 0xf
shr rax, 4
mov al, byte [rax + r9]
mov byte [rbp + rdx*2], al
mov al, byte [rcx + r9]
mov byte [rbp + rdx*2 + 1], al
inc rdx
cmp rdx, 0x10
jb 0x1400018dd
mov r8d, dword [rbp + 0x128]
mov byte [rbp + rdx*2], bl
mov rdx, rbx
test r8, r8
je 0x14000193d
movzx ecx, byte [rbp + rdx - 0x30]
mov eax, ecx
and ecx, 0xf
shr rax, 4
mov al, byte [rax + r9]
mov byte [rbp + rdx*2 + 0x20], al
mov al, byte [rcx + r9]
mov byte [rbp + rdx*2 + 0x21], al
inc rdx
cmp rdx, r8
jb 0x140001917
mov eax, dword [rdi + 0x2cc]
lea rcx, [rdi + 0x2a8]
mov dword [rsp + 0x68], eax
lea r8, [rdi + 0x168]
mov qword [rsp + 0x60], rcx
lea rax, [rbp]
mov byte [rbp + rdx*2 + 0x20], bl
lea r10, [rdi + 0x158]
lea rdx, [rdi + 0x298]
mov rcx, r14
mov qword [rsp + 0x58], rdx
lea r11, [rdi + 0x131]
mov qword [rsp + 0x50], rax
lea rbx, [rdi + 0x110]
mov eax, dword [rdi + 0x18c]
lea r9, [rdi + 0x100]
mov dword [rsp + 0x48], eax
lea rdx, str._asset_:_assetID_:null__encoded_data_:__s___encoding_:_Base64___encryption_:_assetID_:__s___iv_:__s___md5_:__s___size_:_d__type_:__s___iv_:null__md5_:__s___schema_:_L6Preset___size_:_d__type_:null__version_:6__envelope_:_data_:__s___expires_:_1__expiresremaining_:_1__id_:_s__iv_:__s___max_:__1___maxremaining_:_1__pbn_:__d___url_:_http:___
mov eax, dword [rdi + 0x154]
mov qword [rsp + 0x40], r8
mov r8, rdi
mov qword [rsp + 0x38], r10
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r11
mov qword [rsp + 0x20], rbx
call fcn.1400014bc
lea r11, [rsp + 0x200]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret