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

Disassembly:
push rbx
push r15
sub rsp, 0x28
mov rbx, rcx
movzx r15d, r8b
mov rcx, qword [rcx]
movzx r9d, dl
test rcx, rcx
je 0x18004184e
mov rdx, qword [rbx + 0x28]
mov r8, qword [rbx + 0x20]
mov rax, rdx
sub rax, r8
jne 0x1800416aa
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.WriteExeProtected:NewBytes_Zero
call fcn.180055e00
lea rdx, [0x180055fe0]
mov rcx, rax
add rsp, 0x28
pop r15
pop rbx
jmp 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]
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rdi
test r9b, r9b
je 0x180041786
mov rdx, qword [rbx + 0x10]
sub rdx, qword [rbx + 8]
cmp rax, rdx
je 0x1800416ff
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.WriteExeProtected:Bytes_not_copied_
call fcn.180055e00
lea rdx, [0x180055fe0]
mov rcx, rax
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x28
pop r15
pop rbx
jmp 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]
xor edi, edi
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], edi
lea r8d, [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r10, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
cmp r10, rdx
je 0x18004175b
mov esi, edi
nop dword [rax]
nop word [rax + rax]
movzx r8d, byte [rsi + rdx]
mov edx, edi
mov rcx, qword [rbx]
call fcn.18012c3d0
mov r10, qword [rbx + 0x10]
lea rsi, [rsi + 1]
mov rdx, qword [rbx + 8]
inc edi
mov rcx, r10
movsxd rax, edi
sub rcx, rdx
cmp rax, rcx
jb 0x180041730
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov rcx, qword [rbx]
sub r10, rdx
mov rdx, r10
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x28
pop r15
pop rbx
ret
xor edi, edi
mov esi, edi
test rax, rax
je 0x180041844
mov qword [rsp + 0x48], rbp
mov ebp, edi
mov qword [rsp + 0x20], r14
nop
mov rcx, qword [rbx]
test r15b, r15b
je 0x1800417d5
mov edx, esi
call fcn.18012c110
mov rdx, qword [rbx + 0x10]
mov byte [rsp + 0x40], al
cmp rdx, qword [rbx + 0x18]
je 0x1800417c5
mov byte [rdx], al
inc qword [rbx + 0x10]
jmp 0x18004181b
lea r8, [rsp + 0x40]
lea rcx, [rbx + 8]
call fcn.180058810
jmp 0x18004181b
sub rdx, r8
mov dword [rsp + 0x40], edi
mov r8d, 0x40
lea r9, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8, qword [rbx + 0x20]
mov edx, esi
mov rcx, qword [rbx]
movzx r8d, byte [r8 + rbp]
call fcn.18012c3d0
mov rdx, qword [rbx + 0x28]
lea r9, [rsp + 0x40]
sub rdx, qword [rbx + 0x20]
mov r8d, dword [rsp + 0x40]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rdx, qword [rbx + 0x28]
inc esi
mov r8, qword [rbx + 0x20]
mov rcx, rdx
sub rcx, r8
movsxd rax, esi
inc rbp
cmp rax, rcx
jb 0x1800417a0
mov r14, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x28
pop r15
pop rbx
ret