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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0x100
lea rcx, [rbp - 0x21]
mov r13, r9
mov r12, rdx
call fcn.14006c044
lea rcx, [rbp - 0x21]
call fcn.14006c9d4
xor ebx, ebx
test al, al
je 0x14006c5d9
lea r15d, [rbx + 0x38]
mov qword [rsp + 0x60], rbx
mov r8d, r15d
mov qword [rbp - 0x71], rbx
xor edx, edx
mov qword [rbp - 0x61], rbx
lea rcx, [rbp - 0x59]
mov qword [rsp + 0x68], rbx
mov esi, ebx
mov qword [rbp - 0x69], rbx
mov r14d, ebx
mov edi, ebx
call fcn.140026550
mov eax, dword [rbp + 0x67]
mov r8, r13
mov rdx, qword [rbp + 0x57]
and eax, 1
mov dword [rbp + 0x6f], eax
mov rcx, r12
mov dword [rbp - 0x59], r15d
mov r15d, dword [rbp + 0x67]
and r15d, 2
mov qword [rbp - 0x51], r12
mov eax, r15d
neg eax
lea rax, [rsp + 0x60]
sbb r9d, r9d
mov qword [rsp + 0x28], rax
neg r9d
mov dword [rsp + 0x20], ebx
add r9d, 2
call qword [sym.imp.ADVAPI32.dll_LogonUserW]
test eax, eax
je 0x14006c553
test r15d, r15d
je 0x14006c368
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea r9d, [rbx + 2]
xor r8d, r8d
mov dword [rsp + 0x20], 1
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x14006c553
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x60], rax
xor edx, edx
lea rcx, str.winsta0
mov r8d, 0x60000
call qword [sym.imp.USER32.dll_OpenWindowStationW]
mov rsi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x14006c553
call qword [sym.imp.USER32.dll_GetProcessWindowStation]
mov rcx, rsi
mov qword [rbp - 0x61], rax
call qword [sym.imp.USER32.dll_SetProcessWindowStation]
test eax, eax
je 0x14006c553
mov r9d, 0x60081
lea rcx, str.default
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_OpenDesktopW]
mov r14, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x14006c553
mov rdx, qword [rsp + 0x60]
lea r8, [rbp - 0x71]
call fcn.14006caa8
mov rdi, qword [rbp - 0x71]
test al, al
je 0x14006c553
lea r9, [rsp + 0x70]
mov word [rsp + 0x70], 0xb00
mov r8, rdi
mov dword [rsp + 0x74], 0xf0000000
mov rdx, rsi
mov word [rbp - 0x7d], 0x400
mov dword [rbp - 0x79], 0xf037f
call fcn.14006bc48
test al, al
je 0x14006c553
lea r9, [rsp + 0x70]
mov word [rsp + 0x70], bx
mov r8, rdi
mov dword [rsp + 0x74], 0xf01ff
mov rdx, r14
call fcn.14006b99c
test al, al
je 0x14006c553
mov r15, qword [rbp + 0x8f]
lea rcx, str.winsta0default
mov r13, qword [rbp + 0x77]
mov r12d, dword [r15 + 0x3c]
and r12d, 0x100
mov qword [r15 + 0x10], rcx
test r13, r13
je 0x14006c4a2
mov rcx, r13
call fcn.1400272dc
lea rcx, [rax + 1]
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140024f08
mov rdx, r13
mov qword [rsp + 0x68], rax
mov rcx, rax
call fcn.140027300
cmp byte [rbp + 0x6f], bl
je 0x14006c4be
mov rcx, qword [rsp + 0x60]
lea rdx, [rbp - 0x59]
call qword [sym.imp.USERENV.dll_LoadUserProfileW]
test eax, eax
je 0x14006c54c
test byte [rbp + 0x67], 4
jne 0x14006c4da
mov rdx, qword [rsp + 0x60]
lea rcx, [rbp - 0x69]
xor r8d, r8d
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x14006c54c
mov rax, qword [rbp + 0x87]
xor r9d, r9d
mov ecx, dword [rbp + 0x7f]
xor edx, edx
mov r13, qword [rbp + 0x97]
bts ecx, 0xa
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], rax
mov rax, qword [rbp - 0x69]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ecx
mov rcx, qword [rsp + 0x60]
mov dword [rsp + 0x28], r12d
mov r12, qword [rsp + 0x68]
mov r8, r12
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x14006c556
cmp byte [rbp + 0x6f], bl
je 0x14006c547
lea r9, [rsp + 0x60]
mov rdx, r13
lea r8, [rbp - 0x29]
call fcn.14006cb94
mov r15b, 1
jmp 0x14006c56d
mov r12, qword [rsp + 0x68]
jmp 0x14006c556
mov r12, rbx
mov rdx, qword [rbp - 0x29]
test rdx, rdx
je 0x14006c56a
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.USERENV.dll_UnloadUserProfile]
mov r15b, bl
test rdi, rdi
je 0x14006c586
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rsi, rsi
je 0x14006c594
mov rcx, rsi
call qword [sym.imp.USER32.dll_CloseWindowStation]
test r14, r14
je 0x14006c5a2
mov rcx, r14
call qword [sym.imp.USER32.dll_CloseDesktop]
mov rax, qword [rbp - 0x61]
test rax, rax
je 0x14006c5b4
mov rcx, rax
call qword [sym.imp.USER32.dll_SetProcessWindowStation]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r12
call fcn.140024ec4
mov rcx, qword [rbp - 0x69]
test rcx, rcx
je 0x14006c5d6
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov bl, r15b
lea rcx, [rbp - 0x21]
call fcn.14006c0b0
mov al, bl
mov rbx, qword [rsp + 0x148]
add rsp, 0x100
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret