Function at 0x4ed070
Capabilities:
Create pipe
Create process on windows
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6ac89b
mov eax, dword fs:[0]
push eax
mov eax, 0xa8bc
call fcn.00666cc0
mov eax, dword [0x7e2670]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xa8c4], ecx
push str.promptdlsonyfbox_r_n
call fcn.0066610b
add esp, 4
mov byte [ebp - 0x11], 0
mov dword [ebp - 0xa830], 0xffffffff
mov byte [ebp - 0xa01c], 0
push 0x9fff
push 0
lea eax, [ebp - 0xa01b]
push eax
call fcn.006665c0
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0xa01c]
push edx
call fcn.00666ba0
add esp, 8
lea eax, [ebp - 0xa01c]
push eax
push str.in_ExecuteCmd__cmdline_s_r_n
call fcn.0066610b
add esp, 8
mov dword [ebp - 0xa020], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xa850], 0xc
mov dword [ebp - 0xa84c], 0
mov dword [ebp - 0xa848], 1
push 0
lea ecx, [ebp - 0xa850]
push ecx
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0xa020]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x4ed179
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xa830], eax
mov ecx, dword [ebp - 0xa830]
push ecx
push str.CreatePipe_fail.errorcode_d_r_n
call fcn.0066610b
add esp, 8
or eax, 0xffffffff
jmp 0x4ed5bd
push 0x44
push 0
lea edx, [ebp - 0xa89c]
push edx
call fcn.006665c0
add esp, 0xc
push 0
push 1
mov eax, dword [ebp - 0xa020]
push eax
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov dword [ebp - 0xa89c], 0x44
lea ecx, [ebp - 0xa89c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0xa85c], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xa860], eax
mov dword [ebp - 0xa870], 0x100
xor ecx, ecx
mov word [ebp - 0xa86c], cx
lea edx, [ebp - 0xa844]
push edx
lea eax, [ebp - 0xa89c]
push eax
push 0
push 0
push 0x8000000
push 1
push 0
push 0
lea ecx, [ebp - 0xa01c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0xa8a0], eax
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xa8a0], 0
jne 0x4ed253
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xa830], eax
mov eax, dword [ebp - 0xa830]
push eax
push str.CreateProcess_fail.errorcode_d_r_n
call fcn.0066610b
add esp, 8
mov ecx, dword [ebp - 0xa020]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
jmp 0x4ed5bd
mov edx, dword [ebp - 0xa83c]
push edx
push str.subprocessid_d_r_n
call fcn.0066610b
add esp, 8
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
mov byte [ebp - 0xa82c], 0
push 0x800
push 0
lea eax, [ebp - 0xa82b]
push eax
call fcn.006665c0
add esp, 0xc
mov dword [ebp - 0xa854], 0
mov byte [ebp - 0xa831], 0
push str.Read_Pipe:_r_n
call fcn.0066610b
add esp, 4
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
push 1
mov ecx, dword [ebp - 0xa844]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor edx, edx
cmp eax, 0x102
sete dl
mov byte [ebp - 0xa831], dl
push 0
lea eax, [ebp - 0xa854]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp - 0xa020]
push ecx
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
movzx edx, byte [ebp - 0xa831]
test edx, edx
jne 0x4ed31f
cmp dword [ebp - 0xa854], 0
ja 0x4ed31f
mov dword [ebp - 0xa8c8], 0
jmp 0x4ed329
mov dword [ebp - 0xa8c8], 1
cmp dword [ebp - 0xa8c8], 0
je 0x4ed4e5
push 0x73afd3
lea ecx, [ebp - 0xa8bc]
call fcn.00404630
mov dword [ebp - 4], 0
cmp dword [ebp - 0xa854], 0
jbe 0x4ed405
mov eax, dword [ebp - 0xa854]
mov dword [ebp - 0xa8c0], eax
cmp dword [ebp - 0xa8c0], 0x800
jbe 0x4ed37c
mov dword [ebp - 0xa8c0], 0x800
push 0
lea ecx, [ebp - 0xa8c0]
push ecx
mov edx, dword [ebp - 0xa8c0]
push edx
lea eax, [ebp - 0xa82c]
push eax
mov ecx, dword [ebp - 0xa020]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0xa8c0]
mov byte [ebp + edx - 0xa82c], 0
cmp dword [ebp - 0xa8c0], 0
jbe 0x4ed3dc
lea eax, [ebp - 0xa82c]
push eax
push 0x73c994
call fcn.0066610b
add esp, 8
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
lea ecx, [ebp - 0xa82c]
push ecx
lea ecx, [ebp - 0xa8bc]
call fcn.004138a0
mov edx, dword [ebp - 0xa854]
sub edx, dword [ebp - 0xa8c0]
mov dword [ebp - 0xa854], edx
jmp 0x4ed34d
push 0
push str.Please_press_the_data_clear_switch_for_more_than_3_seconds__and_release
lea ecx, [ebp - 0xa8bc]
call fcn.004138c0
cmp eax, 0xffffffff
je 0x4ed438
push str._r_ndlsonyfbox10___r_n
call fcn.0066610b
add esp, 4
push str.promptpressboxtip_r_n
call fcn.0066610b
add esp, 4
jmp 0x4ed4b4
push 0
push str.initialized_succeeded
lea ecx, [ebp - 0xa8bc]
call fcn.004138c0
cmp eax, 0xffffffff
je 0x4ed462
push str._r_ndlsonyfbox40___r_n
call fcn.0066610b
add esp, 4
mov byte [ebp - 0x11], 1
jmp 0x4ed4b4
push 0
push str.Clear_contents_succeeded
lea ecx, [ebp - 0xa8bc]
call fcn.004138c0
cmp eax, 0xffffffff
je 0x4ed48c
push str._r_ndlsonyfbox60___r_n
call fcn.0066610b
add esp, 4
mov byte [ebp - 0x11], 1
jmp 0x4ed4b4
push 0
push str.Setup_processing_completion
lea ecx, [ebp - 0xa8bc]
call fcn.004138c0
cmp eax, 0xffffffff
je 0x4ed4b4
push str._r_ndlsonyfbox80___r_n
call fcn.0066610b
add esp, 4
mov byte [ebp - 0x11], 1
lea ecx, [ebp - 0xa8bc]
call fcn.00405300
movzx eax, al
test eax, eax
je 0x4ed4ce
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa8bc]
call fcn.00404770
jmp 0x4ed2c4
push 0x73ca98
call fcn.0066610b
add esp, 4
push 0xffffffffffffffff
mov ecx, dword [ebp - 0xa844]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea edx, [ebp - 0xa830]
push edx
mov eax, dword [ebp - 0xa844]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dword [ebp - 0xa8a0], eax
cmp dword [ebp - 0xa8a0], 0
jne 0x4ed544
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xa830], eax
mov ecx, dword [ebp - 0xa830]
push ecx
push str.GetExitCodeProcess_function_fail.errorcode_d_r_n
call fcn.0066610b
add esp, 8
mov edx, dword [ebp - 0xa844]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xa840]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xa020]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0xa830]
push edx
push str.ExecuteCmd_Process_exitCode_d_r_n
call fcn.0066610b
add esp, 8
cmp dword [ebp - 0xa8a0], 0
je 0x4ed5ad
cmp dword [ebp - 0xa830], 0
jne 0x4ed5ad
movzx eax, byte [ebp - 0x11]
cmp eax, 1
jne 0x4ed5ad
push str.dlsonyfbox100___r_n
call fcn.0066610b
add esp, 4
xor eax, eax
jmp 0x4ed5bd
push str.dlsonyfboxFAIL_r_n
call fcn.0066610b
add esp, 4
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.006665ac
mov esp, ebp
pop ebp
ret 4