Function at 0x50a150
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create process suspended
Read file on windows

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x5ba3db
push eax
mov eax, 0x80e8
mov dword fs:[0], esp
call fcn.005979e0
push ebx
push ebp
push esi
mov ebp, ecx
xor ebx, ebx
push edi
lea eax, [esp + 0x48]
push ebx
lea ecx, [esp + 0x2c]
push eax
lea edx, [esp + 0x38]
push ecx
push edx
mov dword [esp + 0x58], 0xc
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x50a2d1
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [ebp + 0x74]
lea edx, [esp + 0x10]
mov dword [esp + 0x8100], ebx
mov ecx, dword [eax]
push ecx
push 0x62706c
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [0x63ac20]
add esp, 0xc
cmp eax, ebx
je 0x50a242
mov cl, byte [eax + 0x40]
test cl, cl
je 0x50a242
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
lea ecx, [esp + 0x14]
call fcn.0041a9a0
push eax
mov eax, dword [ebp + 0x74]
push 0x60e5d8
push ecx
add eax, 0xac
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x63ac20]
push str.runtime
push str.tdsms
mov edx, dword [ecx + 0x44]
push edx
call fcn.004ec710
mov eax, dword [0x63ac20]
add esp, 0x1c
mov edx, dword [eax + 0x248]
lea ecx, [eax + 0x248]
call dword [edx + 0x1c]
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call sub.MFC42.DLL_CString::CString_2
push ecx
mov byte [esp + 0x8108], 1
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x60e5d8
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [ebp + 0x74]
push ecx
add edx, 0xac
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
mov byte [esp + 0x8110], 2
call sub.MFC42.DLL_CString::CString_2
push ecx
mov byte [esp + 0x8110], 3
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x6132bc
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x6357fc]
mov byte [esp + 0x8110], 0
call fcn.00458fc0
lea ecx, [esp + 0x10]
mov dword [esp + 0x8100], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor al, al
jmp 0x50a8e9
mov edi, str.Cmd.exe____C__ipconfig
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xb8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x64], 0x44
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x64]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x28]
lea edx, [esp + 0xa8]
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa0], eax
lea eax, [esp + 0x64]
push edx
push eax
push ebx
push ebx
push ebx
push 1
push ebx
lea ecx, [esp + 0xd4]
push ebx
push ecx
push ebx
mov word [esp + 0xbc], bx
mov dword [esp + 0xb8], 0x101
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x50a49d
mov edx, dword [esp + 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x30]
push eax
call esi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [ebp + 0x74]
lea eax, [esp + 0x10]
mov dword [esp + 0x8100], 4
mov edx, dword [ecx]
push edx
push 0x627028
push eax
call sub.MFC42.DLL_CString::Format
mov eax, dword [0x63ac20]
add esp, 0xc
cmp eax, ebx
je 0x50a40f
mov cl, byte [eax + 0x40]
test cl, cl
je 0x50a40f
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
lea ecx, [esp + 0x14]
call fcn.0041a9a0
mov edx, dword [ebp + 0x74]
push eax
push 0x60e5d8
push ecx
add edx, 0xac
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [0x63ac20]
push str.runtime
push str.tdsms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004ec710
mov edx, dword [0x63ac20]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call sub.MFC42.DLL_CString::CString_2
push ecx
mov byte [esp + 0x8108], 5
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x60e5d8
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [ebp + 0x74]
push ecx
add eax, 0xac
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
mov byte [esp + 0x8110], 6
call sub.MFC42.DLL_CString::CString_2
push ecx
mov byte [esp + 0x8110], 7
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0x6132bc
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x6357fc]
mov byte [esp + 0x8110], 4
call fcn.00458fc0
lea ecx, [esp + 0x10]
mov dword [esp + 0x8100], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor al, al
jmp 0x50a8e9
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x1fff
xor eax, eax
lea edi, [esp + 0xf9]
mov byte [esp + 0xf8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
xor esi, esi
mov dword [esp + 0x34], ebx
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x34]
push ebx
push edx
lea eax, [esp + esi + 0x100]
push 0x7fff
push eax
push ecx
call edi
test eax, eax
je 0x50a4f3
add esi, dword [esp + 0x34]
jmp 0x50a4cf
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [ebp + 0x74]
lea edx, [esp + 0x18]
mov dword [esp + 0x8100], 8
mov ecx, dword [eax]
push ecx
push str.__s:
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::MakeUpper
mov eax, dword [esp + 0x18]
mov edi, dword [sym.imp.MSVCRT.dll_strstr]
lea ecx, [esp + 0xf8]
push eax
push ecx
call edi
add esp, 8
cmp eax, ebx
jne 0x50a695
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::MakeLower
mov edx, dword [esp + 0x18]
lea eax, [esp + 0xf8]
push edx
push eax
call edi
add esp, 8
cmp eax, ebx
jne 0x50a695
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [ebp + 0x74]
lea eax, [esp + 0x10]
mov byte [esp + 0x8100], 9
mov edx, dword [ecx]
push edx
push 0x626ff4
push eax
call sub.MFC42.DLL_CString::Format
mov eax, dword [0x63ac20]
add esp, 0xc
cmp eax, ebx
je 0x50a611
mov cl, byte [eax + 0x40]
test cl, cl
je 0x50a611
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
lea ecx, [esp + 0x14]
call fcn.0041a9a0
mov edx, dword [ebp + 0x74]
push eax
push 0x60e5d8
push ecx
add edx, 0xac
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [0x63ac20]
push str.runtime
push str.tdsms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004ec710
mov edx, dword [0x63ac20]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call sub.MFC42.DLL_CString::CString_2
push ecx
mov byte [esp + 0x8108], 0xa
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x60e5d8
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [ebp + 0x74]
push ecx
add eax, 0xac
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
mov byte [esp + 0x8110], 0xb
call sub.MFC42.DLL_CString::CString_2
push ecx
mov byte [esp + 0x8110], 0xc
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0x6132bc
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x6357fc]
mov byte [esp + 0x8110], 9
call fcn.00458fc0
mov byte [esp + 0x8100], 8
lea ecx, [esp + 0x10]
jmp 0x50a82a
mov ecx, dword [str.IP_Address._._.]
mov edx, dword [0x626fe8]
mov dword [esp + 0x38], ecx
mov ecx, dword [0x626fec]
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x3c], edx
mov edx, dword [0x626ff0]
push ecx
push eax
mov dword [esp + 0x4c], edx
mov ebx, eax
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x50a84a
mov eax, dword [0x626fd8]
mov edx, dword [str.IPv4]
mov ecx, dword [0x626fdc]
mov dword [esp + 0x58], eax
lea eax, [esp + 0x54]
mov dword [esp + 0x54], edx
mov edx, dword [0x626fe0]
push eax
push ebx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], edx
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x50a84a
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [ebp + 0x74]
lea eax, [esp + 0x14]
mov bl, 0xd
mov edx, dword [ecx]
mov byte [esp + 0x8100], bl
push edx
push 0x626ff4
push eax
call sub.MFC42.DLL_CString::Format
mov eax, dword [0x63ac20]
add esp, 0xc
test eax, eax
je 0x50a7ac
mov cl, byte [eax + 0x40]
test cl, cl
je 0x50a7ac
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
lea ecx, [esp + 0x18]
call fcn.0041a9a0
mov edx, dword [ebp + 0x74]
push eax
push 0x60e5d8
push ecx
add edx, 0xac
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [0x63ac20]
push str.runtime
push str.tdsms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004ec710
mov edx, dword [0x63ac20]
add esp, 0x1c
mov eax, dword [edx + 0x248]
lea ecx, [edx + 0x248]
call dword [eax + 0x1c]
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call sub.MFC42.DLL_CString::CString_2
push ecx
mov byte [esp + 0x8108], 0xe
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x60e5d8
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [ebp + 0x74]
push ecx
add eax, 0xac
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
mov byte [esp + 0x8110], 0xf
call sub.MFC42.DLL_CString::CString_2
push ecx
mov byte [esp + 0x8110], 0x10
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0x6132bc
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x6357fc]
mov byte [esp + 0x8110], bl
call fcn.00458fc0
mov byte [esp + 0x8100], 8
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x8100], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor al, al
jmp 0x50a8e9
lea edi, [esp + 0x38]
or ecx, 0xffffffff
xor eax, eax
xor bl, bl
repne scasb al, byte es:[edi]
not ecx
dec ecx
xor ebp, ebp
add esi, ecx
or ecx, 0xffffffff
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x50a8c2
mov al, byte [esi + ebp]
test bl, bl
mov byte [esp + 0x14], al
je 0x50a896
cmp al, 0x30
jl 0x50a87f
cmp al, 0x39
jle 0x50a883
cmp al, 0x2e
jne 0x50a8c2
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x810c]
call fcn.00596ed0
jmp 0x50a8b1
cmp al, 0x30
jl 0x50a8b1
cmp al, 0x39
jg 0x50a8b1
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x8108]
push edx
call fcn.00596ed0
mov bl, 1
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
inc ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ebp, ecx
jl 0x50a86c
mov eax, dword [esp + 0x8108]
mov dword [esp + 0x8100], 0xffffffff
mov ecx, dword [eax]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x18]
test eax, eax
setg bl
call sub.MFC42.DLL_CString::CString
mov al, bl
mov ecx, dword [esp + 0x80f8]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x80f4
ret 4