Function at 0x46eee7
Capabilities:
Create process on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x80]
mov qword [rbp - 0x10], rcx
mov dword [rbp - 8], edx
mov eax, dword [rbp - 8]
and eax, 2
test eax, eax
jne 0x46ef15
mov ecx, 5
call fcn.0044495a
jmp 0x46f56b
mov rax, qword [0x00c6bae8]
test rax, rax
jne 0x46ef37
mov edx, 0
mov ecx, 0
call fcn.004463c2
mov qword [0x00c6bae8], rax
mov rax, qword [0x00c6baf0]
test rax, rax
jne 0x46ef59
mov edx, 0
mov ecx, 0
call fcn.004463c2
mov qword [0x00c6baf0], rax
mov rax, qword [0x00c6baf8]
test rax, rax
jne 0x46ef7b
mov edx, 0
mov ecx, 0
call fcn.004463c2
mov qword [0x00c6baf8], rax
mov rax, qword [0x00c6bb00]
test rax, rax
jne 0x46ef9d
mov edx, 0
mov ecx, 0
call fcn.004463c2
mov qword [0x00c6bb00], rax
mov rax, qword [0x00c6bad8]
test rax, rax
jne 0x46efbf
mov edx, 0
mov ecx, 0
call fcn.004463c2
mov qword [0x00c6bad8], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 8]
test eax, eax
jne 0x46efd9
mov ecx, 5
call fcn.0044495a
jmp 0x46f56b
call fcn.0046bbe0
test eax, eax
setne al
test al, al
je 0x46f438
mov rax, qword [0x00c6bae8]
mov rdx, qword [rbp - 0x10]
mov rcx, rax
call fcn.00446590
lea rcx, [0x0059acce]
call fcn.004460de
mov rdx, rax
mov rax, qword [0x00c6baf0]
mov rcx, rax
call fcn.00446590
mov rax, qword [0x00c6bae8]
mov rcx, rax
call fcn.0046bcf3
test eax, eax
sete al
test al, al
je 0x46f0db
mov edx, 1
lea rcx, [0x005b4c3c]
call fcn.00446199
mov rdx, rax
mov rax, qword [0x00c6bae8]
mov rcx, rax
call fcn.00446eed
mov rdx, rax
mov rax, qword [0x00c6baf8]
mov rcx, rax
call fcn.00446590
mov r8d, 0x70
mov edx, 0
lea rcx, [0x00c6bbc0]
call sub.msvcrt.dll_memset
mov dword [0x00c6bbc0], 0x70
mov rax, qword [0x00c6baf8]
mov rax, qword [rax]
mov qword [0x00c6bbd8], rax
mov qword [0x00c6bbe0], 0
mov dword [0x00c6bbc4], 0x400
mov dword [0x00c6bbf0], 0
lea rcx, [0x00c6bbc0]
mov rax, qword [sym.imp.SHELL32.dll_ShellExecuteExA]
call rax
test eax, eax
setne al
test al, al
jne 0x46f561
mov dword [0x00c6bc30], 0
mov dword [0x00c6bc34], 0
mov rax, qword [0x00c6bae8]
mov edx, dword [rax + 8]
mov eax, dword [0x00c6bc30]
cmp edx, eax
jle 0x46f1de
mov rax, qword [0x00c6bae8]
mov rdx, qword [rax]
mov eax, dword [0x00c6bc30]
cdqe
add rax, rdx
movzx eax, byte [rax]
cmp al, 0x22
jne 0x46f143
mov eax, dword [0x00c6bc34]
test eax, eax
jne 0x46f139
mov dword [0x00c6bc34], 1
jmp 0x46f143
mov dword [0x00c6bc34], 0
mov rax, qword [0x00c6bae8]
mov rdx, qword [rax]
mov eax, dword [0x00c6bc30]
cdqe
add rax, rdx
movzx eax, byte [rax]
cmp al, 0x20
jne 0x46f1ca
mov eax, dword [0x00c6bc34]
test eax, eax
jne 0x46f1ca
mov rax, qword [0x00c6bae8]
mov edx, dword [rax + 8]
mov eax, dword [0x00c6bc30]
sub edx, eax
mov eax, edx
lea edx, [rax - 1]
mov rax, qword [0x00c6bae8]
mov rcx, rax
call fcn.0044739c
mov rdx, rax
mov rax, qword [0x00c6baf0]
mov rcx, rax
call fcn.00446590
mov edx, dword [0x00c6bc30]
mov rax, qword [0x00c6bae8]
mov rcx, rax
call fcn.004472be
mov rdx, rax
mov rax, qword [0x00c6bae8]
mov rcx, rax
call fcn.00446590
jmp 0x46f1df
mov eax, dword [0x00c6bc30]
add eax, 1
mov dword [0x00c6bc30], eax
jmp 0x46f0ef
nop
mov rax, qword [0x00c6bae8]
mov eax, dword [rax + 8]
test eax, eax
je 0x46f564
mov rax, qword [0x00c6baf0]
mov eax, dword [rax + 8]
test eax, eax
je 0x46f2fd
mov rax, qword [0x00c6bae8]
mov rcx, rax
call fcn.0046bcf3
test eax, eax
sete al
test al, al
je 0x46f2fd
mov edx, 1
lea rcx, [0x005b4c3c]
call fcn.00446199
mov rdx, rax
mov rax, qword [0x00c6bae8]
mov rcx, rax
call fcn.00446eed
mov rdx, rax
mov rax, qword [0x00c6baf8]
mov rcx, rax
call fcn.00446590
mov edx, 1
lea rcx, [0x005b4c3c]
call fcn.00446199
mov rdx, rax
mov rax, qword [0x00c6baf0]
mov rcx, rax
call fcn.00446eed
mov rdx, rax
mov rax, qword [0x00c6bb00]
mov rcx, rax
call fcn.00446590
mov r8d, 0x70
mov edx, 0
lea rcx, [0x00c6bbc0]
call sub.msvcrt.dll_memset
mov dword [0x00c6bbc0], 0x70
mov rax, qword [0x00c6baf8]
mov rax, qword [rax]
mov qword [0x00c6bbd8], rax
mov rax, qword [0x00c6bb00]
mov rax, qword [rax]
mov qword [0x00c6bbe0], rax
mov dword [0x00c6bbc4], 0x400
mov dword [0x00c6bbf0], 0
lea rcx, [0x00c6bbc0]
mov rax, qword [sym.imp.SHELL32.dll_ShellExecuteExA]
call rax
test eax, eax
setne al
test al, al
jne 0x46f567
mov rax, qword [0x00c6baf0]
mov eax, dword [rax + 8]
test eax, eax
je 0x46f33b
mov rbx, qword [0x00c6baf0]
lea rcx, [0x005b4f36]
call fcn.004460de
mov rdx, rbx
mov rcx, rax
call fcn.00446eed
mov rdx, rax
mov rax, qword [0x00c6baf0]
mov rcx, rax
call fcn.00446590
mov rdx, qword [0x00c6baf0]
mov rax, qword [0x00c6bae8]
mov rcx, rax
call fcn.00446eed
mov rdx, rax
mov rax, qword [0x00c6bad8]
mov rcx, rax
call fcn.00446590
mov rbx, qword [0x00c6bad8]
lea rcx, str.__c
call fcn.004460de
mov rdx, rbx
mov rcx, rax
call fcn.00446eed
mov rdx, rax
mov rax, qword [0x00c6bad8]
mov rcx, rax
call fcn.00446590
mov edx, 1
lea rcx, [0x005b4c3c]
call fcn.00446199
mov rdx, rax
mov rax, qword [0x00c6bad8]
mov rcx, rax
call fcn.00446eed
mov rdx, rax
mov rax, qword [0x00c6bad8]
mov rcx, rax
call fcn.00446590
mov r8d, 0x70
mov edx, 0
lea rcx, [0x00c6bbc0]
call sub.msvcrt.dll_memset
mov dword [0x00c6bbc0], 0x70
lea rax, [0x00587850]
mov qword [0x00c6bbd8], rax
mov rax, qword [0x00c6bad8]
mov rax, qword [rax]
mov qword [0x00c6bbe0], rax
mov dword [0x00c6bbc4], 0x400
mov dword [0x00c6bbf0], 0
lea rcx, [0x00c6bbc0]
mov rax, qword [sym.imp.SHELL32.dll_ShellExecuteExA]
call rax
test eax, eax
setne al
test al, al
jmp 0x46f56b
lea rcx, str.command.com__c
call fcn.004460de
mov rdx, qword [rbp - 0x10]
mov rcx, rax
call fcn.00446eed
mov rdx, rax
mov rax, qword [0x00c6bad8]
mov rcx, rax
call fcn.00446590
mov edx, 1
lea rcx, [0x005b4c3c]
call fcn.00446199
mov rdx, rax
mov rax, qword [0x00c6bad8]
mov rcx, rax
call fcn.00446eed
mov rdx, rax
mov rax, qword [0x00c6bad8]
mov rcx, rax
call fcn.00446590
mov r8d, 0x68
mov edx, 0
lea rcx, [0x00c6bb20]
call sub.msvcrt.dll_memset
mov dword [0x00c6bb20], 0x68
mov r8d, 0x18
mov edx, 0
lea rcx, [0x00c6bb90]
call sub.msvcrt.dll_memset
mov rax, qword [0x00c6bad8]
mov rax, qword [rax]
lea rdx, [0x00c6bb90]
mov qword [rsp + 0x48], rdx
lea rdx, [0x00c6bb20]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
test eax, eax
setne al
test al, al
je 0x46f56a
mov rax, qword [0x00c6bb90]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [0x00c6bb98]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
jmp 0x46f56b
nop
jmp 0x46f56b
nop
jmp 0x46f56b
nop
jmp 0x46f56b
nop
add rsp, 0x58
pop rbx
pop rbp
ret