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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xe0
xor ebp, ebp
mov rdi, r8
mov r15, rcx
mov rsi, rdx
lea rcx, [rax - 0x60]
lea r8d, [rbp + 0x38]
xor edx, edx
mov rbx, r9
mov qword [rsp + 0x68], rbp
mov r12, rbp
mov r14, rbp
mov r13, rbp
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x88], rbp
mov qword [rsp + 0x60], rbp
mov qword [rax - 0x88], rbp
call fcn.140018a40
mov ecx, dword [rsp + 0x130]
lea edx, [rbp + 1]
movzx eax, bpl
mov r9, rbx
test dl, cl
mov r8, rdi
mov dword [rsp + 0xa8], gethostname
cmovne eax, edx
mov rdx, rsi
mov qword [rsp + 0xb0], rsi
mov dword [rsp + 0x118], eax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], ecx
mov rcx, r15
call fcn.1400455b0
cmp al, bpl
je 0x140053839
lea rcx, str.winsta0
xor edx, edx
mov r8d, 0x60000
call qword [sym.imp.USER32.dll_OpenWindowStationW]
mov r12, rax
cmp rax, rbp
je 0x140053839
or rbx, 0xffffffffffffffff
cmp rax, rbx
je 0x140053839
call qword [sym.imp.USER32.dll_GetProcessWindowStation]
mov rcx, r12
mov qword [rsp + 0x88], rax
call qword [sym.imp.USER32.dll_SetProcessWindowStation]
cmp eax, ebp
je 0x140053839
lea rcx, str.default
mov r9d, 0x60081
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_OpenDesktopW]
mov r14, rax
cmp rax, rbp
je 0x140053839
cmp rax, rbx
je 0x140053839
mov rdx, qword [rsp + 0x68]
lea r8, [rsp + 0x70]
mov rcx, r15
call fcn.140045600
mov r13, qword [rsp + 0x70]
cmp al, bpl
je 0x140053839
lea r9, [rsp + 0x90]
mov r8, r13
mov rdx, r12
mov rcx, r15
mov byte [rsp + 0x90], bpl
mov byte [rsp + 0x91], reloc.WSOCK32.dll_inet_ntoa
mov dword [rsp + 0x94], 0xf0000000
mov byte [rsp + 0x9c], bpl
mov byte [rsp + 0x9d], 4
mov dword [rsp + 0xa0], 0xf037f
mov dword [rsp + 0x20], 2
call fcn.140053280
cmp al, bpl
je 0x140053839
lea r9, [rsp + 0x70]
mov r8, r13
mov rdx, r14
mov rcx, r15
mov byte [rsp + 0x70], bpl
mov byte [rsp + 0x71], bpl
mov dword [rsp + 0x74], 0xf01ff
mov dword [rsp + 0x20], 1
call fcn.140052ff0
cmp al, bpl
je 0x140053839
mov rdi, qword [rsp + 0x158]
lea rcx, str.winsta0default
mov esi, dword [rdi + 0x3c]
mov qword [rdi + 0x10], rcx
and esi, 0x100
cmp qword [rsp + 0x140], rbp
je 0x14005375e
mov rcx, qword [rsp + 0x140]
call fcn.140018b2c
lea rcx, [rbp - 1]
lea rbx, [rax + 1]
lea eax, [rbp + 2]
mul rbx
cmovo rax, rcx
mov rcx, rax
call fcn.140017e04
mov rdx, qword [rsp + 0x140]
mov r8, rbx
mov rcx, rax
mov qword [rsp + 0x60], rax
call fcn.140018b48
cmp byte [rsp + 0x118], bpl
je 0x140053783
mov rcx, qword [rsp + 0x68]
lea rdx, [rsp + 0xa8]
call qword [sym.imp.USERENV.dll_LoadUserProfileW]
cmp eax, ebp
je 0x140053832
test byte [rsp + 0x130], 4
jne 0x1400537ab
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x80]
xor r8d, r8d
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
cmp eax, ebp
je 0x140053832
mov rax, qword [rsp + 0x150]
mov ecx, dword [rsp + 0x148]
mov rbx, qword [rsp + 0x160]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rdi
mov rdi, qword [rsp + 0x60]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x80]
bts ecx, 0xa
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ecx
mov rcx, qword [rsp + 0x68]
xor r9d, r9d
mov r8, rdi
xor edx, edx
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
cmp eax, ebp
je 0x14005383c
cmp byte [rsp + 0x118], bpl
je 0x14005382d
lea r9, [rsp + 0x68]
lea r8, [rsp + 0xd8]
mov rdx, rbx
mov rcx, r15
call fcn.1400454d0
mov bpl, 1
jmp 0x140053854
mov rdi, qword [rsp + 0x60]
jmp 0x14005383c
mov rdi, rbp
mov rdx, qword [rsp + 0xd8]
cmp rdx, rbp
je 0x140053854
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.USERENV.dll_UnloadUserProfile]
mov rcx, r13
call fcn.1400452d0
mov rcx, r12
call qword [sym.imp.USER32.dll_CloseWindowStation]
mov rcx, r14
call qword [sym.imp.USER32.dll_CloseDesktop]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.USER32.dll_SetProcessWindowStation]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call fcn.1400185f4
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
lea r11, [rsp + 0xe0]
mov al, bpl
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret