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

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
mov eax, dword [0x56a28c]
test eax, eax
jne 0x46b177
mov eax, dword [0x67ab4c]
test eax, eax
je 0x46a89b
mov dword [esp], 0x106
call fcn.00445ba4
jmp 0x46b178
mov eax, dword [0x699f08]
mov dword [0xa29c58], eax
mov eax, dword [0xa29c58]
test eax, eax
je 0x46a8d7
mov dword [0x51e570], 0
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
mov eax, dword [0x699f08]
test eax, eax
setne al
test al, al
jne 0x46a8b8
mov dword [0xa29c5c], 0
mov eax, dword [0x67abc0]
test eax, eax
je 0x46a8fd
mov eax, dword [0x51e2dc]
test eax, eax
je 0x46a8fd
mov dword [0xa29c5c], 1
mov eax, dword [0xa29c60]
test eax, eax
jne 0x46a91f
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.004472be
mov dword [0xa29c60], eax
mov eax, dword [0xa29c64]
test eax, eax
jne 0x46a941
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.004472be
mov dword [0xa29c64], eax
mov eax, dword [0xa29c68]
test eax, eax
jne 0x46a963
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.004472be
mov dword [0xa29c68], eax
mov eax, dword [0xa29c6c]
test eax, eax
jne 0x46a985
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.004472be
mov dword [0xa29c6c], eax
mov eax, dword [0xa29c70]
test eax, eax
jne 0x46a9a7
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.004472be
mov dword [0xa29c70], eax
cmp dword [ebp + 0xc], 0
je 0x46a9be
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
test eax, eax
jne 0x46a9be
mov dword [ebp + 0xc], 0
cmp dword [ebp + 0xc], 0
je 0x46b0ca
mov eax, dword [0xa29c5c]
test eax, eax
je 0x46aa2f
mov dword [esp + 4], 1
mov dword [esp], 0x53a087
call fcn.0044713b
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00447be9
mov edx, eax
mov eax, dword [0xa29c60]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00447425
mov dword [0xa15210], 1
mov eax, dword [0xa29c60]
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_system
mov dword [0xa15210], 0
jmp 0x46b143
call fcn.00468b61
test eax, eax
setne al
test al, al
je 0x46af63
mov eax, dword [0xa29c64]
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00447425
mov dword [esp], 0x532d06
call fcn.004470aa
mov edx, eax
mov eax, dword [0xa29c6c]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00447425
mov eax, dword [0xa29c64]
mov eax, dword [eax + 4]
test eax, eax
je 0x46b136
mov eax, dword [0xa29c64]
mov dword [esp], eax
call fcn.00468c74
test eax, eax
sete al
test al, al
je 0x46ab87
mov dword [esp + 4], 1
mov dword [esp], 0x53a087
call fcn.0044713b
mov edx, eax
mov eax, dword [0xa29c64]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00447be9
mov edx, eax
mov eax, dword [0xa29c68]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00447425
mov dword [esp + 8], 0x3c
mov dword [esp + 4], 0
mov dword [esp], 0xa29c80
call sub.msvcrt.dll_memset
mov dword [0xa29c80], 0x3c
mov eax, dword [0xa29c68]
mov eax, dword [eax]
mov dword [0xa29c90], eax
mov dword [0xa29c94], 0
mov dword [0xa29c84], 0x440
mov dword [0xa29c9c], 5
mov dword [esp], 0xa29c80
mov eax, dword [sym.imp.SHELL32.DLL_ShellExecuteExA]
call eax
sub esp, 4
test eax, eax
setne al
test al, al
je 0x46ab87
mov dword [0xa15210], 1
mov eax, dword [0xa29cb8]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call eax
sub esp, 8
mov eax, dword [0xa29cb8]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov dword [0xa15210], 0
jmp 0x46b143
mov dword [0xa29cbc], 0
mov dword [0xa29cc0], 0
jmp 0x46ac65
mov eax, dword [0xa29c64]
mov edx, dword [eax]
mov eax, dword [0xa29cbc]
add eax, edx
movzx eax, byte [eax]
cmp al, 0x22
jne 0x46abd4
mov eax, dword [0xa29cc0]
test eax, eax
jne 0x46abca
mov dword [0xa29cc0], 1
jmp 0x46abd4
mov dword [0xa29cc0], 0
mov eax, dword [0xa29c64]
mov edx, dword [eax]
mov eax, dword [0xa29cbc]
add eax, edx
movzx eax, byte [eax]
cmp al, 0x20
jne 0x46ac58
mov eax, dword [0xa29cc0]
test eax, eax
jne 0x46ac58
mov eax, dword [0xa29c64]
mov edx, dword [eax + 4]
mov eax, dword [0xa29cbc]
mov ecx, edx
sub ecx, eax
mov eax, ecx
lea edx, [eax - 1]
mov eax, dword [0xa29c64]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00448033
mov edx, eax
mov eax, dword [0xa29c6c]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00447425
mov edx, dword [0xa29cbc]
mov eax, dword [0xa29c64]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00447f6b
mov edx, eax
mov eax, dword [0xa29c64]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00447425
jmp 0x46ac7f
mov eax, dword [0xa29cbc]
add eax, 1
mov dword [0xa29cbc], eax
mov eax, dword [0xa29c64]
mov edx, dword [eax + 4]
mov eax, dword [0xa29cbc]
cmp edx, eax
setg al
test al, al
jne 0x46aba0
mov eax, dword [0xa29c64]
mov eax, dword [eax + 4]
test eax, eax
je 0x46b139
mov eax, dword [0xa29c6c]
mov eax, dword [eax + 4]
test eax, eax
je 0x46adde
mov eax, dword [0xa29c64]
mov dword [esp], eax
call fcn.00468c74
test eax, eax
sete al
test al, al
je 0x46adde
mov dword [esp + 4], 1
mov dword [esp], 0x53a087
call fcn.0044713b
mov edx, eax
mov eax, dword [0xa29c64]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00447be9
mov edx, eax
mov eax, dword [0xa29c68]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00447425
mov dword [esp + 4], 1
mov dword [esp], 0x53a087
call fcn.0044713b
mov edx, eax
mov eax, dword [0xa29c6c]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00447be9
mov edx, eax
mov eax, dword [0xa29c70]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00447425
mov dword [esp + 8], 0x3c
mov dword [esp + 4], 0
mov dword [esp], 0xa29c80
call sub.msvcrt.dll_memset
mov dword [0xa29c80], 0x3c
mov eax, dword [0xa29c68]
mov eax, dword [eax]
mov dword [0xa29c90], eax
mov eax, dword [0xa29c70]
mov eax, dword [eax]
mov dword [0xa29c94], eax
mov dword [0xa29c84], 0x440
mov dword [0xa29c9c], 5
mov dword [esp], 0xa29c80
mov eax, dword [sym.imp.SHELL32.DLL_ShellExecuteExA]
call eax
sub esp, 4
test eax, eax
setne al
test al, al
je 0x46adde
mov dword [0xa15210], 1
mov eax, dword [0xa29cb8]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call eax
sub esp, 8
mov eax, dword [0xa29cb8]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov dword [0xa15210], 0
jmp 0x46b143
mov eax, dword [0xa29c6c]
mov eax, dword [eax + 4]
test eax, eax
je 0x46ae1b
mov ebx, dword [0xa29c6c]
mov dword [esp], 0x53a0fa
call fcn.004470aa
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.00447be9
mov edx, eax
mov eax, dword [0xa29c6c]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00447425
mov edx, dword [0xa29c6c]
mov eax, dword [0xa29c64]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00447be9
mov edx, eax
mov eax, dword [0xa29c60]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00447425
mov ebx, dword [0xa29c60]
mov dword [esp], str.__c
call fcn.004470aa
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.00447be9
mov edx, eax
mov eax, dword [0xa29c60]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00447425
mov dword [esp + 4], 1
mov dword [esp], 0x53a087
call fcn.0044713b
mov edx, eax
mov eax, dword [0xa29c60]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00447be9
mov edx, eax
mov eax, dword [0xa29c60]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00447425
mov dword [esp + 8], 0x3c
mov dword [esp + 4], 0
mov dword [esp], 0xa29c80
call sub.msvcrt.dll_memset
mov dword [0xa29c80], 0x3c
mov dword [0xa29c90], 0x51e936
mov eax, dword [0xa29c60]
mov eax, dword [eax]
mov dword [0xa29c94], eax
mov dword [0xa29c84], 0x440
mov dword [0xa29c9c], 5
mov dword [esp], 0xa29c80
mov eax, dword [sym.imp.SHELL32.DLL_ShellExecuteExA]
call eax
sub esp, 4
test eax, eax
setne al
test al, al
je 0x46b13c
mov dword [0xa15210], 1
mov eax, dword [0xa29cb8]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call eax
sub esp, 8
mov eax, dword [0xa29cb8]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov dword [0xa15210], 0
jmp 0x46b143
mov dword [esp], str.command.com__c
call fcn.004470aa
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00447be9
mov edx, eax
mov eax, dword [0xa29c60]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00447425
mov dword [esp + 4], 1
mov dword [esp], 0x53a087
call fcn.0044713b
mov edx, eax
mov eax, dword [0xa29c60]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00447be9
mov edx, eax
mov eax, dword [0xa29c60]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00447425
mov dword [esp + 8], 0x44
mov dword [esp + 4], 0
mov dword [esp], 0xa29ce0
call sub.msvcrt.dll_memset
mov dword [0xa29ce0], 0x44
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
mov dword [esp], 0xa29d24
call sub.msvcrt.dll_memset
mov eax, dword [0xa29c60]
mov eax, dword [eax]
mov dword [esp + 0x24], 0xa29d24
mov dword [esp + 0x20], 0xa29ce0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x10
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateProcessA]
call eax
sub esp, 0x28
test eax, eax
setne al
test al, al
je 0x46b13f
mov dword [0xa15210], 1
mov eax, dword [0xa29d24]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call eax
sub esp, 8
mov eax, dword [0xa29d24]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [0xa29d28]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov dword [0xa15210], 0
jmp 0x46b143
mov eax, dword [0xa29c5c]
test eax, eax
jne 0x46b0da
mov eax, dword [sym.imp.KERNEL32.dll_AllocConsole]
call eax
mov dword [esp + 4], 4
mov dword [esp], 0x53a44c
call fcn.0044713b
mov edx, eax
mov eax, dword [0xa29c60]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00447425
mov dword [0xa15210], 1
mov eax, dword [0xa29c60]
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_system
mov dword [0xa15210], 0
mov eax, dword [0xa29c5c]
test eax, eax
jne 0x46b142
mov eax, dword [sym.imp.KERNEL32.dll_FreeConsole]
call eax
jmp 0x46b142
nop
jmp 0x46b143
nop
jmp 0x46b143
nop
jmp 0x46b143
nop
jmp 0x46b143
nop
mov eax, dword [0xa29c58]
test eax, eax
je 0x46b178
mov eax, dword [0xa29c58]
mov dword [0x51e570], eax
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
mov eax, dword [0x699f08]
test eax, eax
sete al
test al, al
jne 0x46b156
jmp 0x46b178
nop
mov ebx, dword [ebp - 4]
leave
ret