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

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
mov eax, dword [0x5cf28c]
test eax, eax
jne 0x4d0287
mov eax, dword [0x6dfb4c]
test eax, eax
je 0x4cf9ab
mov dword [esp], 0x106
call fcn.004aacb4
jmp 0x4d0288
mov eax, dword [0x6ffe48]
mov dword [0xa8fb98], eax
mov eax, dword [0xa8fb98]
test eax, eax
je 0x4cf9e7
mov dword [0x583570], 0
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
mov eax, dword [0x6ffe48]
test eax, eax
setne al
test al, al
jne 0x4cf9c8
mov dword [0xa8fb9c], 0
mov eax, dword [0x6dfda0]
test eax, eax
je 0x4cfa0d
mov eax, dword [0x5832dc]
test eax, eax
je 0x4cfa0d
mov dword [0xa8fb9c], 1
mov eax, dword [0xa8fba0]
test eax, eax
jne 0x4cfa2f
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.004ac3ce
mov dword [0xa8fba0], eax
mov eax, dword [0xa8fba4]
test eax, eax
jne 0x4cfa51
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.004ac3ce
mov dword [0xa8fba4], eax
mov eax, dword [0xa8fba8]
test eax, eax
jne 0x4cfa73
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.004ac3ce
mov dword [0xa8fba8], eax
mov eax, dword [0xa8fbac]
test eax, eax
jne 0x4cfa95
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.004ac3ce
mov dword [0xa8fbac], eax
mov eax, dword [0xa8fbb0]
test eax, eax
jne 0x4cfab7
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.004ac3ce
mov dword [0xa8fbb0], eax
cmp dword [ebp + 0xc], 0
je 0x4cface
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
test eax, eax
jne 0x4cface
mov dword [ebp + 0xc], 0
cmp dword [ebp + 0xc], 0
je 0x4d01da
mov eax, dword [0xa8fb9c]
test eax, eax
je 0x4cfb3f
mov dword [esp + 4], 1
mov dword [esp], 0x59f827
call fcn.004ac24b
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004accf9
mov edx, eax
mov eax, dword [0xa8fba0]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004ac535
mov dword [0xa7b150], 1
mov eax, dword [0xa8fba0]
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_system
mov dword [0xa7b150], 0
jmp 0x4d0253
call fcn.004cdc71
test eax, eax
setne al
test al, al
je 0x4d0073
mov eax, dword [0xa8fba4]
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004ac535
mov dword [esp], 0x5984a6
call fcn.004ac1ba
mov edx, eax
mov eax, dword [0xa8fbac]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004ac535
mov eax, dword [0xa8fba4]
mov eax, dword [eax + 4]
test eax, eax
je 0x4d0246
mov eax, dword [0xa8fba4]
mov dword [esp], eax
call fcn.004cdd84
test eax, eax
sete al
test al, al
je 0x4cfc97
mov dword [esp + 4], 1
mov dword [esp], 0x59f827
call fcn.004ac24b
mov edx, eax
mov eax, dword [0xa8fba4]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004accf9
mov edx, eax
mov eax, dword [0xa8fba8]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004ac535
mov dword [esp + 8], 0x3c
mov dword [esp + 4], 0
mov dword [esp], 0xa8fbc0
call sub.msvcrt.dll_memset
mov dword [0xa8fbc0], 0x3c
mov eax, dword [0xa8fba8]
mov eax, dword [eax]
mov dword [0xa8fbd0], eax
mov dword [0xa8fbd4], 0
mov dword [0xa8fbc4], 0x440
mov dword [0xa8fbdc], 5
mov dword [esp], 0xa8fbc0
mov eax, dword [sym.imp.SHELL32.DLL_ShellExecuteExA]
call eax
sub esp, 4
test eax, eax
setne al
test al, al
je 0x4cfc97
mov dword [0xa7b150], 1
mov eax, dword [0xa8fbf8]
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 [0xa8fbf8]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov dword [0xa7b150], 0
jmp 0x4d0253
mov dword [0xa8fbfc], 0
mov dword [0xa8fc00], 0
jmp 0x4cfd75
mov eax, dword [0xa8fba4]
mov edx, dword [eax]
mov eax, dword [0xa8fbfc]
add eax, edx
movzx eax, byte [eax]
cmp al, 0x22
jne 0x4cfce4
mov eax, dword [0xa8fc00]
test eax, eax
jne 0x4cfcda
mov dword [0xa8fc00], 1
jmp 0x4cfce4
mov dword [0xa8fc00], 0
mov eax, dword [0xa8fba4]
mov edx, dword [eax]
mov eax, dword [0xa8fbfc]
add eax, edx
movzx eax, byte [eax]
cmp al, 0x20
jne 0x4cfd68
mov eax, dword [0xa8fc00]
test eax, eax
jne 0x4cfd68
mov eax, dword [0xa8fba4]
mov edx, dword [eax + 4]
mov eax, dword [0xa8fbfc]
mov ecx, edx
sub ecx, eax
mov eax, ecx
lea edx, [eax - 1]
mov eax, dword [0xa8fba4]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004ad143
mov edx, eax
mov eax, dword [0xa8fbac]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004ac535
mov edx, dword [0xa8fbfc]
mov eax, dword [0xa8fba4]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004ad07b
mov edx, eax
mov eax, dword [0xa8fba4]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004ac535
jmp 0x4cfd8f
mov eax, dword [0xa8fbfc]
add eax, 1
mov dword [0xa8fbfc], eax
mov eax, dword [0xa8fba4]
mov edx, dword [eax + 4]
mov eax, dword [0xa8fbfc]
cmp edx, eax
setg al
test al, al
jne 0x4cfcb0
mov eax, dword [0xa8fba4]
mov eax, dword [eax + 4]
test eax, eax
je 0x4d0249
mov eax, dword [0xa8fbac]
mov eax, dword [eax + 4]
test eax, eax
je 0x4cfeee
mov eax, dword [0xa8fba4]
mov dword [esp], eax
call fcn.004cdd84
test eax, eax
sete al
test al, al
je 0x4cfeee
mov dword [esp + 4], 1
mov dword [esp], 0x59f827
call fcn.004ac24b
mov edx, eax
mov eax, dword [0xa8fba4]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004accf9
mov edx, eax
mov eax, dword [0xa8fba8]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004ac535
mov dword [esp + 4], 1
mov dword [esp], 0x59f827
call fcn.004ac24b
mov edx, eax
mov eax, dword [0xa8fbac]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004accf9
mov edx, eax
mov eax, dword [0xa8fbb0]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004ac535
mov dword [esp + 8], 0x3c
mov dword [esp + 4], 0
mov dword [esp], 0xa8fbc0
call sub.msvcrt.dll_memset
mov dword [0xa8fbc0], 0x3c
mov eax, dword [0xa8fba8]
mov eax, dword [eax]
mov dword [0xa8fbd0], eax
mov eax, dword [0xa8fbb0]
mov eax, dword [eax]
mov dword [0xa8fbd4], eax
mov dword [0xa8fbc4], 0x440
mov dword [0xa8fbdc], 5
mov dword [esp], 0xa8fbc0
mov eax, dword [sym.imp.SHELL32.DLL_ShellExecuteExA]
call eax
sub esp, 4
test eax, eax
setne al
test al, al
je 0x4cfeee
mov dword [0xa7b150], 1
mov eax, dword [0xa8fbf8]
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 [0xa8fbf8]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov dword [0xa7b150], 0
jmp 0x4d0253
mov eax, dword [0xa8fbac]
mov eax, dword [eax + 4]
test eax, eax
je 0x4cff2b
mov ebx, dword [0xa8fbac]
mov dword [esp], 0x59f89a
call fcn.004ac1ba
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.004accf9
mov edx, eax
mov eax, dword [0xa8fbac]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004ac535
mov edx, dword [0xa8fbac]
mov eax, dword [0xa8fba4]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004accf9
mov edx, eax
mov eax, dword [0xa8fba0]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004ac535
mov ebx, dword [0xa8fba0]
mov dword [esp], str.__c
call fcn.004ac1ba
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.004accf9
mov edx, eax
mov eax, dword [0xa8fba0]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004ac535
mov dword [esp + 4], 1
mov dword [esp], 0x59f827
call fcn.004ac24b
mov edx, eax
mov eax, dword [0xa8fba0]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004accf9
mov edx, eax
mov eax, dword [0xa8fba0]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004ac535
mov dword [esp + 8], 0x3c
mov dword [esp + 4], 0
mov dword [esp], 0xa8fbc0
call sub.msvcrt.dll_memset
mov dword [0xa8fbc0], 0x3c
mov dword [0xa8fbd0], 0x583936
mov eax, dword [0xa8fba0]
mov eax, dword [eax]
mov dword [0xa8fbd4], eax
mov dword [0xa8fbc4], 0x440
mov dword [0xa8fbdc], 5
mov dword [esp], 0xa8fbc0
mov eax, dword [sym.imp.SHELL32.DLL_ShellExecuteExA]
call eax
sub esp, 4
test eax, eax
setne al
test al, al
je 0x4d024c
mov dword [0xa7b150], 1
mov eax, dword [0xa8fbf8]
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 [0xa8fbf8]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov dword [0xa7b150], 0
jmp 0x4d0253
mov dword [esp], str.command.com__c
call fcn.004ac1ba
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004accf9
mov edx, eax
mov eax, dword [0xa8fba0]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004ac535
mov dword [esp + 4], 1
mov dword [esp], 0x59f827
call fcn.004ac24b
mov edx, eax
mov eax, dword [0xa8fba0]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004accf9
mov edx, eax
mov eax, dword [0xa8fba0]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004ac535
mov dword [esp + 8], 0x44
mov dword [esp + 4], 0
mov dword [esp], 0xa8fc20
call sub.msvcrt.dll_memset
mov dword [0xa8fc20], 0x44
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
mov dword [esp], 0xa8fc64
call sub.msvcrt.dll_memset
mov eax, dword [0xa8fba0]
mov eax, dword [eax]
mov dword [esp + 0x24], 0xa8fc64
mov dword [esp + 0x20], 0xa8fc20
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 0x4d024f
mov dword [0xa7b150], 1
mov eax, dword [0xa8fc64]
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 [0xa8fc64]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [0xa8fc68]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov dword [0xa7b150], 0
jmp 0x4d0253
mov eax, dword [0xa8fb9c]
test eax, eax
jne 0x4d01ea
mov eax, dword [sym.imp.KERNEL32.dll_AllocConsole]
call eax
mov dword [esp + 4], 4
mov dword [esp], 0x59fbec
call fcn.004ac24b
mov edx, eax
mov eax, dword [0xa8fba0]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004ac535
mov dword [0xa7b150], 1
mov eax, dword [0xa8fba0]
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_system
mov dword [0xa7b150], 0
mov eax, dword [0xa8fb9c]
test eax, eax
jne 0x4d0252
mov eax, dword [sym.imp.KERNEL32.dll_FreeConsole]
call eax
jmp 0x4d0252
nop
jmp 0x4d0253
nop
jmp 0x4d0253
nop
jmp 0x4d0253
nop
jmp 0x4d0253
nop
mov eax, dword [0xa8fb98]
test eax, eax
je 0x4d0288
mov eax, dword [0xa8fb98]
mov dword [0x583570], eax
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
mov eax, dword [0x6ffe48]
test eax, eax
sete al
test al, al
jne 0x4d0266
jmp 0x4d0288
nop
mov ebx, dword [ebp - 4]
leave
ret