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

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
mov eax, dword [0x5ce28c]
test eax, eax
jne 0x4cf543
mov eax, dword [0x6deb4c]
test eax, eax
je 0x4cec67
mov dword [esp], 0x106
call fcn.004a9f70
jmp 0x4cf544
mov eax, dword [0x6fee48]
mov dword [0xa8eb98], eax
mov eax, dword [0xa8eb98]
test eax, eax
je 0x4ceca3
mov dword [0x582570], 0
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
mov eax, dword [0x6fee48]
test eax, eax
setne al
test al, al
jne 0x4cec84
mov dword [0xa8eb9c], 0
mov eax, dword [0x6ded9c]
test eax, eax
je 0x4cecc9
mov eax, dword [0x5822dc]
test eax, eax
je 0x4cecc9
mov dword [0xa8eb9c], 1
mov eax, dword [0xa8eba0]
test eax, eax
jne 0x4ceceb
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.004ab68a
mov dword [0xa8eba0], eax
mov eax, dword [0xa8eba4]
test eax, eax
jne 0x4ced0d
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.004ab68a
mov dword [0xa8eba4], eax
mov eax, dword [0xa8eba8]
test eax, eax
jne 0x4ced2f
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.004ab68a
mov dword [0xa8eba8], eax
mov eax, dword [0xa8ebac]
test eax, eax
jne 0x4ced51
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.004ab68a
mov dword [0xa8ebac], eax
mov eax, dword [0xa8ebb0]
test eax, eax
jne 0x4ced73
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.004ab68a
mov dword [0xa8ebb0], eax
cmp dword [ebp + 0xc], 0
je 0x4ced8a
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
test eax, eax
jne 0x4ced8a
mov dword [ebp + 0xc], 0
cmp dword [ebp + 0xc], 0
je 0x4cf496
mov eax, dword [0xa8eb9c]
test eax, eax
je 0x4cedfb
mov dword [esp + 4], 1
mov dword [esp], 0x59e827
call fcn.004ab507
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004abfb5
mov edx, eax
mov eax, dword [0xa8eba0]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004ab7f1
mov dword [0xa7a150], 1
mov eax, dword [0xa8eba0]
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_system
mov dword [0xa7a150], 0
jmp 0x4cf50f
call fcn.004ccf2d
test eax, eax
setne al
test al, al
je 0x4cf32f
mov eax, dword [0xa8eba4]
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004ab7f1
mov dword [esp], 0x5974a6
call fcn.004ab476
mov edx, eax
mov eax, dword [0xa8ebac]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004ab7f1
mov eax, dword [0xa8eba4]
mov eax, dword [eax + 4]
test eax, eax
je 0x4cf502
mov eax, dword [0xa8eba4]
mov dword [esp], eax
call fcn.004cd040
test eax, eax
sete al
test al, al
je 0x4cef53
mov dword [esp + 4], 1
mov dword [esp], 0x59e827
call fcn.004ab507
mov edx, eax
mov eax, dword [0xa8eba4]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004abfb5
mov edx, eax
mov eax, dword [0xa8eba8]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004ab7f1
mov dword [esp + 8], 0x3c
mov dword [esp + 4], 0
mov dword [esp], 0xa8ebc0
call sub.msvcrt.dll_memset
mov dword [0xa8ebc0], 0x3c
mov eax, dword [0xa8eba8]
mov eax, dword [eax]
mov dword [0xa8ebd0], eax
mov dword [0xa8ebd4], 0
mov dword [0xa8ebc4], 0x440
mov dword [0xa8ebdc], 5
mov dword [esp], 0xa8ebc0
mov eax, dword [sym.imp.SHELL32.DLL_ShellExecuteExA]
call eax
sub esp, 4
test eax, eax
setne al
test al, al
je 0x4cef53
mov dword [0xa7a150], 1
mov eax, dword [0xa8ebf8]
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 [0xa8ebf8]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov dword [0xa7a150], 0
jmp 0x4cf50f
mov dword [0xa8ebfc], 0
mov dword [0xa8ec00], 0
jmp 0x4cf031
mov eax, dword [0xa8eba4]
mov edx, dword [eax]
mov eax, dword [0xa8ebfc]
add eax, edx
movzx eax, byte [eax]
cmp al, 0x22
jne 0x4cefa0
mov eax, dword [0xa8ec00]
test eax, eax
jne 0x4cef96
mov dword [0xa8ec00], 1
jmp 0x4cefa0
mov dword [0xa8ec00], 0
mov eax, dword [0xa8eba4]
mov edx, dword [eax]
mov eax, dword [0xa8ebfc]
add eax, edx
movzx eax, byte [eax]
cmp al, 0x20
jne 0x4cf024
mov eax, dword [0xa8ec00]
test eax, eax
jne 0x4cf024
mov eax, dword [0xa8eba4]
mov edx, dword [eax + 4]
mov eax, dword [0xa8ebfc]
mov ecx, edx
sub ecx, eax
mov eax, ecx
lea edx, [eax - 1]
mov eax, dword [0xa8eba4]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004ac3ff
mov edx, eax
mov eax, dword [0xa8ebac]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004ab7f1
mov edx, dword [0xa8ebfc]
mov eax, dword [0xa8eba4]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004ac337
mov edx, eax
mov eax, dword [0xa8eba4]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004ab7f1
jmp 0x4cf04b
mov eax, dword [0xa8ebfc]
add eax, 1
mov dword [0xa8ebfc], eax
mov eax, dword [0xa8eba4]
mov edx, dword [eax + 4]
mov eax, dword [0xa8ebfc]
cmp edx, eax
setg al
test al, al
jne 0x4cef6c
mov eax, dword [0xa8eba4]
mov eax, dword [eax + 4]
test eax, eax
je 0x4cf505
mov eax, dword [0xa8ebac]
mov eax, dword [eax + 4]
test eax, eax
je 0x4cf1aa
mov eax, dword [0xa8eba4]
mov dword [esp], eax
call fcn.004cd040
test eax, eax
sete al
test al, al
je 0x4cf1aa
mov dword [esp + 4], 1
mov dword [esp], 0x59e827
call fcn.004ab507
mov edx, eax
mov eax, dword [0xa8eba4]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004abfb5
mov edx, eax
mov eax, dword [0xa8eba8]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004ab7f1
mov dword [esp + 4], 1
mov dword [esp], 0x59e827
call fcn.004ab507
mov edx, eax
mov eax, dword [0xa8ebac]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004abfb5
mov edx, eax
mov eax, dword [0xa8ebb0]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004ab7f1
mov dword [esp + 8], 0x3c
mov dword [esp + 4], 0
mov dword [esp], 0xa8ebc0
call sub.msvcrt.dll_memset
mov dword [0xa8ebc0], 0x3c
mov eax, dword [0xa8eba8]
mov eax, dword [eax]
mov dword [0xa8ebd0], eax
mov eax, dword [0xa8ebb0]
mov eax, dword [eax]
mov dword [0xa8ebd4], eax
mov dword [0xa8ebc4], 0x440
mov dword [0xa8ebdc], 5
mov dword [esp], 0xa8ebc0
mov eax, dword [sym.imp.SHELL32.DLL_ShellExecuteExA]
call eax
sub esp, 4
test eax, eax
setne al
test al, al
je 0x4cf1aa
mov dword [0xa7a150], 1
mov eax, dword [0xa8ebf8]
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 [0xa8ebf8]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov dword [0xa7a150], 0
jmp 0x4cf50f
mov eax, dword [0xa8ebac]
mov eax, dword [eax + 4]
test eax, eax
je 0x4cf1e7
mov ebx, dword [0xa8ebac]
mov dword [esp], 0x59e89a
call fcn.004ab476
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.004abfb5
mov edx, eax
mov eax, dword [0xa8ebac]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004ab7f1
mov edx, dword [0xa8ebac]
mov eax, dword [0xa8eba4]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004abfb5
mov edx, eax
mov eax, dword [0xa8eba0]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004ab7f1
mov ebx, dword [0xa8eba0]
mov dword [esp], str.__c
call fcn.004ab476
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.004abfb5
mov edx, eax
mov eax, dword [0xa8eba0]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004ab7f1
mov dword [esp + 4], 1
mov dword [esp], 0x59e827
call fcn.004ab507
mov edx, eax
mov eax, dword [0xa8eba0]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004abfb5
mov edx, eax
mov eax, dword [0xa8eba0]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004ab7f1
mov dword [esp + 8], 0x3c
mov dword [esp + 4], 0
mov dword [esp], 0xa8ebc0
call sub.msvcrt.dll_memset
mov dword [0xa8ebc0], 0x3c
mov dword [0xa8ebd0], 0x582936
mov eax, dword [0xa8eba0]
mov eax, dword [eax]
mov dword [0xa8ebd4], eax
mov dword [0xa8ebc4], 0x440
mov dword [0xa8ebdc], 5
mov dword [esp], 0xa8ebc0
mov eax, dword [sym.imp.SHELL32.DLL_ShellExecuteExA]
call eax
sub esp, 4
test eax, eax
setne al
test al, al
je 0x4cf508
mov dword [0xa7a150], 1
mov eax, dword [0xa8ebf8]
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 [0xa8ebf8]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov dword [0xa7a150], 0
jmp 0x4cf50f
mov dword [esp], str.command.com__c
call fcn.004ab476
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004abfb5
mov edx, eax
mov eax, dword [0xa8eba0]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004ab7f1
mov dword [esp + 4], 1
mov dword [esp], 0x59e827
call fcn.004ab507
mov edx, eax
mov eax, dword [0xa8eba0]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004abfb5
mov edx, eax
mov eax, dword [0xa8eba0]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004ab7f1
mov dword [esp + 8], 0x44
mov dword [esp + 4], 0
mov dword [esp], 0xa8ec20
call sub.msvcrt.dll_memset
mov dword [0xa8ec20], 0x44
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
mov dword [esp], 0xa8ec64
call sub.msvcrt.dll_memset
mov eax, dword [0xa8eba0]
mov eax, dword [eax]
mov dword [esp + 0x24], 0xa8ec64
mov dword [esp + 0x20], 0xa8ec20
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 0x4cf50b
mov dword [0xa7a150], 1
mov eax, dword [0xa8ec64]
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 [0xa8ec64]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [0xa8ec68]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov dword [0xa7a150], 0
jmp 0x4cf50f
mov eax, dword [0xa8eb9c]
test eax, eax
jne 0x4cf4a6
mov eax, dword [sym.imp.KERNEL32.dll_AllocConsole]
call eax
mov dword [esp + 4], 4
mov dword [esp], 0x59ebec
call fcn.004ab507
mov edx, eax
mov eax, dword [0xa8eba0]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004ab7f1
mov dword [0xa7a150], 1
mov eax, dword [0xa8eba0]
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_system
mov dword [0xa7a150], 0
mov eax, dword [0xa8eb9c]
test eax, eax
jne 0x4cf50e
mov eax, dword [sym.imp.KERNEL32.dll_FreeConsole]
call eax
jmp 0x4cf50e
nop
jmp 0x4cf50f
nop
jmp 0x4cf50f
nop
jmp 0x4cf50f
nop
jmp 0x4cf50f
nop
mov eax, dword [0xa8eb98]
test eax, eax
je 0x4cf544
mov eax, dword [0xa8eb98]
mov dword [0x582570], eax
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
mov eax, dword [0x6fee48]
test eax, eax
sete al
test al, al
jne 0x4cf522
jmp 0x4cf544
nop
mov ebx, dword [ebp - 4]
leave
ret