Function at 0x1004a4e0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1012c2e1
mov eax, dword fs:[0]
push eax
sub esp, 0x4d0
mov eax, dword [0x10188068]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, edx
mov dword [ebp - 0x4ac], ecx
mov esi, dword [ebp + 8]
push 0
push str..pipe5485E7A4_E975_40DC_86A4_D11465CB0F3D
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x1004aa26
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push str..pipe5485E7A4_E975_40DC_86A4_D11465CB0F3D
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x4b0], edi
cmp edi, 0xffffffff
je 0x1004aa26
mov dword [ebp - 0x450], 0
push 0x400
push ecx
lea ecx, [ebp - 0x44c]
mov dword [ebp - 4], 0
call fcn.1004ab40
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 1
call fcn.10045220
mov eax, dword [ebp - 0x44c]
xorps xmm0, xmm0
mov dword [ebp - 0x450], 3
movq qword [ebp - 0x45c], xmm0
mov dword [ebp - 0x454], 0
mov dword [ebp - 0x490], eax
mov dword [ebp - 0x420], 3
movq qword [ebp - 0x42c], xmm0
mov dword [ebp - 0x424], 0
mov ecx, dword [ebp - 0x4ac]
mov byte [ebp - 4], 2
cmp dword [ecx + 0x14], 0x10
jb 0x1004a5fa
mov ecx, dword [ecx]
push eax
push ecx
push str.exefile
lea ecx, [ebp - 0x42c]
call fcn.1004ae70
cmp dword [ebx + 0x14], 0x10
jb 0x1004a614
mov ebx, dword [ebx]
push dword [ebp - 0x490]
lea ecx, [ebp - 0x42c]
push ebx
push str.param
call fcn.1004ae70
cmp dword [esi + 0x14], 0x10
jb 0x1004a633
mov esi, dword [esi]
mov ebx, dword [ebp - 0x490]
lea ecx, [ebp - 0x42c]
push ebx
push esi
push str.currentdir
call fcn.1004ae70
push ebx
sub esp, 8
lea ecx, [ebp - 0x42c]
call fcn.1004aee0
mov eax, str.Execute
nop
inc eax
cmp byte [eax], 0
jne 0x1004a660
sub eax, str.Execute
mov dword [ebp - 0x4b4], 0x100005
mov dword [ebp - 0x4bc], eax
lea ecx, [ebp - 0x45c]
push ebx
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x4c0], str.Execute
push eax
lea eax, [ebp - 0x4c0]
push eax
call fcn.1004ad20
xorps xmm0, xmm0
mov dword [ebp - 0x498], 0
push 1
movups xmmword [ebp - 0x4a8], xmm0
mov dword [ebp - 0x494], 0x100
call fcn.100e279e
add esp, 4
mov dword [ebp - 0x4a8], eax
mov dword [ebp - 0x4a4], eax
push dword [ebp - 0x494]
call fcn.101085fd
mov ecx, dword [ebp - 0x494]
add esp, 4
mov dword [ebp - 0x4a0], eax
mov dword [ebp - 0x49c], eax
add eax, ecx
mov dword [ebp - 0x498], eax
push 0x100
lea eax, [ebp - 0x4a8]
mov byte [ebp - 4], 3
push ecx
lea ecx, [ebp - 0x4d8]
mov dword [ebp - 0x4dc], eax
call fcn.1004ab40
lea eax, [ebp - 0x4dc]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x45c]
call fcn.1004af30
mov ebx, dword [ebp - 0x49c]
lea eax, [ebx + 1]
cmp eax, dword [ebp - 0x498]
jb 0x1004a77b
mov ecx, dword [ebp - 0x4a0]
sub ebx, ecx
mov eax, dword [ebp - 0x494]
add eax, eax
lea esi, [ebx + 1]
cmp eax, esi
cmovae esi, eax
push esi
push ecx
call fcn.10108608
add esp, 8
mov dword [ebp - 0x4a0], eax
add ebx, eax
mov dword [ebp - 0x494], esi
add eax, esi
mov dword [ebp - 0x498], eax
lea eax, [ebx + 1]
mov dword [ebp - 0x49c], eax
mov byte [ebx], 0
mov edx, dword [ebp - 0x4a0]
mov ecx, edx
dec dword [ebp - 0x49c]
mov dword [ebp - 0x40c], 0
mov dword [ebp - 0x408], 0xf
mov byte [ebp - 0x41c], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004a7b3
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x41c]
call fcn.10048640
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x41c]
cmp dword [ebp - 0x408], 0x10
mov edx, dword [ebp - 0x40c]
cmovae ecx, dword [ebp - 0x41c]
call fcn.1004a420
push 0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x490]
cmp dword [ebp - 0x408], 0x10
lea eax, [ebp - 0x41c]
push ecx
push dword [ebp - 0x40c]
cmovae eax, dword [ebp - 0x41c]
push eax
push edi
mov dword [ebp - 0x490], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1004a996
push 0x3e8
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.100fc650
add esp, 0xc
lea eax, [ebp - 0x490]
push 0
push eax
push 0x3e8
lea eax, [ebp - 0x404]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1004a996
sub esp, 8
lea ecx, [ebp - 0x48c]
call fcn.1004aa90
lea eax, [ebp - 0x404]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x48c]
call fcn.1004b570
cmp dword [ebp - 0x480], 0
je 0x1004a97d
push ecx
lea ecx, [ebp - 0x48c]
call fcn.1004ac70
test eax, eax
je 0x1004a97d
push ecx
lea ecx, [ebp - 0x48c]
call fcn.1004ab00
mov eax, dword [eax + 0xc]
shr eax, 0xa
test al, 1
je 0x1004a97d
push ecx
lea ecx, [ebp - 0x48c]
call fcn.1004ab00
cmp dword [eax], 0
jne 0x1004a97d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x47c]
call fcn.10045310
mov edx, dword [ebp - 0x408]
cmp edx, 0x10
jb 0x1004a927
mov ecx, dword [ebp - 0x41c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1004a91d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004aa44
push edx
push ecx
call fcn.100e2b31
add esp, 8
lea ecx, [ebp - 0x4d8]
mov dword [ebp - 0x40c], 0
mov dword [ebp - 0x408], 0xf
mov byte [ebp - 0x41c], 0
call fcn.10045310
push dword [ebp - 0x4a0]
call fcn.101080bf
add esp, 4
push 1
push dword [ebp - 0x4a4]
call fcn.100e2b31
add esp, 8
lea ecx, [ebp - 0x44c]
call fcn.10045310
mov al, 1
jmp 0x1004aa28
lea ecx, [ebp - 0x47c]
call fcn.10045310
jmp 0x1004a996
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x408]
cmp edx, 0x10
jb 0x1004a9d7
mov ecx, dword [ebp - 0x41c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1004a9cd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004aa49
push edx
push ecx
call fcn.100e2b31
add esp, 8
lea ecx, [ebp - 0x4d8]
mov dword [ebp - 0x40c], 0
mov dword [ebp - 0x408], 0xf
mov byte [ebp - 0x41c], 0
call fcn.10045310
push dword [ebp - 0x4a0]
call fcn.101080bf
add esp, 4
push 1
push dword [ebp - 0x4a4]
call fcn.100e2b31
add esp, 8
lea ecx, [ebp - 0x44c]
call fcn.10045310
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.100e278d
mov esp, ebp
pop ebp
ret
call fcn.10107f97
call fcn.10107f97
int3