Function at 0x409408
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
push ebx
mov ebx, dword [esp + 0x28]
xor edx, 0x3209
push ebp
mov ebp, dword [esp + 0x34]
lea ecx, [eax - 0xa56]
push esi
push edi
mov edi, dword [esp + 0x2c]
lea esi, [eax - 0x747]
xor edi, 0x2f9c
mov dword [esp + 0x38], edx
add ebx, 0xffffcac2
mov dword [esp + 0x40], ecx
lea eax, [esi + 0x7dd]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x34], esi
cmp edi, eax
je 0x4095fe
mov eax, dword [0x972de8]
add edx, 0x13f6
mov dword [esp + 0x38], edx
cmp eax, dword [0x972dc8]
ja 0x409496
mov eax, dword [0x93537c]
mov eax, dword [eax + 0xd0]
xor eax, dword [ebp + 0xb8]
add eax, 0x99f80ab
add dword [ebp + 0xd8], eax
mov eax, dword [ebp + 0x60]
sub eax, 0x3ef65df7
cmp dword [ebp + 0xb8], 0x15b8c
mov dword [ebp + 0x64], eax
je 0x4094b9
mov dword [ebp + 0x90], 0x4111d0
jmp 0x4094c3
mov dword [ebp + 0xa4], 0x224f5
xor ebx, ebx
mov edx, dword [0x93537c]
mov eax, dword [0x972ea4]
add eax, 0xfff0b813
mov ecx, dword [edx + 0x68]
sub ecx, dword [ebp + 0xdc]
add eax, ecx
mov ecx, 0xc1795
mov dword [0x972ea4], eax
mov eax, dword [edx + 0x28]
xor eax, dword [0x972de8]
add eax, 0x1dd037e6
xor dword [0x972e80], eax
mov eax, dword [0x972e48]
sub eax, dword [0x972e6c]
sub eax, 0x8a53da
xor dword [edx + 0x80], eax
mov eax, dword [ebp + 0x90]
mov edx, dword [ebx + eax]
add ebx, 4
mov eax, dword [ebp + 0xa4]
sub eax, dword [0x972e28]
add eax, 0x85fa10
add dword [ebp + 0xb8], eax
mov eax, dword [0x93537c]
sub ecx, dword [eax + 0x4c]
add dword [ebp + 8], ecx
mov eax, dword [ebp + 0xa8]
sub dword [ebp + 0x58], eax
mov ecx, dword [0x972e40]
movzx eax, dl
movzx edx, byte [ebp + 0x64]
imul edx, eax
mov eax, dword [0x972e5c]
mov byte [ecx + eax], dl
inc dword [0x972e40]
mov eax, dword [ebp + 0x60]
mov ecx, dword [0x93537c]
sub eax, 0x85fa10
add dword [ecx + 0x3c], eax
mov ecx, dword [0x93537c]
mov eax, dword [ecx + 0x58]
or dword [0x972e98], eax
mov eax, 0x180f0
sub eax, dword [0x972e04]
add dword [0x972ea4], eax
mov eax, dword [ecx + 0x58]
add dword [0x972e80], eax
xor eax, eax
inc eax
sub eax, dword [ebp + 0xa8]
sub eax, dword [ebp + 0x7c]
add dword [ebp + 0x58], eax
mov eax, 0xe2aa320a
mov edx, dword [0x93537c]
mov ecx, dword [edx + 0x28]
xor ecx, dword [ebp + 0x60]
sub eax, ecx
add dword [edx], eax
cmp ebx, 0x2b6f80
jl 0x4094c5
mov eax, dword [0x93537c]
xor edi, 0x381c
mov eax, dword [eax + 0x58]
add eax, 0x7db021a1
mov dword [ebp + 0x90], 0x6f9000
mov dword [ebp + 0x64], eax
mov ecx, dword [0x93537c]
jmp 0x409705
mov ecx, dword [0x93537c]
mov eax, dword [ebp + 0x60]
or eax, dword [ebp + 8]
xor eax, dword [ecx]
cmp ebx, eax
jbe 0x4096a1
mov eax, dword [ecx + 0x6c]
mov dword [esp + 0x10], eax
mov eax, dword [ecx]
add eax, ebx
imul eax, edx
cmp dword [esp + 0x10], eax
jne 0x4096a1
mov edi, dword [esp + 0x10]
mov eax, ebx
and eax, dword [esp + 0x44]
mov dword [esp + 0x18], eax
mov eax, esi
xor eax, ebx
mov dword [esp + 0x2c], 0xffffcfcc
mov dword [esp + 0x1c], eax
imul eax, esi, 0x322e
mov esi, edx
mov dword [esp + 0x20], eax
lea eax, [esi + 0x345d]
and eax, dword [esp + 0x40]
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esp + 0x18]
mov eax, dword [ebp + 0xac]
push dword [esp + 0x20]
xor eax, dword [esp + 0x48]
push dword [esp + 0x28]
push dword [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetNamedPipeInfo]
mov ecx, dword [0x93537c]
inc edi
mov eax, dword [ecx]
add eax, ebx
imul eax, esi
cmp edi, eax
je 0x409660
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x34]
mov eax, dword [ecx + 0x28]
add eax, 0x53a8
cmp dword [0x972de8], eax
jne 0x409705
imul eax, dword [ecx + 0x20], 0x2465
or eax, 0x1c3e
cmp ebx, eax
ja 0x409705
mov edi, ebx
mov eax, dword [ebp + 0x3c]
and eax, dword [esp + 0x44]
xor eax, esi
push eax
mov eax, esi
sub eax, dword [0x972e74]
add eax, ebx
push eax
mov eax, dword [0x972dc8]
sub eax, ebx
add eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov ecx, dword [0x93537c]
add edi, 3
imul eax, dword [ecx + 0x20], 0x2465
or eax, 0x1c3e
cmp edi, eax
jbe 0x4096c3
mov edi, dword [esp + 0x2c]
lea eax, [esi + 0xd4e]
cmp dword [esp + 0x44], eax
jg 0x409ac9
xor esi, esi
mov eax, dword [ecx + 0x90]
mov ecx, 0x85fa10
mov edx, dword [eax + esi]
mov eax, 0x1a1c1e
sub eax, dword [0x972e80]
add esi, 4
add dword [ebp + 0x80], eax
mov eax, dword [ebp + 0x3c]
imul edx, dword [ebp + 0x64]
sub eax, 0x180f0
xor dword [ebp + 0xdc], eax
mov eax, dword [0x93537c]
sub ecx, dword [eax + 0x60]
add dword [ebp + 0x4c], ecx
mov eax, dword [0x972de8]
xor dword [ebp + 8], eax
mov ecx, dword [0x93537c]
mov eax, dword [0x972e80]
add eax, 0xffe5e3e2
xor dword [ecx + 0xb8], eax
mov eax, dword [0x93537c]
mov ecx, dword [eax + 0x94]
mov eax, dword [0x972e40]
mov byte [eax + ecx], dl
inc dword [0x972e40]
mov eax, dword [ebp + 0xa4]
xor dword [ebp + 0xa8], eax
mov eax, dword [ebp + 0x58]
sub dword [ebp + 0xd0], eax
mov ecx, dword [0x972df0]
xor ecx, dword [0x972e44]
mov eax, dword [0x93537c]
xor ecx, 1
mov dword [0x972df0], ecx
sub ecx, dword [ebp + 0x4c]
add ecx, 0x1ddc4f7b
add dword [eax + 0x58], ecx
mov eax, dword [ebp + 0x18]
xor eax, dword [ebp]
add eax, 0xf81df8
or dword [0x972e44], eax
cmp esi, 0x22eff0
jge 0x4097ec
mov ecx, dword [0x93537c]
jmp 0x409717
mov eax, dword [0x93537c]
sub edi, 0x81c
mov dword [esp + 0x2c], edi
mov eax, dword [eax]
xor eax, 0x16628c1f
mov dword [ebp + 0x64], eax
mov eax, dword [0x972e70]
cmp eax, dword [0x972e80]
ja 0x40981c
mov dword [ebp + 0x90], 0x935380
xor esi, esi
mov ecx, dword [0x93537c]
mov eax, dword [ecx + 0x60]
sub eax, dword [ebp + 0x58]
xor eax, 0x85fa10
sub dword [0x972e14], eax
mov eax, dword [ecx + 0xb8]
xor eax, dword [ebp + 0x58]
sub eax, 0x1a1c1d
mov ecx, dword [ebp + 0x78]
imul eax, dword [ebp + 0xb8]
mov dword [ebp + 0xb8], eax
mov eax, dword [ebp + 0x90]
mov ebx, dword [esi + eax]
add esi, 4
imul ebx, dword [ebp + 0x64]
mov eax, dword [0x972e5c]
mov edx, ebx
shr edx, 0x10
mov byte [eax + ecx], dl
mov edx, ebx
inc dword [ebp + 0x78]
mov ecx, dword [0x93537c]
shr edx, 8
mov eax, dword [ecx + 0xd0]
xor eax, 0xf67a9d48
sub dword [ecx + 0x20], eax
mov ecx, dword [0x972e40]
mov eax, dword [0x972e5c]
mov byte [ecx + eax], dl
inc dword [0x972e40]
mov eax, dword [0x93537c]
mov ecx, dword [ebp + 0x94]
mov eax, dword [eax + 0x20]
inc eax
imul eax, dword [ebp + 0x28]
mov dword [ebp + 0x28], eax
mov eax, dword [ebp + 0x78]
mov byte [ecx + eax], bl
inc dword [ebp + 0x78]
mov ecx, dword [0x93537c]
mov eax, dword [ecx + 0xa8]
inc eax
imul eax, dword [ecx + 0xd0]
mov dword [ecx + 0xd0], eax
mov eax, dword [0x972e04]
add eax, 0xfffe7f10
or dword [ebp + 0x68], eax
mov ecx, dword [0x93537c]
mov eax, dword [ecx + 0xd0]
lea eax, [eax*2 + 0x98562b8]
sub eax, dword [ebp + 0xa4]
mov dword [ecx + 0xd0], eax
cmp esi, 0x3c6f0
jl 0x40981e
mov esi, dword [esp + 0x34]
lea eax, [esi - 0x332]
cmp dword [esp + 0x40], eax
jl 0x409ac9
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x44]
add eax, 0xfffff09c
add ebx, 0x79f
cmp ebx, eax
jle 0x4099ad
cmp dword [ebp + 0xa8], 0x3efe
mov dword [ebp + 0x64], 0x30226
jae 0x40996d
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x4c]
add ecx, 0xff1e9335
add eax, ecx
mov ecx, dword [0x972e2c]
xor ecx, eax
mov dword [0x972e2c], ecx
jmp 0x40998a
mov ecx, dword [ebp + 0x3c]
xor ecx, dword [0x972e30]
mov eax, dword [0x93537c]
xor ecx, 0x1c513
mov dword [eax + 0x68], ecx
mov ecx, dword [0x972e2c]
mov eax, dword [ebp + 0x4c]
cmp eax, dword [ebp + 0x58]
jbe 0x40999e
sub ecx, 0x65b
mov dword [0x972e2c], ecx
mov dword [ebp + 0x90], 0x92d960
jmp 0x409ac9
mov eax, ebx
sub eax, edi
sub eax, 0x322e
cmp dword [ebp + 0x30], eax
jbe 0x409ac9
lea eax, [edi - 0x25d6]
cmp dword [0x972de0], eax
jb 0x409aa3
mov ecx, dword [0x972e44]
mov edx, dword [0x93537c]
or ecx, ebx
mov ebx, dword [esp + 0x34]
or ecx, 0x2eec
mov eax, ebx
sub eax, dword [esp + 0x38]
mov esi, dword [edx + 0x58]
add eax, edi
push eax
mov eax, dword [esp + 0x48]
add eax, 0x79f
imul esi, edi
imul eax, dword [esp + 0x18]
push edx
push ecx
push eax
push esi
call fcn.00409d94
mov ecx, dword [ebp + 0xb4]
mov edx, eax
mov eax, dword [0x93537c]
and ebx, edx
xor ecx, 0x2e56
imul ebx, dword [eax + 0x4c]
mov eax, edx
push ebx
push 0x972dc8
push ecx
mov ebx, 0x3537
or eax, ebx
push eax
lea eax, [edi + edx]
push eax
call fcn.0040acde
add esp, 0x28
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov eax, dword [esp + 0x44]
mov esi, dword [ebp + 0xa4]
add eax, 0x79f
mov edx, dword [ebp + 0x60]
xor edi, dword [esp + 0x14]
sub edx, ebx
or edi, dword [esp + 0x2c]
xor edx, 0x2eec
imul esi, eax
mov eax, dword [0x93537c]
push ebp
mov ecx, dword [eax + 0x40]
or esi, 0x1c3e
mov eax, dword [eax + 0x70]
or eax, dword [ebp + 0x7c]
add ecx, dword [0x972e74]
or eax, 0x1bc1
push eax
push ecx
push edx
push esi
push edi
call fcn.00408821
add esp, 0x18
mov edi, eax
jmp 0x409ac9
mov eax, dword [0x93537c]
lea ecx, [esi - 0x345d]
xor ecx, dword [0x972de8]
cmp dword [eax + 0xac], ecx
jbe 0x409ac9
imul eax, esi, 0x1bc1
push eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea eax, [edi + 0x1976]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret