Function at 0x1400164a1
Capabilities:
Create process on windows
Spoof parent pid

Disassembly:
jmp 0x14003b9e0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x2c8
lea rbp, [rsp + 0x60]
mov rdi, rsp
mov ecx, 0xb2
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x2e8]
mov rax, qword [0x140064bf8]
xor rax, rbp
mov qword [rbp + 0x258], rax
lea rcx, [0x14006d245]
call fcn.140016276
mov dword [rbp + 4], 0
mov eax, dword [rbp + 0x298]
bts eax, 0x1a
or eax, 0x20
mov dword [rbp + 0x24], eax
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x168], 0
mov qword [rbp + 0x188], 0
mov ecx, 0x80
call fcn.14001614a
mov qword [rbp + 0x148], rax
cmp qword [rbp + 0x148], 0
jne 0x14003ba8d
xor eax, eax
jmp 0x14003bcc5
mov edx, reloc.OLEAUT32.dll_SafeArrayGetElement
lea rcx, [rbp + 0x118]
call fcn.140016c2b
mov edx, 0x70
lea rcx, [rbp + 0x90]
call fcn.140016c2b
mov rcx, qword [rbp + 0x280]
call fcn.14001680c
lea rax, [rax + rax + 2]
mov qword [rbp + 0x68], rax
mov rcx, qword [rbp + 0x68]
call fcn.14001687f
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
je 0x14003bcb1
mov rdx, qword [rbp + 0x280]
mov rcx, qword [rbp + 0x48]
call fcn.14001616d
mov dword [rbp + 0x90], 0x70
mov qword [rbp + 0x68], 0x30
cmp qword [rbp + 0x68], 0x400
jbe 0x14003bb0d
jmp 0x14003bca8
mov rcx, qword [rbp + 0x68]
call fcn.14001687f
mov qword [rbp + 0xf8], rax
cmp qword [rbp + 0xf8], 0
je 0x14003bc99
lea r9, [rbp + 0x68]
xor r8d, r8d
mov edx, 1
mov rcx, qword [rbp + 0xf8]
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
test eax, eax
je 0x14003bc8d
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 8
lea r9, [rbp + 0x148]
mov r8d, 0x20000
xor edx, edx
mov rcx, qword [rbp + 0xf8]
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
test eax, eax
je 0x14003bc76
lea r8, [rbp + 0x168]
mov edx, reloc.Cabinet.dll_FCIAddFile
mov rcx, qword [rbp + 0x148]
call qword [sym.imp.ntdll.dll_NtOpenProcessToken]
test eax, eax
jl 0x14003bc76
mov dword [rbp + 0xcc], 1
movzx eax, word [rbp + 0x2a0]
mov word [rbp + 0xd0], ax
mov eax, dword [rbp + 0x24]
bts eax, 0x13
lea rcx, [rbp + 0x118]
mov qword [rsp + 0x50], rcx
lea rcx, [rbp + 0x90]
mov qword [rsp + 0x48], rcx
mov rcx, qword [rbp + 0x288]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rbp + 0x48]
mov rdx, qword [rbp + 0x290]
mov rcx, qword [rbp + 0x168]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x14003bc69
mov rax, qword [rbp + 0x118]
mov qword [rbp + 0x188], rax
cmp qword [rbp + 0x2a8], 0
je 0x14003bc5c
mov rax, qword [rbp + 0x2a8]
mov rcx, qword [rbp + 0x120]
mov qword [rax], rcx
jmp 0x14003bc69
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x168]
call qword [sym.imp.ntdll.dll_NtClose]
cmp qword [rbp + 0xf8], 0
je 0x14003bc8d
mov rcx, qword [rbp + 0xf8]
call qword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
mov rcx, qword [rbp + 0xf8]
call fcn.140016032
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x14003bafe
mov rcx, qword [rbp + 0x48]
call fcn.140016032
mov rcx, qword [rbp + 0x148]
call qword [sym.imp.ntdll.dll_NtClose]
mov rax, qword [rbp + 0x188]
mov rdi, rax
lea rcx, [rbp - 0x60]
lea rdx, [0x140053a58]
call fcn.140016b90
mov rax, rdi
mov rcx, qword [rbp + 0x258]
xor rcx, rbp
call fcn.14001633e
lea rsp, [rbp + 0x268]
pop rdi
pop rbp
ret