Function at 0x140001250
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
mov eax, 0x4cd98
call fcn.140002570
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x4cd80], rax
lea rcx, [0x140005cc0]
call fcn.1400011a0
lea rdx, [0x140005cc0]
lea rcx, str.shellcode:_s
call fcn.140001060
cmp dword [rsp + 0x4cda0], 4
je 0x1400012cc
lea rcx, [0x140005634]
call fcn.140001060
lea rcx, str._ERROR_:_DLL__Exported_Function_or_PID_is_missing__n
call fcn.140001060
lea rcx, str.___Demo_Usage_:_ThreadlessInject_C.exe_kernelbase.dll_CreateEventW_1000_n_n
call fcn.140001060
xor eax, eax
jmp 0x140001763
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x4cda8]
mov rax, qword [rcx + rax]
mov qword [rsp + 0x60], rax
mov eax, 8
imul rax, rax, 2
mov rcx, qword [rsp + 0x4cda8]
mov rax, qword [rcx + rax]
mov qword [rsp + 0x38], rax
mov eax, 8
imul rax, rax, 3
mov rcx, qword [rsp + 0x4cda8]
mov rcx, qword [rcx + rax]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x78], 0
mov dword [rsp + 0x80], 0
mov rdx, qword [rsp + 0x60]
lea rcx, str._n___Loading:__s_n
call fcn.140001060
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x4cda8]
mov rcx, qword [rcx + rax]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14000138b
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x4cda8]
mov rcx, qword [rcx + rax]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1400013ae
mov rdx, qword [rsp + 0x60]
lea rcx, str._ERROR__Could_not_load__s_n
call fcn.140001060
mov eax, 0xffffff9d
jmp 0x140001763
mov rdx, qword [rsp + 0x60]
lea rcx, str._____Successfully_loaded__s_n_n
call fcn.140001060
mov rdx, qword [rsp + 0x38]
lea rcx, str.___Getting_the_address_of__s_n
call fcn.140001060
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x14000140d
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x38]
lea rcx, str.___ERROR__Could_not_find__s_in__s_n
call fcn.140001060
mov eax, 0xffffff9d
jmp 0x140001763
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
lea rcx, str.______s_Address:_0x_p_n_n
call fcn.140001060
mov edx, dword [rsp + 0x30]
lea rcx, str.___Trying_to_open_process_with_pid:__d_n
call fcn.140001060
mov r8d, dword [rsp + 0x30]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x14000146c
mov edx, dword [rsp + 0x30]
lea rcx, str.___ERROR__Could_not_open_process_with_pid__d_n
call fcn.140001060
mov eax, 0xffffff9d
jmp 0x140001763
mov edx, dword [rsp + 0x30]
lea rcx, str._____Successfully_opened_process_with_pid__d_n_n
call fcn.140001060
lea rcx, str.___Trying_to_find_memory_holes_n
call fcn.140001060
mov r8d, 0x4ccee
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
call fcn.140001780
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x1400014c0
lea rcx, str.___Error__Could_not_find_memory_hole_n
call fcn.140001060
mov eax, 0xffffff9d
jmp 0x140001763
mov rdx, qword [rsp + 0x38]
lea rcx, str.___Reading_bytes_from_the_memory_address_of__s_n
call fcn.140001060
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0x70], rax
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x40]
lea rcx, str._____Address__p_has_value___lld_n_n
call fcn.140001060
lea rcx, str.___Generating_hook
call fcn.140001060
mov rcx, qword [rsp + 0x70]
call fcn.140001850
mov rdx, qword [rsp + 0x38]
lea rcx, str.___Changing_the_memory_protection_of__s_to_RWX_n
call fcn.140001060
mov dword [rsp + 0x7c], 0
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x20], rax
mov r9d, 0x40
mov r8d, 8
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x140001563
lea rcx, str.___Error__Could_not_change_the_memory_protection_settings_n
call fcn.140001060
mov eax, 0xffffff9d
jmp 0x140001763
mov rdx, qword [rsp + 0x38]
lea rcx, str._____Successfully_changed_the_memory_protection_settings_of__s_to_RWX_n
call fcn.140001060
lea rcx, str.___Trying_to_inject_the_call_assembly_for_the_exported_function_n
call fcn.140001060
mov rax, qword [rsp + 0x40]
add rax, 5
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x68], eax
mov byte [rsp + 0x84], 0xe8
mov byte [rsp + 0x85], 0
mov byte [rsp + 0x86], 0
mov byte [rsp + 0x87], 0
mov byte [rsp + 0x88], 0
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x85], eax
mov qword [rsp + 0x20], 0
mov r9d, 0x40
mov r8d, 5
lea rdx, [rsp + 0x84]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 5
lea r8, [rsp + 0x84]
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14000163d
mov rdx, qword [rsp + 0x38]
lea rcx, str.___Error__Could_redirect__s_n
call fcn.140001060
mov eax, 0xffffff9d
jmp 0x140001763
mov rdx, qword [rsp + 0x38]
lea rcx, str._____Successfully_modified__s_function_to_call_the_custom_shellcode_n
call fcn.140001060
mov qword [rsp + 0x20], 0x4ccb6
lea r9, [0x140005cc0]
mov r8d, 0x38
lea rdx, [0x140005080]
lea rcx, [rsp + 0x90]
call fcn.1400010e0
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x20], rax
mov r9d, 4
mov r8d, 0x4ccee
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x1400016bd
mov rdx, qword [rsp + 0x50]
lea rcx, str._Error__Modifying_the_memory_protection_of_the_memory_hole:__p_before_write_n
call fcn.140001060
mov eax, 0xffffff9d
jmp 0x140001763
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 0x4ccee
lea r8, [rsp + 0x90]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140001704
mov rdx, qword [rsp + 0x50]
lea rcx, str._Error__Writing_to_the_memory_hole_address:__p_n
call fcn.140001060
mov eax, 0xffffff9d
jmp 0x140001763
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x20], rax
mov r9d, 0x20
mov r8d, 0x4ccee
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x140001746
mov rdx, qword [rsp + 0x50]
lea rcx, str._Error__Modifying_the_memory_protection_of_the_memory_hole:__p_after_write_n
call fcn.140001060
mov eax, 0xffffff9d
jmp 0x140001763
lea rcx, str._n___Injection_successful__wait_for_your_trigger_function__n
call fcn.140001060
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140001761
xor eax, eax
mov rcx, qword [rsp + 0x4cd80]
xor rcx, rsp
call fcn.140001890
add rsp, 0x4cd98
ret