Function at 0x180205240
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x2020]
mov eax, 0x2120
call fcn.180204780
sub rsp, rax
mov rax, qword [0x180332088]
xor rax, rsp
mov qword [rbp + 0x2010], rax
mov rdi, rdx
mov rbx, rcx
test r8b, r8b
je 0x180205474
and qword [rsp + 0x78], 0
lea rcx, [rbp + 0x10]
and qword [rsp + 0x60], 0
xor edx, edx
mov r8d, 0x2000
call fcn.180233580
mov r9, rdi
lea rdx, str.__s___s
mov r8, rbx
lea rcx, [rbp + 0x10]
call fcn.18005c530
lea rcx, str.EXPLORER.EXE
call fcn.180205948
mov r8d, eax
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x180205439
mov ebx, 0xf01ff
lea r8, [rsp + 0x78]
mov edx, ebx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x180205439
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x20], 1
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x180205439
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x180205383
lea rdx, [0x1802ac3a0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18020537a
call rax
mov rcx, qword [rsp + 0x60]
lea r8, [rsp + 0x68]
mov r9d, 4
mov dword [rsp + 0x68], eax
lea edx, [r9 + 8]
call qword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x180205439
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, 0x68
lea rcx, [rbp - 0x60]
mov r8d, ebx
xor edx, edx
call fcn.180233580
xor edx, edx
lea r8d, [rbx - 0x50]
lea rcx, [rbp - 0x80]
call fcn.180233580
mov rdx, qword [rsp + 0x60]
lea rax, str.WinSta0Default
and qword [rsp + 0x70], 0
lea rcx, [rsp + 0x70]
mov qword [rbp - 0x50], rax
xor r8d, r8d
lea eax, [rbx - 0x63]
mov dword [rbp - 0x60], ebx
mov word [rbp - 0x20], ax
mov dword [rbp - 0x24], 1
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x180205439
mov rcx, qword [rsp + 0x60]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x50], rax
lea r8, [rbp + 0x10]
lea rax, [rbp - 0x60]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor edx, edx
and qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x430
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x180205439
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x180205439
call sub.USERENV.dll_DestroyEnvironmentBlock
mov rcx, qword [rsp + 0x60]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x18020544e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x180205463
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
jne 0x180205470
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x18020548a
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
call fcn.180204fd0
test eax, eax
setne al
mov rcx, qword [rbp + 0x2010]
xor rcx, rsp
call fcn.1802037a0
lea r11, [rsp + 0x2120]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret