Function at 0x46f647
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 0x46f675
mov ecx, 5
call fcn.004450ba
jmp 0x46fccb
mov rax, qword [0x00c6cb08]
test rax, rax
jne 0x46f697
mov edx, 0
mov ecx, 0
call fcn.00446b22
mov qword [0x00c6cb08], rax
mov rax, qword [0x00c6cb10]
test rax, rax
jne 0x46f6b9
mov edx, 0
mov ecx, 0
call fcn.00446b22
mov qword [0x00c6cb10], rax
mov rax, qword [0x00c6cb18]
test rax, rax
jne 0x46f6db
mov edx, 0
mov ecx, 0
call fcn.00446b22
mov qword [0x00c6cb18], rax
mov rax, qword [0x00c6cb20]
test rax, rax
jne 0x46f6fd
mov edx, 0
mov ecx, 0
call fcn.00446b22
mov qword [0x00c6cb20], rax
mov rax, qword [0x00c6caf8]
test rax, rax
jne 0x46f71f
mov edx, 0
mov ecx, 0
call fcn.00446b22
mov qword [0x00c6caf8], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 8]
test eax, eax
jne 0x46f739
mov ecx, 5
call fcn.004450ba
jmp 0x46fccb
call fcn.0046c340
test eax, eax
setne al
test al, al
je 0x46fb98
mov rax, qword [0x00c6cb08]
mov rdx, qword [rbp - 0x10]
mov rcx, rax
call fcn.00446cf0
lea rcx, [0x0059bdae]
call fcn.0044683e
mov rdx, rax
mov rax, qword [0x00c6cb10]
mov rcx, rax
call fcn.00446cf0
mov rax, qword [0x00c6cb08]
mov rcx, rax
call fcn.0046c453
test eax, eax
sete al
test al, al
je 0x46f83b
mov edx, 1
lea rcx, [0x005b5d1c]
call fcn.004468f9
mov rdx, rax
mov rax, qword [0x00c6cb08]
mov rcx, rax
call fcn.0044764d
mov rdx, rax
mov rax, qword [0x00c6cb18]
mov rcx, rax
call fcn.00446cf0
mov r8d, 0x70
mov edx, 0
lea rcx, [0x00c6cbe0]
call sub.msvcrt.dll_memset
mov dword [0x00c6cbe0], 0x70
mov rax, qword [0x00c6cb18]
mov rax, qword [rax]
mov qword [0x00c6cbf8], rax
mov qword [0x00c6cc00], 0
mov dword [0x00c6cbe4], 0x400
mov dword [0x00c6cc10], 0
lea rcx, [0x00c6cbe0]
mov rax, qword [sym.imp.SHELL32.dll_ShellExecuteExA]
call rax
test eax, eax
setne al
test al, al
jne 0x46fcc1
mov dword [0x00c6cc50], 0
mov dword [0x00c6cc54], 0
mov rax, qword [0x00c6cb08]
mov edx, dword [rax + 8]
mov eax, dword [0x00c6cc50]
cmp edx, eax
jle 0x46f93e
mov rax, qword [0x00c6cb08]
mov rdx, qword [rax]
mov eax, dword [0x00c6cc50]
cdqe
add rax, rdx
movzx eax, byte [rax]
cmp al, 0x22
jne 0x46f8a3
mov eax, dword [0x00c6cc54]
test eax, eax
jne 0x46f899
mov dword [0x00c6cc54], 1
jmp 0x46f8a3
mov dword [0x00c6cc54], 0
mov rax, qword [0x00c6cb08]
mov rdx, qword [rax]
mov eax, dword [0x00c6cc50]
cdqe
add rax, rdx
movzx eax, byte [rax]
cmp al, 0x20
jne 0x46f92a
mov eax, dword [0x00c6cc54]
test eax, eax
jne 0x46f92a
mov rax, qword [0x00c6cb08]
mov edx, dword [rax + 8]
mov eax, dword [0x00c6cc50]
sub edx, eax
mov eax, edx
lea edx, [rax - 1]
mov rax, qword [0x00c6cb08]
mov rcx, rax
call fcn.00447afc
mov rdx, rax
mov rax, qword [0x00c6cb10]
mov rcx, rax
call fcn.00446cf0
mov edx, dword [0x00c6cc50]
mov rax, qword [0x00c6cb08]
mov rcx, rax
call fcn.00447a1e
mov rdx, rax
mov rax, qword [0x00c6cb08]
mov rcx, rax
call fcn.00446cf0
jmp 0x46f93f
mov eax, dword [0x00c6cc50]
add eax, 1
mov dword [0x00c6cc50], eax
jmp 0x46f84f
nop
mov rax, qword [0x00c6cb08]
mov eax, dword [rax + 8]
test eax, eax
je 0x46fcc4
mov rax, qword [0x00c6cb10]
mov eax, dword [rax + 8]
test eax, eax
je 0x46fa5d
mov rax, qword [0x00c6cb08]
mov rcx, rax
call fcn.0046c453
test eax, eax
sete al
test al, al
je 0x46fa5d
mov edx, 1
lea rcx, [0x005b5d1c]
call fcn.004468f9
mov rdx, rax
mov rax, qword [0x00c6cb08]
mov rcx, rax
call fcn.0044764d
mov rdx, rax
mov rax, qword [0x00c6cb18]
mov rcx, rax
call fcn.00446cf0
mov edx, 1
lea rcx, [0x005b5d1c]
call fcn.004468f9
mov rdx, rax
mov rax, qword [0x00c6cb10]
mov rcx, rax
call fcn.0044764d
mov rdx, rax
mov rax, qword [0x00c6cb20]
mov rcx, rax
call fcn.00446cf0
mov r8d, 0x70
mov edx, 0
lea rcx, [0x00c6cbe0]
call sub.msvcrt.dll_memset
mov dword [0x00c6cbe0], 0x70
mov rax, qword [0x00c6cb18]
mov rax, qword [rax]
mov qword [0x00c6cbf8], rax
mov rax, qword [0x00c6cb20]
mov rax, qword [rax]
mov qword [0x00c6cc00], rax
mov dword [0x00c6cbe4], 0x400
mov dword [0x00c6cc10], 0
lea rcx, [0x00c6cbe0]
mov rax, qword [sym.imp.SHELL32.dll_ShellExecuteExA]
call rax
test eax, eax
setne al
test al, al
jne 0x46fcc7
mov rax, qword [0x00c6cb10]
mov eax, dword [rax + 8]
test eax, eax
je 0x46fa9b
mov rbx, qword [0x00c6cb10]
lea rcx, [0x005b6016]
call fcn.0044683e
mov rdx, rbx
mov rcx, rax
call fcn.0044764d
mov rdx, rax
mov rax, qword [0x00c6cb10]
mov rcx, rax
call fcn.00446cf0
mov rdx, qword [0x00c6cb10]
mov rax, qword [0x00c6cb08]
mov rcx, rax
call fcn.0044764d
mov rdx, rax
mov rax, qword [0x00c6caf8]
mov rcx, rax
call fcn.00446cf0
mov rbx, qword [0x00c6caf8]
lea rcx, str.__c
call fcn.0044683e
mov rdx, rbx
mov rcx, rax
call fcn.0044764d
mov rdx, rax
mov rax, qword [0x00c6caf8]
mov rcx, rax
call fcn.00446cf0
mov edx, 1
lea rcx, [0x005b5d1c]
call fcn.004468f9
mov rdx, rax
mov rax, qword [0x00c6caf8]
mov rcx, rax
call fcn.0044764d
mov rdx, rax
mov rax, qword [0x00c6caf8]
mov rcx, rax
call fcn.00446cf0
mov r8d, 0x70
mov edx, 0
lea rcx, [0x00c6cbe0]
call sub.msvcrt.dll_memset
mov dword [0x00c6cbe0], 0x70
lea rax, [0x00588850]
mov qword [0x00c6cbf8], rax
mov rax, qword [0x00c6caf8]
mov rax, qword [rax]
mov qword [0x00c6cc00], rax
mov dword [0x00c6cbe4], 0x400
mov dword [0x00c6cc10], 0
lea rcx, [0x00c6cbe0]
mov rax, qword [sym.imp.SHELL32.dll_ShellExecuteExA]
call rax
test eax, eax
setne al
test al, al
jmp 0x46fccb
lea rcx, str.command.com__c
call fcn.0044683e
mov rdx, qword [rbp - 0x10]
mov rcx, rax
call fcn.0044764d
mov rdx, rax
mov rax, qword [0x00c6caf8]
mov rcx, rax
call fcn.00446cf0
mov edx, 1
lea rcx, [0x005b5d1c]
call fcn.004468f9
mov rdx, rax
mov rax, qword [0x00c6caf8]
mov rcx, rax
call fcn.0044764d
mov rdx, rax
mov rax, qword [0x00c6caf8]
mov rcx, rax
call fcn.00446cf0
mov r8d, 0x68
mov edx, 0
lea rcx, [0x00c6cb40]
call sub.msvcrt.dll_memset
mov dword [0x00c6cb40], 0x68
mov r8d, 0x18
mov edx, 0
lea rcx, [0x00c6cbb0]
call sub.msvcrt.dll_memset
mov rax, qword [0x00c6caf8]
mov rax, qword [rax]
lea rdx, [0x00c6cbb0]
mov qword [rsp + 0x48], rdx
lea rdx, [0x00c6cb40]
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 0x46fcca
mov rax, qword [0x00c6cbb0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [0x00c6cbb8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
jmp 0x46fccb
nop
jmp 0x46fccb
nop
jmp 0x46fccb
nop
jmp 0x46fccb
nop
add rsp, 0x58
pop rbx
pop rbp
ret