Function at 0x40d2b0
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Get common file path
Set console window title

Disassembly:
push 0xffffffffffffffff
push 0x46b82b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x17c
xor edx, edx
push ebx
push esi
mov dword [esp + 0xe], edx
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x40]
mov dword [esp + 0x16], edx
xor ebx, ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x198]
mov ecx, dword [esp + 0x1a0]
mov dword [esp + 0x1a], edx
mov dword [esp + 0x40], 0x44
mov dword [esp + 0x1e], edx
mov dword [esp + 0x6c], 0x101
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], ebx
mov dword [esp + 0x80], ecx
mov word [esp + 0x70], bx
mov byte [esp + 0x10], 0x22
mov byte [esp + 0x11], bl
mov word [esp + 0x22], dx
call fcn.00401fe0
test al, al
lea eax, [esp + 0x84]
push 0x104
push eax
je 0x40d359
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esp + 0x84]
mov edi, str.cmd.exe__c
jmp 0x40d36b
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + 0x84]
mov edi, str.command.com__c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x84]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
call fcn.0043cf12
push ebx
push str.hwinfo.exe
lea ecx, [esp + 0x2c]
mov dword [esp + 0x198], ebx
call fcn.0043cfd5
test eax, eax
je 0x40d431
lea ecx, [esp + 0x24]
call fcn.0043d1f5
lea eax, [esp + 0xc]
lea ecx, [esp + 0x24]
push eax
call fcn.0043d2c4
mov eax, dword [eax]
or ecx, 0xffffffff
mov edi, eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x84]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
call fcn.00461a95
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x84]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00401fe0
test al, al
jne 0x40d4c7
lea eax, [esp + 0xc]
push eax
call fcn.0040d5d0
add esp, 4
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov esi, dword [sym.imp.USER32.dll_LockWindowUpdate]
push eax
call esi
call dword [sym.imp.KERNEL32.dll_AllocConsole]
test eax, eax
je 0x40d4bb
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
push 0x28
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esp + 0xc]
push edx
push ebx
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, ebx
je 0x40d4bb
push ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
call esi
lea ecx, [esp + 0xc]
call fcn.00461a95
lea eax, [esp + 0x40]
push 0x4a5420
push eax
push ebx
push ebx
push ebx
push 1
push ebx
lea ecx, [esp + 0xa0]
push ebx
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40d519
lea ecx, [esp + 0x24]
mov dword [esp + 0x190], 0xffffffff
call fcn.0043cf4f
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x17c]
mov dword fs:[0], ecx
add esp, 0x188
ret
mov eax, dword [0x4a5424]
mov edx, dword [0x4a5420]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
mov dword [0x4a5430], edx
call esi
test eax, eax
jne 0x40d565
lea ecx, [esp + 0x24]
mov dword [esp + 0x190], 0xffffffff
call fcn.0043cf4f
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x17c]
mov dword fs:[0], ecx
add esp, 0x188
ret
mov ecx, dword [0x4a5420]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [0x4a5420]
push edx
call esi
test eax, eax
mov dword [esp + 0x190], 0xffffffff
lea ecx, [esp + 0x24]
jne 0x40d5af
call fcn.0043cf4f
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x17c]
mov dword fs:[0], ecx
add esp, 0x188
ret
call fcn.0043cf4f
mov ecx, dword [esp + 0x188]
pop edi
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x188
ret