Function at 0x862510
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x1be4]
movzx eax, word [eax]
movzx ecx, word [ebp + 8]
sub eax, ecx
cmp eax, 0x28
push edi
ja 0x86253a
movzx edx, byte [eax + 0x5e9d34]
jmp dword [edx*4 + 0x5e9d1c]
xor edx, edx
cmp dword [esi + 0x24bc], 2
mov word [esi + 0x50e8], dx
lea ebx, [edx + 1]
jne 0x862596
mov ax, word [esi + 0x2434]
shr ax, 0xf
push ebx
mov ecx, esi
movzx edi, ax
call fcn.008602b0
test di, di
je 0x862594
mov ecx, dword [esi + 0x2414]
mov edx, dword [esi + 0x2418]
mov dword [esi + 0x2428], ecx
mov dword [esi + 0x2424], edx
mov eax, dword [ebp + 8]
push eax
mov ecx, esi
call fcn.00861510
pop edi
pop esi
pop ebx
pop ebp
ret 4
xor edx, edx
movzx cx, byte [esi + 0x2435]
mov ax, word [esi + 0x50f8]
add ax, 3
movzx ecx, cx
mov word [0x6e6c16], ax
mov word [0x6e6bd2], ax
cmp word [esi + 0x50d4], 0x25
mov dword [esi + 0x2424], edx
mov edi, 0xff
movzx edx, cx
jae 0x86262b
mov cl, byte [0x6e6bd0]
movzx eax, word [fcn.006e6bf0]
sar edi, cl
xor eax, edx
not edi
test edi, eax
je 0x86261b
jmp 0x8625f0
add dword [esi + 0x2424], ebx
mov eax, dword [esi + 0x2424]
mov cl, byte [eax + eax + 0x6e6bd0]
add eax, eax
mov edi, 0xff
sar edi, cl
movzx ecx, word [eax + fcn.006e6bf0]
not edi
xor ecx, edx
test ecx, edi
jne 0x8625f0
mov edx, dword [esi + 0x2424]
movzx eax, word [edx*2 + 0x6e6bd0]
jmp 0x86267b
mov cl, byte [0x6e6c10]
movzx eax, word [0x6e6c30]
sar edi, cl
xor eax, edx
not edi
test edi, eax
je 0x86266d
add dword [esi + 0x2424], ebx
mov eax, dword [esi + 0x2424]
mov cl, byte [eax + eax + 0x6e6c10]
add eax, eax
mov edi, 0xff
sar edi, cl
movzx ecx, word [eax + 0x6e6c30]
not edi
xor ecx, edx
test ecx, edi
jne 0x862642
mov edx, dword [esi + 0x2424]
movzx eax, word [edx*2 + 0x6e6c10]
push eax
mov ecx, esi
call fcn.008602b0
mov edi, dword [esi + 0x2424]
cmp edi, 9
jb 0x86281c
jne 0x8626c7
mov ecx, dword [esi + 0x2414]
mov edx, dword [esi + 0x2418]
add dword [esi + 0x24bc], ebx
mov dword [esi + 0x2428], ecx
mov dword [esi + 0x2424], edx
mov eax, dword [ebp + 8]
add eax, 0xa
push eax
mov ecx, esi
call fcn.00861510
pop edi
pop esi
pop ebx
pop ebp
ret 4
cmp edi, 0xe
mov dword [esi + 0x24bc], 0
jne 0x862748
movzx ecx, word [esi + 0x2434]
push 0x6e6c98
push 0x6e6c84
push 3
push ecx
mov ecx, esi
call fcn.008613e0
movzx edx, ax
mov ax, word [esi + 0x2434]
add edx, 5
shr ax, 1
push 0xf
mov ecx, esi
mov dword [esi + 0x2424], edx
movzx edi, ax
call fcn.008602b0
mov ecx, dword [esi + 0x2424]
movzx eax, di
or eax, 0x8000
mov dword [esi + 0x2428], eax
mov dword [esi + 0x2418], ecx
mov dword [esi + 0x2414], eax
mov edx, dword [ebp + 8]
add edx, 0x14
push edx
mov ecx, esi
call fcn.00861510
pop edi
pop esi
pop ebx
pop ebp
ret 4
movzx eax, word [esi + 0x2468]
movzx edx, word [esi + 0x2434]
sub eax, edi
push 0x6e6c68
add eax, ebx
and eax, 3
mov ecx, dword [esi + eax*4 + 0x2448]
push 0x6e6c50
push 2
mov dword [esi + 0x2428], ecx
push edx
mov ecx, esi
call fcn.008613e0
movzx eax, ax
add eax, 2
cmp eax, 0x101
mov dword [esi + 0x2424], eax
jne 0x8627a6
cmp edi, 0xa
jne 0x8627a6
xor word [esi + 0x50f8], bx
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 4
mov ecx, dword [esi + 0x2428]
cmp ecx, 0x100
jbe 0x8627bd
add eax, 1
mov dword [esi + 0x2424], eax
movzx eax, word [esi + 0x50f4]
cmp ecx, eax
jb 0x8627ce
add dword [esi + 0x2424], ebx
movzx edx, word [esi + 0x2468]
mov dword [esi + edx*4 + 0x2448], ecx
movzx eax, byte [esi + 0x2468]
mov ecx, dword [esi + 0x2424]
mov edx, dword [esi + 0x2428]
add al, bl
mov dword [esi + 0x2418], ecx
mov dword [esi + 0x2414], edx
and eax, 3
mov word [esi + 0x2468], ax
mov eax, dword [ebp + 8]
add eax, 0x1e
push eax
mov ecx, esi
call fcn.00861510
pop edi
pop esi
pop ebx
pop ebp
ret 4
mov ax, word [esi + 0x50d4]
add ax, word [esi + 0x2424]
movzx edx, word [esi + 0x2434]
push 0x6e6d20
mov cx, ax
push 0x6e6d10
shr cx, 4
sub ax, cx
push 5
push edx
mov ecx, esi
mov dword [esi + 0x24bc], 0
mov word [esi + 0x50d4], ax
call fcn.008613e0
movzx eax, ax
movsx ecx, ax
movzx edx, word [esi + ecx*2 + 0x30cc]
sub eax, ebx
cmp ax, 0xffff
mov dword [esi + 0x2428], edx
je 0x8628b9
mov ecx, edx
add word [esi + ecx*2 + 0x34cc], 0xffff
movsx eax, ax
lea ecx, [esi + ecx*2 + 0x34cc]
movzx ecx, word [esi + eax*2 + 0x30cc]
add word [esi + ecx*2 + 0x34cc], bx
mov word [esi + eax*2 + 0x30ce], cx
mov dx, word [esi + 0x2428]
mov word [esi + eax*2 + 0x30cc], dx
add dword [esi + 0x2428], ebx
movzx ecx, word [esi + 0x2468]
add dword [esi + 0x2424], 2
mov eax, dword [esi + 0x2428]
mov dword [esi + ecx*4 + 0x2448], eax
movzx edx, byte [esi + 0x2468]
mov eax, dword [esi + 0x2424]
mov ecx, dword [esi + 0x2428]
add dl, bl
mov dword [esi + 0x2418], eax
mov dword [esi + 0x2414], ecx
and edx, 3
mov word [esi + 0x2468], dx
mov edx, dword [ebp + 8]
add edx, 0x28
push edx
mov ecx, esi
call fcn.00861510
pop edi
pop esi
pop ebx
pop ebp
ret 4