Function at 0x409419
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x28]
add eax, 0x43d
push ebx
mov ebx, dword [esp + 0x28]
xor edx, 0x2c0a
push ebp
mov ebp, dword [esp + 0x34]
add ebx, 0x1fd
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
push esi
push edi
mov edi, dword [esp + 0x2c]
lea esi, [eax + 0x30f]
mov dword [esp + 0x14], ebx
lea ecx, [eax + 0x68c]
mov dword [esp + 0x38], edx
xor edi, 0x1bd2
mov dword [esp + 0x40], ecx
lea eax, [esi + 0x747]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x44], esi
cmp edi, eax
jle 0x40961c
mov eax, dword [0x9768b8]
sub edx, 0x1473
mov dword [esp + 0x38], edx
cmp eax, dword [0x976898]
ja 0x4094b4
mov eax, dword [0x93113c]
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 0x4094d7
mov dword [ebp + 0x90], 0x410bf8
jmp 0x4094e1
mov dword [ebp + 0xa4], 0x224f5
xor ebx, ebx
mov edx, dword [0x93113c]
mov eax, dword [0x976974]
add eax, 0xfff0b813
mov ecx, dword [edx + 0x68]
sub ecx, dword [ebp + 0xdc]
add eax, ecx
mov ecx, 0xc1795
mov dword [0x976974], eax
mov eax, dword [edx + 0x28]
xor eax, dword [0x9768b8]
add eax, 0x1dd037e6
xor dword [0x976950], eax
mov eax, dword [0x976918]
sub eax, dword [0x97693c]
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 [0x9768f8]
add eax, 0x85fa10
add dword [ebp + 0xb8], eax
mov eax, dword [0x93113c]
sub ecx, dword [eax + 0x4c]
add dword [ebp + 8], ecx
mov eax, dword [ebp + 0xa8]
sub dword [ebp + 0x58], eax
mov ecx, dword [0x976910]
movzx eax, dl
movzx edx, byte [ebp + 0x64]
imul edx, eax
mov eax, dword [0x97692c]
mov byte [ecx + eax], dl
inc dword [0x976910]
mov eax, dword [ebp + 0x60]
mov ecx, dword [0x93113c]
sub eax, 0x85fa10
add dword [ecx + 0x3c], eax
mov ecx, dword [0x93113c]
mov eax, dword [ecx + 0x58]
or dword [0x976968], eax
mov eax, 0x180f0
sub eax, dword [0x9768d4]
add dword [0x976974], eax
mov eax, dword [ecx + 0x58]
add dword [0x976950], eax
xor eax, eax
inc eax
sub eax, dword [ebp + 0x7c]
sub eax, dword [ebp + 0xa8]
add dword [ebp + 0x58], eax
mov eax, 0xe2aa320a
mov edx, dword [0x93113c]
mov ecx, dword [edx + 0x28]
xor ecx, dword [ebp + 0x60]
sub eax, ecx
add dword [edx], eax
cmp ebx, 0x2b8cc0
jl 0x4094e3
mov eax, dword [0x93113c]
xor edi, 0x1bdb
mov eax, dword [eax + 0x58]
add eax, 0x7db021a1
mov dword [ebp + 0x90], 0x6fb000
mov dword [ebp + 0x64], eax
mov ecx, dword [0x93113c]
jmp 0x40972d
mov ecx, dword [0x93113c]
mov eax, dword [ebp + 0x60]
or eax, dword [ebp + 8]
xor eax, dword [ecx]
cmp ebx, eax
jbe 0x4096bf
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 0x4096bf
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x10]
and eax, ebx
mov dword [esp + 0x18], eax
mov eax, esi
xor eax, ebx
mov dword [esp + 0x2c], 0xffffcac9
mov dword [esp + 0x1c], eax
imul eax, esi, 0x3034
mov esi, edx
mov dword [esp + 0x20], eax
lea eax, [esi + 0x322e]
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 [0x93113c]
inc edi
mov eax, dword [ecx]
add eax, ebx
imul eax, esi
cmp edi, eax
je 0x40967e
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x44]
mov eax, dword [ecx + 0x28]
add eax, 0x5513
cmp dword [0x9768b8], eax
jne 0x40972d
imul eax, dword [ecx + 0x20], 0x2fa8
mov dword [esp + 0x10], ebx
or eax, 0x1c3e
cmp ebx, eax
ja 0x40972d
mov edi, dword [esp + 0x34]
mov eax, dword [ebp + 0x3c]
and eax, edi
xor eax, esi
push eax
mov eax, esi
sub eax, dword [0x976944]
add eax, ebx
push eax
mov eax, dword [0x976898]
sub eax, ebx
add eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov ecx, dword [0x93113c]
mov edx, dword [esp + 0x10]
inc edx
mov dword [esp + 0x10], edx
imul eax, dword [ecx + 0x20], 0x2fa8
or eax, 0x1c3e
cmp edx, eax
jbe 0x4096e7
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x34]
lea eax, [esi - 0x332]
cmp ebx, eax
jle 0x409ae6
xor esi, esi
mov eax, dword [ecx + 0x90]
mov ecx, 0x85fa10
mov edx, dword [eax + esi]
mov eax, 0x1a1c1e
sub eax, dword [0x976950]
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 [0x93113c]
sub ecx, dword [eax + 0x60]
add dword [ebp + 0x4c], ecx
mov eax, dword [0x9768b8]
xor dword [ebp + 8], eax
mov ecx, dword [0x93113c]
mov eax, dword [0x976950]
add eax, 0xffe5e3e2
xor dword [ecx + 0xb8], eax
mov eax, dword [0x93113c]
mov ecx, dword [eax + 0x94]
mov eax, dword [0x976910]
mov byte [eax + ecx], dl
inc dword [0x976910]
mov eax, dword [ebp + 0xa4]
xor dword [ebp + 0xa8], eax
mov eax, dword [ebp + 0x58]
sub dword [ebp + 0xd0], eax
mov ecx, dword [0x9768c0]
xor ecx, dword [0x976914]
mov eax, dword [0x93113c]
xor ecx, 1
mov dword [0x9768c0], ecx
sub ecx, dword [ebp + 0x4c]
add ecx, 0x1ddc4f7b
add dword [eax + 0x58], ecx
mov eax, dword [ebp]
xor eax, dword [ebp + 0x18]
add eax, 0xf81df8
or dword [0x976914], eax
cmp esi, 0x230790
jge 0x409816
mov ecx, dword [0x93113c]
jmp 0x409741
mov eax, dword [0x93113c]
sub edi, 0x58e
mov dword [esp + 0x2c], edi
mov eax, dword [eax]
xor eax, 0x16628c1f
mov dword [ebp + 0x64], eax
mov eax, dword [0x976940]
cmp eax, dword [0x976950]
ja 0x409846
mov dword [ebp + 0x90], 0x938bb0
sub ebx, 0x8b
xor esi, esi
mov dword [esp + 0x34], ebx
mov ecx, dword [0x93113c]
mov eax, dword [ecx + 0x60]
sub eax, dword [ebp + 0x58]
xor eax, 0x85fa10
sub dword [0x9768e4], 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 [0x97692c]
mov edx, ebx
shr edx, 0x10
mov byte [eax + ecx], dl
mov edx, ebx
inc dword [ebp + 0x78]
mov ecx, dword [0x93113c]
shr edx, 8
mov eax, dword [ecx + 0xd0]
xor eax, 0xf67a9d48
sub dword [ecx + 0x20], eax
mov ecx, dword [0x976910]
mov eax, dword [0x97692c]
mov byte [ecx + eax], dl
inc dword [0x976910]
mov eax, dword [0x93113c]
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 [0x93113c]
mov eax, dword [ecx + 0xa8]
inc eax
imul eax, dword [ecx + 0xd0]
mov dword [ecx + 0xd0], eax
mov eax, dword [0x9768d4]
add eax, 0xfffe7f10
or dword [ebp + 0x68], eax
mov ecx, dword [0x93113c]
mov eax, dword [ecx + 0xd0]
lea eax, [eax*2 + 0x98562b8]
sub eax, dword [ebp + 0xa4]
mov dword [ecx + 0xd0], eax
cmp esi, 0x3c980
jl 0x409852
mov esi, dword [esp + 0x44]
lea eax, [esi + 0x728]
cmp dword [esp + 0x40], eax
je 0x409ae6
mov ebx, dword [esp + 0x34]
cmp ebx, dword [esp + 0x38]
jle 0x4099d4
cmp dword [ebp + 0xa8], 0x3efe
mov dword [ebp + 0x64], 0x30226
jae 0x409994
mov ecx, dword [ebp + 0x4c]
mov eax, dword [ebp + 0x18]
add ecx, 0xff1e9335
add eax, ecx
mov ecx, dword [0x9768fc]
xor ecx, eax
mov dword [0x9768fc], ecx
jmp 0x4099b1
mov ecx, dword [ebp + 0x3c]
xor ecx, dword [0x976900]
mov eax, dword [0x93113c]
xor ecx, 0x1c513
mov dword [eax + 0x68], ecx
mov ecx, dword [0x9768fc]
mov eax, dword [ebp + 0x4c]
cmp eax, dword [ebp + 0x58]
jbe 0x4099c5
sub ecx, 0x65b
mov dword [0x9768fc], ecx
mov dword [ebp + 0x90], 0x931140
jmp 0x409ae6
mov eax, ebx
sub eax, edi
sub eax, 0x3034
cmp dword [ebp + 0x30], eax
jbe 0x409ae6
lea eax, [edi - 0x2400]
cmp dword [0x9768b0], eax
jb 0x409ac0
mov ecx, dword [0x976914]
mov edx, dword [0x93113c]
or ecx, ebx
mov ebx, dword [esp + 0x44]
or ecx, 0x322e
mov eax, ebx
sub eax, dword [esp + 0x38]
mov esi, dword [edx + 0x58]
add eax, edi
push eax
mov eax, dword [esp + 0x38]
imul eax, dword [esp + 0x18]
push edx
imul esi, edi
push ecx
push eax
push esi
call fcn.00409da2
mov ecx, dword [ebp + 0xb4]
mov edx, eax
mov eax, dword [0x93113c]
and ebx, edx
xor ecx, 0x25d6
imul ebx, dword [eax + 0x4c]
mov eax, edx
or eax, 0x2eec
push ebx
push 0x976898
push ecx
push eax
lea eax, [edi + edx]
push eax
call fcn.0040ace1
add esp, 0x28
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov eax, dword [0x93113c]
mov esi, dword [ebp + 0xa4]
mov edx, dword [ebp + 0x60]
imul esi, dword [esp + 0x34]
sub edx, 0x2a8c
mov ecx, dword [eax + 0x40]
xor edx, 0x2fa8
mov eax, dword [eax + 0x70]
or eax, dword [ebp + 0x7c]
add ecx, dword [0x976944]
or eax, 0x23dd
xor edi, dword [esp + 0x14]
or esi, 0x1bc1
or edi, dword [esp + 0x2c]
push ebp
push eax
push ecx
push edx
push esi
push edi
call fcn.0040884e
add esp, 0x18
mov edi, eax
jmp 0x409ae6
mov eax, dword [0x93113c]
lea ecx, [esi - 0x2fa8]
xor ecx, dword [0x9768b8]
cmp dword [eax + 0xac], ecx
jbe 0x409ae6
imul eax, esi, 0x2e37
push eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea eax, [edi + 0x285]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret