Function at 0x140212566
Capabilities:
Create process on windows
Impersonate user

Disassembly:
jmp 0x1403cb320
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2f0
lea rdi, [rsp + 0x60]
mov ecx, 0xa4
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x300]
mov qword [rsp + 0x98], 0
mov dword [rsp + 0xc0], 0x68
lea rax, [rsp + 0xc8]
mov rdi, rax
xor eax, eax
mov ecx, 0x60
rep stosb byte [rdi], al
mov byte [rsp + 0x134], 0
mov eax, dword [rsp + 0x308]
and eax, 0x1000
test eax, eax
je 0x1403cb3b1
mov eax, dword [rsp + 0x308]
and eax, 0x2000
test eax, eax
je 0x1403cb3b1
mov eax, 0xc00000f0
jmp 0x1403cbc8c
mov rax, qword [rsp + 0x300]
cmp qword [rax], 0
jne 0x1403cb3d8
mov rax, qword [rsp + 0x300]
cmp qword [rax + 8], 0
jne 0x1403cb3d8
mov eax, 0xc0000030
jmp 0x1403cbc8c
mov dword [rsp + 0xfc], 1
mov eax, 1
mov word [rsp + 0x100], ax
mov rax, qword [rsp + 0x300]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0xd0], rax
mov eax, dword [rsp + 0x308]
and eax, 0x40000
test eax, eax
je 0x1403cb747
mov byte [rsp + 0x135], 1
mov eax, dword [rsp + 0x308]
and eax, 0x3000
test eax, eax
je 0x1403cb438
mov byte [rsp + 0x135], 0
mov eax, dword [rsp + 0x308]
and eax, 0x10000
test eax, eax
je 0x1403cb450
mov byte [rsp + 0x135], 0
mov eax, dword [rsp + 0x308]
and eax, 0x20000
test eax, eax
je 0x1403cb49b
mov dword [rsp + 0x144], 0xffffffff
lea rdx, [rsp + 0x144]
mov rcx, 0xffffffffffffffff
call fcn.140210b5d
mov rax, qword [rsp + 0x300]
mov ecx, dword [rsp + 0x144]
cmp dword [rax + 0x28], ecx
je 0x1403cb49b
mov byte [rsp + 0x135], 0
mov rax, qword [rsp + 0x300]
cmp dword [rax + 0x48], 0
je 0x1403cb4bf
mov rax, qword [rsp + 0x300]
cmp dword [rax + 0x48], 2
je 0x1403cb4bf
mov byte [rsp + 0x135], 0
movzx eax, byte [rsp + 0x135]
test eax, eax
je 0x1403cb747
mov qword [rsp + 0x158], 0
lea rax, [rsp + 0x168]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov dword [rsp + 0x194], 0
mov rax, qword [rsp + 0x300]
cmp dword [rax + 0x4c], 0
jne 0x1403cb517
mov rax, qword [rsp + 0x300]
mov dword [rax + 0x4c], 1
mov rax, qword [rsp + 0x300]
cmp qword [rax + 8], 0
je 0x1403cb53f
mov rax, qword [rsp + 0x300]
mov rcx, qword [rax + 8]
call sym.SystemInformer.exe_PhCreateString
mov qword [rsp + 0x158], rax
mov rax, qword [rsp + 0x300]
cmp qword [rax + 0x18], 0
jne 0x1403cb55f
mov eax, dword [rsp + 0x308]
or eax, 2
mov dword [rsp + 0x308], eax
mov r9d, 8
lea r8, [0x14078b260]
mov edx, dword [rsp + 0x308]
lea rcx, [rsp + 0x194]
call sym.SystemInformer.exe_PhMapFlags1
mov rcx, qword [rsp + 0x158]
call fcn.14020cf6c
lea rcx, [rsp + 0x168]
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0xc0]
mov qword [rsp + 0x48], rcx
mov rcx, qword [rsp + 0x300]
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x40], rcx
mov rcx, qword [rsp + 0x300]
mov rcx, qword [rcx + 0x18]
mov qword [rsp + 0x38], rcx
mov ecx, dword [rsp + 0x194]
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x300]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x300]
mov r9d, dword [rax + 0x4c]
mov rax, qword [rsp + 0x300]
mov r8, qword [rax + 0x40]
mov rax, qword [rsp + 0x300]
mov rdx, qword [rax + 0x30]
mov rax, qword [rsp + 0x300]
mov rcx, qword [rax + 0x38]
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
je 0x1403cb62d
mov dword [rsp + 0x60], 0
jmp 0x1403cb636
call fcn.1402107d9
mov dword [rsp + 0x60], eax
cmp qword [rsp + 0x158], 0
je 0x1403cb64f
mov rcx, qword [rsp + 0x158]
call sym.SystemInformer.exe_PhDereferenceObject
nop
cmp dword [rsp + 0x60], 0
jl 0x1403cb70a
cmp qword [rsp + 0x310], 0
je 0x1403cb694
mov ecx, dword [rsp + 0x178]
call fcn.14020e448
mov rcx, qword [rsp + 0x310]
mov qword [rcx], rax
mov ecx, dword [rsp + 0x17c]
call fcn.14020e448
mov rcx, qword [rsp + 0x310]
mov qword [rcx + 8], rax
cmp qword [rsp + 0x318], 0
je 0x1403cb6b4
mov rax, qword [rsp + 0x318]
mov rcx, qword [rsp + 0x168]
mov qword [rax], rcx
jmp 0x1403cb6ce
cmp qword [rsp + 0x168], 0
je 0x1403cb6ce
mov rcx, qword [rsp + 0x168]
call qword [sym.imp.ntdll.dll_NtClose]
nop
cmp qword [rsp + 0x320], 0
je 0x1403cb6ee
mov rax, qword [rsp + 0x320]
mov rcx, qword [rsp + 0x170]
mov qword [rax], rcx
jmp 0x1403cb708
cmp qword [rsp + 0x170], 0
je 0x1403cb708
mov rcx, qword [rsp + 0x170]
call qword [sym.imp.ntdll.dll_NtClose]
nop
jmp 0x1403cb73e
cmp qword [rsp + 0x168], 0
je 0x1403cb724
mov rcx, qword [rsp + 0x168]
call qword [sym.imp.ntdll.dll_NtClose]
nop
cmp qword [rsp + 0x170], 0
je 0x1403cb73e
mov rcx, qword [rsp + 0x170]
call qword [sym.imp.ntdll.dll_NtClose]
nop
mov eax, dword [rsp + 0x60]
jmp 0x1403cbc8c
mov eax, dword [rsp + 0x308]
and eax, 0x1000
test eax, eax
je 0x1403cb7e3
mov rax, qword [rsp + 0x300]
mov r8, qword [rax + 0x30]
mov edx, 0x1000
lea rcx, [rsp + 0x1b8]
call sym.SystemInformer.exe_PhOpenProcess
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jge 0x1403cb78d
mov eax, dword [rsp + 0x60]
jmp 0x1403cbc8c
lea r8, [rsp + 0x78]
mov edx, 0xf01ff
mov rcx, qword [rsp + 0x1b8]
call sym.SystemInformer.exe_PhOpenProcessToken
mov dword [rsp + 0x60], eax
mov rcx, qword [rsp + 0x1b8]
call qword [sym.imp.ntdll.dll_NtClose]
cmp dword [rsp + 0x60], 0
jge 0x1403cb7c6
mov eax, dword [rsp + 0x60]
jmp 0x1403cbc8c
mov eax, dword [rsp + 0x308]
and eax, 0x20000
test eax, eax
je 0x1403cb7de
mov byte [rsp + 0x134], 1
jmp 0x1403cb992
mov eax, dword [rsp + 0x308]
and eax, 0x2000
test eax, eax
je 0x1403cb87d
mov r8d, 0x18
xor edx, edx
lea rcx, [rsp + 0x1d8]
call fcn.1402118af
lea rax, [rsp + 0x204]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x18
lea r9, [rsp + 0x1d8]
mov r8d, 0xe
mov rax, qword [rsp + 0x300]
mov edx, dword [rax + 0x30]
xor ecx, ecx
call qword [sym.imp.WINSTA.dll_WinStationQueryInformationW]
movzx eax, al
test eax, eax
jne 0x1403cb853
call fcn.1402107d9
jmp 0x1403cbc8c
mov rax, qword [rsp + 0x1e8]
mov qword [rsp + 0x78], rax
mov eax, dword [rsp + 0x308]
and eax, 0x20000
test eax, eax
je 0x1403cb878
mov byte [rsp + 0x134], 1
jmp 0x1403cb992
mov rax, qword [rsp + 0x300]
cmp dword [rax + 0x48], 0
je 0x1403cb8a2
mov rax, qword [rsp + 0x300]
mov eax, dword [rax + 0x48]
mov dword [rsp + 0x214], eax
jmp 0x1403cb940
mov dword [rsp + 0x214], 2
mov r8b, 1
lea rdx, str.NT_AUTHORITY
mov rax, qword [rsp + 0x300]
mov rcx, qword [rax + 0x30]
call fcn.14020cc7e
movzx eax, al
test eax, eax
je 0x1403cb940
mov r8b, 1
lea rdx, str.SYSTEM
mov rax, qword [rsp + 0x300]
mov rcx, qword [rax + 0x38]
call fcn.14020cc7e
movzx eax, al
test eax, eax
jne 0x1403cb935
mov r8b, 1
lea rdx, str.LOCAL_SERVICE
mov rax, qword [rsp + 0x300]
mov rcx, qword [rax + 0x38]
call fcn.14020cc7e
movzx eax, al
test eax, eax
jne 0x1403cb935
mov r8b, 1
lea rdx, str.NETWORK_SERVICE
mov rax, qword [rsp + 0x300]
mov rcx, qword [rax + 0x38]
call fcn.14020cc7e
movzx eax, al
test eax, eax
je 0x1403cb940
mov dword [rsp + 0x214], 5
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x214]
mov rax, qword [rsp + 0x300]
mov r8, qword [rax + 0x40]
mov rax, qword [rsp + 0x300]
mov rdx, qword [rax + 0x30]
mov rax, qword [rsp + 0x300]
mov rcx, qword [rax + 0x38]
call qword [sym.imp.ADVAPI32.dll_LogonUserW]
test eax, eax
jne 0x1403cb992
call fcn.1402107d9
jmp 0x1403cbc8c
mov eax, dword [rsp + 0x308]
and eax, 0x10000
test eax, eax
je 0x1403cba29
lea rdx, [rsp + 0x228]
mov rcx, qword [rsp + 0x78]
call fcn.14020eb23
test eax, eax
jl 0x1403cba29
lea rax, [rsp + 0x264]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rsp + 0x244]
mov edx, 8
mov rcx, qword [rsp + 0x228]
call qword [sym.imp.ntdll.dll_NtQueryInformationToken]
test eax, eax
jl 0x1403cba1a
cmp dword [rsp + 0x244], 1
jne 0x1403cba1a
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ntdll.dll_NtClose]
mov rax, qword [rsp + 0x228]
mov qword [rsp + 0x78], rax
mov byte [rsp + 0x134], 0
jmp 0x1403cba29
mov rcx, qword [rsp + 0x228]
call qword [sym.imp.ntdll.dll_NtClose]
nop
movzx eax, byte [rsp + 0x134]
test eax, eax
je 0x1403cbadb
mov dword [rsp + 0x2a8], 0x30
mov qword [rsp + 0x2b0], 0
mov dword [rsp + 0x2c0], 0
mov qword [rsp + 0x2b8], 0
mov qword [rsp + 0x2c8], 0
mov qword [rsp + 0x2d0], 0
lea rax, [rsp + 0x288]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
xor r9d, r9d
lea r8, [rsp + 0x2a8]
mov edx, 0xf01ff
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ntdll.dll_NtDuplicateToken]
mov dword [rsp + 0x60], eax
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ntdll.dll_NtClose]
cmp dword [rsp + 0x60], 0
jge 0x1403cbace
mov eax, dword [rsp + 0x60]
jmp 0x1403cbc8c
mov rax, qword [rsp + 0x288]
mov qword [rsp + 0x78], rax
mov eax, dword [rsp + 0x308]
and eax, 0x20000
test eax, eax
je 0x1403cbb1f
mov rax, qword [rsp + 0x300]
mov edx, dword [rax + 0x28]
mov rcx, qword [rsp + 0x78]
call sym.SystemInformer.exe_PhSetTokenSessionId
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jge 0x1403cbb1f
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, dword [rsp + 0x60]
jmp 0x1403cbc8c
mov eax, dword [rsp + 0x308]
and eax, 0x80000
test eax, eax
je 0x1403cbb5a
mov dl, 1
mov rcx, qword [rsp + 0x78]
call fcn.140214244
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jge 0x1403cbb5a
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, dword [rsp + 0x60]
jmp 0x1403cbc8c
mov rax, qword [rsp + 0x300]
cmp qword [rax + 0x18], 0
jne 0x1403cbba6
call fcn.1402103e2
test rax, rax
je 0x1403cbba6
call fcn.1402103e2
xor r8d, r8d
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x98]
call rax
cmp qword [rsp + 0x98], 0
je 0x1403cbba6
mov eax, dword [rsp + 0x308]
or eax, 2
mov dword [rsp + 0x308], eax
mov rax, qword [rsp + 0x300]
cmp qword [rax + 0x18], 0
je 0x1403cbbcb
mov rax, qword [rsp + 0x300]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x2e8], rax
jmp 0x1403cbbdb
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x2e8], rax
mov rax, qword [rsp + 0x320]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x318]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x310]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x308]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x300]
mov r9, qword [rax + 0x10]
mov r8, qword [rsp + 0x2e8]
mov rax, qword [rsp + 0x300]
mov rdx, qword [rax + 8]
mov rax, qword [rsp + 0x300]
mov rcx, qword [rax]
call sym.SystemInformer.exe_PhCreateProcessWin32Ex
mov dword [rsp + 0x60], eax
call fcn.14020e7c2
test rax, rax
je 0x1403cbc7d
cmp qword [rsp + 0x98], 0
je 0x1403cbc7d
call fcn.14020e7c2
mov rcx, qword [rsp + 0x98]
call rax
nop
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, dword [rsp + 0x60]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x14078e4c0]
call fcn.1402124fd
mov rax, rdi
add rsp, 0x2f0
pop rdi
ret