Function at 0x46df68
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 [0x005d3b90]
mov eax, dword [rax]
test eax, eax
jne 0x46e860
mov eax, dword [0x0072e908]
mov dword [0x00c6c6b8], eax
mov eax, dword [0x00c6c6b8]
test eax, eax
je 0x46dfc8
mov dword [0x00588618], 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov eax, dword [0x0072e908]
test eax, eax
je 0x46dfc8
jmp 0x46dfae
mov dword [0x00c6c6ec], 0
mov rax, qword [0x005d38d0]
mov eax, dword [rax]
test eax, eax
je 0x46dff3
mov eax, dword [0x0058837c]
test eax, eax
je 0x46dff3
mov dword [0x00c6c6ec], 1
mov rax, qword [0x00c6c6c0]
test rax, rax
jne 0x46e015
mov edx, 0
mov ecx, 0
call fcn.00446bd2
mov qword [0x00c6c6c0], rax
mov rax, qword [0x00c6c6c8]
test rax, rax
jne 0x46e037
mov edx, 0
mov ecx, 0
call fcn.00446bd2
mov qword [0x00c6c6c8], rax
mov rax, qword [0x00c6c6d0]
test rax, rax
jne 0x46e059
mov edx, 0
mov ecx, 0
call fcn.00446bd2
mov qword [0x00c6c6d0], rax
mov rax, qword [0x00c6c6d8]
test rax, rax
jne 0x46e07b
mov edx, 0
mov ecx, 0
call fcn.00446bd2
mov qword [0x00c6c6d8], rax
mov rax, qword [0x00c6c6e0]
test rax, rax
jne 0x46e09d
mov edx, 0
mov ecx, 0
call fcn.00446bd2
mov qword [0x00c6c6e0], rax
cmp dword [rbp - 8], 0
je 0x46e0b5
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 8]
test eax, eax
jne 0x46e0b5
mov dword [rbp - 8], 0
cmp dword [rbp - 8], 0
je 0x46e7b2
mov eax, dword [0x00c6c6ec]
test eax, eax
je 0x46e123
mov edx, 1
lea rcx, [0x005b5d1c]
call fcn.004469a9
mov rdx, rax
mov rcx, qword [rbp - 0x10]
call fcn.004476fd
mov rdx, rax
mov rax, qword [0x00c6c6c0]
mov rcx, rax
call fcn.00446da0
mov dword [0x00c5919c], 1
mov rax, qword [0x00c6c6c0]
mov rax, qword [rax]
mov rcx, rax
call sub.msvcrt.dll_system
mov dword [0x00c5919c], 0
jmp 0x46e830
call fcn.0046c3f0
test eax, eax
setne al
test al, al
je 0x46e659
mov rax, qword [0x00c6c6c8]
mov rdx, qword [rbp - 0x10]
mov rcx, rax
call fcn.00446da0
lea rcx, [0x0059bdae]
call fcn.004468ee
mov rdx, rax
mov rax, qword [0x00c6c6d8]
mov rcx, rax
call fcn.00446da0
mov rax, qword [0x00c6c6c8]
mov eax, dword [rax + 8]
test eax, eax
je 0x46e823
mov rax, qword [0x00c6c6c8]
mov rcx, rax
call fcn.0046c503
test eax, eax
sete al
test al, al
je 0x46e277
mov edx, 1
lea rcx, [0x005b5d1c]
call fcn.004469a9
mov rdx, rax
mov rax, qword [0x00c6c6c8]
mov rcx, rax
call fcn.004476fd
mov rdx, rax
mov rax, qword [0x00c6c6d0]
mov rcx, rax
call fcn.00446da0
mov r8d, 0x70
mov edx, 0
lea rcx, [0x00c6c7a0]
call sub.msvcrt.dll_memset
mov dword [0x00c6c7a0], 0x70
mov rax, qword [0x00c6c6d0]
mov rax, qword [rax]
mov qword [0x00c6c7b8], rax
mov qword [0x00c6c7c0], 0
mov dword [0x00c6c7a4], 0x440
mov dword [0x00c6c7d0], 5
lea rcx, [0x00c6c7a0]
mov rax, qword [sym.imp.SHELL32.dll_ShellExecuteExA]
call rax
test eax, eax
setne al
test al, al
je 0x46e277
mov dword [0x00c5919c], 1
mov rax, qword [0x00c6c808]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [0x00c6c808]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov dword [0x00c5919c], 0
jmp 0x46e830
mov dword [0x00c6c810], 0
mov dword [0x00c6c814], 0
mov rax, qword [0x00c6c6c8]
mov edx, dword [rax + 8]
mov eax, dword [0x00c6c810]
cmp edx, eax
jle 0x46e37a
mov rax, qword [0x00c6c6c8]
mov rdx, qword [rax]
mov eax, dword [0x00c6c810]
cdqe
add rax, rdx
movzx eax, byte [rax]
cmp al, 0x22
jne 0x46e2df
mov eax, dword [0x00c6c814]
test eax, eax
jne 0x46e2d5
mov dword [0x00c6c814], 1
jmp 0x46e2df
mov dword [0x00c6c814], 0
mov rax, qword [0x00c6c6c8]
mov rdx, qword [rax]
mov eax, dword [0x00c6c810]
cdqe
add rax, rdx
movzx eax, byte [rax]
cmp al, 0x20
jne 0x46e366
mov eax, dword [0x00c6c814]
test eax, eax
jne 0x46e366
mov rax, qword [0x00c6c6c8]
mov edx, dword [rax + 8]
mov eax, dword [0x00c6c810]
sub edx, eax
mov eax, edx
lea edx, [rax - 1]
mov rax, qword [0x00c6c6c8]
mov rcx, rax
call fcn.00447bac
mov rdx, rax
mov rax, qword [0x00c6c6d8]
mov rcx, rax
call fcn.00446da0
mov edx, dword [0x00c6c810]
mov rax, qword [0x00c6c6c8]
mov rcx, rax
call fcn.00447ace
mov rdx, rax
mov rax, qword [0x00c6c6c8]
mov rcx, rax
call fcn.00446da0
jmp 0x46e37b
mov eax, dword [0x00c6c810]
add eax, 1
mov dword [0x00c6c810], eax
jmp 0x46e28b
nop
mov rax, qword [0x00c6c6c8]
mov eax, dword [rax + 8]
test eax, eax
je 0x46e826
mov rax, qword [0x00c6c6d8]
mov eax, dword [rax + 8]
test eax, eax
je 0x46e4d9
mov rax, qword [0x00c6c6c8]
mov rcx, rax
call fcn.0046c503
test eax, eax
sete al
test al, al
je 0x46e4d9
mov edx, 1
lea rcx, [0x005b5d1c]
call fcn.004469a9
mov rdx, rax
mov rax, qword [0x00c6c6c8]
mov rcx, rax
call fcn.004476fd
mov rdx, rax
mov rax, qword [0x00c6c6d0]
mov rcx, rax
call fcn.00446da0
mov edx, 1
lea rcx, [0x005b5d1c]
call fcn.004469a9
mov rdx, rax
mov rax, qword [0x00c6c6d8]
mov rcx, rax
call fcn.004476fd
mov rdx, rax
mov rax, qword [0x00c6c6e0]
mov rcx, rax
call fcn.00446da0
mov r8d, 0x70
mov edx, 0
lea rcx, [0x00c6c7a0]
call sub.msvcrt.dll_memset
mov dword [0x00c6c7a0], 0x70
mov rax, qword [0x00c6c6d0]
mov rax, qword [rax]
mov qword [0x00c6c7b8], rax
mov rax, qword [0x00c6c6e0]
mov rax, qword [rax]
mov qword [0x00c6c7c0], rax
mov dword [0x00c6c7a4], 0x440
mov dword [0x00c6c7d0], 5
lea rcx, [0x00c6c7a0]
mov rax, qword [sym.imp.SHELL32.dll_ShellExecuteExA]
call rax
test eax, eax
setne al
test al, al
je 0x46e4d9
mov dword [0x00c5919c], 1
mov rax, qword [0x00c6c808]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [0x00c6c808]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov dword [0x00c5919c], 0
jmp 0x46e830
mov rax, qword [0x00c6c6d8]
mov eax, dword [rax + 8]
test eax, eax
je 0x46e517
mov rbx, qword [0x00c6c6d8]
lea rcx, [0x005b6016]
call fcn.004468ee
mov rdx, rbx
mov rcx, rax
call fcn.004476fd
mov rdx, rax
mov rax, qword [0x00c6c6d8]
mov rcx, rax
call fcn.00446da0
mov rdx, qword [0x00c6c6d8]
mov rax, qword [0x00c6c6c8]
mov rcx, rax
call fcn.004476fd
mov rdx, rax
mov rax, qword [0x00c6c6c0]
mov rcx, rax
call fcn.00446da0
mov rbx, qword [0x00c6c6c0]
lea rcx, str.__c
call fcn.004468ee
mov rdx, rbx
mov rcx, rax
call fcn.004476fd
mov rdx, rax
mov rax, qword [0x00c6c6c0]
mov rcx, rax
call fcn.00446da0
mov edx, 1
lea rcx, [0x005b5d1c]
call fcn.004469a9
mov rdx, rax
mov rax, qword [0x00c6c6c0]
mov rcx, rax
call fcn.004476fd
mov rdx, rax
mov rax, qword [0x00c6c6c0]
mov rcx, rax
call fcn.00446da0
mov r8d, 0x70
mov edx, 0
lea rcx, [0x00c6c7a0]
call sub.msvcrt.dll_memset
mov dword [0x00c6c7a0], 0x70
lea rax, [0x00588820]
mov qword [0x00c6c7b8], rax
mov rax, qword [0x00c6c6c0]
mov rax, qword [rax]
mov qword [0x00c6c7c0], rax
mov dword [0x00c6c7a4], 0x440
mov dword [0x00c6c7d0], 5
lea rcx, [0x00c6c7a0]
mov rax, qword [sym.imp.SHELL32.dll_ShellExecuteExA]
call rax
test eax, eax
setne al
test al, al
je 0x46e829
mov dword [0x00c5919c], 1
mov rax, qword [0x00c6c808]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [0x00c6c808]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov dword [0x00c5919c], 0
jmp 0x46e830
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 [0x00c6c6c0]
mov rcx, rax
call fcn.00446da0
mov edx, 1
lea rcx, [0x005b5d1c]
call fcn.004469a9
mov rdx, rax
mov rax, qword [0x00c6c6c0]
mov rcx, rax
call fcn.004476fd
mov rdx, rax
mov rax, qword [0x00c6c6c0]
mov rcx, rax
call fcn.00446da0
mov r8d, 0x68
mov edx, 0
lea rcx, [0x00c6c700]
call sub.msvcrt.dll_memset
mov dword [0x00c6c700], 0x68
mov r8d, 0x18
mov edx, 0
lea rcx, [0x00c6c770]
call sub.msvcrt.dll_memset
mov rax, qword [0x00c6c6c0]
mov rax, qword [rax]
lea rdx, [0x00c6c770]
mov qword [rsp + 0x48], rdx
lea rdx, [0x00c6c700]
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 0x46e82c
mov dword [0x00c5919c], 1
mov rax, qword [0x00c6c770]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [0x00c6c770]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [0x00c6c778]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov dword [0x00c5919c], 0
jmp 0x46e830
mov eax, dword [0x00c6c6ec]
test eax, eax
jne 0x46e7c5
mov rax, qword [sym.imp.KERNEL32.dll_AllocConsole]
call rax
mov edx, 4
lea rcx, [0x005b63de]
call fcn.004469a9
mov rdx, rax
mov rax, qword [0x00c6c6c0]
mov rcx, rax
call fcn.00446da0
mov dword [0x00c5919c], 1
mov rax, qword [0x00c6c6c0]
mov rax, qword [rax]
mov rcx, rax
call sub.msvcrt.dll_system
mov dword [0x00c5919c], 0
mov eax, dword [0x00c6c6ec]
test eax, eax
jne 0x46e82f
mov rax, qword [sym.imp.KERNEL32.dll_FreeConsole]
call rax
jmp 0x46e82f
nop
jmp 0x46e830
nop
jmp 0x46e830
nop
jmp 0x46e830
nop
jmp 0x46e830
nop
mov eax, dword [0x00c6c6b8]
test eax, eax
je 0x46e861
mov eax, dword [0x00c6c6b8]
mov dword [0x00588618], eax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov eax, dword [0x0072e908]
test eax, eax
jne 0x46e861
jmp 0x46e846
nop
add rsp, 0x58
pop rbx
pop rbp
ret