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

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
mov eax, dword [0x5a028c]
test eax, eax
jne 0x49fc1b
mov eax, dword [0x6b0b4c]
test eax, eax
je 0x49f33f
mov dword [esp], 0x106
call fcn.0047a648
jmp 0x49fc1c
mov eax, dword [0x6d0a48]
mov dword [0xa60798], eax
mov eax, dword [0xa60798]
test eax, eax
je 0x49f37b
mov dword [0x553570], 0
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
mov eax, dword [0x6d0a48]
test eax, eax
setne al
test al, al
jne 0x49f35c
mov dword [0xa6079c], 0
mov eax, dword [0x6b0c88]
test eax, eax
je 0x49f3a1
mov eax, dword [0x5532dc]
test eax, eax
je 0x49f3a1
mov dword [0xa6079c], 1
mov eax, dword [0xa607a0]
test eax, eax
jne 0x49f3c3
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.0047bd62
mov dword [0xa607a0], eax
mov eax, dword [0xa607a4]
test eax, eax
jne 0x49f3e5
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.0047bd62
mov dword [0xa607a4], eax
mov eax, dword [0xa607a8]
test eax, eax
jne 0x49f407
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.0047bd62
mov dword [0xa607a8], eax
mov eax, dword [0xa607ac]
test eax, eax
jne 0x49f429
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.0047bd62
mov dword [0xa607ac], eax
mov eax, dword [0xa607b0]
test eax, eax
jne 0x49f44b
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.0047bd62
mov dword [0xa607b0], eax
cmp dword [ebp + 0xc], 0
je 0x49f462
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
test eax, eax
jne 0x49f462
mov dword [ebp + 0xc], 0
cmp dword [ebp + 0xc], 0
je 0x49fb6e
mov eax, dword [0xa6079c]
test eax, eax
je 0x49f4d3
mov dword [esp + 4], 1
mov dword [esp], 0x56f967
call fcn.0047bbdf
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0047c68d
mov edx, eax
mov eax, dword [0xa607a0]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0047bec9
mov dword [0xa4bd50], 1
mov eax, dword [0xa607a0]
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_system
mov dword [0xa4bd50], 0
jmp 0x49fbe7
call fcn.0049d605
test eax, eax
setne al
test al, al
je 0x49fa07
mov eax, dword [0xa607a4]
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0047bec9
mov dword [esp], 0x5685e6
call fcn.0047bb4e
mov edx, eax
mov eax, dword [0xa607ac]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0047bec9
mov eax, dword [0xa607a4]
mov eax, dword [eax + 4]
test eax, eax
je 0x49fbda
mov eax, dword [0xa607a4]
mov dword [esp], eax
call fcn.0049d718
test eax, eax
sete al
test al, al
je 0x49f62b
mov dword [esp + 4], 1
mov dword [esp], 0x56f967
call fcn.0047bbdf
mov edx, eax
mov eax, dword [0xa607a4]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0047c68d
mov edx, eax
mov eax, dword [0xa607a8]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0047bec9
mov dword [esp + 8], 0x3c
mov dword [esp + 4], 0
mov dword [esp], 0xa607c0
call sub.msvcrt.dll_memset
mov dword [0xa607c0], 0x3c
mov eax, dword [0xa607a8]
mov eax, dword [eax]
mov dword [0xa607d0], eax
mov dword [0xa607d4], 0
mov dword [0xa607c4], 0x440
mov dword [0xa607dc], 5
mov dword [esp], 0xa607c0
mov eax, dword [sym.imp.SHELL32.DLL_ShellExecuteExA]
call eax
sub esp, 4
test eax, eax
setne al
test al, al
je 0x49f62b
mov dword [0xa4bd50], 1
mov eax, dword [0xa607f8]
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 [0xa607f8]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov dword [0xa4bd50], 0
jmp 0x49fbe7
mov dword [0xa607fc], 0
mov dword [0xa60800], 0
jmp 0x49f709
mov eax, dword [0xa607a4]
mov edx, dword [eax]
mov eax, dword [0xa607fc]
add eax, edx
movzx eax, byte [eax]
cmp al, 0x22
jne 0x49f678
mov eax, dword [0xa60800]
test eax, eax
jne 0x49f66e
mov dword [0xa60800], 1
jmp 0x49f678
mov dword [0xa60800], 0
mov eax, dword [0xa607a4]
mov edx, dword [eax]
mov eax, dword [0xa607fc]
add eax, edx
movzx eax, byte [eax]
cmp al, 0x20
jne 0x49f6fc
mov eax, dword [0xa60800]
test eax, eax
jne 0x49f6fc
mov eax, dword [0xa607a4]
mov edx, dword [eax + 4]
mov eax, dword [0xa607fc]
mov ecx, edx
sub ecx, eax
mov eax, ecx
lea edx, [eax - 1]
mov eax, dword [0xa607a4]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0047cad7
mov edx, eax
mov eax, dword [0xa607ac]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0047bec9
mov edx, dword [0xa607fc]
mov eax, dword [0xa607a4]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0047ca0f
mov edx, eax
mov eax, dword [0xa607a4]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0047bec9
jmp 0x49f723
mov eax, dword [0xa607fc]
add eax, 1
mov dword [0xa607fc], eax
mov eax, dword [0xa607a4]
mov edx, dword [eax + 4]
mov eax, dword [0xa607fc]
cmp edx, eax
setg al
test al, al
jne 0x49f644
mov eax, dword [0xa607a4]
mov eax, dword [eax + 4]
test eax, eax
je 0x49fbdd
mov eax, dword [0xa607ac]
mov eax, dword [eax + 4]
test eax, eax
je 0x49f882
mov eax, dword [0xa607a4]
mov dword [esp], eax
call fcn.0049d718
test eax, eax
sete al
test al, al
je 0x49f882
mov dword [esp + 4], 1
mov dword [esp], 0x56f967
call fcn.0047bbdf
mov edx, eax
mov eax, dword [0xa607a4]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0047c68d
mov edx, eax
mov eax, dword [0xa607a8]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0047bec9
mov dword [esp + 4], 1
mov dword [esp], 0x56f967
call fcn.0047bbdf
mov edx, eax
mov eax, dword [0xa607ac]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0047c68d
mov edx, eax
mov eax, dword [0xa607b0]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0047bec9
mov dword [esp + 8], 0x3c
mov dword [esp + 4], 0
mov dword [esp], 0xa607c0
call sub.msvcrt.dll_memset
mov dword [0xa607c0], 0x3c
mov eax, dword [0xa607a8]
mov eax, dword [eax]
mov dword [0xa607d0], eax
mov eax, dword [0xa607b0]
mov eax, dword [eax]
mov dword [0xa607d4], eax
mov dword [0xa607c4], 0x440
mov dword [0xa607dc], 5
mov dword [esp], 0xa607c0
mov eax, dword [sym.imp.SHELL32.DLL_ShellExecuteExA]
call eax
sub esp, 4
test eax, eax
setne al
test al, al
je 0x49f882
mov dword [0xa4bd50], 1
mov eax, dword [0xa607f8]
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 [0xa607f8]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov dword [0xa4bd50], 0
jmp 0x49fbe7
mov eax, dword [0xa607ac]
mov eax, dword [eax + 4]
test eax, eax
je 0x49f8bf
mov ebx, dword [0xa607ac]
mov dword [esp], 0x56f9da
call fcn.0047bb4e
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.0047c68d
mov edx, eax
mov eax, dword [0xa607ac]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0047bec9
mov edx, dword [0xa607ac]
mov eax, dword [0xa607a4]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0047c68d
mov edx, eax
mov eax, dword [0xa607a0]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0047bec9
mov ebx, dword [0xa607a0]
mov dword [esp], str.__c
call fcn.0047bb4e
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.0047c68d
mov edx, eax
mov eax, dword [0xa607a0]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0047bec9
mov dword [esp + 4], 1
mov dword [esp], 0x56f967
call fcn.0047bbdf
mov edx, eax
mov eax, dword [0xa607a0]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0047c68d
mov edx, eax
mov eax, dword [0xa607a0]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0047bec9
mov dword [esp + 8], 0x3c
mov dword [esp + 4], 0
mov dword [esp], 0xa607c0
call sub.msvcrt.dll_memset
mov dword [0xa607c0], 0x3c
mov dword [0xa607d0], 0x553936
mov eax, dword [0xa607a0]
mov eax, dword [eax]
mov dword [0xa607d4], eax
mov dword [0xa607c4], 0x440
mov dword [0xa607dc], 5
mov dword [esp], 0xa607c0
mov eax, dword [sym.imp.SHELL32.DLL_ShellExecuteExA]
call eax
sub esp, 4
test eax, eax
setne al
test al, al
je 0x49fbe0
mov dword [0xa4bd50], 1
mov eax, dword [0xa607f8]
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 [0xa607f8]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov dword [0xa4bd50], 0
jmp 0x49fbe7
mov dword [esp], str.command.com__c
call fcn.0047bb4e
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0047c68d
mov edx, eax
mov eax, dword [0xa607a0]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0047bec9
mov dword [esp + 4], 1
mov dword [esp], 0x56f967
call fcn.0047bbdf
mov edx, eax
mov eax, dword [0xa607a0]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0047c68d
mov edx, eax
mov eax, dword [0xa607a0]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0047bec9
mov dword [esp + 8], 0x44
mov dword [esp + 4], 0
mov dword [esp], 0xa60820
call sub.msvcrt.dll_memset
mov dword [0xa60820], 0x44
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
mov dword [esp], 0xa60864
call sub.msvcrt.dll_memset
mov eax, dword [0xa607a0]
mov eax, dword [eax]
mov dword [esp + 0x24], 0xa60864
mov dword [esp + 0x20], 0xa60820
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 0x49fbe3
mov dword [0xa4bd50], 1
mov eax, dword [0xa60864]
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 [0xa60864]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [0xa60868]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov dword [0xa4bd50], 0
jmp 0x49fbe7
mov eax, dword [0xa6079c]
test eax, eax
jne 0x49fb7e
mov eax, dword [sym.imp.KERNEL32.dll_AllocConsole]
call eax
mov dword [esp + 4], 4
mov dword [esp], 0x56fd2c
call fcn.0047bbdf
mov edx, eax
mov eax, dword [0xa607a0]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0047bec9
mov dword [0xa4bd50], 1
mov eax, dword [0xa607a0]
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_system
mov dword [0xa4bd50], 0
mov eax, dword [0xa6079c]
test eax, eax
jne 0x49fbe6
mov eax, dword [sym.imp.KERNEL32.dll_FreeConsole]
call eax
jmp 0x49fbe6
nop
jmp 0x49fbe7
nop
jmp 0x49fbe7
nop
jmp 0x49fbe7
nop
jmp 0x49fbe7
nop
mov eax, dword [0xa60798]
test eax, eax
je 0x49fc1c
mov eax, dword [0xa60798]
mov dword [0x553570], eax
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
mov eax, dword [0x6d0a48]
test eax, eax
sete al
test al, al
jne 0x49fbfa
jmp 0x49fc1c
nop
mov ebx, dword [ebp - 4]
leave
ret