Function at 0x1400557a0
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.140019a70
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.140046ed0
cmp al, bpl
je 0x140055ac9
lea rcx, str.winsta0
xor edx, edx
mov r8d, 0x60000
call qword [sym.imp.USER32.dll_OpenWindowStationW]
mov r12, rax
cmp rax, rbp
je 0x140055ac9
or rbx, 0xffffffffffffffff
cmp rax, rbx
je 0x140055ac9
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 0x140055ac9
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 0x140055ac9
cmp rax, rbx
je 0x140055ac9
mov rdx, qword [rsp + 0x68]
lea r8, [rsp + 0x70]
mov rcx, r15
call fcn.140046f20
mov r13, qword [rsp + 0x70]
cmp al, bpl
je 0x140055ac9
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.140055510
cmp al, bpl
je 0x140055ac9
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.140055280
cmp al, bpl
je 0x140055ac9
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 0x1400559ee
mov rcx, qword [rsp + 0x140]
call fcn.140019b5c
lea rcx, [rbp - 1]
lea rbx, [rax + 1]
lea eax, [rbp + 2]
mul rbx
cmovo rax, rcx
mov rcx, rax
call fcn.140018cc8
mov rdx, qword [rsp + 0x140]
mov r8, rbx
mov rcx, rax
mov qword [rsp + 0x60], rax
call fcn.140019b78
cmp byte [rsp + 0x118], bpl
je 0x140055a13
mov rcx, qword [rsp + 0x68]
lea rdx, [rsp + 0xa8]
call qword [sym.imp.USERENV.dll_LoadUserProfileW]
cmp eax, ebp
je 0x140055ac2
test byte [rsp + 0x130], 4
jne 0x140055a3b
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x80]
xor r8d, r8d
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
cmp eax, ebp
je 0x140055ac2
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 0x140055acc
cmp byte [rsp + 0x118], bpl
je 0x140055abd
lea r9, [rsp + 0x68]
lea r8, [rsp + 0xd8]
mov rdx, rbx
mov rcx, r15
call fcn.140046df0
mov bpl, 1
jmp 0x140055ae4
mov rdi, qword [rsp + 0x60]
jmp 0x140055acc
mov rdi, rbp
mov rdx, qword [rsp + 0xd8]
cmp rdx, rbp
je 0x140055ae4
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.USERENV.dll_UnloadUserProfile]
mov rcx, r13
call fcn.140046bf0
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.140018ec8
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