Function at 0x14001154b
Capabilities:
Create thread
Inject thread

Disassembly:
jmp 0x1400170b0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x298
lea rbp, [rsp + 0x40]
mov rax, qword [0x140026040]
xor rax, rbp
mov qword [rbp + 0x248], rax
mov r8d, dword [rbp + 0x270]
xor edx, edx
mov ecx, 0x2a
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x1400171b8
lea rdx, str.Error:_Unable_to_open_process_with_ID
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400110c8
mov qword [rbp + 0x218], rax
mov edx, dword [rbp + 0x270]
mov rcx, qword [rbp + 0x218]
call qword [sym.imp.MSVCP140D.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_int____ptr64]
lea rdx, [0x140021cf4]
mov rcx, rax
call fcn.1400110c8
mov qword [rbp + 0x220], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp + 0x128]
call fcn.140011136
mov qword [rbp + 0x228], rax
mov rax, qword [rbp + 0x228]
mov qword [rbp + 0x230], rax
mov rax, qword [rbp + 0x230]
mov qword [rbp + 0x238], rax
mov rdx, qword [rbp + 0x238]
mov rcx, qword [rbp + 0x220]
call fcn.140011613
mov qword [rbp + 0x240], rax
lea rdx, [0x140011055]
mov rcx, qword [rbp + 0x240]
call qword [sym.imp.MSVCP140D.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]
nop
lea rcx, [rbp + 0x128]
call fcn.14001114a
nop
xor al, al
jmp 0x1400174d2
mov rcx, qword [rbp + 0x278]
call fcn.140011500
inc rax
mov dword [rsp + 0x20], 4
mov r9d, 0x1000
mov r8, rax
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x140017292
lea rdx, str.Error:_Unable_to_allocate_memory_in_target_process_:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400110c8
mov qword [rbp + 0x218], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp + 0x168]
call fcn.140011136
mov qword [rbp + 0x220], rax
mov rax, qword [rbp + 0x220]
mov qword [rbp + 0x228], rax
mov rax, qword [rbp + 0x228]
mov qword [rbp + 0x230], rax
mov rdx, qword [rbp + 0x230]
mov rcx, qword [rbp + 0x218]
call fcn.140011613
mov qword [rbp + 0x238], rax
lea rdx, [0x140011055]
mov rcx, qword [rbp + 0x238]
call qword [sym.imp.MSVCP140D.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]
nop
lea rcx, [rbp + 0x168]
call fcn.14001114a
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
xor al, al
jmp 0x1400174d2
mov rcx, qword [rbp + 0x278]
call fcn.140011500
inc rax
mov qword [rbp + 0x218], rax
mov rcx, qword [rbp + 0x278]
call fcn.1400110aa
mov qword [rbp + 0x220], rax
mov qword [rsp + 0x20], 0
mov r9, qword [rbp + 0x218]
mov r8, qword [rbp + 0x220]
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14001739f
lea rdx, str.Unable_to_write_to_target_process_memory_:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400110c8
mov qword [rbp + 0x218], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp + 0x1a8]
call fcn.140011136
mov qword [rbp + 0x220], rax
mov rax, qword [rbp + 0x220]
mov qword [rbp + 0x228], rax
mov rax, qword [rbp + 0x228]
mov qword [rbp + 0x230], rax
mov rdx, qword [rbp + 0x230]
mov rcx, qword [rbp + 0x218]
call fcn.140011613
mov qword [rbp + 0x238], rax
lea rdx, [0x140011055]
mov rcx, qword [rbp + 0x238]
call qword [sym.imp.MSVCP140D.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]
nop
lea rcx, [rbp + 0x1a8]
call fcn.14001114a
nop
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
xor al, al
jmp 0x1400174d2
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rbp + 0x28]
mov qword [rsp + 0x20], rax
mov r9, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
jne 0x140017492
lea rdx, str.Unable_to_create_remote_thread_in_target_process_:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400110c8
mov qword [rbp + 0x218], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp + 0x1e8]
call fcn.140011136
mov qword [rbp + 0x220], rax
mov rax, qword [rbp + 0x220]
mov qword [rbp + 0x228], rax
mov rax, qword [rbp + 0x228]
mov qword [rbp + 0x230], rax
mov rdx, qword [rbp + 0x230]
mov rcx, qword [rbp + 0x218]
call fcn.140011613
mov qword [rbp + 0x238], rax
lea rdx, [0x140011055]
mov rcx, qword [rbp + 0x238]
call qword [sym.imp.MSVCP140D.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]
nop
lea rcx, [rbp + 0x1e8]
call fcn.14001114a
nop
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
xor al, al
jmp 0x1400174d2
mov edx, 0xffffffff
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
nop
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov al, 1
mov rcx, qword [rbp + 0x248]
xor rcx, rbp
call fcn.140011361
lea rsp, [rbp + 0x258]
pop rdi
pop rbp
ret