Function at 0x10008820
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
lea eax, [esp + 0x10]
mov ebx, edx
mov edi, ecx
mov dword [esp + 0x14], ebx
push eax
mov dword [esp + 0x20], edi
call fcn.10008750
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x100088ba
mov eax, dword [ebp + 8]
mov esi, dword [ecx + 8]
test eax, eax
jne 0x100088ab
mov edx, dword [ecx + 4]
mov eax, dword [ecx]
test edx, edx
je 0x10008862
mov dword [edx], eax
jmp 0x10008865
mov dword [edi + 8], eax
mov edx, dword [ecx]
test edx, edx
je 0x10008871
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov edx, dword [edi + 0xc]
test edx, edx
je 0x1000888c
mov eax, dword [esp + 0x10]
cmp dword [edx + eax*8 + 4], ecx
lea edx, [edx + eax*8]
jne 0x1000888a
mov eax, dword [ecx]
mov dword [edx + 4], eax
dec dword [edx]
push ecx
call fcn.100046a0
add esp, 4
add dword [edi + 4], 0xffffffff
jne 0x100088b1
mov ecx, edi
call fcn.10008700
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
test esi, esi
je 0x10008af8
push 0
push 0x10
call fcn.10004280
mov ebx, eax
add esp, 8
mov dword [esp + 0x18], ebx
test ebx, ebx
je 0x100088b1
mov eax, dword [esp + 0x14]
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], esi
inc dword [edi + 4]
mov esi, dword [edi + 4]
cmp esi, 0xa
jb 0x10008a8a
mov ecx, dword [edi]
lea eax, [ecx + ecx]
cmp esi, eax
jbe 0x10008a8a
add esi, esi
mov edx, 0x80
lea eax, [esi*8]
cmp eax, 0x400
cmova esi, edx
cmp esi, ecx
je 0x10008a8a
mov eax, dword [0x100e6760]
test eax, eax
je 0x1000892a
call eax
lea eax, [esi*8]
push 0
push eax
call fcn.10004280
mov ecx, dword [0x100e6764]
add esp, 8
mov esi, eax
mov dword [esp + 0x24], esi
test ecx, ecx
je 0x1000894e
call ecx
test esi, esi
je 0x10008a8a
push dword [edi + 0xc]
call fcn.100046a0
add esp, 4
mov dword [edi + 0xc], esi
push esi
call dword [0x100e3b10]
shr eax, 3
add esp, 4
mov dword [esp + 0x20], eax
mov dword [edi], eax
lea ecx, [eax*8]
push ecx
push 0
push esi
call fcn.100a9260
mov esi, dword [edi + 8]
add esp, 0xc
mov dword [edi + 8], 0
test esi, esi
je 0x10008a49
nop dword [eax]
mov ebx, dword [esi + 0xc]
xor eax, eax
mov cl, byte [ebx]
test cl, cl
je 0x100089da
mov edi, eax
nop dword [eax]
movzx eax, cl
lea ebx, [ebx + 1]
lea ecx, [edi*8]
movzx edx, byte [eax + 0x100dc190]
xor edx, ecx
mov cl, byte [ebx]
xor edi, edx
test cl, cl
jne 0x100089b0
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
xor edx, edx
mov ebx, dword [esi]
div dword [esp + 0x20]
mov eax, dword [esp + 0x24]
lea edx, [eax + edx*8]
test edx, edx
je 0x10008a22
mov eax, dword [edx]
test eax, eax
je 0x100089f8
mov ecx, dword [edx + 4]
jmp 0x100089fa
xor ecx, ecx
inc eax
mov dword [edx + 4], esi
mov dword [edx], eax
test ecx, ecx
je 0x10008a22
mov dword [esi], ecx
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
mov eax, dword [ecx + 4]
test eax, eax
je 0x10008a1a
mov dword [eax], esi
mov dword [ecx + 4], esi
jmp 0x10008a3b
mov dword [edi + 8], esi
mov dword [ecx + 4], esi
jmp 0x10008a3b
mov eax, dword [edi + 8]
mov dword [esi], eax
mov eax, dword [edi + 8]
test eax, eax
je 0x10008a31
mov dword [eax + 4], esi
mov dword [esi + 4], 0
mov dword [edi + 8], esi
mov esi, ebx
test ebx, ebx
jne 0x100089a0
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
xor esi, esi
mov al, byte [eax]
test al, al
je 0x10008a82
mov ebx, dword [esp + 0x14]
nop dword [eax]
movzx eax, al
lea ecx, [esi*8]
lea ebx, [ebx + 1]
movzx edx, byte [eax + 0x100dc190]
mov al, byte [ebx]
xor edx, ecx
xor esi, edx
test al, al
jne 0x10008a60
mov ebx, dword [esp + 0x18]
mov eax, esi
xor edx, edx
div dword [edi]
jmp 0x10008a8e
mov edx, dword [esp + 0x10]
mov eax, dword [edi + 0xc]
test eax, eax
je 0x10008adf
lea edx, [eax + edx*8]
test edx, edx
je 0x10008adf
mov eax, dword [edx]
test eax, eax
je 0x10008aa7
mov ecx, dword [edx + 4]
jmp 0x10008aa9
xor ecx, ecx
inc eax
mov dword [edx + 4], ebx
mov dword [edx], eax
test ecx, ecx
je 0x10008adf
mov dword [ebx], ecx
mov eax, dword [ecx + 4]
mov dword [ebx + 4], eax
mov eax, dword [ecx + 4]
test eax, eax
je 0x10008ad0
mov dword [eax], ebx
xor eax, eax
mov dword [ecx + 4], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi + 8], ebx
xor eax, eax
mov dword [ecx + 4], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 8]
mov dword [ebx], eax
mov eax, dword [edi + 8]
test eax, eax
je 0x10008aee
mov dword [eax + 4], ebx
mov dword [ebx + 4], 0
mov dword [edi + 8], ebx
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret