Function at 0x10083126
Capabilities:
Create process on windows
Enumerate gui resources
Get comspec environment variable
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xaac
mov dword [ebp - 8], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0xaa8], 0
mov dword [ebp - 0xaa4], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x984], 1
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.1008197b
add esp, 8
call fcn.100816a9
cmp dword [ebp + 0x10], 0
je 0x10083266
push 0x10148950
call sub.MSVCR70D.dll_getenv
add esp, 4
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
je 0x100831f5
mov edx, dword [ebp - 0x5c]
push edx
lea eax, [ebp - 0x160]
push eax
call sub.MSVCR70D.dll_strcpy
add esp, 8
call fcn.100842b2
test eax, eax
je 0x100831d4
mov ecx, dword [ebp - 0x58]
push ecx
lea edx, [ebp - 0x160]
push edx
push 0x10148958
lea eax, [ebp - 0x980]
push eax
call sub.MSVCR70D.dll_sprintf
add esp, 0x10
jmp 0x100831f3
mov ecx, dword [ebp - 0x58]
push ecx
lea edx, [ebp - 0x160]
push edx
push 0x1014896c
lea eax, [ebp - 0x980]
push eax
call sub.MSVCR70D.dll_sprintf
add esp, 0x10
jmp 0x100831fc
xor eax, eax
jmp 0x10083434
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_AllocConsole]
test eax, eax
jne 0x1008321e
mov dword [ebp - 0x984], 0
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 0xaa8], eax
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 0xaa4], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 4], eax
cmp dword [ebp - 0xaa8], 0xffffffff
je 0x1008325d
cmp dword [ebp - 0xaa4], 0xffffffff
je 0x1008325d
cmp dword [ebp - 4], 0xffffffff
jne 0x10083264
xor eax, eax
jmp 0x10083434
jmp 0x10083287
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x58]
push ecx
lea edx, [ebp - 0x980]
push edx
call sub.MSVCR70D.dll_strcpy
add esp, 8
cmp dword [ebp + 0x18], 0
je 0x100832c8
push 0x10148978
call sub.MSVCR70D.dll_getenv
add esp, 4
mov dword [ebp - 0x98c], eax
cmp dword [ebp - 0x98c], 0
je 0x100832c8
mov eax, dword [ebp - 0x98c]
push eax
lea ecx, [ebp - 0xa90]
push ecx
call sub.MSVCR70D.dll_strcpy
add esp, 8
lea edx, [ebp - 0xa90]
mov dword [ebp - 8], edx
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x48], 0
mov word [ebp - 0x22], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x28], 0
cmp dword [ebp + 0x20], 0
je 0x1008330b
mov word [ebp - 0x24], 0
mov dword [ebp - 0x28], 1
cmp dword [ebp + 0x10], 0
je 0x10083330
mov dword [ebp - 0x28], 0x100
mov eax, dword [ebp - 0xaa8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0xaa4]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
lea eax, [ebp - 0xaa0]
push eax
lea ecx, [ebp - 0x54]
push ecx
mov edx, dword [ebp - 8]
push edx
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push 0
push 0
lea edx, [ebp - 0x980]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0xaac], eax
cmp dword [ebp + 0x1c], 0
je 0x10083373
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp - 0xaac]
mov dword [eax], ecx
cmp dword [ebp + 0x10], 0
je 0x10083395
cmp dword [ebp - 0x984], 0
je 0x10083395
cmp dword [ebp + 0x14], 0
jne 0x10083395
push 0
push 0x1008397d
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [ebp + 0xc], 0
je 0x100833c1
push 0xffffffffffffffff
mov edx, dword [ebp - 0xaa0]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp + 0x1c], 0
je 0x100833c1
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp - 0xaa0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0xaac], 0
je 0x100833e4
mov edx, dword [ebp - 0xaa0]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xa9c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x10], 0
je 0x1008341d
cmp dword [ebp - 0x984], 0
je 0x1008341d
cmp dword [ebp + 0xc], 0
je 0x10083417
push 0
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
push 0
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
push 0
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
call dword [sym.imp.KERNEL32.dll_FreeConsole]
call fcn.100816ca
mov ecx, dword [ebp - 0x58]
push ecx
call sub.MSVCR70D.dll_free
add esp, 4
mov eax, dword [ebp - 0xaac]
mov esp, ebp
pop ebp
ret