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

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 0x20], r9d
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0xe0
xor eax, eax
mov rbx, r8
mov rsi, rcx
mov rdi, rdx
lea rcx, [rbp - 0x31]
lea r8d, [rax + 0x38]
xor edx, edx
mov r15d, r9d
mov byte [rbp + 0x47], al
mov qword [rbp - 0x71], rax
mov r12d, eax
mov r14d, eax
mov r13d, eax
mov qword [rbp - 0x51], rax
mov qword [rbp - 0x39], rax
mov qword [rbp - 0x79], rax
mov qword [rbp - 0x41], rax
call fcn.14006fdf0
lea edx, [r13 + 1]
mov ecx, r13d
mov r8, rbx
test dl, r15b
movzx eax, cl
mov dword [rbp - 0x31], gethostname
cmovne eax, edx
and r15d, 2
mov rdx, rdi
mov dword [rbp - 0x49], eax
mov eax, r15d
mov qword [rbp - 0x29], rsi
neg eax
lea rax, [rbp - 0x71]
sbb r9d, r9d
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
neg r9d
mov rcx, rsi
add r9d, 2
call qword [sym.imp.ADVAPI32.dll_LogonUserW]
xor esi, esi
test eax, eax
je 0x140002d14
test r15d, r15d
je 0x140002b28
mov rcx, qword [rbp - 0x71]
lea rax, [rbp - 0x69]
lea r9d, [r13 + 2]
mov qword [rsp + 0x28], rax
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x140002d14
mov rcx, qword [rbp - 0x71]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r11, qword [rbp - 0x69]
mov qword [rbp - 0x71], r11
lea rcx, str.winsta0
xor edx, edx
mov r8d, 0x60000
call qword [sym.imp.USER32.dll_OpenWindowStationW]
mov r12, rax
test rax, rax
je 0x140002d14
or rbx, 0xffffffffffffffff
cmp rax, rbx
je 0x140002d14
call qword [sym.imp.USER32.dll_GetProcessWindowStation]
mov rcx, r12
mov qword [rbp - 0x39], rax
call qword [sym.imp.USER32.dll_SetProcessWindowStation]
test eax, eax
je 0x140002d14
lea rcx, str.default
mov r9d, 0x60081
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_OpenDesktopW]
mov r14, rax
test rax, rax
je 0x140002d14
cmp rax, rbx
je 0x140002d14
mov rcx, qword [rbp - 0x71]
lea rdx, [rbp - 0x51]
call fcn.14000304c
mov r13, qword [rbp - 0x51]
test al, al
je 0x140002d14
lea r8, [rbp - 0x69]
mov rdx, r13
mov rcx, r12
mov word [rbp - 0x69], 0xb00
mov dword [rbp - 0x65], 0xf0000000
mov word [rbp - 0x5d], 0x400
mov dword [rbp - 0x59], 0xf037f
call fcn.1400032d4
test al, al
je 0x140002d14
lea r8, [rbp - 0x69]
mov rdx, r13
mov rcx, r14
mov word [rbp - 0x69], si
mov dword [rbp - 0x65], 0xf01ff
call fcn.1400035b0
test al, al
je 0x140002d14
mov rdi, qword [rbp + 0x7f]
mov r15, qword [rbp + 0x67]
lea rcx, str.winsta0default
mov esi, dword [rdi + 0x3c]
xor ebx, ebx
mov qword [rdi + 0x10], rcx
and esi, 0x100
test r15, r15
je 0x140002c68
mov rcx, r15
call fcn.14006f364
mov rcx, 0xffffffffffffffff
lea rbx, [rax + 1]
mov eax, 2
mul rbx
cmovo rax, rcx
mov rcx, rax
call fcn.14006f7d8
mov r8, rbx
mov rdx, r15
mov rcx, rax
mov qword [rbp - 0x79], rax
call fcn.14006fedc
xor ebx, ebx
mov r15d, dword [rbp - 0x49]
test r15b, r15b
je 0x140002c87
mov rcx, qword [rbp - 0x71]
lea rdx, [rbp - 0x31]
call qword [sym.imp.USERENV.dll_LoadUserProfileW]
test eax, eax
je 0x140002d0e
test byte [rbp + 0x5f], 4
jne 0x140002ca2
mov rdx, qword [rbp - 0x71]
lea rcx, [rbp - 0x41]
xor r8d, r8d
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x140002d0e
mov rax, qword [rbp + 0x77]
mov ecx, dword [rbp + 0x6f]
mov rbx, qword [rbp + 0x87]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rdi
mov rdi, qword [rbp - 0x79]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp - 0x41]
bts ecx, 0xa
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ecx
mov rcx, qword [rbp - 0x71]
mov dword [rsp + 0x28], esi
xor esi, esi
xor r9d, r9d
mov r8, rdi
xor edx, edx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x140002d17
test r15b, r15b
je 0x140002d0a
lea r8, [rbp - 0x71]
lea rdx, [rbp - 1]
mov rcx, rbx
call fcn.140003198
mov bl, 1
jmp 0x140002d2d
mov rdi, qword [rbp - 0x79]
jmp 0x140002d17
mov rdi, rsi
mov rdx, qword [rbp - 1]
test rdx, rdx
je 0x140002d2a
mov rcx, qword [rbp - 0x71]
call qword [sym.imp.USERENV.dll_UnloadUserProfile]
mov bl, byte [rbp + 0x47]
test r13, r13
je 0x140002d46
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r13
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test r12, r12
je 0x140002d54
mov rcx, r12
call qword [sym.imp.USER32.dll_CloseWindowStation]
test r14, r14
je 0x140002d62
mov rcx, r14
call qword [sym.imp.USER32.dll_CloseDesktop]
mov rax, qword [rbp - 0x39]
test rax, rax
je 0x140002d74
mov rcx, rax
call qword [sym.imp.USER32.dll_SetProcessWindowStation]
mov rcx, qword [rbp - 0x71]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call fcn.14006f380
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x140002d95
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov al, bl
mov rbx, qword [rsp + 0x128]
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret