Function at 0x82418
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe90
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x150], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x82981
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0xeab44]
cmp byte [eax], 0
jne 0x82462
call fcn.0007c4b0
mov byte [0xe7490], 0
xor eax, eax
call fcn.0007c3bc
mov byte [ebp - 0x35], al
call fcn.0007bca8
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 1
je 0x82484
cmp dword [ebp - 0x28], 2
jne 0x8258d
cmp byte [0xe7490], 0
je 0x8249b
mov al, byte [0xe7488]
cmp al, byte [ebp - 0x35]
je 0x8258d
cmp byte [ebp - 5], 4
jne 0x8258d
mov al, byte [ebp - 0x35]
mov byte [0xe7488], al
lea eax, [ebp - 0x18]
call fcn.0007b2a0
mov eax, dword [ebp - 0x18]
call fcn.00013ee4
test eax, eax
jle 0x8258d
lea edx, [ebp - 0x14c]
mov eax, dword [ebp - 0x18]
call fcn.0006903c
lea eax, [ebp - 0x3c]
call fcn.000776cc
cmp dword [ebp - 0x28], 2
jne 0x824fd
mov byte [ebp - 0x11], 0
xor eax, eax
mov al, byte [ebp - 0x11]
mov dl, byte [ebp - 0x35]
xor byte [ebp + eax - 0x14c], dl
inc byte [ebp - 0x11]
cmp byte [ebp - 0x11], 0x10
jne 0x824e5
cmp dword [ebp - 0x28], 1
je 0x82509
cmp dword [ebp - 0x28], 2
jne 0x82543
lea edx, [ebp - 0x160]
mov eax, dword [ebp - 0x3c]
call fcn.0006903c
push ebp
lea ecx, [ebp - 0x170]
lea edx, [ebp - 0x160]
lea eax, [ebp - 0x14c]
call fcn.0008232c
pop ecx
lea esi, [ebp - 0x170]
lea edi, [ebp - 0x14c]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
mov byte [ebp - 0x11], 0
mov al, byte [ebp - 0x11]
shl eax, 4
mov byte [ebp - 0x21], al
xor eax, eax
mov al, byte [ebp - 0x21]
lea edx, [ebp + eax - 0x13c]
lea eax, [ebp - 0x14c]
mov ecx, 0x10
call fcn.00012810
inc byte [ebp - 0x11]
cmp byte [ebp - 0x11], 0x10
jne 0x82547
push ebp
lea eax, [ebp - 0x13c]
call fcn.00082244
pop ecx
mov al, byte [ebp - 0x138]
mov byte [0xe7490], al
cmp dword [ebp - 0x28], 1
je 0x8259d
cmp dword [ebp - 0x28], 2
jne 0x826a6
cmp byte [0xe748c], 0
je 0x825b4
mov al, byte [0xe7480]
cmp al, byte [ebp - 0x35]
je 0x826a6
cmp byte [ebp - 5], 5
jne 0x826a6
mov al, byte [ebp - 0x35]
mov byte [0xe7480], al
lea eax, [ebp - 0x18]
call fcn.0007b2a0
mov eax, dword [ebp - 0x18]
call fcn.00013ee4
test eax, eax
jle 0x826a6
lea edx, [ebp - 0x14c]
mov eax, dword [ebp - 0x18]
call fcn.0006903c
lea eax, [ebp - 0x3c]
call fcn.000776cc
cmp dword [ebp - 0x28], 2
jne 0x82616
mov byte [ebp - 0x11], 0
xor eax, eax
mov al, byte [ebp - 0x11]
mov dl, byte [ebp - 0x35]
xor byte [ebp + eax - 0x14c], dl
inc byte [ebp - 0x11]
cmp byte [ebp - 0x11], 0x10
jne 0x825fe
cmp dword [ebp - 0x28], 1
je 0x82622
cmp dword [ebp - 0x28], 2
jne 0x8265c
lea edx, [ebp - 0x160]
mov eax, dword [ebp - 0x3c]
call fcn.0006903c
push ebp
lea ecx, [ebp - 0x170]
lea edx, [ebp - 0x160]
lea eax, [ebp - 0x14c]
call fcn.0008232c
pop ecx
lea esi, [ebp - 0x170]
lea edi, [ebp - 0x14c]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
mov byte [ebp - 0x11], 0
mov al, byte [ebp - 0x11]
shl eax, 4
mov byte [ebp - 0x21], al
xor eax, eax
mov al, byte [ebp - 0x21]
lea edx, [ebp + eax - 0x13c]
lea eax, [ebp - 0x14c]
mov ecx, 0x10
call fcn.00012810
inc byte [ebp - 0x11]
cmp byte [ebp - 0x11], 0x10
jne 0x82660
push ebp
lea eax, [ebp - 0x13c]
call fcn.00082244
pop ecx
mov al, byte [ebp - 0x137]
mov byte [0xe748c], al
cmp dword [ebp - 0x28], 1
je 0x826b6
cmp dword [ebp - 0x28], 2
jne 0x827bf
cmp byte [0xe7494], 0
je 0x826cd
mov al, byte [0xe7484]
cmp al, byte [ebp - 0x35]
je 0x827bf
cmp byte [ebp - 5], 6
jne 0x827bf
mov al, byte [ebp - 0x35]
mov byte [0xe7484], al
lea eax, [ebp - 0x18]
call fcn.0007b2a0
mov eax, dword [ebp - 0x18]
call fcn.00013ee4
test eax, eax
jle 0x827bf
lea edx, [ebp - 0x14c]
mov eax, dword [ebp - 0x18]
call fcn.0006903c
lea eax, [ebp - 0x3c]
call fcn.000776cc
cmp dword [ebp - 0x28], 2
jne 0x8272f
mov byte [ebp - 0x11], 0
xor eax, eax
mov al, byte [ebp - 0x11]
mov dl, byte [ebp - 0x35]
xor byte [ebp + eax - 0x14c], dl
inc byte [ebp - 0x11]
cmp byte [ebp - 0x11], 0x10
jne 0x82717
cmp dword [ebp - 0x28], 1
je 0x8273b
cmp dword [ebp - 0x28], 2
jne 0x82775
lea edx, [ebp - 0x160]
mov eax, dword [ebp - 0x3c]
call fcn.0006903c
push ebp
lea ecx, [ebp - 0x170]
lea edx, [ebp - 0x160]
lea eax, [ebp - 0x14c]
call fcn.0008232c
pop ecx
lea esi, [ebp - 0x170]
lea edi, [ebp - 0x14c]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
mov byte [ebp - 0x11], 0
mov al, byte [ebp - 0x11]
shl eax, 4
mov byte [ebp - 0x21], al
xor eax, eax
mov al, byte [ebp - 0x21]
lea edx, [ebp + eax - 0x13c]
lea eax, [ebp - 0x14c]
mov ecx, 0x10
call fcn.00012810
inc byte [ebp - 0x11]
cmp byte [ebp - 0x11], 0x10
jne 0x82779
push ebp
lea eax, [ebp - 0x13c]
call fcn.00082244
pop ecx
mov al, byte [ebp - 0x136]
mov byte [0xe7494], al
mov dword [ebp - 0x10], 0xffffffff
cmp dword [ebp - 4], 0
jne 0x827d8
mov dword [ebp - 0x10], 0x20001001
jmp 0x82950
xor eax, eax
push ebp
push 0x8293f
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x28], 1
je 0x827f6
cmp dword [ebp - 0x28], 2
jne 0x82935
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 4]
call fcn.00078120
mov eax, dword [ebp - 0x34]
call fcn.00013ee4
mov word [ebp - 0x1a], ax
cmp word [ebp - 0x1a], 1
jb 0x82826
call fcn.0007bfe8
sub eax, 0xc8
movzx edx, word [ebp - 0x1a]
cmp eax, edx
jge 0x82832
mov dword [ebp - 0x10], 0x20001002
jmp 0x82935
cmp byte [ebp - 5], 4
je 0x82850
cmp byte [ebp - 5], 6
je 0x82850
cmp byte [ebp - 5], 5
je 0x82850
mov dword [ebp - 0x10], 0x20001009
jmp 0x82935
call fcn.0007bfe8
mov edx, eax
lea eax, [ebp - 0x20]
call fcn.000744bc
xor eax, eax
push ebp
push 0x8292e
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x20]
mov ecx, 4
call fcn.00012810
mov al, byte [ebp - 5]
sub al, 4
je 0x8288e
dec al
je 0x8289a
dec al
je 0x828a6
jmp 0x828b0
mov al, byte [0xe7490]
mov edx, dword [ebp - 0x2c]
mov byte [edx], al
jmp 0x828b0
mov al, byte [0xe748c]
mov edx, dword [ebp - 0x2c]
mov byte [edx], al
jmp 0x828b0
mov al, byte [0xe7494]
mov edx, dword [ebp - 0x2c]
mov byte [edx], al
inc dword [ebp - 0x2c]
call fcn.00077cf4
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x30]
mov ecx, 4
call fcn.00012810
add dword [ebp - 0x2c], 4
mov ax, word [ebp - 0x1a]
and ax, 0xff
mov edx, dword [ebp - 0x2c]
mov byte [edx], al
inc dword [ebp - 0x2c]
mov ax, word [ebp - 0x1a]
shr ax, 8
mov edx, dword [ebp - 0x2c]
mov byte [edx], al
inc dword [ebp - 0x2c]
lea eax, [ebp - 0x34]
call fcn.000140b4
movzx ecx, word [ebp - 0x1a]
mov edx, dword [ebp - 0x2c]
call fcn.00012810
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
call fcn.00081f00
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x82935
call fcn.0007bfe8
mov edx, eax
lea eax, [ebp - 0x20]
call fcn.000744f8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x82950
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x82988
lea eax, [ebp - 0x150]
call fcn.00013c64
lea eax, [ebp - 0x3c]
call fcn.00013c64
lea eax, [ebp - 0x34]
call fcn.00013c64
lea eax, [ebp - 0x18]
call fcn.00013c64
ret