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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x18], r8
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xd0
mov rbx, r9
mov rcx, qword [rsp + 0x120]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__msize]
test eax, eax
jg 0x18005bd70
xor al, al
jmp 0x18005c0df
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
xor r13d, r13d
mov qword [rsp + 0x40], r13
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9, rbx
call fcn.18005c100
mov r12, qword [rsp + 0x30]
mov r15, qword [rsp + 0x38]
cmp r12, r15
jne 0x18005bda9
xor bl, bl
jmp 0x18005c09a
mov rdi, r12
mov rbx, qword [0x180306030]
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rdi]
add rax, 0x5c
mov qword [rsp + 0x110], rax
cmp rbx, qword [0x180306038]
je 0x18005bdef
mov qword [rbx], rax
mov rbx, qword [0x180306030]
add rbx, 8
mov qword [0x180306030], rbx
jmp 0x18005be0d
lea r8, [rsp + 0x110]
mov rdx, rbx
lea rcx, [0x180306028]
call fcn.180071de0
mov rbx, qword [0x180306030]
add rdi, 8
cmp rdi, r15
jne 0x18005bdc0
mov r14, qword [0x180306028]
cmp r14, rbx
je 0x18005bf7f
nop word [rax + rax]
lea rdx, [0x1800b48b8]
lea rcx, [0x180305e48]
call fcn.18006b350
lea rdx, [0x180049b10]
mov rcx, rax
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::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rdx, qword [r14]
mov rcx, rax
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___unsigned_long_long_unsigned___int64_____ptr64]
lea rdx, [0x18006ba30]
mov rcx, rax
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]
lea rax, [rsp + 0x110]
mov qword [rsp + 0x20], rax
mov r9d, 0x64
lea r8, [rsp + 0x60]
mov rdx, qword [r14]
mov rcx, qword [0x180306020]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea rdx, str._nOffset:
lea rcx, [0x180305f30]
call fcn.18006b350
lea rdx, [0x180049b10]
mov rcx, rax
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::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rdx, qword [r14]
mov rcx, rax
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___unsigned_long_long_unsigned___int64_____ptr64]
mov rcx, rax
lea rdx, [0x1800a3d4a]
call fcn.18006b350
lea rdx, str._Bytes:
lea rcx, [0x180305f30]
call fcn.18006b350
mov ebp, r13d
cmp qword [rsp + 0x110], rbp
jbe 0x18005bf72
mov rsi, r13
nop dword [rax + rax]
lea rdx, [0x180049b10]
lea rcx, [0x180305f30]
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::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rdi, rax
mov edx, 2
lea rcx, [rsp + 0x48]
call qword [sym.imp.MSVCP140.dll_struct_std::_Smanip_long_long___int64_____cdecl_std::setw_long_long___int64__]
mov r8, qword [rax]
mov rcx, qword [rdi]
movsxd rcx, dword [rcx + 4]
add rcx, rdi
mov rdx, qword [rax + 8]
call r8
mov rcx, qword [rdi]
movsxd rdx, dword [rcx + 4]
mov byte [rdx + rdi + 0x58], 0x30
movzx edx, byte [rsp + rsi + 0x60]
mov rcx, rdi
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___int____ptr64]
mov rcx, rax
lea rdx, [0x1800ad880]
call fcn.18006b350
inc ebp
mov esi, ebp
cmp rsi, qword [rsp + 0x110]
jb 0x18005bf00
add r14, 8
cmp r14, rbx
jne 0x18005be30
mov ebp, r13d
sub r15, r12
sar r15, 3
test r15, r15
je 0x18005c098
mov r14, r12
mov rax, qword [r14]
lea rbx, [rax + 0x60]
lea rdi, [rax + 0x5c]
lea rax, [rsp + 0x128]
mov qword [rsp + 0x20], rax
mov r9d, 0x40
lea r8d, [r9 - 0x38]
mov edx, ebx
mov rcx, qword [0x180306020]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov qword [rsp + 0x20], r13
mov r9d, 8
lea r8, [rsp + 0x110]
mov rdx, rbx
mov rcx, qword [0x180306020]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea rax, [rsp + 0x128]
mov qword [rsp + 0x20], rax
mov r9d, 0x40
lea r8d, [r9 - 0x38]
mov edx, edi
mov rcx, qword [0x180306020]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov qword [rsp + 0x20], r13
mov r9d, 8
lea r8, [rsp + 0x110]
mov rdx, rdi
mov rcx, qword [0x180306020]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea rax, [rsp + 0x128]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x128]
mov r8d, 8
mov edx, ebx
mov rcx, qword [0x180306020]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea rax, [rsp + 0x128]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x128]
mov r8d, 8
mov edx, edi
mov rcx, qword [0x180306020]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
inc ebp
lea r14, [r14 + 8]
movsxd rax, ebp
cmp rax, r15
jb 0x18005bf95
mov bl, 1
test r12, r12
je 0x18005c0dc
mov rdx, qword [rsp + 0x40]
sub rdx, r12
and rdx, 0xfffffffffffffff8
mov rax, r12
cmp rdx, 0x1000
jb 0x18005c0d4
add rdx, 0x27
mov r12, qword [r12 - 8]
sub rax, r12
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18005c0d4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r12
call fcn.180096ef4
movzx eax, bl
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret