Function at 0x404c85
Capabilities:
Create pipe
Encode data using xor

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
xor edx, 0xbe6
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
mov edi, dword [esp + 0x28]
lea esi, [ebx + 0x3a]
lea eax, [ebp - 0x3ab3]
mov dword [esp + 0x1c], edx
xor ebx, 0x67c
mov dword [esp + 0x20], eax
mov ecx, edi
xor ebp, 0x3ab3
lea eax, [edi - 0x404]
xor ecx, 0x43c
mov edi, dword [esp + 0x24]
mov dword [esp + 0x18], eax
lea eax, [ebx + 0x223]
mov dword [esp + 0x10], ecx
cmp edx, eax
je 0x404d58
mov eax, dword [esp + 0x28]
add eax, 0xfffffcc5
push edi
push eax
lea eax, [esi - 0xb3]
push eax
lea eax, [ebp + 0x3d50]
push eax
mov eax, edx
xor eax, 0x68b
push eax
mov eax, ecx
add eax, 0x599
push eax
mov eax, dword [esp + 0x40]
add eax, 0xffffc15f
xor eax, 0x35b7
push eax
call fcn.0041340b
mov ecx, dword [esp + 0x3c]
mov esi, eax
add ecx, 0x4036
lea eax, [ebp + 0x4036]
push ecx
lea ecx, [ebx - 0x2ca]
push ecx
push edi
lea ecx, [esi + 0x5b]
push ecx
mov ecx, dword [esp + 0x3c]
add ecx, 0xfffffb6e
push ecx
push eax
call fcn.00413609
add esp, 0x34
mov ebp, eax
jmp 0x404e2f
mov eax, dword [edi + 0x118]
mov ecx, eax
or ecx, 0x3a42
xor ecx, eax
cmp edx, ecx
jbe 0x404e33
mov eax, dword [0x4ae154]
imul eax, dword [eax + 0x90], 0x3d35
or eax, esi
cmp dword [edi + 0x48], eax
jne 0x404e33
mov eax, dword [esp + 0x18]
add eax, 0x3d9f
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x24]
add ecx, 0xffffc15f
add eax, 0xffffc08d
imul eax, dword [edi + 0xc0]
push eax
mov eax, dword [edi + 0x1c]
or eax, ebx
push eax
mov eax, dword [edi + 0x78]
sub eax, dword [edi + 0x58]
push eax
mov eax, esi
xor eax, 0x3d9f
push eax
mov eax, dword [0x529200]
add eax, ecx
push eax
mov eax, dword [0x52914c]
add eax, 0xffffc659
push eax
mov eax, dword [0x4ae154]
mov eax, dword [eax + 0x78]
xor eax, dword [esp + 0x2c]
add eax, dword [0x529188]
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
push 0x671
push 0x258b
push 0x127b
push 0x3054
push 0x350b
push 0x1435
push 0x3461
push 0x275f
push 0x131a
push 0x252e
call fcn.004053a0
add esp, 0x28
mov dword [0x529c84], eax
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
add ecx, 0xffffc15f
lea eax, [ecx + 0x35b7]
cmp dword [esp + 0x18], eax
jl 0x405020
mov eax, dword [esp + 0x10]
add eax, 0xc9
cmp dword [esp + 0x20], eax
je 0x405020
push edi
lea eax, [edx - 0x7fa]
xor ecx, 0x3ab3
push eax
push ecx
push esi
push dword [esp + 0x38]
call fcn.00403fb4
lea eax, [ebx + 0x4f]
xor esi, 0xf67
push eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffc74
push eax
lea eax, [ebp + 0x4e]
push eax
push edi
lea eax, [ebp - 0x302]
push eax
push esi
call fcn.004047db
mov ecx, dword [esp + 0x54]
add ecx, 0xfffffeaf
push ecx
lea ecx, [eax + 0x18]
add eax, 0xffffffc4
push ecx
push edi
lea ecx, [ebp - 0x7e8]
push ecx
push eax
call fcn.00413067
add esp, 0x40
mov dword [esp + 0x20], eax
xor ebp, ebp
mov eax, dword [0x4ae154]
mov ecx, 0xb2d12
sub ecx, dword [eax + 0xe8]
sub ecx, dword [0x529110]
add dword [edi + 0x78], ecx
mov ecx, dword [0x4ae154]
mov eax, dword [ecx + 0x118]
sub eax, 0x160c63
imul eax, dword [ecx + 0x48]
mov dword [ecx + 0x48], eax
mov ecx, dword [0x4ae154]
mov eax, dword [ecx + 0xb4]
mov esi, dword [eax + ebp]
add ebp, 4
mov eax, dword [edi + 0xfc]
sub dword [ecx + 0xe0], eax
mov eax, 0x10fd33
sub eax, dword [edi + 0x5c]
add dword [edi + 0xdc], eax
mov edx, dword [0x4ae154]
mov ecx, dword [edi + 0xc]
mov eax, dword [edi + 0x114]
add ecx, 0xfff048dd
add eax, ecx
xor dword [edx + 8], eax
mov eax, dword [0x4ae154]
mov eax, dword [eax + 0x7c]
xor eax, dword [0x5291d8]
sub eax, 0x13e42d
or dword [0x5291fc], eax
mov ebx, dword [edi + 0x80]
mov ecx, dword [edi + 0x84]
mov eax, dword [edi + 0xb8]
imul ebx, esi
mov edx, ebx
shr edx, 0x10
mov byte [ecx + eax], dl
mov edx, ebx
inc dword [edi + 0x84]
mov eax, dword [0x4ae154]
shr edx, 8
mov ecx, dword [eax + 0xb8]
mov eax, dword [0x529174]
mov byte [eax + ecx], dl
xor eax, eax
inc dword [0x529174]
inc eax
sub eax, dword [edi + 0xd8]
mov ecx, dword [0x4ae154]
add dword [ecx + 0x34], eax
mov eax, dword [0x529134]
add eax, 0xffec0036
add dword [edi + 0x110], eax
mov eax, dword [0x4ae154]
mov ecx, dword [eax + 0x114]
sub ecx, dword [eax + 0xe0]
mov eax, dword [edi + 0x10c]
sub ecx, 0x1d
add dword [edi + 0xfc], ecx
sub dword [edi + 0xf4], eax
mov eax, dword [edi + 0xac]
sub eax, 0x47
imul eax, dword [0x5291cc]
mov dword [0x5291cc], eax
mov eax, dword [0x4ae154]
mov ecx, dword [eax + 0xb8]
mov eax, dword [edi + 0x84]
mov byte [ecx + eax], bl
inc dword [edi + 0x84]
cmp ebp, 0x3540
jl 0x404ec8
mov ebp, dword [esp + 0x20]
pop edi
pop esi
lea eax, [ebp - 0x53c]
pop ebp
pop ebx
pop ecx
ret