Function at 0x180008f00
Capabilities:
Link many functions at runtime

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov qword [rbp - 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x1c0], rbx
mov rax, qword [0x18002e010]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov r13, r9
mov qword [rbp - 0x78], rdx
mov rdi, rcx
cmp qword [rcx + 0x10], 0
je 0x18000933b
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
movdqa xmm1, xmmword [0x180028210]
movdqu xmmword [rsp + 0x78], xmm1
xor esi, esi
mov word [rsp + 0x68], si
lea r8d, [rsi + 0xc]
lea rdx, str.Advapi32.dll
lea rcx, [rsp + 0x68]
call fcn.180003080
nop
call fcn.18000ad10
mov rcx, rax
lea rdx, [rsp + 0x68]
call fcn.18000adb0
mov rbx, rax
mov rdx, qword [rbp - 0x80]
cmp rdx, 8
jb 0x180008fd5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180008fd0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000936a
call fcn.18000c054
movdqa xmm0, xmmword [0x180028210]
movdqu xmmword [rsp + 0x78], xmm0
mov word [rsp + 0x68], si
test rbx, rbx
je 0x18000933b
lea rdx, str.ImpersonateLoggedOnUser
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
mov qword [rbp - 0x70], rax
lea rdx, str.RevertToSelf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
lea rdx, str.CreateProcessAsUserW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
lea rdx, str.SetTokenInformation
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
test rsi, rsi
je 0x18000933b
test r15, r15
je 0x18000933b
test r12, r12
je 0x18000933b
test rax, rax
je 0x18000933b
xor esi, esi
mov qword [rbp + 0x38], rsi
lea rcx, [rbp + 0x38]
call fcn.180004360
nop
mov qword [rsp + 0x60], rsi
mov dword [rbp + 0x30], 0xffffffff
lea r8, [rbp + 0x30]
lea rdx, [rsp + 0x60]
call fcn.180005080
test al, al
je 0x1800090dd
mov rbx, qword [rsp + 0x60]
test rbx, rbx
je 0x1800090dd
mov rcx, rbx
cmp dword [rbp + 0x30], 0xffffffff
je 0x1800090d7
mov qword [rsp + 0x60], rsi
lea rdx, [rsp + 0x60]
call fcn.1800094d0
test al, al
jne 0x1800090ca
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.180009380
test al, al
je 0x1800090d4
mov rsi, qword [rsp + 0x60]
test rsi, rsi
jne 0x1800090f0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
lea rcx, [rbp + 0x38]
call fcn.1800043e0
movzx eax, bl
jmp 0x18000933d
mov r9d, 4
lea r8, [rbp + 0x30]
lea edx, [r9 + 8]
mov rcx, rsi
call r14
mov qword [rbp - 0x60], 0
lea rdx, [rbp - 0x60]
mov rcx, rsi
call fcn.180009a20
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rbp - 0x40]
call fcn.18000dba0
xor eax, eax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
mov dword [rbp - 0x40], 0x68
lea rax, str.WinSta0Default
mov qword [rbp - 0x30], rax
mov eax, 1
mov word [rbp], ax
mov dword [rbp - 4], 0x81
mov r8, qword [rbp - 0x78]
mov rdx, rdi
lea rcx, [rbp + 0x40]
call fcn.180008ce0
nop
xor r14d, r14d
mov rcx, rsi
call qword [rbp - 0x70]
test eax, eax
je 0x18000920f
lea r8, [rbp + 0x40]
cmp qword [rbp + 0x58], 8
cmovae r8, qword [rbp + 0x40]
cmp qword [rdi + 0x18], 8
jb 0x180009191
mov rdi, qword [rdi]
lea rax, [rbp - 0x58]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x48], rax
xor ecx, ecx
mov qword [rsp + 0x40], rcx
mov rax, qword [rbp - 0x60]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x430
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov rdx, rdi
mov rcx, rsi
call r12
mov r14d, eax
test eax, eax
je 0x1800091de
mov ecx, dword [rbp - 0x48]
mov dword [r13], ecx
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x1800091f5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x50], 0
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x18000920c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x58], 0
call r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
cmp qword [rbp - 0x60], rdi
je 0x1800092e3
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
movdqa xmm1, xmmword [0x180028210]
movdqu xmmword [rsp + 0x78], xmm1
mov word [rsp + 0x68], di
lea r8d, [rdi + 0xb]
lea rdx, str.Userenv.dll
lea rcx, [rsp + 0x68]
call fcn.180003080
nop
call fcn.18000ad10
mov rcx, rax
lea rdx, [rsp + 0x68]
call fcn.18000adb0
mov rbx, rax
mov rdx, qword [rbp - 0x80]
cmp rdx, 8
jb 0x1800092b5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800092b0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180009370
call fcn.18000c054
movdqa xmm0, xmmword [0x180028210]
movdqu xmmword [rsp + 0x78], xmm0
mov word [rsp + 0x68], di
lea rdx, str.DestroyEnvironmentBlock
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800092e3
mov rcx, qword [rbp - 0x60]
call rax
test r14d, r14d
setne bl
mov rdx, qword [rbp + 0x58]
cmp rdx, 8
jb 0x180009325
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180009320
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180009364
call fcn.18000c054
movdqa xmm0, xmmword [0x180028210]
movdqu xmmword [rbp + 0x50], xmm0
mov word [rbp + 0x40], di
jmp 0x1800090df
xor al, al
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.18000c030
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x170
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1800101e4
nop
call fcn.1800101e4
nop
call fcn.1800101e4
int3