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

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x20]
mov dword [0x57278c], eax
push ebx
mov dword [esp + 4], 0x11d6
mov ebx, 0x572658
mov dword [esp + 0x24], 0x1cd3
push ebp
xor ebp, ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], 0x1110
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], 0x1f05
mov eax, dword [esp + 0xc]
xor eax, 0x222b
push esi
push edi
cmp dword [esp + 0x20], eax
je 0x404f74
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x14]
add edi, 0x112b
mov edx, dword [esp + 0x14]
xor esi, 0x105c
mov eax, dword [esp + 0x14]
xor edx, 0x1105
mov ecx, dword [0x566634]
add eax, 0x144e
push eax
push ecx
push edx
push esi
push edi
call fcn.00405748
mov dword [esp + 0x28], eax
add esp, 0x14
mov eax, dword [0x572678]
cmp eax, dword [0x572660]
ja 0x404d77
mov ecx, dword [0x572760]
mov eax, dword [0x566634]
add ecx, 0xfff71741
mov dword [eax + 0xd4], ecx
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
sub edi, 0x3e
mov edx, dword [esp + 0x30]
xor esi, 0xf59
mov ecx, dword [esp + 0x14]
xor edx, 0xd4b
mov eax, dword [esp + 0x30]
xor ecx, 0x37dd
sub eax, 0x43a
push eax
push ebx
push ecx
push edx
push esi
push edi
call fcn.00404721
mov dword [esp + 0x48], eax
mov ecx, 0x414180
mov eax, dword [0x566634]
mov ebx, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x30]
mov eax, dword [eax + 0xc]
cmp eax, dword [0x5726c0]
mov edx, dword [esp + 0x28]
cmovae ecx, dword [0x57270c]
xor edx, 0xf7a
mov dword [0x57270c], ecx
add esi, 0x1ec
mov ecx, dword [esp + 0x48]
sub edi, 0x232
mov eax, dword [esp + 0x34]
sub ecx, 0x13c
add eax, 0x20f1
add ebx, 0x223b
push eax
push 0x572658
push ecx
push edx
push esi
push edi
push ebx
call fcn.004052c2
add esp, 0x34
mov dword [esp + 0x14], eax
mov edi, ebp
mov ecx, dword [0x566634]
mov eax, dword [0x572664]
sub eax, dword [ecx + 0xdc]
xor eax, 0xfb6cf
sub dword [ecx + 0x10c], eax
mov eax, dword [0x57270c]
mov ebx, dword [0x5726d8]
mov edx, dword [eax + edi]
add edi, 4
mov eax, dword [0x566634]
imul ebx, edx
mov ecx, dword [eax + 0x7c]
xor ecx, dword [0x572740]
mov eax, dword [0x572778]
mov edx, ebx
add eax, 0xffec1bd3
shr edx, 8
add eax, ecx
mov ecx, dword [0x572768]
mov dword [0x572778], eax
dec ecx
mov eax, dword [0x5726e8]
add eax, ecx
mov ecx, dword [0x5726dc]
mov dword [0x572768], eax
mov eax, dword [0x572710]
mov byte [eax + ecx], dl
mov ecx, dword [0x5726dc]
mov eax, dword [0x572710]
inc ecx
mov dword [0x5726dc], ecx
mov byte [eax + ecx], bl
inc dword [0x5726dc]
mov ecx, dword [0x566634]
mov eax, dword [ecx + 0xc4]
add dword [ecx + 0xe8], eax
mov eax, dword [0x572760]
add eax, dword [0x572678]
mov esi, dword [0x5726c0]
xor eax, 0x8e8bf
or dword [0x572674], eax
mov eax, dword [0x572740]
mov edx, dword [0x566634]
add eax, 0xfff4d2ee
or esi, eax
mov eax, dword [0x572764]
add eax, dword [0x572678]
sub dword [0x572704], eax
mov dword [0x5726c0], esi
mov eax, dword [edx + 0x68]
xor eax, 0xfff09a7e
imul eax, dword [0x5726c8]
mov dword [0x5726c8], eax
mov eax, dword [0x57269c]
add eax, 0xffec0036
xor dword [0x572768], eax
mov eax, 0xffe85340
mov ecx, dword [edx + 0x7c]
xor ecx, esi
sub eax, ecx
add dword [edx + 0xe8], eax
mov ecx, dword [0x566634]
mov eax, dword [ecx + 0x90]
sub eax, dword [ecx + 0xe8]
add eax, 0xb2d12
imul eax, dword [ecx + 0x7c]
mov dword [ecx + 0x7c], eax
cmp edi, 0xbc58
jl 0x404e28
mov ebx, 0x572658
mov eax, dword [esp + 0x18]
xor eax, 0x59e
cmp dword [esp + 0x30], eax
jg 0x404ff3
add dword [esp + 0x30], 0x903
cmp dword [0x5726a0], 0x2144
je 0x404fb3
mov eax, dword [0x566634]
mov ecx, dword [eax + 0x90]
mov eax, dword [0x572674]
add eax, 0xe9bd3794
add eax, ecx
mov dword [0x5726d8], eax
mov edi, dword [esp + 0x30]
mov eax, 0x8c5
mov esi, dword [esp + 0x10]
add edi, 0x656
mov edx, dword [esp + 0x1c]
add esi, eax
mov ecx, dword [esp + 0x10]
add edx, 0x1cd3
add ecx, eax
mov eax, dword [esp + 0x1c]
add eax, 0x11d6
push eax
push ebx
push ecx
push edx
push esi
push edi
call fcn.00403b70
add esp, 0x18
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
add eax, 0x8c5
cmp dword [esp + 0x18], eax
jg 0x4050e8
add dword [esp + 0x10], 0x296
mov dword [0x572758], ebx
mov eax, dword [0x572764]
sub dword [0x57269c], eax
mov ecx, dword [0x566634]
mov eax, dword [0x5726f0]
add eax, 0x190e11
push 0x12
xor dword [ecx + 0x1c], eax
mov eax, dword [0x566634]
mov ecx, dword [eax + 0x20]
xor ecx, dword [0x572674]
pop eax
sub eax, ecx
mov ecx, dword [0x572724]
add dword [0x572734], eax
mov eax, dword [0x572738]
inc eax
imul eax, dword [0x57277c]
mov dword [0x57277c], eax
mov eax, dword [0x5726fc]
xor dword [ecx + ebp], eax
add ebp, 4
mov eax, dword [0x5726d4]
xor eax, dword [0x572674]
mov ecx, dword [0x566634]
xor eax, 0x18c92d
or dword [ecx + 0x90], eax
mov ecx, dword [0x566634]
mov eax, dword [0x5726d4]
add eax, 0xffe736c2
imul eax, dword [ecx + 0x1c]
mov dword [ecx + 0x1c], eax
mov eax, dword [0x572728]
add dword [0x5726fc], eax
cmp ebp, 0x3413c
jl 0x405014
push dword [0x57278c]
mov eax, dword [0x572774]
add eax, dword [0x572710]
mov edx, dword [0x572724]
push eax
push dword [0x572758]
mov dword [0x572708], edx
call edx
mov dword [0x572748], eax
jmp 0x4052b2
mov ebp, dword [0x572718]
jmp 0x405195
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x30]
mov eax, dword [0x572670]
or eax, dword [0x5726c8]
xor edx, dword [esp + 0x30]
mov ecx, dword [0x572780]
xor ecx, dword [0x5726a0]
imul esi, eax
mov eax, dword [esp + 0x20]
add eax, dword [0x572660]
push eax
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
mov ebx, dword [0x572690]
mov ecx, dword [esp + 0x14]
sub ebx, eax
mov eax, dword [0x566634]
xor edi, dword [0x5726f0]
xor esi, dword [eax + 0x48]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
add eax, ecx
imul edx, eax
mov eax, dword [0x566634]
mov ecx, dword [eax + 0xd8]
mov eax, dword [esp + 0x1c]
or ecx, 0x146c
xor eax, dword [0x57277c]
sub ecx, dword [0x5726f4]
sub eax, 0x223b
push eax
push ecx
push edx
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
add ebp, 3
mov eax, dword [esp + 0x18]
add eax, 0x17b0
cmp ebp, eax
jl 0x4050f3
mov eax, dword [0x566634]
mov ecx, dword [esp + 0x14]
imul ecx, dword [eax + 0xe0]
mov eax, dword [esp + 0x30]
add eax, ecx
cmp dword [esp + 0x10], eax
jbe 0x4052b2
mov eax, dword [0x57276c]
xor eax, dword [0x572660]
push eax
call dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
mov ebp, dword [esp + 0x30]
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
imul eax, dword [0x5726c4], 0x144e
xor ecx, 0x222b
imul ebx, dword [0x572678]
add ecx, 0x1198
mov esi, dword [0x572730]
or edx, dword [0x572744]
add esi, 0xffffe565
xor edi, dword [0x5726e0]
or ebp, dword [0x572730]
add edi, 0x223b
push 0x223b
push eax
push ecx
push edx
push esi
push edi
xor ebx, 0x1a9b
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov edi, dword [esp + 0x14]
mov ecx, 0x17b0
mov edx, dword [esp + 0x20]
and edi, ecx
mov eax, dword [0x566634]
imul edx, dword [esp + 0x30]
imul edi, dword [0x572704]
mov esi, dword [eax + 0x1c]
mov eax, dword [0x566634]
sub esi, dword [0x5726c0]
and edx, dword [0x572770]
sub esi, 0x1f05
mov eax, dword [eax + 0x110]
sub eax, ecx
mov ecx, dword [esp + 0x14]
add ecx, eax
imul eax, dword [0x5726a0], 0x223b
push eax
push ecx
push edx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x20]
and eax, 0x20f1
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push dword [0x572748]
call dword [sym.imp.KERNEL32.dll_ExitProcess]