Function at 0x8a6d82
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, dword [edi + 0x4c]
xor ebx, ebx
cmp esi, ebx
je 0x8a6d9f
call fcn.008a2982
mov esi, dword [edi + 0x4c]
cmp esi, ebx
jne 0x8a6d93
mov eax, dword [edi + 0x54]
cmp eax, ebx
je 0x8a6db3
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x2c], ebx
mov eax, dword [eax + 0x3c]
cmp eax, ebx
jne 0x8a6da6
mov eax, dword [edi + 0x40]
cmp eax, ebx
je 0x8a6dc8
mov ecx, edi
call fcn.008a6682
mov eax, dword [edi + 0x40]
cmp eax, ebx
jne 0x8a6dba
mov eax, dword [edi + 0x30]
xor esi, esi
cmp eax, ebx
jbe 0x8a6dee
xor ebp, ebp
mov ebx, dword [edi + 0x34]
add ebx, ebp
push edi
call fcn.008a1fd2
mov eax, dword [edi + 0x30]
add esp, 4
inc esi
add ebp, 0x2c
cmp esi, eax
jb 0x8a6dd3
xor ebx, ebx
mov edx, dword [edi + 0x10]
mov cl, byte [edx]
xor eax, eax
cmp cl, bl
je 0x8a6e1d
movsx ecx, cl
mov esi, ecx
xor esi, eax
xor esi, 0xff946a4f
shl esi, 8
add esi, eax
xor esi, 0x573ed587
add esi, ecx
mov cl, byte [edx + 1]
inc edx
cmp cl, bl
mov eax, esi
jne 0x8a6df9
mov ecx, dword [0x761c30]
mov ecx, dword [ecx + 0x28]
xor eax, 0x62946a4f
xor edx, edx
div dword [ecx + 4]
mov eax, dword [ecx + 8]
mov ebp, 1
lea ecx, [eax + edx*4]
mov eax, dword [ecx]
cmp eax, edi
jne 0x8a6e4b
mov edx, dword [edi + 0x24]
mov dword [ecx], edx
jmp 0x8a6f23
mov esi, eax
cmp dword [esi + 0x24], edi
je 0x8a6f1d
mov eax, dword [0x7608c0]
add eax, esi
jne 0x8a6ed2
push 0x75a7d0
call fcn.0088e022
add esp, 4
push 0x4dc
push 0x649b68
call fcn.0088de12
push eax
call fcn.0088de02
mov ecx, dword [0x67fa0c]
add esp, 4
push eax
push ecx
push 0x75a7d0
call fcn.00924278
push 0x75a7d0
push 0x649c10
call fcn.00925512
mov edx, dword [0x67fa10]
push 0x75a7d0
push edx
call fcn.00925512
mov eax, dword [0x7608c8]
mov dword [0x7608c4], ebp
mov ecx, dword [eax]
add esp, 0x24
cmp ecx, ebx
je 0x8a6eda
mov dword [0x7608c8], ebx
jmp 0x8a6eda
cmp dword [0x7608c4], ebx
je 0x8a6f11
push 0x4dc
push 0x649b68
call fcn.0088de12
push eax
call fcn.0088de02
mov ecx, dword [0x67fa14]
add esp, 4
push eax
push ecx
push 0x75a7d0
call fcn.00924278
push 0x3b9aca00
call fcn.0088de82
add esp, 0x18
mov esi, dword [esi + 0x24]
cmp dword [esi + 0x24], edi
jne 0x8a6e56
mov edx, dword [edi + 0x24]
mov dword [esi + 0x24], edx
mov edx, dword [edi + 4]
mov eax, dword [0x761c30]
mov esi, dword [eax + 0x2c]
mov ecx, dword [edi]
mov eax, edx
xor eax, ecx
xor eax, 0xff946a4f
shl eax, 8
add eax, edx
xor eax, 0x573ed587
add eax, ecx
xor eax, 0x62946a4f
xor edx, edx
div dword [esi + 4]
mov ecx, dword [esi + 8]
mov eax, dword [ecx + edx*4]
cmp eax, edi
lea ecx, [ecx + edx*4]
jne 0x8a6f66
mov edx, dword [edi + 0x28]
mov dword [ecx], edx
jmp 0x8a703f
mov esi, eax
cmp dword [esi + 0x28], edi
je 0x8a7039
nop
mov eax, dword [0x7608c0]
add eax, esi
jne 0x8a6fee
push 0x75a7d0
call fcn.0088e022
add esp, 4
push 0x4de
push 0x649b68
call fcn.0088de12
push eax
call fcn.0088de02
mov ecx, dword [0x67fa0c]
add esp, 4
push eax
push ecx
push 0x75a7d0
call fcn.00924278
push 0x75a7d0
push 0x649c10
call fcn.00925512
mov edx, dword [0x67fa10]
push 0x75a7d0
push edx
call fcn.00925512
mov eax, dword [0x7608c8]
mov dword [0x7608c4], ebp
mov ecx, dword [eax]
add esp, 0x24
cmp ecx, ebx
je 0x8a6ff6
mov dword [0x7608c8], ebx
jmp 0x8a6ff6
cmp dword [0x7608c4], ebx
je 0x8a702d
push 0x4de
push 0x649b68
call fcn.0088de12
push eax
call fcn.0088de02
mov ecx, dword [0x67fa14]
add esp, 4
push eax
push ecx
push 0x75a7d0
call fcn.00924278
push 0x3b9aca00
call fcn.0088de82
add esp, 0x18
mov esi, dword [esi + 0x28]
cmp dword [esi + 0x28], edi
jne 0x8a6f72
mov edx, dword [edi + 0x28]
mov dword [esi + 0x28], edx
mov eax, dword [0x761c30]
mov edx, dword [eax + 0x34]
xor ecx, ecx
cmp ecx, edx
mov ecx, dword [0x7608c0]
sbb edx, edx
neg edx
add edx, ecx
jne 0x8a70cc
push 0x75a7d0
call fcn.0088e022
add esp, 4
push 0x4e1
push 0x649b68
call fcn.0088de12
push eax
call fcn.0088de02
add esp, 4
push eax
mov eax, dword [0x67fa0c]
push eax
push 0x75a7d0
call fcn.00924278
push 0x75a7d0
push 0x64ab58
call fcn.00925512
mov ecx, dword [0x67fa10]
push 0x75a7d0
push ecx
call fcn.00925512
mov edx, dword [0x7608c8]
mov dword [0x7608c4], ebp
mov eax, dword [edx]
add esp, 0x24
cmp eax, ebx
je 0x8a70d4
mov dword [0x7608c8], ebx
jmp 0x8a70d4
cmp dword [0x7608c4], ebx
je 0x8a710f
push 0x4e1
push 0x649b68
call fcn.0088de12
push eax
call fcn.0088de02
add esp, 4
push eax
mov eax, dword [0x67fa14]
push eax
push 0x75a7d0
call fcn.00924278
push 0x3b9aca00
call fcn.0088de82
mov eax, dword [0x761c30]
add esp, 0x18
dec dword [eax + 0x34]
mov eax, dword [edi + 0x60]
cmp eax, ebx
je 0x8a7121
mov ecx, dword [edi + 0x5c]
mov dword [eax + 0x5c], ecx
jmp 0x8a712c
mov edx, dword [edi + 0x5c]
mov eax, dword [0x761c30]
mov dword [eax + 0x3c], edx
mov eax, dword [edi + 0x5c]
cmp eax, ebx
je 0x8a713b
mov ecx, dword [edi + 0x60]
mov dword [eax + 0x60], ecx
jmp 0x8a7146
mov edx, dword [edi + 0x60]
mov eax, dword [0x761c30]
mov dword [eax + 0x38], edx
lea ecx, [edi + 0xc8]
push ecx
call fcn.008c9d12
mov edx, dword [edi + 0xc]
add esp, 4
xor ecx, ecx
cmp edx, ebx
mov eax, edx
je 0x8a716e
mov edi, edi
mov ebp, dword [eax + 0x24]
mov eax, dword [eax + 0x20]
add ecx, ebp
cmp eax, ebx
jne 0x8a7162
cmp dword [edx + 0x38], ebx
je 0x8a7179
add ecx, 0x4000
mov eax, dword [0x761c30]
sub dword [eax + 0x40], ecx
mov edi, dword [edi + 0xc]
cmp dword [edi + 0x38], ebx
mov esi, dword [edi + 0x18]
je 0x8a7195
push edi
call fcn.0088e8c2
add esp, 4
cmp esi, ebx
je 0x8a71ac
mov ebp, dword [esi + 0x1c]
push esi
push edi
call fcn.0088e752
add esp, 8
cmp ebp, ebx
mov esi, ebp
jne 0x8a7199
pop edi
pop esi
pop ebp
pop ebx
ret