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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x450]
sub rsp, 0x550
mov rax, qword [0x14032b320]
xor rax, rsp
mov qword [rbp + 0x440], rax
mov dword [rsp + 0x68], r8d
mov r15, rdx
mov qword [rsp + 0x60], rcx
mov r13, qword [rbp + 0x4b0]
mov eax, dword [rbp + 0x4c8]
mov dword [rsp + 0x58], eax
mov r14, qword [rdx + 0x18]
mov rdi, 0xffffffffffffffff
test r14, r14
je 0x14005d9fe
mov rbx, rdi
inc rbx
cmp word [r14 + rbx*2], 0
jne 0x14005d9f1
jmp 0x14005da0d
mov rbx, qword [rdx + 0x48]
test rbx, rbx
je 0x14005da0d
shr rbx, 1
dec rbx
mov esi, 0x48
mov rax, r15
mov ecx, esi
lea r12, [rcx + rax]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x230]
call fcn.14023e790
test ebx, ebx
je 0x14005da5e
test r14, r14
jne 0x14005da49
cmp qword [r12], r14
lea r14, [0x1402ac8c0]
je 0x14005da49
mov r14, qword [r15 + 0x38]
mov r8d, ebx
add r8, r8
mov rdx, r14
lea rcx, [rbp + 0x230]
call fcn.14023df70
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rax
mov dword [rbp - 0x70], 0x68
mov dword [rbp - 0x34], 1
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], rax
xor r12d, r12d
mov word [rbp - 0x30], r12w
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x20]
call fcn.14023e790
test byte [r13 + 8], 1
je 0x14005dbdb
mov r14, qword [rsp + 0x60]
mov rdx, qword [r14 + 0x18]
test rdx, rdx
jne 0x14005dad9
cmp qword [r14 + 0x48], r12
lea rdx, [0x1402ac8c0]
je 0x14005dad9
mov rdx, qword [r14 + 0x38]
mov rax, r14
lea r15, [rsi + rax]
lea rcx, [rbp]
call fcn.140059db0
nop
lea r10, [rbp]
mov rbx, qword [rbp]
mov rsi, qword [rbp + 0x18]
cmp rsi, 8
cmovae r10, rbx
mov rcx, qword [rbp + 0x10]
cmp rcx, 1
jb 0x14005db60
dec rcx
mov rax, rdi
cmp rcx, rax
cmovb rax, rcx
lea r9, [r10 + rax*2]
lea r11, [0x1402b2318]
mov r8, r9
sub r8, r11
cmp word [r9], 0x5c
jne 0x14005db51
mov edx, 1
mov rcx, r11
movzx eax, word [rcx]
cmp word [rcx + r8], ax
jne 0x14005db51
add rcx, 2
sub rdx, 1
jne 0x14005db35
sub r9, r10
sar r9, 1
jmp 0x14005db63
cmp r9, r10
je 0x14005db60
sub r9, 2
sub r8, 2
jmp 0x14005db26
mov r9, rdi
mov rdx, qword [r14 + 0x18]
test rdx, rdx
jne 0x14005db7d
cmp qword [r14 + 0x48], rdx
lea rdx, [0x1402ac8c0]
je 0x14005db7d
mov rdx, qword [r14 + 0x38]
movsxd r8, r9d
add r8, r8
lea rcx, [rbp + 0x20]
call fcn.14023df70
nop
cmp rsi, 8
jb 0x14005dbc8
lea rdx, [rsi*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x14005dbc0
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005de1c
mov rcx, rbx
call fcn.14019b640
mov qword [rbp + 0x10], r12
mov qword [rbp + 0x18], 7
mov word [rbp], r12w
jmp 0x14005dc25
mov rdx, qword [r13 + 0x18]
test rdx, rdx
je 0x14005dbf0
inc rdi
cmp word [rdx + rdi*2], r12w
jne 0x14005dbe4
jmp 0x14005dc0f
mov rdi, qword [r13 + 0x48]
test rdi, rdi
jne 0x14005dc05
mov rdi, r12
lea rdx, [0x1402ac8c0]
jmp 0x14005dc0f
shr rdi, 1
dec rdi
mov rdx, qword [r13 + 0x38]
lea r8, [rdi + rdi]
lea rcx, [rbp + 0x20]
call fcn.14023df70
mov r14, qword [rsp + 0x60]
lea r15, [r14 + 0x48]
mov ebx, r12d
mov edi, dword [rsp + 0x58]
test edi, edi
je 0x14005dd38
lea r9, [rsp + 0x50]
xor r8d, r8d
mov dl, 1
lea ecx, [r8 + 0x14]
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
mov r8d, edi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x14005dd1a
lea r8, [rsp + 0x58]
mov edx, reloc.OLEAUT32.dll_VariantChangeType
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14005dd1a
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
mov r9d, 2
xor r8d, r8d
mov edx, 0x18b
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x14005dd0f
mov r8, qword [r14 + 0x18]
test r8, r8
jne 0x14005dcc8
cmp qword [r14 + 0x48], rbx
lea r8, [0x1402ac8c0]
je 0x14005dcc8
mov r8, qword [r14 + 0x38]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x20]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], r12d
lea r9, [rbp + 0x230]
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
mov ebx, eax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r9, [rsp + 0x50]
xor r8d, r8d
xor edx, edx
lea ecx, [rdx + 0x14]
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
jmp 0x14005dd91
mov rcx, qword [r14 + 0x18]
test rcx, rcx
jne 0x14005dd51
cmp qword [r15], rbx
lea rcx, [0x1402ac8c0]
je 0x14005dd51
mov rcx, qword [r14 + 0x38]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x20]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x230]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
test ebx, ebx
jne 0x14005dd99
xor eax, eax
jmp 0x14005ddf2
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
cmp dword [rsp + 0x68], 0
je 0x14005ddd9
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0x58], r12d
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [rsp + 0x58]
mov dword [rbp - 0x80], eax
jmp 0x14005dde4
mov edx, 0x3e8
call qword [sym.imp.USER32.dll_WaitForInputIdle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp - 0x80]
mov rcx, qword [rbp + 0x440]
xor rcx, rsp
call fcn.14023ba10
mov rbx, qword [rsp + 0x5a0]
add rsp, 0x550
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140242a14
int3