Function at 0x1401b120c
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov qword [rbp - 0x58], 0xfffffffffffffffe
mov ebx, edx
mov rsi, rcx
xor r15d, r15d
mov dil, r15b
call fcn.1401b0e5c
mov dword [rbp - 0x50], r15d
xor edx, edx
lea r8d, [r15 + 0x60]
lea rcx, [rbp - 0x48]
call fcn.14011d670
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x70], r15
mov dword [rbp + 0x70], r15d
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x70], r15
xor eax, eax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], rax
lea rdx, [rsp + 0x60]
mov ecx, ebx
call sub.WTSAPI32.dll_WTSQueryUserToken
or r12d, 0xffffffff
test eax, eax
je 0x1401b14f3
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1401b14f3
mov qword [rsp + 0x68], r15
lea rax, [rbp + 0x70]
mov qword [rsp + 0x20], rax
lea r9d, [r15 + 8]
lea r8, [rsp + 0x70]
lea edx, [r15 + 0x13]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x70]
test rax, rax
cmovne rcx, rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
lea r9d, [r15 + 2]
xor r8d, r8d
mov edx, 0x2000000
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x1401b14de
mov rdx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x70]
test rax, rax
cmovne rdx, rax
xor r8d, r8d
lea rcx, [rbp - 0x80]
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x1401b14ba
mov rcx, qword [rsi]
sub rcx, 0x18
call fcn.140007c40
lea rbx, [rax + 0x18]
mov qword [rsp + 0x78], rbx
lea rdx, [0x1406958b4]
lea rcx, [rbp + 0x78]
call fcn.140006214
nop
mov rcx, qword [rsi]
cmp dword [rcx - 0x10], r15d
jle 0x1401b13c1
lea edx, [r15 + 0x3f]
call fcn.14011fd50
mov rdi, rax
test rax, rax
je 0x1401b13c1
sub rdi, qword [rsi]
sar rdi, 1
cmp edi, r12d
je 0x1401b13c1
mov rdx, rsi
lea rcx, [rbp + 0x78]
call fcn.1400072f0
mov r8d, edi
lea rdx, [rbp - 0x78]
mov rcx, rsi
call fcn.14000d8c0
nop
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.1400072f0
nop
mov rdx, qword [rbp - 0x78]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x1401b13b1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov edx, edi
lea rcx, [rbp + 0x78]
call fcn.14000d97c
mov rbx, qword [rsp + 0x78]
mov edi, r15d
mov r8, qword [rbp + 0x78]
cmp dword [r8 - 8], 1
jle 0x1401b13e0
mov edx, dword [r8 - 0x10]
lea rcx, [rbp + 0x78]
call fcn.1400083e8
mov r8, qword [rbp + 0x78]
lea rax, [rbp - 0x70]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r15
mov rax, qword [rbp - 0x80]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x400
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
xor r9d, r9d
mov rdx, rbx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov r14d, eax
mov ecx, reloc.WLDAP32.dll_Ordinal_200
call qword [sym.imp.KERNEL32.dll_Sleep]
test r14d, r14d
jne 0x1401b1440
inc edi
cmp edi, 0xa
jl 0x1401b13c4
test r14d, r14d
setne dil
mov rcx, qword [rbp - 0x70]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1401b1458
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x68]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1401b146c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
mov rdx, qword [rbp + 0x78]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x1401b1499
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x1401b14ba
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x1401b14c9
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1401b14de
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x68], r15
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1401b14f3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x60], r15
mov rdx, qword [rsi]
sub rdx, 0x18
mov ecx, r12d
lock xadd dword [rdx + 0x10], ecx
add ecx, r12d
test ecx, ecx
jg 0x1401b1513
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.WS2_32.dll_htonl + 8]
mov al, dil
add rsp, 0x120
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret