Function at 0x438810
Capabilities:
Create process on windows

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x1e0
mov rbp, rsp
mov qword [rbp + 0x68], rcx
mov qword [rbp + 0x60], rdx
mov dword [rbp + 0x5c], r8d
mov dword [rbp + 0x58], r9d
mov qword [rbp + 0x88], 0
nop
xor rax, rax
mov byte [rbp + 0x77], al
mov dword [rbp + 0x1dc], 0
mov dword [rbp + 0x1d8], 0
lea rcx, [rbp + 0x130]
mov edx, 0x68
xor r8, r8
call fcn.00406330
mov dword [rbp + 0x130], 0x68
mov rax, qword [rbp + 0x240]
mov qword [rbp + 0x148], rax
mov dword [rbp + 0x150], 0
mov dword [rbp + 0x154], 1
mov dword [rbp + 0x158], 0x64
mov dword [rbp + 0x15c], 0x64
mov dword [rbp + 0x16c], 0
mov word [rbp + 0x170], 1
call sub.user32.dll_GetProcessWindowStation
mov rdi, rax
mov rcx, rdi
mov edx, 2
xor r8, r8
xor r9, r9
lea rax, [rbp + 0x1d8]
mov qword [rsp + 0x20], rax
call sub.user32.dll_GetUserObjectInformationW
call sub.kernel32.dll_GetCurrentThreadId_1
mov ecx, eax
call sub.user32.dll_GetThreadDesktop
mov rbx, rax
mov rcx, rbx
mov edx, 2
xor r8, r8
xor r9, r9
lea rax, [rbp + 0x1dc]
mov qword [rsp + 0x20], rax
call sub.user32.dll_GetUserObjectInformationW
mov ecx, dword [rbp + 0x1dc]
add ecx, dword [rbp + 0x1d8]
add ecx, 0x20
mov ecx, ecx
call fcn.00405270
mov rsi, rax
mov rcx, rsi
mov edx, dword [rbp + 0x1dc]
add edx, dword [rbp + 0x1d8]
add edx, 0x20
mov edx, edx
xor r8, r8
call fcn.00406330
test rsi, rsi
je 0x4389dc
mov r13, rsi
mov rcx, rdi
mov edx, 2
mov r8, r13
mov r9d, dword [rbp + 0x1d8]
lea rax, [rbp + 0x1d8]
mov qword [rsp + 0x20], rax
call sub.user32.dll_GetUserObjectInformationW
test eax, eax
je 0x4389dc
cmp dword [rbp + 0x1d8], 0
jbe 0x4389ad
mov ecx, 2
mov eax, dword [rbp + 0x1d8]
xor edx, edx
div ecx
sub eax, 1
mov eax, eax
add rax, rax
add r13, rax
mov word [r13], 0x5c
add r13, 2
mov rcx, rbx
mov edx, 2
mov r8, r13
mov r9d, dword [rbp + 0x1dc]
lea rax, [rbp + 0x1dc]
mov qword [rsp + 0x20], rax
call sub.user32.dll_GetUserObjectInformationW
test eax, eax
je 0x4389dc
mov qword [rbp + 0x140], rsi
mov rcx, qword [rbp + 0x238]
mov rdx, qword [rbp + 0x230]
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], 0xffffffff
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov rax, qword [0x0048a3a0]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x130]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x118]
mov qword [rsp + 0x48], rax
call sub.kernel32.dll_CreateProcessW
test eax, eax
setne bl
mov rcx, rsi
call fcn.004052a0
test bl, bl
jne 0x438b71
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
mov rax, qword [0x0048a1a0]
mov dword [rax], ebx
mov rax, qword [0x00489cb0]
cmp byte [rax], 0
je 0x438b4a
mov rax, qword [0x0048a1a0]
cmp dword [rax], 0xc1
jne 0x438b4a
lea rcx, [rbp + 0xa8]
mov edx, 0x70
xor r8, r8
call fcn.00406330
mov dword [rbp + 0xa8], 0x70
mov dword [rbp + 0xac], 0x8140
mov rax, qword [rbp + 0x238]
mov qword [rbp + 0xc0], rax
mov rax, qword [rbp + 0x240]
mov qword [rbp + 0xf0], rax
mov rax, qword [rbp + 0x68]
mov rax, qword [rax + 0x20]
mov qword [rbp + 0xc8], rax
mov rax, qword [0x0048a3a0]
mov qword [rbp + 0xd0], rax
movzx eax, word [rbp + 0x170]
mov dword [rbp + 0xd8], eax
lea rcx, [rbp + 0xa8]
call sub.shell32.dll_ShellExecuteExW
test eax, eax
jne 0x438b3a
cmp dword [rbp + 0xe0], 0
jne 0x438b11
mov rax, qword [0x0048a1a0]
mov dword [rax], 8
jmp 0x438b4a
cmp dword [rbp + 0xe0], 0x20
jne 0x438b29
mov rax, qword [0x0048a1a0]
mov dword [rax], 2
jmp 0x438b4a
mov rax, qword [0x0048a1a0]
mov ecx, dword [rbp + 0xe0]
mov dword [rax], ecx
jmp 0x438b4a
mov rax, qword [rbp + 0x110]
mov qword [0x004a7db8], rax
jmp 0x438b8b
mov rcx, qword [rbp + 0x60]
mov rdx, qword [rbp + 0x238]
call fcn.0042a8d0
mov rcx, qword [rbp + 0x60]
call fcn.00439870
mov eax, 1
mov dword [rbp + 0x70], eax
jmp 0x438de3
mov rax, qword [rbp + 0x118]
mov qword [0x004a7db8], rax
mov rcx, qword [rbp + 0x120]
call sub.kernel32.dll_CloseHandle_1
mov rax, qword [0x004a7db8]
test rax, 1
setne sil
mov rax, qword [0x004a7db8]
test rax, 2
setne al
mov rcx, qword [0x00489cb0]
cmp byte [rcx], 0
je 0x438c0a
mov rcx, qword [0x00489d18]
cmp qword [rcx], 0
jne 0x438c0a
mov rcx, qword [0x00489ea0]
cmp byte [rcx], 0
jne 0x438c0a
mov rcx, qword [0x00489ad8]
cmp byte [rcx], 0
jne 0x438c0a
mov ecx, dword [rbp + 0x5c]
test ecx, ecx
jne 0x438c0a
test al, al
jne 0x438bfc
mov rcx, qword [0x004a7db8]
call fcn.0043b240
cmp ax, 2
jne 0x438c0a
mov eax, 4
mov dword [rbp + 0x5c], eax
mov al, 1
mov byte [rbp + 0x77], al
xor rbx, rbx
mov dword [0x004a7dc0], 1
mov eax, dword [rbp + 0x5c]
test eax, eax
jne 0x438cf9
mov rcx, qword [0x004a7db8]
call fcn.004711a0
mov rcx, qword [0x0048a148]
mov dword [rcx], eax
mov rax, qword [0x0048a148]
mov ebx, dword [rax]
mov dword [rbp + 0x90], ebx
mov byte [rbp + 0x98], 0
lea rcx, [rbp + 0x1b0]
mov edx, 1
lea r8, [0x00438e28]
lea r9, [rbp + 0x90]
mov dword [rsp + 0x20], 0
call fcn.0042a970
lea rcx, [0x00438e32]
lea rdx, [rbp + 0x1b0]
call fcn.0042d640
cmp ebx, 0x20
jl 0x438cdc
cmp ebx, 0x7e
jg 0x438cdc
mov dword [rbp + 0x90], ebx
mov byte [rbp + 0x98], 0
lea rcx, [rbp + 0x198]
mov edx, 1
lea r8, [0x00438e46]
lea r9, [rbp + 0x90]
mov dword [rsp + 0x20], 0
call fcn.0042a970
lea rcx, [0x00438e50]
lea rdx, [rbp + 0x198]
call fcn.0042d640
jmp 0x438cef
lea rcx, [0x00438e50]
lea rdx, [0x00438e6e]
call fcn.0042d640
test sil, sil
je 0x438cf9
call fcn.00438740
mov eax, dword [rbp + 0x5c]
cmp eax, 4
jne 0x438d89
movzx rax, byte [rbp + 0x77]
test al, al
jne 0x438d70
lea rcx, [rbp + 0x88]
mov rdx, qword [0x00489e30]
call fcn.0040f7b0
lea rax, [0x004a7db8]
mov qword [rbp + 0x78], rax
mov byte [rbp + 0x80], 0x10
lea rcx, [0x00438e72]
lea rdx, [rbp + 0x78]
xor r8, r8
call fcn.00470b10
mov qword [rbp + 0x90], rax
mov byte [rbp + 0x98], 0xa
mov rcx, qword [rbp + 0x88]
mov edx, 1
lea r8, [rbp + 0x90]
xor r9, r9
call fcn.00470940
mov rcx, qword [rbp + 0x118]
call sub.kernel32.dll_CloseHandle_1
mov qword [0x004a7db8], 0
jmp 0x438ddf
mov eax, dword [rbp + 0x5c]
cmp eax, 2
jne 0x438ddf
mov eax, dword [rbp + 0x58]
test eax, eax
jne 0x438dc3
mov rcx, qword [0x004a7db8]
call fcn.004711a0
mov rcx, qword [0x0048a148]
mov dword [rcx], eax
mov rax, qword [0x0048a148]
mov ebx, dword [rax]
mov qword [0x004a7db8], 0
jmp 0x438ddf
mov rax, qword [0x00489b28]
mov rcx, qword [0x004a7db8]
mov qword [rax], rcx
mov qword [0x004a7db8], 0
mov dword [rbp + 0x70], ebx
nop
lea rcx, [rbp + 0x88]
call fcn.0040aae0
mov eax, dword [rbp + 0x70]
lea rsp, [rbp + 0x1e0]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret