Function at 0x508820
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 0x5b792b
push eax
mov eax, 0x80e8
mov dword fs:[0], esp
call fcn.00595100
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 0x5089a1
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [ebp + 0x70]
lea edx, [esp + 0x10]
mov dword [esp + 0x8100], ebx
mov ecx, dword [eax]
push ecx
push 0x623d7c
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [0x637770]
add esp, 0xc
cmp eax, ebx
je 0x508912
mov cl, byte [eax + 0x40]
test cl, cl
je 0x508912
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
lea ecx, [esp + 0x14]
call fcn.0041a900
push eax
mov eax, dword [ebp + 0x70]
push 0x60b5c0
push ecx
add eax, 0xa8
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x637770]
push str.runtime
push str.tdsms
mov edx, dword [ecx + 0x44]
push edx
call fcn.004eb4c0
mov eax, dword [0x637770]
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 0x60b5c0
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [ebp + 0x70]
push ecx
add edx, 0xa8
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 0x6101d4
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x63234c]
mov byte [esp + 0x8110], 0
call fcn.00458dc0
lea ecx, [esp + 0x10]
mov dword [esp + 0x8100], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor al, al
jmp 0x508fb9
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 0x508b6d
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 + 0x70]
lea eax, [esp + 0x10]
mov dword [esp + 0x8100], 4
mov edx, dword [ecx]
push edx
push 0x623d38
push eax
call sub.MFC42.DLL_CString::Format
mov eax, dword [0x637770]
add esp, 0xc
cmp eax, ebx
je 0x508adf
mov cl, byte [eax + 0x40]
test cl, cl
je 0x508adf
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
lea ecx, [esp + 0x14]
call fcn.0041a900
mov edx, dword [ebp + 0x70]
push eax
push 0x60b5c0
push ecx
add edx, 0xa8
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [0x637770]
push str.runtime
push str.tdsms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eb4c0
mov edx, dword [0x637770]
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 0x60b5c0
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [ebp + 0x70]
push ecx
add eax, 0xa8
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 0x6101d4
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x63234c]
mov byte [esp + 0x8110], 4
call fcn.00458dc0
lea ecx, [esp + 0x10]
mov dword [esp + 0x8100], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor al, al
jmp 0x508fb9
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 0x508bc3
add esi, dword [esp + 0x34]
jmp 0x508b9f
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 + 0x70]
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 0x508d65
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 0x508d65
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [ebp + 0x70]
lea eax, [esp + 0x10]
mov byte [esp + 0x8100], 9
mov edx, dword [ecx]
push edx
push 0x623d04
push eax
call sub.MFC42.DLL_CString::Format
mov eax, dword [0x637770]
add esp, 0xc
cmp eax, ebx
je 0x508ce1
mov cl, byte [eax + 0x40]
test cl, cl
je 0x508ce1
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
lea ecx, [esp + 0x14]
call fcn.0041a900
mov edx, dword [ebp + 0x70]
push eax
push 0x60b5c0
push ecx
add edx, 0xa8
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [0x637770]
push str.runtime
push str.tdsms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eb4c0
mov edx, dword [0x637770]
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 0x60b5c0
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [ebp + 0x70]
push ecx
add eax, 0xa8
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 0x6101d4
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x63234c]
mov byte [esp + 0x8110], 9
call fcn.00458dc0
mov byte [esp + 0x8100], 8
lea ecx, [esp + 0x10]
jmp 0x508efa
mov ecx, dword [str.IP_Address._._.]
mov edx, dword [0x623cf8]
mov dword [esp + 0x38], ecx
mov ecx, dword [0x623cfc]
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x3c], edx
mov edx, dword [0x623d00]
push ecx
push eax
mov dword [esp + 0x4c], edx
mov ebx, eax
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x508f1a
mov eax, dword [0x623ce8]
mov edx, dword [str.IPv4]
mov ecx, dword [0x623cec]
mov dword [esp + 0x58], eax
lea eax, [esp + 0x54]
mov dword [esp + 0x54], edx
mov edx, dword [0x623cf0]
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 0x508f1a
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [ebp + 0x70]
lea eax, [esp + 0x14]
mov bl, 0xd
mov edx, dword [ecx]
mov byte [esp + 0x8100], bl
push edx
push 0x623d04
push eax
call sub.MFC42.DLL_CString::Format
mov eax, dword [0x637770]
add esp, 0xc
test eax, eax
je 0x508e7c
mov cl, byte [eax + 0x40]
test cl, cl
je 0x508e7c
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
lea ecx, [esp + 0x18]
call fcn.0041a900
mov edx, dword [ebp + 0x70]
push eax
push 0x60b5c0
push ecx
add edx, 0xa8
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [0x637770]
push str.runtime
push str.tdsms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eb4c0
mov edx, dword [0x637770]
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 0x60b5c0
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [ebp + 0x70]
push ecx
add eax, 0xa8
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 0x6101d4
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x63234c]
mov byte [esp + 0x8110], bl
call fcn.00458dc0
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 0x508fb9
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 0x508f92
mov al, byte [esi + ebp]
test bl, bl
mov byte [esp + 0x14], al
je 0x508f66
cmp al, 0x30
jl 0x508f4f
cmp al, 0x39
jle 0x508f53
cmp al, 0x2e
jne 0x508f92
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x810c]
call fcn.005945f0
jmp 0x508f81
cmp al, 0x30
jl 0x508f81
cmp al, 0x39
jg 0x508f81
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x8108]
push edx
call fcn.005945f0
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 0x508f3c
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