Function at 0x140333398
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 0x14033362f
test r8, r8
je 0x14033362f
test rax, rax
je 0x14033362f
cmp dword [rcx + 0xc], 4
je 0x140333400
mov edi, 0x80049e2f
jmp 0x14033364e
cmp qword [rcx + 0x30], rbx
je 0x140333628
cmp qword [rcx + 0x38], rbx
je 0x140333628
mov ecx, 0x48
call fcn.14011ea0c
test rax, rax
je 0x140333432
mov rdx, qword [r15 + 0x38]
mov rcx, rax
call fcn.140332840
mov rsi, rax
test rsi, rsi
jne 0x140333441
mov edi, 0x8007000e
jmp 0x14033364e
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 0x140333634
mov ecx, dword [rbp - 0x20]
lea eax, [rdi + 2]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14011ea0c
mov qword [rbp - 0x18], rax
test rax, rax
je 0x14033350c
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 0x140333634
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 0x140333621
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 0x140333634
mov eax, dword [rbp + 0x48]
add eax, 0xc
mov ecx, eax
mov dword [rbp - 0x1c], eax
call fcn.14011ea0c
mov r14, rax
test rax, rax
jne 0x140333516
mov edi, 0x8007000e
jmp 0x140333634
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 0x140333540
mov dword [r14 + 4], 0x660e
mov dword [rsi + 0xc], 1
jmp 0x14033358a
lea rdx, str.http:__www.w3.org_2001_04_xmlencaes192_cbc
mov rcx, r13
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x140333564
mov dword [r14 + 4], 0x660f
mov dword [rsi + 0xc], 2
jmp 0x14033358a
lea rdx, str.http:__www.w3.org_2001_04_xmlencaes256_cbc
mov rcx, r13
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x140333621
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 0x140333634
mov r8d, dword [rbp + 0x48]
lea rdx, [r14 + 0xc]
call fcn.140334734
mov edi, eax
test eax, eax
jne 0x140333634
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 0x14033360c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jle 0x140333634
movzx edi, ax
or edi, 0x80070000
jmp 0x140333634
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 0x14033364e
mov edi, 0x80049e5b
jmp 0x140333634
mov edi, 0x80049e51
jmp 0x14033364e
mov edi, 0x80070057
test rsi, rsi
je 0x14033364e
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.1401bfc8c
mov rcx, r14
call fcn.1401bfc8c
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x14033366e
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