Function at 0x46d758
Capabilities:
Create process on windows
Execute command

Disassembly:
push rbp
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x80]
mov qword [rbp - 0x10], rcx
mov dword [rbp - 8], edx
mov rax, qword [0x005d2ab0]
mov eax, dword [rax]
test eax, eax
jne 0x46e050
mov eax, dword [0x0072d908]
mov dword [0x00c6b6b8], eax
mov eax, dword [0x00c6b6b8]
test eax, eax
je 0x46d7b8
mov dword [0x00587618], 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov eax, dword [0x0072d908]
test eax, eax
je 0x46d7b8
jmp 0x46d79e
mov dword [0x00c6b6ec], 0
mov rax, qword [0x005d27f0]
mov eax, dword [rax]
test eax, eax
je 0x46d7e3
mov eax, dword [0x0058737c]
test eax, eax
je 0x46d7e3
mov dword [0x00c6b6ec], 1
mov rax, qword [0x00c6b6c0]
test rax, rax
jne 0x46d805
mov edx, 0
mov ecx, 0
call fcn.004463c2
mov qword [0x00c6b6c0], rax
mov rax, qword [0x00c6b6c8]
test rax, rax
jne 0x46d827
mov edx, 0
mov ecx, 0
call fcn.004463c2
mov qword [0x00c6b6c8], rax
mov rax, qword [0x00c6b6d0]
test rax, rax
jne 0x46d849
mov edx, 0
mov ecx, 0
call fcn.004463c2
mov qword [0x00c6b6d0], rax
mov rax, qword [0x00c6b6d8]
test rax, rax
jne 0x46d86b
mov edx, 0
mov ecx, 0
call fcn.004463c2
mov qword [0x00c6b6d8], rax
mov rax, qword [0x00c6b6e0]
test rax, rax
jne 0x46d88d
mov edx, 0
mov ecx, 0
call fcn.004463c2
mov qword [0x00c6b6e0], rax
cmp dword [rbp - 8], 0
je 0x46d8a5
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 8]
test eax, eax
jne 0x46d8a5
mov dword [rbp - 8], 0
cmp dword [rbp - 8], 0
je 0x46dfa2
mov eax, dword [0x00c6b6ec]
test eax, eax
je 0x46d913
mov edx, 1
lea rcx, [0x005b4c3c]
call fcn.00446199
mov rdx, rax
mov rcx, qword [rbp - 0x10]
call fcn.00446eed
mov rdx, rax
mov rax, qword [0x00c6b6c0]
mov rcx, rax
call fcn.00446590
mov dword [0x00c5819c], 1
mov rax, qword [0x00c6b6c0]
mov rax, qword [rax]
mov rcx, rax
call sub.msvcrt.dll_system
mov dword [0x00c5819c], 0
jmp 0x46e020
call fcn.0046bbe0
test eax, eax
setne al
test al, al
je 0x46de49
mov rax, qword [0x00c6b6c8]
mov rdx, qword [rbp - 0x10]
mov rcx, rax
call fcn.00446590
lea rcx, [0x0059acce]
call fcn.004460de
mov rdx, rax
mov rax, qword [0x00c6b6d8]
mov rcx, rax
call fcn.00446590
mov rax, qword [0x00c6b6c8]
mov eax, dword [rax + 8]
test eax, eax
je 0x46e013
mov rax, qword [0x00c6b6c8]
mov rcx, rax
call fcn.0046bcf3
test eax, eax
sete al
test al, al
je 0x46da67
mov edx, 1
lea rcx, [0x005b4c3c]
call fcn.00446199
mov rdx, rax
mov rax, qword [0x00c6b6c8]
mov rcx, rax
call fcn.00446eed
mov rdx, rax
mov rax, qword [0x00c6b6d0]
mov rcx, rax
call fcn.00446590
mov r8d, 0x70
mov edx, 0
lea rcx, [0x00c6b7a0]
call sub.msvcrt.dll_memset
mov dword [0x00c6b7a0], 0x70
mov rax, qword [0x00c6b6d0]
mov rax, qword [rax]
mov qword [0x00c6b7b8], rax
mov qword [0x00c6b7c0], 0
mov dword [0x00c6b7a4], 0x440
mov dword [0x00c6b7d0], 5
lea rcx, [0x00c6b7a0]
mov rax, qword [sym.imp.SHELL32.dll_ShellExecuteExA]
call rax
test eax, eax
setne al
test al, al
je 0x46da67
mov dword [0x00c5819c], 1
mov rax, qword [0x00c6b808]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [0x00c6b808]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov dword [0x00c5819c], 0
jmp 0x46e020
mov dword [0x00c6b810], 0
mov dword [0x00c6b814], 0
mov rax, qword [0x00c6b6c8]
mov edx, dword [rax + 8]
mov eax, dword [0x00c6b810]
cmp edx, eax
jle 0x46db6a
mov rax, qword [0x00c6b6c8]
mov rdx, qword [rax]
mov eax, dword [0x00c6b810]
cdqe
add rax, rdx
movzx eax, byte [rax]
cmp al, 0x22
jne 0x46dacf
mov eax, dword [0x00c6b814]
test eax, eax
jne 0x46dac5
mov dword [0x00c6b814], 1
jmp 0x46dacf
mov dword [0x00c6b814], 0
mov rax, qword [0x00c6b6c8]
mov rdx, qword [rax]
mov eax, dword [0x00c6b810]
cdqe
add rax, rdx
movzx eax, byte [rax]
cmp al, 0x20
jne 0x46db56
mov eax, dword [0x00c6b814]
test eax, eax
jne 0x46db56
mov rax, qword [0x00c6b6c8]
mov edx, dword [rax + 8]
mov eax, dword [0x00c6b810]
sub edx, eax
mov eax, edx
lea edx, [rax - 1]
mov rax, qword [0x00c6b6c8]
mov rcx, rax
call fcn.0044739c
mov rdx, rax
mov rax, qword [0x00c6b6d8]
mov rcx, rax
call fcn.00446590
mov edx, dword [0x00c6b810]
mov rax, qword [0x00c6b6c8]
mov rcx, rax
call fcn.004472be
mov rdx, rax
mov rax, qword [0x00c6b6c8]
mov rcx, rax
call fcn.00446590
jmp 0x46db6b
mov eax, dword [0x00c6b810]
add eax, 1
mov dword [0x00c6b810], eax
jmp 0x46da7b
nop
mov rax, qword [0x00c6b6c8]
mov eax, dword [rax + 8]
test eax, eax
je 0x46e016
mov rax, qword [0x00c6b6d8]
mov eax, dword [rax + 8]
test eax, eax
je 0x46dcc9
mov rax, qword [0x00c6b6c8]
mov rcx, rax
call fcn.0046bcf3
test eax, eax
sete al
test al, al
je 0x46dcc9
mov edx, 1
lea rcx, [0x005b4c3c]
call fcn.00446199
mov rdx, rax
mov rax, qword [0x00c6b6c8]
mov rcx, rax
call fcn.00446eed
mov rdx, rax
mov rax, qword [0x00c6b6d0]
mov rcx, rax
call fcn.00446590
mov edx, 1
lea rcx, [0x005b4c3c]
call fcn.00446199
mov rdx, rax
mov rax, qword [0x00c6b6d8]
mov rcx, rax
call fcn.00446eed
mov rdx, rax
mov rax, qword [0x00c6b6e0]
mov rcx, rax
call fcn.00446590
mov r8d, 0x70
mov edx, 0
lea rcx, [0x00c6b7a0]
call sub.msvcrt.dll_memset
mov dword [0x00c6b7a0], 0x70
mov rax, qword [0x00c6b6d0]
mov rax, qword [rax]
mov qword [0x00c6b7b8], rax
mov rax, qword [0x00c6b6e0]
mov rax, qword [rax]
mov qword [0x00c6b7c0], rax
mov dword [0x00c6b7a4], 0x440
mov dword [0x00c6b7d0], 5
lea rcx, [0x00c6b7a0]
mov rax, qword [sym.imp.SHELL32.dll_ShellExecuteExA]
call rax
test eax, eax
setne al
test al, al
je 0x46dcc9
mov dword [0x00c5819c], 1
mov rax, qword [0x00c6b808]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [0x00c6b808]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov dword [0x00c5819c], 0
jmp 0x46e020
mov rax, qword [0x00c6b6d8]
mov eax, dword [rax + 8]
test eax, eax
je 0x46dd07
mov rbx, qword [0x00c6b6d8]
lea rcx, [0x005b4f36]
call fcn.004460de
mov rdx, rbx
mov rcx, rax
call fcn.00446eed
mov rdx, rax
mov rax, qword [0x00c6b6d8]
mov rcx, rax
call fcn.00446590
mov rdx, qword [0x00c6b6d8]
mov rax, qword [0x00c6b6c8]
mov rcx, rax
call fcn.00446eed
mov rdx, rax
mov rax, qword [0x00c6b6c0]
mov rcx, rax
call fcn.00446590
mov rbx, qword [0x00c6b6c0]
lea rcx, str.__c
call fcn.004460de
mov rdx, rbx
mov rcx, rax
call fcn.00446eed
mov rdx, rax
mov rax, qword [0x00c6b6c0]
mov rcx, rax
call fcn.00446590
mov edx, 1
lea rcx, [0x005b4c3c]
call fcn.00446199
mov rdx, rax
mov rax, qword [0x00c6b6c0]
mov rcx, rax
call fcn.00446eed
mov rdx, rax
mov rax, qword [0x00c6b6c0]
mov rcx, rax
call fcn.00446590
mov r8d, 0x70
mov edx, 0
lea rcx, [0x00c6b7a0]
call sub.msvcrt.dll_memset
mov dword [0x00c6b7a0], 0x70
lea rax, [0x00587820]
mov qword [0x00c6b7b8], rax
mov rax, qword [0x00c6b6c0]
mov rax, qword [rax]
mov qword [0x00c6b7c0], rax
mov dword [0x00c6b7a4], 0x440
mov dword [0x00c6b7d0], 5
lea rcx, [0x00c6b7a0]
mov rax, qword [sym.imp.SHELL32.dll_ShellExecuteExA]
call rax
test eax, eax
setne al
test al, al
je 0x46e019
mov dword [0x00c5819c], 1
mov rax, qword [0x00c6b808]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [0x00c6b808]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov dword [0x00c5819c], 0
jmp 0x46e020
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 [0x00c6b6c0]
mov rcx, rax
call fcn.00446590
mov edx, 1
lea rcx, [0x005b4c3c]
call fcn.00446199
mov rdx, rax
mov rax, qword [0x00c6b6c0]
mov rcx, rax
call fcn.00446eed
mov rdx, rax
mov rax, qword [0x00c6b6c0]
mov rcx, rax
call fcn.00446590
mov r8d, 0x68
mov edx, 0
lea rcx, [0x00c6b700]
call sub.msvcrt.dll_memset
mov dword [0x00c6b700], 0x68
mov r8d, 0x18
mov edx, 0
lea rcx, [0x00c6b770]
call sub.msvcrt.dll_memset
mov rax, qword [0x00c6b6c0]
mov rax, qword [rax]
lea rdx, [0x00c6b770]
mov qword [rsp + 0x48], rdx
lea rdx, [0x00c6b700]
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 0x46e01c
mov dword [0x00c5819c], 1
mov rax, qword [0x00c6b770]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [0x00c6b770]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [0x00c6b778]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov dword [0x00c5819c], 0
jmp 0x46e020
mov eax, dword [0x00c6b6ec]
test eax, eax
jne 0x46dfb5
mov rax, qword [sym.imp.KERNEL32.dll_AllocConsole]
call rax
mov edx, 4
lea rcx, [0x005b52fe]
call fcn.00446199
mov rdx, rax
mov rax, qword [0x00c6b6c0]
mov rcx, rax
call fcn.00446590
mov dword [0x00c5819c], 1
mov rax, qword [0x00c6b6c0]
mov rax, qword [rax]
mov rcx, rax
call sub.msvcrt.dll_system
mov dword [0x00c5819c], 0
mov eax, dword [0x00c6b6ec]
test eax, eax
jne 0x46e01f
mov rax, qword [sym.imp.KERNEL32.dll_FreeConsole]
call rax
jmp 0x46e01f
nop
jmp 0x46e020
nop
jmp 0x46e020
nop
jmp 0x46e020
nop
jmp 0x46e020
nop
mov eax, dword [0x00c6b6b8]
test eax, eax
je 0x46e051
mov eax, dword [0x00c6b6b8]
mov dword [0x00587618], eax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov eax, dword [0x0072d908]
test eax, eax
jne 0x46e051
jmp 0x46e036
nop
add rsp, 0x58
pop rbx
pop rbp
ret