Function at 0x4d114a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
mov eax, dword [ebp + 0xc]
and eax, 2
test eax, eax
jne 0x4d116c
mov dword [esp], 5
call fcn.004aacb4
jmp 0x4d17e6
mov eax, dword [0x6dfb4c]
test eax, eax
je 0x4d1186
mov dword [esp], 0x106
call fcn.004aacb4
jmp 0x4d17e6
mov eax, dword [0xa8f904]
test eax, eax
jne 0x4d11a8
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.004ac3ce
mov dword [0xa8f904], eax
mov eax, dword [0xa8f908]
test eax, eax
jne 0x4d11ca
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.004ac3ce
mov dword [0xa8f908], eax
mov eax, dword [0xa8f90c]
test eax, eax
jne 0x4d11ec
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.004ac3ce
mov dword [0xa8f90c], eax
mov eax, dword [0xa8f910]
test eax, eax
jne 0x4d120e
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.004ac3ce
mov dword [0xa8f910], eax
mov eax, dword [0xa8f914]
test eax, eax
jne 0x4d1230
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.004ac3ce
mov dword [0xa8f914], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
test eax, eax
jne 0x4d124b
mov dword [esp], 5
call fcn.004aacb4
jmp 0x4d17e6
call fcn.004cdc71
test eax, eax
setne al
test al, al
je 0x4d16a7
mov eax, dword [0xa8f904]
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 [0xa8f908]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004ac535
mov eax, dword [0xa8f904]
mov dword [esp], eax
call fcn.004cdd84
test eax, eax
sete al
test al, al
je 0x4d1352
mov dword [esp + 4], 1
mov dword [esp], 0x59f827
call fcn.004ac24b
mov edx, eax
mov eax, dword [0xa8f904]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004accf9
mov edx, eax
mov eax, dword [0xa8f90c]
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], 0xa8f920
call sub.msvcrt.dll_memset
mov dword [0xa8f920], 0x3c
mov eax, dword [0xa8f90c]
mov eax, dword [eax]
mov dword [0xa8f930], eax
mov dword [0xa8f934], 0
mov dword [0xa8f924], 0x400
mov dword [0xa8f93c], 0
mov dword [esp], 0xa8f920
mov eax, dword [sym.imp.SHELL32.DLL_ShellExecuteExA]
call eax
sub esp, 4
test eax, eax
setne al
test al, al
jne 0x4d17dc
mov dword [0xa8f95c], 0
mov dword [0xa8f960], 0
jmp 0x4d1430
mov eax, dword [0xa8f904]
mov edx, dword [eax]
mov eax, dword [0xa8f95c]
add eax, edx
movzx eax, byte [eax]
cmp al, 0x22
jne 0x4d139f
mov eax, dword [0xa8f960]
test eax, eax
jne 0x4d1395
mov dword [0xa8f960], 1
jmp 0x4d139f
mov dword [0xa8f960], 0
mov eax, dword [0xa8f904]
mov edx, dword [eax]
mov eax, dword [0xa8f95c]
add eax, edx
movzx eax, byte [eax]
cmp al, 0x20
jne 0x4d1423
mov eax, dword [0xa8f960]
test eax, eax
jne 0x4d1423
mov eax, dword [0xa8f904]
mov edx, dword [eax + 4]
mov eax, dword [0xa8f95c]
mov ecx, edx
sub ecx, eax
mov eax, ecx
lea edx, [eax - 1]
mov eax, dword [0xa8f904]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004ad143
mov edx, eax
mov eax, dword [0xa8f908]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004ac535
mov edx, dword [0xa8f95c]
mov eax, dword [0xa8f904]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004ad07b
mov edx, eax
mov eax, dword [0xa8f904]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004ac535
jmp 0x4d144a
mov eax, dword [0xa8f95c]
add eax, 1
mov dword [0xa8f95c], eax
mov eax, dword [0xa8f904]
mov edx, dword [eax + 4]
mov eax, dword [0xa8f95c]
cmp edx, eax
setg al
test al, al
jne 0x4d136b
mov eax, dword [0xa8f904]
mov eax, dword [eax + 4]
test eax, eax
je 0x4d17df
mov eax, dword [0xa8f908]
mov eax, dword [eax + 4]
test eax, eax
je 0x4d1568
mov eax, dword [0xa8f904]
mov dword [esp], eax
call fcn.004cdd84
test eax, eax
sete al
test al, al
je 0x4d1568
mov dword [esp + 4], 1
mov dword [esp], 0x59f827
call fcn.004ac24b
mov edx, eax
mov eax, dword [0xa8f904]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004accf9
mov edx, eax
mov eax, dword [0xa8f90c]
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 [0xa8f908]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004accf9
mov edx, eax
mov eax, dword [0xa8f910]
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], 0xa8f920
call sub.msvcrt.dll_memset
mov dword [0xa8f920], 0x3c
mov eax, dword [0xa8f90c]
mov eax, dword [eax]
mov dword [0xa8f930], eax
mov eax, dword [0xa8f910]
mov eax, dword [eax]
mov dword [0xa8f934], eax
mov dword [0xa8f924], 0x400
mov dword [0xa8f93c], 0
mov dword [esp], 0xa8f920
mov eax, dword [sym.imp.SHELL32.DLL_ShellExecuteExA]
call eax
sub esp, 4
test eax, eax
setne al
test al, al
jne 0x4d17e2
mov eax, dword [0xa8f908]
mov eax, dword [eax + 4]
test eax, eax
je 0x4d15a5
mov ebx, dword [0xa8f908]
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 [0xa8f908]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004ac535
mov edx, dword [0xa8f908]
mov eax, dword [0xa8f904]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004accf9
mov edx, eax
mov eax, dword [0xa8f914]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004ac535
mov ebx, dword [0xa8f914]
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 [0xa8f914]
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 [0xa8f914]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004accf9
mov edx, eax
mov eax, dword [0xa8f914]
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], 0xa8f920
call sub.msvcrt.dll_memset
mov dword [0xa8f920], 0x3c
mov dword [0xa8f930], 0x583918
mov eax, dword [0xa8f914]
mov eax, dword [eax]
mov dword [0xa8f934], eax
mov dword [0xa8f924], 0x400
mov dword [0xa8f93c], 0
mov dword [esp], 0xa8f920
mov eax, dword [sym.imp.SHELL32.DLL_ShellExecuteExA]
call eax
sub esp, 4
test eax, eax
setne al
test al, al
jmp 0x4d17e6
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 [0xa8f914]
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 [0xa8f914]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004accf9
mov edx, eax
mov eax, dword [0xa8f914]
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], 0xa8f980
call sub.msvcrt.dll_memset
mov dword [0xa8f980], 0x44
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
mov dword [esp], 0xa8f9c4
call sub.msvcrt.dll_memset
mov eax, dword [0xa8f914]
mov eax, dword [eax]
mov dword [esp + 0x24], 0xa8f9c4
mov dword [esp + 0x20], 0xa8f980
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 0x4d17e5
mov eax, dword [0xa8f9c4]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [0xa8f9c8]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
jmp 0x4d17e6
nop
jmp 0x4d17e6
nop
jmp 0x4d17e6
nop
jmp 0x4d17e6
nop
mov ebx, dword [ebp - 4]
leave
ret