Function at 0x516660
Capabilities:
Create process on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x150
mov rbp, rsp
mov qword [rbp + 0x50], rcx
mov dword [rbp + 0x64], edx
mov qword [rbp + 0x58], r8
mov qword [rbp + 0x78], 0
mov qword [rbp + 0x70], 0
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x80], 0
mov qword [rbp + 0x90], 0
mov qword [rbp + 0x88], 0
mov qword [rbp + 0x98], 0
mov qword [rbp + 0xa0], 0
mov qword [rbp + 0xa8], 0
mov qword [rbp + 0xb0], 0
mov qword [rbp + 0xb8], 0
mov qword [rbp + 0xc0], 0
mov qword [rbp + 0xd8], 0
mov qword [rbp + 0xd0], 0
mov qword [rbp + 0xc8], 0
mov qword [rbp + 0xe0], 0
mov qword [rbp + 0xf8], 0
mov qword [rbp + 0xf0], 0
mov qword [rbp + 0xe8], 0
mov qword [rbp + 0x118], 0
mov qword [rbp + 0x100], 0
mov qword [rbp + 0x140], 0
mov qword [rbp + 0x138], 0
mov qword [rbp + 0x128], 0
nop
call fcn.00410a90
mov dword [rax + 0x1ac], 0
mov byte [rbp + 0x132], 0
mov eax, dword [rbp + 0x64]
cmp eax, 3
jg 0x5167bf
cmp eax, 3
je 0x516cf4
sub eax, 1
cmp eax, 0xffffffff
je 0x5167da
test eax, eax
je 0x51696e
sub eax, 1
test eax, eax
jne 0x5170de
jmp 0x516a8a
sub eax, 4
test eax, eax
je 0x516f20
sub eax, 1
test eax, eax
jne 0x5170de
jmp 0x5170a0
mov rax, qword [rbp + 0x50]
cmp qword [rax + 0xa0], 0
je 0x516803
mov rax, qword [rbp + 0x50]
lea rcx, [rax + 0x98]
mov rax, qword [rbp + 0x50]
mov rdx, qword [rax + 0xa0]
call fcn.0040b1a0
mov rax, qword [rbp + 0x50]
lea rcx, [rax + 0x88]
mov rax, qword [rbp + 0x58]
mov rdx, qword [rax + 8]
call fcn.0040c200
mov rax, qword [rbp + 0x50]
cmp qword [rax + 0x88], 0
je 0x51688e
lea rcx, [rbp + 0x100]
mov rax, qword [rbp + 0x58]
mov rdx, qword [rax + 0x18]
call fcn.0040c200
mov rax, qword [rbp + 0x100]
mov qword [rbp + 0x108], rax
mov rax, qword [rbp + 0x50]
mov rax, qword [rax + 0x88]
mov qword [rbp + 0x110], rax
lea rcx, [rbp + 0x118]
lea rdx, [rbp + 0x108]
mov r8d, 1
call fcn.00513b50
mov rax, qword [rbp + 0x50]
lea rcx, [rax + 0x88]
mov rdx, qword [rbp + 0x118]
call fcn.0040b1a0
mov rax, qword [rbp + 0x50]
lea rcx, [rax + 0x90]
mov rax, qword [rbp + 0x58]
mov rdx, qword [rax + 0x10]
call fcn.0040c200
mov rax, qword [rbp + 0x50]
cmp qword [rax + 0x28], 0
je 0x516945
lea rcx, [rbp + 0xf8]
mov rax, qword [rbp + 0x58]
mov rdx, qword [rax + 8]
call fcn.0040c200
lea rcx, [rbp + 0xf0]
mov rax, qword [rbp + 0x58]
mov rdx, qword [rax + 0x10]
call fcn.0040c200
lea rcx, [rbp + 0xe8]
mov rax, qword [rbp + 0x58]
mov rdx, qword [rax + 0x18]
call fcn.0040c200
mov rax, qword [rbp + 0x50]
lea rbx, [rax + 0x28]
mov rcx, qword [rbx + 8]
mov rdx, qword [rbp + 0x50]
mov r8, qword [rbp + 0xf8]
mov r9, qword [rbp + 0xf0]
mov rax, qword [rbp + 0xe8]
mov qword [rsp + 0x20], rax
mov rax, qword [rbp + 0x58]
movzx rax, word [rax + 0x36]
mov word [rsp + 0x28], ax
mov rax, qword [rbp + 0x58]
movzx rax, word [rax + 0x38]
mov word [rsp + 0x30], ax
lea rax, [rbp + 0x132]
mov qword [rsp + 0x38], rax
call qword [rbx]
cmp byte [rbp + 0x132], 0
je 0x51695e
mov qword [rbp + 0x148], 0xffffffffffffffff
jmp 0x51711a
mov qword [rbp + 0x148], 0
jmp 0x51711a
lea rcx, [rbp + 0xe0]
mov rax, qword [rbp + 0x58]
mov rdx, qword [rax + 8]
call fcn.0040c200
mov rax, qword [rbp + 0x50]
mov rax, qword [rax + 0xb8]
mov rcx, rax
mov rdx, qword [rbp + 0xe0]
mov rax, qword [rax]
call qword [rax + 0xb0]
mov ebx, eax
test ebx, ebx
jl 0x5169c6
mov rax, qword [rbp + 0x50]
mov rax, qword [rax + 0xc0]
mov rcx, rax
lea rdx, [rbp + 0x140]
mov r8d, ebx
mov rbx, qword [rax]
call qword [rbx + 0x18]
jmp 0x5169d2
lea rcx, [rbp + 0x140]
call fcn.0040ab70
mov rax, qword [rbp + 0x50]
cmp qword [rax + 0x48], 0
je 0x516a61
lea rcx, [rbp + 0xd8]
mov rax, qword [rbp + 0x58]
mov rdx, qword [rax + 8]
call fcn.0040c200
lea rcx, [rbp + 0xd0]
mov rax, qword [rbp + 0x58]
mov rdx, qword [rax + 0x10]
call fcn.0040c200
lea rcx, [rbp + 0xc8]
mov rax, qword [rbp + 0x58]
mov rdx, qword [rax + 0x18]
call fcn.0040c200
mov rax, qword [rbp + 0x50]
lea rbx, [rax + 0x48]
mov rcx, qword [rbx + 8]
mov rdx, qword [rbp + 0x50]
mov r8, qword [rbp + 0xd8]
mov r9, qword [rbp + 0xd0]
mov rax, qword [rbp + 0xc8]
mov qword [rsp + 0x20], rax
mov rax, qword [rbp + 0x140]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x132]
mov qword [rsp + 0x30], rax
call qword [rbx]
cmp byte [rbp + 0x132], 0
je 0x516a7a
mov qword [rbp + 0x148], 0xffffffffffffffff
jmp 0x51711a
mov qword [rbp + 0x148], 0
jmp 0x51711a
mov rax, qword [rbp + 0x50]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0x108], rax
lea rcx, [rbp + 0xc0]
mov rax, qword [rbp + 0x58]
mov rdx, qword [rax + 8]
call fcn.0040c200
mov rax, qword [rbp + 0xc0]
mov qword [rbp + 0x110], rax
lea rcx, [rbp + 0x140]
lea rdx, [rbp + 0x108]
mov r8d, 1
call fcn.00513b50
mov rax, qword [rbp + 0x50]
cmp qword [rax + 0x38], 0
je 0x516b68
lea rcx, [rbp + 0xb8]
mov rax, qword [rbp + 0x58]
mov rdx, qword [rax + 8]
call fcn.0040c200
mov rax, qword [rbp + 0x50]
lea rbx, [rax + 0x38]
mov rcx, qword [rbx + 8]
mov rdx, qword [rbp + 0x50]
mov r8, qword [rbp + 0xb8]
mov rax, qword [rbp + 0x58]
mov r9d, dword [rax]
mov rax, qword [rbp + 0x58]
movzx rax, word [rax + 0x30]
mov word [rsp + 0x20], ax
mov rax, qword [rbp + 0x58]
movzx rax, word [rax + 0x32]
mov word [rsp + 0x28], ax
mov rax, qword [rbp + 0x58]
movzx rax, word [rax + 0x34]
mov word [rsp + 0x30], ax
mov rax, qword [rbp + 0x58]
movzx rax, word [rax + 0x3a]
mov word [rsp + 0x38], ax
lea rax, [rbp + 0x140]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x132]
mov qword [rsp + 0x48], rax
call qword [rbx]
cmp byte [rbp + 0x132], 0
je 0x516b81
mov qword [rbp + 0x148], 0xffffffffffffffff
jmp 0x51711a
cmp qword [rbp + 0x140], 0
jne 0x516b9b
mov qword [rbp + 0x148], 0
jmp 0x51711a
call fcn.00517d40
mov rcx, rax
mov rdx, qword [rbp + 0x140]
call fcn.00513330
test al, al
jne 0x516c2e
lea rcx, [rbp + 0xb0]
mov rdx, qword [rbp + 0x140]
call fcn.00427dd0
mov rcx, qword [rbp + 0xb0]
call fcn.00427610
mov rcx, qword [rbp + 0x140]
mov dl, 1
call fcn.004273e0
test al, al
je 0x516c2e
mov rcx, qword [rbp + 0x140]
mov dl, 1
call fcn.00427790
mov ecx, eax
test ecx, 1
je 0x516c2e
mov rcx, qword [rbp + 0x50]
movzx rcx, byte [rcx + 0x20]
test cl, 2
je 0x516c1a
mov qword [rbp + 0x148], 0
jmp 0x51711b
mov rcx, qword [rbp + 0x140]
mov edx, eax
and edx, 0xfffffffe
mov r8b, 1
call fcn.004278c0
mov dword [rbp + 0x134], 0
lea rcx, [rbp + 0x128]
mov rdx, qword [rbp + 0x140]
xor r8, r8
call fcn.0040bcc0
mov rcx, qword [rbp + 0x128]
call fcn.0040bb40
mov rcx, rax
mov edx, 0x8121
mov r8d, 0x180
lea r9, [rbp + 0x134]
call fcn.00513da0
mov qword [rbp + 0x148], rax
cmp dword [rbp + 0x134], 0
je 0x516c97
call fcn.00410a90
mov ecx, dword [rbp + 0x134]
mov dword [rax + 0x1ac], ecx
cmp qword [rbp + 0x148], 0xffffffffffffffff
je 0x51711a
lea rcx, [rbp + 0xa8]
mov rax, qword [rbp + 0x58]
mov rdx, qword [rax + 8]
call fcn.0040c200
mov rax, qword [rbp + 0x50]
mov rax, qword [rax + 0xb8]
mov rcx, rax
mov rdx, qword [rbp + 0xa8]
mov rax, qword [rax]
call qword [rax + 0x78]
mov rax, qword [rbp + 0x50]
mov rax, qword [rax + 0xc0]
mov rcx, rax
mov rdx, qword [rbp + 0x140]
mov rax, qword [rax]
call qword [rax + 0x78]
jmp 0x51711a
mov dword [rbp + 0x134], 0
mov rax, qword [rbp + 0x58]
mov ecx, dword [rax + 0x28]
lea rdx, [rbp + 0x134]
call fcn.005140c0
lea rcx, [rbp + 0xa0]
mov rax, qword [rbp + 0x58]
mov rdx, qword [rax + 8]
call fcn.0040c200
mov rax, qword [rbp + 0x50]
mov rax, qword [rax + 0xb8]
mov rcx, rax
mov rdx, qword [rbp + 0xa0]
mov rax, qword [rax]
call qword [rax + 0xb0]
mov ebx, eax
test ebx, ebx
jl 0x516df0
mov rax, qword [rbp + 0x50]
mov rax, qword [rax + 0xc0]
mov rcx, rax
lea rdx, [rbp + 0x140]
mov r8d, ebx
mov rsi, qword [rax]
call qword [rsi + 0x18]
mov rax, qword [rbp + 0x50]
mov rax, qword [rax + 0xb8]
mov rcx, rax
mov edx, ebx
mov rsi, qword [rax]
call qword [rsi + 0x98]
mov rax, qword [rbp + 0x50]
mov rax, qword [rax + 0xc0]
mov rcx, rax
mov edx, ebx
mov rbx, qword [rax]
call qword [rbx + 0x98]
lea rcx, [rbp + 0x128]
mov rdx, qword [rbp + 0x140]
xor r8, r8
call fcn.0040bcc0
mov rcx, qword [rbp + 0x128]
call fcn.0040bb40
mov rcx, rax
mov rax, qword [rbp + 0x58]
movzx rdx, word [rax + 0x30]
mov rax, qword [rbp + 0x58]
movzx r8, word [rax + 0x32]
mov rax, qword [rbp + 0x58]
movzx r9, word [rax + 0x34]
lea rax, [rbp + 0x134]
mov qword [rsp + 0x20], rax
call fcn.005144b0
jmp 0x516dfc
lea rcx, [rbp + 0x140]
call fcn.0040ab70
mov rax, qword [rbp + 0x58]
mov eax, dword [rax]
and eax, 1
cmp eax, 1
sete al
mov byte [rbp + 0x133], al
mov rax, qword [rbp + 0x50]
cmp qword [rax + 0x58], 0
je 0x516ea4
lea rcx, [rbp + 0x98]
mov rax, qword [rbp + 0x58]
mov rdx, qword [rax + 8]
call fcn.0040c200
mov rax, qword [rbp + 0x50]
lea rbx, [rax + 0x58]
mov rcx, qword [rbx + 8]
mov rdx, qword [rbp + 0x50]
mov r8, qword [rbp + 0x98]
mov rax, qword [rbp + 0x58]
movzx r9, word [rax + 0x30]
mov rax, qword [rbp + 0x58]
movzx rax, word [rax + 0x32]
mov word [rsp + 0x20], ax
mov rax, qword [rbp + 0x58]
movzx rax, word [rax + 0x34]
mov word [rsp + 0x28], ax
mov rax, qword [rbp + 0x58]
movzx rax, word [rax + 0x3a]
mov word [rsp + 0x30], ax
lea rax, [rbp + 0x133]
mov qword [rsp + 0x38], rax
mov rax, qword [rbp + 0x140]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x132]
mov qword [rsp + 0x48], rax
call qword [rbx]
cmp byte [rbp + 0x132], 0
je 0x516ebd
mov qword [rbp + 0x148], 0xffffffffffffffff
jmp 0x51711a
cmp byte [rbp + 0x133], 0
je 0x516f10
mov rax, qword [rbp + 0x50]
movzx rax, byte [rax + 0x20]
test al, 1
je 0x516f10
cmp qword [rbp + 0x140], 0
je 0x516f10
mov rcx, qword [rbp + 0x140]
call fcn.0040c190
xor rcx, rcx
lea rdx, [0x005171e8]
mov r8, rax
xor r9, r9
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 1
call sub.shell32.dll_ShellExecuteW
mov qword [rbp + 0x148], 1
jmp 0x51711a
mov rax, qword [rbp + 0x50]
cmp qword [rax + 0x68], 0
je 0x51700e
lea rcx, [rbp + 0x138]
mov rax, qword [rbp + 0x58]
mov rdx, qword [rax + 0x18]
call fcn.0040c200
lea rcx, [rbp + 0x90]
mov rax, qword [rbp + 0x58]
mov rdx, qword [rax + 8]
call fcn.0040c200
lea rcx, [rbp + 0x88]
mov rax, qword [rbp + 0x58]
mov rdx, qword [rax + 0x10]
call fcn.0040c200
mov rax, qword [rbp + 0x50]
lea rbx, [rax + 0x68]
mov rcx, qword [rbx + 8]
mov rdx, qword [rbp + 0x50]
mov r8, qword [rbp + 0x90]
mov r9, qword [rbp + 0x88]
lea rax, [rbp + 0x138]
mov qword [rsp + 0x20], rax
mov rax, qword [rbp + 0x58]
mov eax, dword [rax + 0x3c]
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x132]
mov qword [rsp + 0x30], rax
call qword [rbx]
cmp byte [rbp + 0x132], 0
je 0x516fc4
mov qword [rbp + 0x148], 0xffffffffffffffff
jmp 0x517030
lea rcx, [rbp + 0x80]
mov rdx, qword [rbp + 0x138]
call fcn.00431d00
lea rcx, [rbp + 0x128]
mov rdx, qword [rbp + 0x80]
xor r8, r8
call fcn.0040bcc0
mov rax, qword [rbp + 0x58]
mov rcx, qword [rax + 0x18]
mov rdx, qword [rbp + 0x128]
call fcn.00428460
mov qword [rbp + 0x148], 0
jmp 0x517030
mov rax, qword [rbp + 0x58]
cmp dword [rax + 0x3c], 0
jne 0x517025
mov qword [rbp + 0x148], 0
jmp 0x517030
mov qword [rbp + 0x148], 0xffffffffffffffff
lea rcx, [rbp + 0x70]
mov rax, qword [rbp + 0x58]
mov rdx, qword [rax + 0x18]
call fcn.0040c200
mov rax, qword [rbp + 0x70]
mov qword [rbp + 0x108], rax
lea rcx, [rbp + 0x68]
mov rax, qword [rbp + 0x58]
mov rdx, qword [rax + 8]
call fcn.0040c200
mov rax, qword [rbp + 0x68]
mov qword [rbp + 0x110], rax
lea rcx, [rbp + 0x78]
lea rdx, [rbp + 0x108]
mov r8d, 1
call fcn.00513b50
mov rax, qword [rbp + 0x50]
lea rcx, [rax + 0xa0]
mov rdx, qword [rbp + 0x78]
call fcn.0040b1a0
mov rax, qword [rbp + 0x50]
mov byte [rax + 0xa8], 1
jmp 0x51711a
mov qword [rbp + 0x148], 0
mov rax, qword [rbp + 0x50]
cmp qword [rax + 0x78], 0
je 0x51711a
mov rax, qword [rbp + 0x50]
lea rbx, [rax + 0x78]
mov rcx, qword [rbx + 8]
mov rdx, qword [rbp + 0x50]
mov r8d, dword [rbp + 0x64]
mov r9, qword [rbp + 0x58]
lea rax, [rbp + 0x148]
mov qword [rsp + 0x20], rax
call qword [rbx]
jmp 0x51711a
mov qword [rbp + 0x148], 0
mov rax, qword [rbp + 0x50]
cmp qword [rax + 0x78], 0
je 0x51711a
mov rax, qword [rbp + 0x50]
lea rbx, [rax + 0x78]
mov rcx, qword [rbx + 8]
mov rdx, qword [rbp + 0x50]
mov r8d, dword [rbp + 0x64]
mov r9, qword [rbp + 0x58]
lea rax, [rbp + 0x148]
mov qword [rsp + 0x20], rax
call qword [rbx]
nop
lea rcx, [rbp + 0x68]
mov edx, 0x14
call fcn.0040ac50
lea rcx, [rbp + 0x118]
call fcn.0040ab70
lea rcx, [rbp + 0x128]
call fcn.0040abc0
lea rcx, [rbp + 0x138]
mov edx, 2
call fcn.0040ac50
mov rax, qword [rbp + 0x148]
lea rsp, [rbp + 0x150]
pop rbx
pop rsi
pop rbp
ret