Function at 0x401677
Capabilities:
Terminate process

Disassembly:
jmp 0x446d10
sub esp, 0xe0
mov eax, dword [0x488180]
xor eax, esp
mov dword [esp + 0xdc], eax
mov eax, dword [esp + 0xe8]
push ebx
mov ebx, dword [esp + 0xe8]
test ebx, ebx
mov dword [esp + 4], eax
jne 0x446d54
lea eax, [ebx + 1]
pop ebx
mov ecx, dword [esp + 0xdc]
xor ecx, esp
call fcn.0044c66d
add esp, 0xe0
ret
push esi
push 0x2e
push ebx
call fcn.0044c640
mov esi, eax
add esp, 8
test esi, esi
je 0x446f08
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 4
jl 0x446f08
push str..bat
push esi
call fcn.0044fa65
add esp, 8
test eax, eax
je 0x446da2
push str..cmd
push esi
call fcn.0044fa65
add esp, 8
test eax, eax
jne 0x446f08
push ebp
push edi
push 0x44
lea ecx, [esp + 0x2c]
push 0
push ecx
call fcn.0044c680
xor eax, eax
push eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], 0x44
mov dword [esp + 0x64], 0x100
call fcn.00401a41
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
add esp, 0x10
push 2
push 1
push 0
lea edx, [esp + 0x6c]
push edx
mov edi, eax
call esi
push eax
push edi
call esi
mov edi, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push eax
call edi
push 1
call fcn.00401a41
add esp, 4
push 2
push 1
mov ebp, eax
push 0
lea eax, [esp + 0x70]
push eax
call esi
push eax
push ebp
call esi
push eax
call edi
push 2
call fcn.00401a41
add esp, 4
push 2
push 1
push 0
lea ecx, [esp + 0x74]
push ecx
mov ebp, eax
call esi
push eax
push ebp
call esi
push eax
call edi
cmp byte [ebx], 0
pop edi
mov eax, ebx
pop ebp
je 0x446e58
cmp byte [eax], 0x2f
jne 0x446e50
mov byte [eax], 0x5c
add eax, 1
cmp byte [eax], 0
jne 0x446e48
cmp dword [0x48b140], 1
push ebx
jne 0x446e73
push str.command.com__c__s
push 0x80
lea edx, [esp + 0x70]
push edx
jmp 0x446e82
push str.cmd__c__s
push 0x80
lea eax, [esp + 0x70]
push eax
call fcn.0046fe5d
mov esi, dword [esp + 0x18]
add esi, 4
add esp, 0x10
cmp dword [esi], 0
je 0x446ece
jmp 0x446ea0
push 0x47e810
push 0x80
lea ecx, [esp + 0x6c]
push ecx
call fcn.0047098a
mov edx, dword [esi]
push edx
push 0x80
lea eax, [esp + 0x6c]
push eax
call fcn.0047098a
add esi, 4
cmp dword [esi], 0
jne 0x446ea0
call fcn.0040159b
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x24]
push edx
push 0
push 0
push 4
push 1
push 0
mov esi, eax
push 0
lea eax, [esp + 0x84]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x446f24
push esi
call fcn.00401c03
add esp, 4
mov ecx, dword [esp + 0xe4]
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0044c66d
add esp, 0xe0
ret
mov eax, dword [esp + 0xc]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
test eax, eax
je 0x446f4d
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetProcessAffinityMask]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call fcn.00401c03
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
push ecx
call esi
mov edx, dword [esp + 0xc]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0xc]
push eax
call esi
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]