Function at 0x508930
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 0x5b601b
push eax
mov eax, 0x80e8
mov dword fs:[0], esp
call fcn.005937c0
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 0x508ab1
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 0x621fc8
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [0x635490]
add esp, 0xc
cmp eax, ebx
je 0x508a22
mov cl, byte [eax + 0x40]
test cl, cl
je 0x508a22
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
lea ecx, [esp + 0x14]
call fcn.0041a850
push eax
mov eax, dword [ebp + 0x70]
push 0x6095c0
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 [0x635490]
push str.runtime
push str.tdsms
mov edx, dword [ecx + 0x44]
push edx
call fcn.004eba10
mov eax, dword [0x635490]
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 0x6095c0
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 0x60e204
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x63006c]
mov byte [esp + 0x8110], 0
call fcn.00458d40
lea ecx, [esp + 0x10]
mov dword [esp + 0x8100], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor al, al
jmp 0x5090c9
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 0x508c7d
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 0x621f84
push eax
call sub.MFC42.DLL_CString::Format
mov eax, dword [0x635490]
add esp, 0xc
cmp eax, ebx
je 0x508bef
mov cl, byte [eax + 0x40]
test cl, cl
je 0x508bef
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
lea ecx, [esp + 0x14]
call fcn.0041a850
mov edx, dword [ebp + 0x70]
push eax
push 0x6095c0
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 [0x635490]
push str.runtime
push str.tdsms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eba10
mov edx, dword [0x635490]
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 0x6095c0
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 0x60e204
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x63006c]
mov byte [esp + 0x8110], 4
call fcn.00458d40
lea ecx, [esp + 0x10]
mov dword [esp + 0x8100], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor al, al
jmp 0x5090c9
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 0x508cd3
add esi, dword [esp + 0x34]
jmp 0x508caf
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 0x508e75
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 0x508e75
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 0x621f50
push eax
call sub.MFC42.DLL_CString::Format
mov eax, dword [0x635490]
add esp, 0xc
cmp eax, ebx
je 0x508df1
mov cl, byte [eax + 0x40]
test cl, cl
je 0x508df1
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
lea ecx, [esp + 0x14]
call fcn.0041a850
mov edx, dword [ebp + 0x70]
push eax
push 0x6095c0
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 [0x635490]
push str.runtime
push str.tdsms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eba10
mov edx, dword [0x635490]
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 0x6095c0
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 0x60e204
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x63006c]
mov byte [esp + 0x8110], 9
call fcn.00458d40
mov byte [esp + 0x8100], 8
lea ecx, [esp + 0x10]
jmp 0x50900a
mov ecx, dword [str.IP_Address._._.]
mov edx, dword [0x621f44]
mov dword [esp + 0x38], ecx
mov ecx, dword [0x621f48]
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x3c], edx
mov edx, dword [0x621f4c]
push ecx
push eax
mov dword [esp + 0x4c], edx
mov ebx, eax
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x50902a
mov eax, dword [0x621f34]
mov edx, dword [str.IPv4]
mov ecx, dword [0x621f38]
mov dword [esp + 0x58], eax
lea eax, [esp + 0x54]
mov dword [esp + 0x54], edx
mov edx, dword [0x621f3c]
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 0x50902a
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 0x621f50
push eax
call sub.MFC42.DLL_CString::Format
mov eax, dword [0x635490]
add esp, 0xc
test eax, eax
je 0x508f8c
mov cl, byte [eax + 0x40]
test cl, cl
je 0x508f8c
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
lea ecx, [esp + 0x18]
call fcn.0041a850
mov edx, dword [ebp + 0x70]
push eax
push 0x6095c0
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 [0x635490]
push str.runtime
push str.tdsms
mov ecx, dword [eax + 0x44]
push ecx
call fcn.004eba10
mov edx, dword [0x635490]
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 0x6095c0
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 0x60e204
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [0x63006c]
mov byte [esp + 0x8110], bl
call fcn.00458d40
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 0x5090c9
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 0x5090a2
mov al, byte [esi + ebp]
test bl, bl
mov byte [esp + 0x14], al
je 0x509076
cmp al, 0x30
jl 0x50905f
cmp al, 0x39
jle 0x509063
cmp al, 0x2e
jne 0x5090a2
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x810c]
call fcn.00592cb0
jmp 0x509091
cmp al, 0x30
jl 0x509091
cmp al, 0x39
jg 0x509091
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x8108]
push edx
call fcn.00592cb0
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 0x50904c
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