Function at 0x49f941
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 0x4a024b
mov eax, dword [0x6b0b4c]
test eax, eax
je 0x49f96f
mov dword [esp], 0x106
call fcn.0047ac78
jmp 0x4a024c
mov eax, dword [0x6d0a48]
mov dword [0xa60798], eax
mov eax, dword [0xa60798]
test eax, eax
je 0x49f9ab
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 0x49f98c
mov dword [0xa6079c], 0
mov eax, dword [0x6b0c88]
test eax, eax
je 0x49f9d1
mov eax, dword [0x5532dc]
test eax, eax
je 0x49f9d1
mov dword [0xa6079c], 1
mov eax, dword [0xa607a0]
test eax, eax
jne 0x49f9f3
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.0047c392
mov dword [0xa607a0], eax
mov eax, dword [0xa607a4]
test eax, eax
jne 0x49fa15
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.0047c392
mov dword [0xa607a4], eax
mov eax, dword [0xa607a8]
test eax, eax
jne 0x49fa37
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.0047c392
mov dword [0xa607a8], eax
mov eax, dword [0xa607ac]
test eax, eax
jne 0x49fa59
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.0047c392
mov dword [0xa607ac], eax
mov eax, dword [0xa607b0]
test eax, eax
jne 0x49fa7b
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.0047c392
mov dword [0xa607b0], eax
cmp dword [ebp + 0xc], 0
je 0x49fa92
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
test eax, eax
jne 0x49fa92
mov dword [ebp + 0xc], 0
cmp dword [ebp + 0xc], 0
je 0x4a019e
mov eax, dword [0xa6079c]
test eax, eax
je 0x49fb03
mov dword [esp + 4], 1
mov dword [esp], 0x56f987
call fcn.0047c20f
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0047ccbd
mov edx, eax
mov eax, dword [0xa607a0]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0047c4f9
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 0x4a0217
call fcn.0049dc35
test eax, eax
setne al
test al, al
je 0x4a0037
mov eax, dword [0xa607a4]
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0047c4f9
mov dword [esp], 0x568606
call fcn.0047c17e
mov edx, eax
mov eax, dword [0xa607ac]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0047c4f9
mov eax, dword [0xa607a4]
mov eax, dword [eax + 4]
test eax, eax
je 0x4a020a
mov eax, dword [0xa607a4]
mov dword [esp], eax
call fcn.0049dd48
test eax, eax
sete al
test al, al
je 0x49fc5b
mov dword [esp + 4], 1
mov dword [esp], 0x56f987
call fcn.0047c20f
mov edx, eax
mov eax, dword [0xa607a4]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0047ccbd
mov edx, eax
mov eax, dword [0xa607a8]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0047c4f9
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 0x49fc5b
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 0x4a0217
mov dword [0xa607fc], 0
mov dword [0xa60800], 0
jmp 0x49fd39
mov eax, dword [0xa607a4]
mov edx, dword [eax]
mov eax, dword [0xa607fc]
add eax, edx
movzx eax, byte [eax]
cmp al, 0x22
jne 0x49fca8
mov eax, dword [0xa60800]
test eax, eax
jne 0x49fc9e
mov dword [0xa60800], 1
jmp 0x49fca8
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 0x49fd2c
mov eax, dword [0xa60800]
test eax, eax
jne 0x49fd2c
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.0047d107
mov edx, eax
mov eax, dword [0xa607ac]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0047c4f9
mov edx, dword [0xa607fc]
mov eax, dword [0xa607a4]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0047d03f
mov edx, eax
mov eax, dword [0xa607a4]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0047c4f9
jmp 0x49fd53
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 0x49fc74
mov eax, dword [0xa607a4]
mov eax, dword [eax + 4]
test eax, eax
je 0x4a020d
mov eax, dword [0xa607ac]
mov eax, dword [eax + 4]
test eax, eax
je 0x49feb2
mov eax, dword [0xa607a4]
mov dword [esp], eax
call fcn.0049dd48
test eax, eax
sete al
test al, al
je 0x49feb2
mov dword [esp + 4], 1
mov dword [esp], 0x56f987
call fcn.0047c20f
mov edx, eax
mov eax, dword [0xa607a4]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0047ccbd
mov edx, eax
mov eax, dword [0xa607a8]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0047c4f9
mov dword [esp + 4], 1
mov dword [esp], 0x56f987
call fcn.0047c20f
mov edx, eax
mov eax, dword [0xa607ac]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0047ccbd
mov edx, eax
mov eax, dword [0xa607b0]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0047c4f9
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 0x49feb2
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 0x4a0217
mov eax, dword [0xa607ac]
mov eax, dword [eax + 4]
test eax, eax
je 0x49feef
mov ebx, dword [0xa607ac]
mov dword [esp], 0x56f9fa
call fcn.0047c17e
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.0047ccbd
mov edx, eax
mov eax, dword [0xa607ac]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0047c4f9
mov edx, dword [0xa607ac]
mov eax, dword [0xa607a4]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0047ccbd
mov edx, eax
mov eax, dword [0xa607a0]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0047c4f9
mov ebx, dword [0xa607a0]
mov dword [esp], str.__c
call fcn.0047c17e
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.0047ccbd
mov edx, eax
mov eax, dword [0xa607a0]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0047c4f9
mov dword [esp + 4], 1
mov dword [esp], 0x56f987
call fcn.0047c20f
mov edx, eax
mov eax, dword [0xa607a0]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0047ccbd
mov edx, eax
mov eax, dword [0xa607a0]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0047c4f9
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 0x4a0210
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 0x4a0217
mov dword [esp], str.command.com__c
call fcn.0047c17e
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0047ccbd
mov edx, eax
mov eax, dword [0xa607a0]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0047c4f9
mov dword [esp + 4], 1
mov dword [esp], 0x56f987
call fcn.0047c20f
mov edx, eax
mov eax, dword [0xa607a0]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0047ccbd
mov edx, eax
mov eax, dword [0xa607a0]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0047c4f9
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 0x4a0213
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 0x4a0217
mov eax, dword [0xa6079c]
test eax, eax
jne 0x4a01ae
mov eax, dword [sym.imp.KERNEL32.dll_AllocConsole]
call eax
mov dword [esp + 4], 4
mov dword [esp], 0x56fd4c
call fcn.0047c20f
mov edx, eax
mov eax, dword [0xa607a0]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0047c4f9
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 0x4a0216
mov eax, dword [sym.imp.KERNEL32.dll_FreeConsole]
call eax
jmp 0x4a0216
nop
jmp 0x4a0217
nop
jmp 0x4a0217
nop
jmp 0x4a0217
nop
jmp 0x4a0217
nop
mov eax, dword [0xa60798]
test eax, eax
je 0x4a024c
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 0x4a022a
jmp 0x4a024c
nop
mov ebx, dword [ebp - 4]
leave
ret