Function at 0x14003a370
Capabilities:
Create process on windows
Create process suspended
Impersonate user

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x1a0
mov qword [rsp + 0x78], 0
mov dword [rsp + 0x130], 0x68
lea rax, [rsp + 0x138]
mov rdi, rax
xor eax, eax
mov ecx, 0x60
rep stosb byte [rdi], al
mov byte [rsp + 0x61], 0
lea rcx, [0x140134218]
call fcn.14000c1b0
movzx eax, al
test eax, eax
je 0x14003a459
lea rcx, [0x140113670]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0xb0], rax
lea rdx, [0x140113688]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14013bb20], rax
lea rcx, str.userenv.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0xa8], rax
lea rdx, str.CreateEnvironmentBlock
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14013bb18], rax
lea rdx, str.DestroyEnvironmentBlock
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14013bb28], rax
lea rcx, [0x140134218]
call sym.ProcessHacker.exe_PhfEndInitOnce
mov eax, dword [rsp + 0x1b8]
and eax, 0x1000
test eax, eax
je 0x14003a483
mov eax, dword [rsp + 0x1b8]
and eax, 0x2000
test eax, eax
je 0x14003a483
mov eax, 0xc00000f0
jmp 0x14003abb4
mov rax, qword [rsp + 0x1b0]
cmp qword [rax], 0
jne 0x14003a4aa
mov rax, qword [rsp + 0x1b0]
cmp qword [rax + 8], 0
jne 0x14003a4aa
mov eax, 0xc0000030
jmp 0x14003abb4
mov rax, qword [rsp + 0x1b0]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x140], rax
mov eax, dword [rsp + 0x1b8]
and eax, 0x40000
test eax, eax
je 0x14003a6d6
mov byte [rsp + 0x60], 1
mov eax, dword [rsp + 0x1b8]
and eax, 0x3000
test eax, eax
je 0x14003a4ec
mov byte [rsp + 0x60], 0
mov eax, dword [rsp + 0x1b8]
and eax, 0x10000
test eax, eax
je 0x14003a501
mov byte [rsp + 0x60], 0
mov eax, dword [rsp + 0x1b8]
and eax, 0x20000
test eax, eax
je 0x14003a532
call fcn.140012650
mov rax, qword [rax + 0x60]
mov rcx, qword [rsp + 0x1b0]
mov eax, dword [rax + 0x2c0]
cmp dword [rcx + 0x28], eax
je 0x14003a532
mov byte [rsp + 0x60], 0
mov rax, qword [rsp + 0x1b0]
cmp dword [rax + 0x48], 0
je 0x14003a553
mov rax, qword [rsp + 0x1b0]
cmp dword [rax + 0x48], 2
je 0x14003a553
mov byte [rsp + 0x60], 0
movzx eax, byte [rsp + 0x60]
test eax, eax
je 0x14003a6d6
mov rax, qword [rsp + 0x1b0]
cmp qword [rax + 8], 0
je 0x14003a58a
mov rax, qword [rsp + 0x1b0]
mov rcx, qword [rax + 8]
call sym.ProcessHacker.exe_PhCreateString
mov qword [rsp + 0x80], rax
jmp 0x14003a596
mov qword [rsp + 0x80], 0
mov rax, qword [rsp + 0x1b0]
cmp qword [rax + 0x18], 0
jne 0x14003a5b6
mov eax, dword [rsp + 0x1b8]
or eax, 2
mov dword [rsp + 0x1b8], eax
mov dword [rsp + 0x74], 0
mov r9d, 4
lea r8, [0x14010e098]
mov edx, dword [rsp + 0x1b8]
lea rcx, [rsp + 0x74]
call sym.ProcessHacker.exe_PhMapFlags1
mov rcx, qword [rsp + 0x80]
call fcn.1400360e0
lea rcx, [rsp + 0x100]
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0x130]
mov qword [rsp + 0x48], rcx
mov rcx, qword [rsp + 0x1b0]
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x40], rcx
mov rcx, qword [rsp + 0x1b0]
mov rcx, qword [rcx + 0x18]
mov qword [rsp + 0x38], rcx
mov ecx, dword [rsp + 0x74]
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x1b0]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov r9d, 1
mov rax, qword [rsp + 0x1b0]
mov r8, qword [rax + 0x40]
mov rax, qword [rsp + 0x1b0]
mov rdx, qword [rax + 0x30]
mov rax, qword [rsp + 0x1b0]
mov rcx, qword [rax + 0x38]
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
je 0x14003a680
mov dword [rsp + 0x64], 0
jmp 0x14003a689
call fcn.140021c20
mov dword [rsp + 0x64], eax
cmp qword [rsp + 0x80], 0
je 0x14003a6a1
mov rcx, qword [rsp + 0x80]
call sym.ProcessHacker.exe_PhDereferenceObject
cmp dword [rsp + 0x64], 0
jl 0x14003a6cd
mov r9, qword [rsp + 0x1d0]
mov r8, qword [rsp + 0x1c8]
mov rdx, qword [rsp + 0x1c0]
lea rcx, [rsp + 0x100]
call fcn.14003a060
mov eax, dword [rsp + 0x64]
jmp 0x14003abb4
mov eax, dword [rsp + 0x1b8]
and eax, 0x1000
test eax, eax
je 0x14003a770
mov rax, qword [rsp + 0x1b0]
mov r8, qword [rax + 0x30]
mov edx, dword [sym.ProcessHacker.exe_ProcessQueryAccess]
lea rcx, [rsp + 0xa0]
call sym.ProcessHacker.exe_PhOpenProcess
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0
jge 0x14003a71d
mov eax, dword [rsp + 0x64]
jmp 0x14003abb4
mov r8, qword [rsp + 0xa0]
mov edx, 0xf01ff
lea rcx, [rsp + 0x68]
call sym.ProcessHacker.exe_PhOpenProcessToken
mov dword [rsp + 0x64], eax
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ntdll.dll_NtClose]
cmp dword [rsp + 0x64], 0
jge 0x14003a756
mov eax, dword [rsp + 0x64]
jmp 0x14003abb4
mov eax, dword [rsp + 0x1b8]
and eax, 0x20000
test eax, eax
je 0x14003a76b
mov byte [rsp + 0x61], 1
jmp 0x14003a912
mov eax, dword [rsp + 0x1b8]
and eax, 0x2000
test eax, eax
je 0x14003a806
cmp qword [0x14013bb20], 0
jne 0x14003a798
mov eax, 0xc000007a
jmp 0x14003abb4
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x18
lea r9, [rsp + 0x118]
mov r8d, 0xe
mov rax, qword [rsp + 0x1b0]
mov edx, dword [rax + 0x30]
xor ecx, ecx
call qword [0x14013bb20]
movzx eax, al
test eax, eax
jne 0x14003a7df
call fcn.140021c20
jmp 0x14003abb4
mov rax, qword [rsp + 0x128]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x1b8]
and eax, 0x20000
test eax, eax
je 0x14003a801
mov byte [rsp + 0x61], 1
jmp 0x14003a912
mov rax, qword [rsp + 0x1b0]
cmp dword [rax + 0x48], 0
je 0x14003a828
mov rax, qword [rsp + 0x1b0]
mov eax, dword [rax + 0x48]
mov dword [rsp + 0x70], eax
jmp 0x14003a8c3
mov dword [rsp + 0x70], 2
lea rdx, str.NT_AUTHORITY
mov rax, qword [rsp + 0x1b0]
mov rcx, qword [rax + 0x30]
call fcn.1400ffe28
test eax, eax
jne 0x14003a8c3
lea rdx, str.SYSTEM
mov rax, qword [rsp + 0x1b0]
mov rcx, qword [rax + 0x38]
call fcn.1400ffe28
test eax, eax
jne 0x14003a883
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x3c
jb 0x14003a87b
mov dword [rsp + 0x70], 5
jmp 0x14003a883
mov dword [rsp + 0x70], 9
lea rdx, str.LOCAL_SERVICE
mov rax, qword [rsp + 0x1b0]
mov rcx, qword [rax + 0x38]
call fcn.1400ffe28
test eax, eax
je 0x14003a8bb
lea rdx, str.NETWORK_SERVICE
mov rax, qword [rsp + 0x1b0]
mov rcx, qword [rax + 0x38]
call fcn.1400ffe28
test eax, eax
jne 0x14003a8c3
mov dword [rsp + 0x70], 5
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x70]
mov rax, qword [rsp + 0x1b0]
mov r8, qword [rax + 0x40]
mov rax, qword [rsp + 0x1b0]
mov rdx, qword [rax + 0x30]
mov rax, qword [rsp + 0x1b0]
mov rcx, qword [rax + 0x38]
call qword [sym.imp.ADVAPI32.dll_LogonUserW]
test eax, eax
jne 0x14003a912
call fcn.140021c20
jmp 0x14003abb4
mov eax, dword [rsp + 0x1b8]
and eax, 0x10000
test eax, eax
je 0x14003a9a1
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x68]
call fcn.140036100
test eax, eax
jl 0x14003a9a1
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rsp + 0x88]
mov edx, 8
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ntdll.dll_NtQueryInformationToken]
test eax, eax
jl 0x14003a993
cmp dword [rsp + 0x88], 1
jne 0x14003a993
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntdll.dll_NtClose]
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x68], rax
mov byte [rsp + 0x61], 0
jmp 0x14003a9a1
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ntdll.dll_NtClose]
movzx eax, byte [rsp + 0x61]
test eax, eax
je 0x14003aa50
mov dword [rsp + 0xd0], 0x30
mov qword [rsp + 0xd8], 0
mov dword [rsp + 0xe8], 0
mov qword [rsp + 0xe0], 0
mov qword [rsp + 0xf0], 0
mov qword [rsp + 0xf8], 0
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
xor r9d, r9d
lea r8, [rsp + 0xd0]
mov edx, 0xf01ff
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntdll.dll_NtDuplicateToken]
mov dword [rsp + 0x64], eax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntdll.dll_NtClose]
cmp dword [rsp + 0x64], 0
jge 0x14003aa43
mov eax, dword [rsp + 0x64]
jmp 0x14003abb4
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x1b8]
and eax, 0x20000
test eax, eax
je 0x14003aa94
mov rax, qword [rsp + 0x1b0]
mov edx, dword [rax + 0x28]
mov rcx, qword [rsp + 0x68]
call sym.ProcessHacker.exe_PhSetTokenSessionId
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0
jge 0x14003aa94
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, dword [rsp + 0x64]
jmp 0x14003abb4
mov rax, qword [rsp + 0x1b0]
cmp qword [rax + 0x18], 0
jne 0x14003aad9
cmp qword [0x14013bb18], 0
je 0x14003aad9
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x78]
call qword [0x14013bb18]
cmp qword [rsp + 0x78], 0
je 0x14003aad9
mov eax, dword [rsp + 0x1b8]
or eax, 2
mov dword [rsp + 0x1b8], eax
mov rax, qword [rsp + 0x1b0]
cmp qword [rax + 0x18], 0
je 0x14003aafe
mov rax, qword [rsp + 0x1b0]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x98], rax
jmp 0x14003ab0b
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x1d0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x1c8]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x1c0]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x1b8]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x130]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x1b0]
mov r9, qword [rax + 0x10]
mov r8, qword [rsp + 0x98]
mov rax, qword [rsp + 0x1b0]
mov rdx, qword [rax + 8]
mov rax, qword [rsp + 0x1b0]
mov rcx, qword [rax]
call sym.ProcessHacker.exe_PhCreateProcessWin32Ex
mov dword [rsp + 0x64], eax
cmp qword [rsp + 0x78], 0
je 0x14003aba5
cmp qword [0x14013bb28], 0
je 0x14003aba5
mov rcx, qword [rsp + 0x78]
call qword [0x14013bb28]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, dword [rsp + 0x64]
add rsp, 0x1a0
pop rdi
ret