Function at 0x46f6f7
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 0x46f725
mov ecx, 5
call fcn.0044516a
jmp 0x46fd7b
mov rax, qword [0x00c6cae8]
test rax, rax
jne 0x46f747
mov edx, 0
mov ecx, 0
call fcn.00446bd2
mov qword [0x00c6cae8], rax
mov rax, qword [0x00c6caf0]
test rax, rax
jne 0x46f769
mov edx, 0
mov ecx, 0
call fcn.00446bd2
mov qword [0x00c6caf0], rax
mov rax, qword [0x00c6caf8]
test rax, rax
jne 0x46f78b
mov edx, 0
mov ecx, 0
call fcn.00446bd2
mov qword [0x00c6caf8], rax
mov rax, qword [0x00c6cb00]
test rax, rax
jne 0x46f7ad
mov edx, 0
mov ecx, 0
call fcn.00446bd2
mov qword [0x00c6cb00], rax
mov rax, qword [0x00c6cad8]
test rax, rax
jne 0x46f7cf
mov edx, 0
mov ecx, 0
call fcn.00446bd2
mov qword [0x00c6cad8], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 8]
test eax, eax
jne 0x46f7e9
mov ecx, 5
call fcn.0044516a
jmp 0x46fd7b
call fcn.0046c3f0
test eax, eax
setne al
test al, al
je 0x46fc48
mov rax, qword [0x00c6cae8]
mov rdx, qword [rbp - 0x10]
mov rcx, rax
call fcn.00446da0
lea rcx, [0x0059bdae]
call fcn.004468ee
mov rdx, rax
mov rax, qword [0x00c6caf0]
mov rcx, rax
call fcn.00446da0
mov rax, qword [0x00c6cae8]
mov rcx, rax
call fcn.0046c503
test eax, eax
sete al
test al, al
je 0x46f8eb
mov edx, 1
lea rcx, [0x005b5d1c]
call fcn.004469a9
mov rdx, rax
mov rax, qword [0x00c6cae8]
mov rcx, rax
call fcn.004476fd
mov rdx, rax
mov rax, qword [0x00c6caf8]
mov rcx, rax
call fcn.00446da0
mov r8d, 0x70
mov edx, 0
lea rcx, [0x00c6cbc0]
call sub.msvcrt.dll_memset
mov dword [0x00c6cbc0], 0x70
mov rax, qword [0x00c6caf8]
mov rax, qword [rax]
mov qword [0x00c6cbd8], rax
mov qword [0x00c6cbe0], 0
mov dword [0x00c6cbc4], 0x400
mov dword [0x00c6cbf0], 0
lea rcx, [0x00c6cbc0]
mov rax, qword [sym.imp.SHELL32.dll_ShellExecuteExA]
call rax
test eax, eax
setne al
test al, al
jne 0x46fd71
mov dword [0x00c6cc30], 0
mov dword [0x00c6cc34], 0
mov rax, qword [0x00c6cae8]
mov edx, dword [rax + 8]
mov eax, dword [0x00c6cc30]
cmp edx, eax
jle 0x46f9ee
mov rax, qword [0x00c6cae8]
mov rdx, qword [rax]
mov eax, dword [0x00c6cc30]
cdqe
add rax, rdx
movzx eax, byte [rax]
cmp al, 0x22
jne 0x46f953
mov eax, dword [0x00c6cc34]
test eax, eax
jne 0x46f949
mov dword [0x00c6cc34], 1
jmp 0x46f953
mov dword [0x00c6cc34], 0
mov rax, qword [0x00c6cae8]
mov rdx, qword [rax]
mov eax, dword [0x00c6cc30]
cdqe
add rax, rdx
movzx eax, byte [rax]
cmp al, 0x20
jne 0x46f9da
mov eax, dword [0x00c6cc34]
test eax, eax
jne 0x46f9da
mov rax, qword [0x00c6cae8]
mov edx, dword [rax + 8]
mov eax, dword [0x00c6cc30]
sub edx, eax
mov eax, edx
lea edx, [rax - 1]
mov rax, qword [0x00c6cae8]
mov rcx, rax
call fcn.00447bac
mov rdx, rax
mov rax, qword [0x00c6caf0]
mov rcx, rax
call fcn.00446da0
mov edx, dword [0x00c6cc30]
mov rax, qword [0x00c6cae8]
mov rcx, rax
call fcn.00447ace
mov rdx, rax
mov rax, qword [0x00c6cae8]
mov rcx, rax
call fcn.00446da0
jmp 0x46f9ef
mov eax, dword [0x00c6cc30]
add eax, 1
mov dword [0x00c6cc30], eax
jmp 0x46f8ff
nop
mov rax, qword [0x00c6cae8]
mov eax, dword [rax + 8]
test eax, eax
je 0x46fd74
mov rax, qword [0x00c6caf0]
mov eax, dword [rax + 8]
test eax, eax
je 0x46fb0d
mov rax, qword [0x00c6cae8]
mov rcx, rax
call fcn.0046c503
test eax, eax
sete al
test al, al
je 0x46fb0d
mov edx, 1
lea rcx, [0x005b5d1c]
call fcn.004469a9
mov rdx, rax
mov rax, qword [0x00c6cae8]
mov rcx, rax
call fcn.004476fd
mov rdx, rax
mov rax, qword [0x00c6caf8]
mov rcx, rax
call fcn.00446da0
mov edx, 1
lea rcx, [0x005b5d1c]
call fcn.004469a9
mov rdx, rax
mov rax, qword [0x00c6caf0]
mov rcx, rax
call fcn.004476fd
mov rdx, rax
mov rax, qword [0x00c6cb00]
mov rcx, rax
call fcn.00446da0
mov r8d, 0x70
mov edx, 0
lea rcx, [0x00c6cbc0]
call sub.msvcrt.dll_memset
mov dword [0x00c6cbc0], 0x70
mov rax, qword [0x00c6caf8]
mov rax, qword [rax]
mov qword [0x00c6cbd8], rax
mov rax, qword [0x00c6cb00]
mov rax, qword [rax]
mov qword [0x00c6cbe0], rax
mov dword [0x00c6cbc4], 0x400
mov dword [0x00c6cbf0], 0
lea rcx, [0x00c6cbc0]
mov rax, qword [sym.imp.SHELL32.dll_ShellExecuteExA]
call rax
test eax, eax
setne al
test al, al
jne 0x46fd77
mov rax, qword [0x00c6caf0]
mov eax, dword [rax + 8]
test eax, eax
je 0x46fb4b
mov rbx, qword [0x00c6caf0]
lea rcx, [0x005b6016]
call fcn.004468ee
mov rdx, rbx
mov rcx, rax
call fcn.004476fd
mov rdx, rax
mov rax, qword [0x00c6caf0]
mov rcx, rax
call fcn.00446da0
mov rdx, qword [0x00c6caf0]
mov rax, qword [0x00c6cae8]
mov rcx, rax
call fcn.004476fd
mov rdx, rax
mov rax, qword [0x00c6cad8]
mov rcx, rax
call fcn.00446da0
mov rbx, qword [0x00c6cad8]
lea rcx, str.__c
call fcn.004468ee
mov rdx, rbx
mov rcx, rax
call fcn.004476fd
mov rdx, rax
mov rax, qword [0x00c6cad8]
mov rcx, rax
call fcn.00446da0
mov edx, 1
lea rcx, [0x005b5d1c]
call fcn.004469a9
mov rdx, rax
mov rax, qword [0x00c6cad8]
mov rcx, rax
call fcn.004476fd
mov rdx, rax
mov rax, qword [0x00c6cad8]
mov rcx, rax
call fcn.00446da0
mov r8d, 0x70
mov edx, 0
lea rcx, [0x00c6cbc0]
call sub.msvcrt.dll_memset
mov dword [0x00c6cbc0], 0x70
lea rax, [0x00588850]
mov qword [0x00c6cbd8], rax
mov rax, qword [0x00c6cad8]
mov rax, qword [rax]
mov qword [0x00c6cbe0], rax
mov dword [0x00c6cbc4], 0x400
mov dword [0x00c6cbf0], 0
lea rcx, [0x00c6cbc0]
mov rax, qword [sym.imp.SHELL32.dll_ShellExecuteExA]
call rax
test eax, eax
setne al
test al, al
jmp 0x46fd7b
lea rcx, str.command.com__c
call fcn.004468ee
mov rdx, qword [rbp - 0x10]
mov rcx, rax
call fcn.004476fd
mov rdx, rax
mov rax, qword [0x00c6cad8]
mov rcx, rax
call fcn.00446da0
mov edx, 1
lea rcx, [0x005b5d1c]
call fcn.004469a9
mov rdx, rax
mov rax, qword [0x00c6cad8]
mov rcx, rax
call fcn.004476fd
mov rdx, rax
mov rax, qword [0x00c6cad8]
mov rcx, rax
call fcn.00446da0
mov r8d, 0x68
mov edx, 0
lea rcx, [0x00c6cb20]
call sub.msvcrt.dll_memset
mov dword [0x00c6cb20], 0x68
mov r8d, 0x18
mov edx, 0
lea rcx, [0x00c6cb90]
call sub.msvcrt.dll_memset
mov rax, qword [0x00c6cad8]
mov rax, qword [rax]
lea rdx, [0x00c6cb90]
mov qword [rsp + 0x48], rdx
lea rdx, [0x00c6cb20]
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 0x46fd7a
mov rax, qword [0x00c6cb90]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [0x00c6cb98]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
jmp 0x46fd7b
nop
jmp 0x46fd7b
nop
jmp 0x46fd7b
nop
jmp 0x46fd7b
nop
add rsp, 0x58
pop rbx
pop rbp
ret