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

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
mov esi, dword [esp + 0x18]
add ebp, 0xffffce71
push edi
mov edi, dword [esp + 0x20]
mov ebx, edi
xor ebx, 0x336e
lea eax, [edi + 0x513]
xor edi, 0xbef
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
add eax, 0x206
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
add eax, 0xfffff94d
mov dword [esp + 0x18], eax
lea eax, [ebp + 0x3563]
cmp ebx, eax
je 0x407cfe
mov ecx, dword [0x65c5b8]
xor edi, edi
mov eax, dword [esi + 0x94]
add eax, ecx
mov ecx, dword [esi + 0x114]
xor eax, 0x4db47
add ecx, 0xffee5f43
or dword [esi + 0x58], eax
mov edx, dword [0x65c49c]
mov eax, dword [esi + 0x54]
add eax, ecx
add dword [edx + 0x54], eax
mov eax, 0xfff747cd
sub eax, dword [0x65c580]
sub eax, dword [0x65c574]
mov ecx, dword [0x65c49c]
add dword [ecx + 0x94], eax
mov eax, dword [0x65c49c]
mov ecx, dword [0x65c4a8]
sub ecx, dword [eax + 0x114]
add dword [esi + 0x74], ecx
mov eax, dword [esi + 0x64]
mov ecx, dword [esi + 0x34]
mov ebx, dword [edi + eax]
add edi, 4
mov eax, dword [0x65c49c]
imul ebx, dword [eax + 0x24]
mov eax, dword [esi + 0x78]
mov edx, ebx
shr edx, 0x10
mov byte [ecx + eax], dl
mov edx, ebx
inc dword [esi + 0x34]
mov ecx, dword [esi + 0x78]
mov eax, dword [0x65c4d4]
shr edx, 8
mov byte [eax + ecx], dl
inc dword [0x65c4d4]
mov eax, dword [0x65c49c]
mov eax, dword [eax + 0x80]
imul eax, dword [esi + 0xc0]
mov dword [esi + 0xc0], eax
mov eax, dword [0x65c49c]
mov ecx, dword [eax + 0x34]
mov eax, dword [esi + 0x78]
mov byte [ecx + eax], bl
mov eax, dword [0x65c49c]
inc dword [eax + 0x34]
mov eax, 0x1d469e
mov ecx, dword [0x65c49c]
sub eax, dword [ecx + 0x108]
add dword [ecx + 0x40], eax
mov eax, dword [0x65c5b8]
sub dword [esi + 0x30], eax
mov eax, dword [esi + 0x58]
mov ecx, dword [0x65c5b8]
sub eax, 6
or dword [0x65c53c], eax
mov eax, dword [esi + 0xd4]
dec eax
or ecx, eax
mov dword [0x65c5b8], ecx
cmp edi, 0x91e60
jl 0x407a1a
mov eax, dword [0x65c5a8]
add eax, 0xffe2c3ff
cmp dword [esi + 0xc0], 0x16d9b
mov dword [esi + 0x24], eax
je 0x407b52
mov eax, dword [0x65c49c]
add dword [eax + 0x24], 0x4f72b798
mov ecx, dword [0x65c49c]
jmp 0x407b66
mov ecx, dword [0x65c49c]
mov eax, dword [ecx + 0xa0]
add eax, dword [ecx + 8]
mov dword [0x65c5a8], eax
lea eax, [ebp + 0x3881]
cmp dword [esp + 0x18], eax
jge 0x407e17
mov eax, dword [esi + 0x118]
cmp eax, dword [0x65c4f4]
ja 0x407b91
mov dword [esi + 0x64], 0x56b1b0
mov ecx, dword [0x65c49c]
mov dword [ecx + 0x40], 0x19ace0
mov ebp, 0x1e6bfd
xor edi, edi
mov edx, dword [0x65c49c]
mov eax, 0x1d46d9
mov ecx, dword [esi + 0x108]
xor ecx, dword [esi + 0xc0]
sub eax, ecx
add dword [edx + 0x9c], eax
mov eax, dword [esi + 0x64]
push 6
mov ecx, dword [edi + eax]
add edi, 4
mov eax, dword [esi + 0x74]
sub eax, dword [esi + 0x80]
xor eax, 1
imul eax, dword [esi + 0x94]
mov dword [esi + 0x94], eax
mov eax, dword [esi + 0xd8]
xor eax, dword [0x65c560]
xor eax, 0x47
mov dword [esi + 0xd8], eax
mov eax, 0x123850
sub eax, dword [0x65c4a0]
mov edx, dword [0x65c49c]
mov ebx, dword [edx + 0x24]
add dword [0x65c514], eax
mov eax, dword [edx + 0x94]
add eax, dword [0x65c4e0]
xor eax, 0x1e8826
imul ebx, ecx
imul eax, dword [edx + 0x9c]
mov ecx, ebp
mov dword [edx + 0x9c], eax
mov edx, ebx
mov eax, dword [0x65c49c]
shr edx, 0x10
sub ecx, dword [eax + 0xa0]
add dword [0x65c4a0], ecx
mov eax, dword [0x65c4d4]
mov ecx, dword [esi + 0x78]
mov byte [eax + ecx], dl
mov edx, ebx
inc dword [0x65c4d4]
mov eax, dword [0x65c49c]
shr edx, 8
mov ecx, dword [eax + 0x34]
mov eax, dword [esi + 0x78]
mov byte [ecx + eax], dl
mov eax, dword [0x65c49c]
inc dword [eax + 0x34]
mov eax, dword [0x65c49c]
mov ecx, dword [eax + 0x78]
mov eax, dword [esi + 0x34]
mov byte [ecx + eax], bl
inc dword [esi + 0x34]
mov edx, dword [0x65c49c]
pop eax
sub eax, dword [esi + 0x58]
add dword [0x65c4a0], eax
mov eax, dword [edx + 0xd8]
lea ecx, [eax - 0x8f4ef]
xor ecx, eax
mov dword [edx + 0xd8], ecx
mov ecx, ebp
mov eax, dword [0x65c49c]
sub ecx, dword [eax + 0xa0]
add dword [esi + 0xe0], ecx
mov eax, dword [0x65c49c]
mov ecx, dword [eax + 0x30]
xor ecx, dword [eax + 0x18]
mov eax, dword [esi + 0xa0]
sub ecx, 0x1461b67
add dword [esi + 0x108], ecx
sub eax, 0x1e6bfc
imul eax, dword [esi + 0x9c]
mov dword [esi + 0x9c], eax
cmp edi, 0x7dc60
jl 0x407b9f
jmp 0x407e17
mov edx, dword [esi + 0xd4]
mov eax, ebp
sub eax, dword [esi + 0x18]
mov ecx, dword [0x65c49c]
sub eax, 0x3182
push eax
mov eax, dword [esi + 0xe0]
imul eax, dword [esi + 8]
push eax
mov eax, edx
sub eax, edi
sub eax, 0x3563
push eax
mov eax, dword [ecx + 0x2c]
add eax, edx
push eax
mov eax, dword [0x65c4ec]
sub eax, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x34]
or eax, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x38]
add eax, eax
push eax
mov eax, dword [ecx + 0xc0]
imul eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
imul eax, edi, 0x3246
push eax
mov eax, ebx
sub eax, dword [0x65c594]
push eax
mov eax, dword [esp + 0x20]
sub eax, ebp
sub eax, edi
push eax
mov eax, ebp
or eax, dword [esp + 0x24]
or eax, edi
push eax
mov eax, dword [esi + 0xbc]
sub eax, dword [esi + 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, dword [0x65c49c]
mov eax, dword [esi + 0xd8]
mov edi, dword [esp + 0x18]
sub ebx, edi
mov ecx, dword [edx + 0x4c]
add ecx, 0x331d
add eax, ecx
push eax
mov eax, dword [edx + 0x118]
and eax, 0x80
or eax, 0x3102
push eax
mov eax, dword [0x65c574]
sub eax, ebp
sub eax, 0x3563
push eax
mov eax, dword [esi + 8]
and eax, 0x3246
push eax
mov eax, dword [0x65c4a8]
add eax, 0xfffff31d
and eax, 0x39e6
push eax
push 0x65c4a0
push ebx
call fcn.00403f96
mov eax, dword [esi]
add esp, 0x1c
imul eax, dword [esp + 0x20]
cmp dword [esp + 0x10], eax
jne 0x407e17
mov eax, dword [0x65c49c]
mov eax, dword [eax + 0x54]
xor eax, dword [0x65c574]
imul eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
add eax, 0xfffff844
pop ebx
pop ecx
ret