Function at 0x10200824
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x140
mov eax, dword [ebp + 0x24]
mov esi, dword [ebp + 0x1c]
mov dword [eax], 0
push esi
call fcn.10146454
add esp, 4
mov ebx, eax
test eax, eax
jne 0x10200b36
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x18]
mov ebx, 0x20012
mov eax, ecx
and ecx, 7
shr eax, 3
cmp ecx, 1
sbb eax, 0xffffffff
cmp eax, edx
jb 0x10200b36
cmp eax, dword [ebp + 0x14]
jne 0x10200b36
imul edi, esi, 0x64
mov ecx, edx
mov edx, dword [edi + 0x10483e24]
mov dword [esp + 0x14], edi
lea ecx, [ecx + edx + 2]
cmp eax, ecx
jb 0x10200b36
mov edi, dword [ebp + 0x14]
mov dword [esp + 0xc], edx
push edi
call fcn.10071f14
add esp, 4
mov ebx, eax
push edi
call fcn.10071f14
add esp, 4
mov dword [esp + 8], eax
push edi
call fcn.10071f14
add esp, 4
mov dword [esp + 0x18], eax
push edi
call fcn.10071f14
add esp, 4
test ebx, ebx
je 0x102008e2
cmp dword [esp + 8], 0
je 0x102008e2
cmp dword [esp + 0x18], 0
je 0x102008e2
test eax, eax
jne 0x10200926
mov edi, eax
test ebx, ebx
je 0x102008f1
push ebx
call fcn.1007274c
add esp, 4
mov eax, dword [esp + 8]
mov esi, dword [esp + 0x18]
test eax, eax
je 0x10200906
push eax
call fcn.1007274c
add esp, 4
test esi, esi
je 0x10200913
push esi
call fcn.1007274c
add esp, 4
mov ebx, 0xc
test edi, edi
je 0x10200b36
push edi
jmp 0x10200b2e
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x10], ebx
cmp byte [ecx + edi - 1], 0xbc
je 0x1020093e
mov ebx, 0x20005
jmp 0x10200b09
mov ebx, dword [esp + 0xc]
not ebx
add ebx, edi
push ebx
push ecx
push dword [esp + 0x18]
mov dword [esp + 0x10], eax
call fcn.100e01c4
add esp, 0xc
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x20], ebx
lea eax, [eax + ebx]
push dword [esp + 0xc]
push eax
push dword [esp + 0xc]
call fcn.100e01c4
add esp, 0xc
mov edx, edi
xor edi, edi
mov eax, dword [ebp + 0x10]
mov ebx, 0xff
inc edi
mov ecx, edi
sub ecx, dword [ebp + 0x20]
movzx eax, byte [eax]
lea ecx, [ecx + edx*8]
mov edx, 0xffffff00
shr ebx, cl
sar edx, cl
test edx, eax
je 0x102009a2
mov ebx, 0x20005
jmp 0x10200b05
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], edi
push dword [esp + 0x20]
push dword [esp + 0xc]
push dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push edi
push esi
call fcn.1008d584
add esp, 0x14
mov ebx, eax
test eax, eax
mov eax, edi
jne 0x10200b09
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 8]
test ebx, ebx
je 0x102009ed
xor eax, eax
mov cl, byte [esi + eax]
xor byte [edx + eax], cl
inc eax
cmp eax, ebx
jne 0x102009e2
mov eax, 0xfffffffe
mov ebx, dword [esp + 0x24]
sub eax, dword [ebp + 0x18]
and bl, byte [edx]
add eax, dword [ebp + 0x14]
mov byte [edx], bl
sub eax, dword [esp + 0xc]
je 0x10200a2a
test bl, bl
jne 0x10200998
xor esi, esi
mov bl, byte [edx + esi + 1]
lea ecx, [esi + 1]
cmp ecx, eax
jae 0x10200a23
test bl, bl
mov esi, ecx
jne 0x10200998
jmp 0x10200a0c
add esi, 2
mov dword [esp + 0x1c], esi
mov eax, dword [esp + 4]
cmp bl, 1
mov ebx, 0x20005
jne 0x10200b09
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x18]
call dword [eax + 0x10483e70]
add esp, 4
mov ebx, eax
mov eax, dword [esp + 4]
test ebx, ebx
jne 0x10200b09
mov esi, 8
push esi
mov ebx, dword [esp + 0xc]
push ebx
call fcn.1014aff4
add esp, 8
push esi
lea esi, [esp + 0x2c]
push ebx
push esi
mov eax, dword [esp + 0x20]
call dword [eax + 0x10483e74]
add esp, 0xc
mov ebx, eax
mov eax, dword [esp + 4]
test ebx, ebx
jne 0x10200b09
mov eax, dword [esp + 0x14]
lea edi, [eax + 0x10483e74]
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [edi]
add esp, 0xc
mov ebx, eax
mov eax, dword [esp + 4]
test ebx, ebx
jne 0x10200b09
mov eax, dword [esp + 0x10]
add eax, dword [esp + 0x1c]
push dword [ebp + 0x18]
push eax
push esi
call dword [edi]
add esp, 0xc
mov ebx, eax
mov eax, dword [esp + 4]
test ebx, ebx
jne 0x10200b09
push dword [esp + 8]
push esi
mov eax, dword [esp + 0x1c]
call dword [eax + 0x10483e78]
add esp, 8
mov ebx, eax
mov eax, dword [esp + 4]
test ebx, ebx
jne 0x10200b09
push dword [esp + 0xc]
push eax
push dword [esp + 0x10]
call fcn.102535a4
add esp, 0xc
xor ebx, ebx
test eax, eax
jne 0x10200b05
mov eax, dword [ebp + 0x24]
mov dword [eax], 1
mov eax, dword [esp + 4]
push eax
call fcn.1007274c
add esp, 4
push dword [esp + 0x18]
call fcn.1007274c
add esp, 4
push dword [esp + 8]
call fcn.1007274c
add esp, 4
push dword [esp + 0x10]
call fcn.1007274c
add esp, 4
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret