Function at 0x140332ad8
Capabilities:
Encrypt data using aes via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
xor ebx, ebx
mov rax, r9
mov dword [rbp - 0x20], ebx
mov r12, r8
mov qword [rbp - 0x18], rbx
mov r13, rdx
mov dword [rbp + 0x48], ebx
mov r15, rcx
mov qword [rbp - 0x10], rbx
mov esi, ebx
mov r14d, ebx
test rdx, rdx
je 0x140332d6f
test r8, r8
je 0x140332d6f
test rax, rax
je 0x140332d6f
cmp dword [rcx + 0xc], 4
je 0x140332b40
mov edi, 0x80049e2f
jmp 0x140332d8e
cmp qword [rcx + 0x30], rbx
je 0x140332d68
cmp qword [rcx + 0x38], rbx
je 0x140332d68
mov ecx, 0x48
call fcn.1400b74d4
test rax, rax
je 0x140332b72
mov rdx, qword [r15 + 0x38]
mov rcx, rax
call fcn.140331f80
mov rsi, rax
test rsi, rsi
jne 0x140332b81
mov edi, 0x8007000e
jmp 0x140332d8e
mov rax, qword [r12]
mov rbx, qword [rax + 0x28]
mov rcx, rbx
call qword [0x1403358c8]
xor r8d, r8d
lea rdx, [rbp - 0x20]
mov rcx, r12
call rbx
mov edi, eax
test eax, eax
jne 0x140332d74
mov ecx, dword [rbp - 0x20]
lea eax, [rdi + 2]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1400b74d4
mov qword [rbp - 0x18], rax
test rax, rax
je 0x140332c4c
mov rax, qword [r12]
mov rbx, qword [rax + 0x28]
mov rcx, rbx
call qword [0x1403358c8]
mov r8, qword [rbp - 0x18]
lea rdx, [rbp - 0x20]
mov rcx, r12
call rbx
mov edi, eax
test eax, eax
jne 0x140332d74
mov rcx, qword [rbp - 0x18]
lea rdx, str.http:__www.w3.org_2001_04_xmlencrsa_oaep_mgf1p
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x140332d61
mov rax, qword [r12]
mov rbx, qword [rax + 0x38]
mov rcx, rbx
call qword [0x1403358c8]
xor r8d, r8d
lea rdx, [rbp + 0x48]
mov rcx, r12
call rbx
mov edi, eax
test eax, eax
jne 0x140332d74
mov eax, dword [rbp + 0x48]
add eax, 0xc
mov ecx, eax
mov dword [rbp - 0x1c], eax
call fcn.1400b74d4
mov r14, rax
test rax, rax
jne 0x140332c56
mov edi, 0x8007000e
jmp 0x140332d74
lea rdx, str.http:__www.w3.org_2001_04_xmlencaes128_cbc
mov dword [rax], 0x201
mov rcx, r13
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x140332c80
mov dword [r14 + 4], 0x660e
mov dword [rsi + 0xc], 1
jmp 0x140332cca
lea rdx, str.http:__www.w3.org_2001_04_xmlencaes192_cbc
mov rcx, r13
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x140332ca4
mov dword [r14 + 4], 0x660f
mov dword [rsi + 0xc], 2
jmp 0x140332cca
lea rdx, str.http:__www.w3.org_2001_04_xmlencaes256_cbc
mov rcx, r13
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x140332d61
mov dword [r14 + 4], 0x6610
mov dword [rsi + 0xc], 3
mov dword [r14 + 8], 0xa400
mov rax, qword [r12]
mov rbx, qword [rax + 0x38]
mov rcx, rbx
call qword [0x1403358c8]
lea r8, [r14 + 0xc]
mov rcx, r12
lea rdx, [rbp + 0x48]
call rbx
xor ebx, ebx
mov edi, eax
test eax, eax
jne 0x140332d74
mov r8d, dword [rbp + 0x48]
lea rdx, [r14 + 0xc]
call fcn.140333dbc
mov edi, eax
test eax, eax
jne 0x140332d74
mov r9, qword [r15 + 0x30]
lea rax, [rbp - 0x10]
mov r8d, dword [rbp - 0x1c]
mov rdx, r14
mov rcx, qword [r15 + 0x38]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x140332d4c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jle 0x140332d74
movzx edi, ax
or edi, 0x80070000
jmp 0x140332d74
mov rax, qword [rbp - 0x10]
mov qword [rsi + 0x30], rax
mov rax, qword [rbp + 0x58]
mov qword [rbp - 0x10], rbx
mov qword [rax], rsi
jmp 0x140332d8e
mov edi, 0x80049e5b
jmp 0x140332d74
mov edi, 0x80049e51
jmp 0x140332d8e
mov edi, 0x80070057
test rsi, rsi
je 0x140332d8e
mov rax, qword [rsi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [0x1403358c8]
mov rcx, rsi
call rbx
mov rcx, qword [rbp - 0x18]
call fcn.14010bc98
mov rcx, r14
call fcn.14010bc98
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x140332dae
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov eax, edi
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret