Function at 0x1000837f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
push edi
xor edi, edi
lea edx, [ebp - 0x10]
and dword [ebp - 0x10], edi
call fcn.10011196
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x100083a5
push 0xfffffffffffffffe
pop edi
jmp 0x10008612
push ebx
mov ebx, dword [ebp - 0x10]
xor edx, edx
test ebx, ebx
je 0x100083c8
mov eax, dword [0x10021040]
mov ecx, edx
and ecx, 0x1f
mov al, byte [ecx + eax + 0x1858]
xor byte [edx + esi], al
inc edx
cmp edx, ebx
jb 0x100083af
mov eax, dword [0x10021040]
cmp dword [eax + 0xa4], 1
jne 0x1000845d
push 8
call fcn.10009def
mov esi, eax
mov dword [ebp - 0x10], esi
pop ecx
test esi, esi
je 0x10008611
push 4
push 0x3000
mov dword [esi + 4], ebx
mov eax, dword [0x10021008]
push ebx
xor ebx, ebx
push ebx
call dword [eax + 0x5c]
mov dword [esi], eax
test eax, eax
je 0x1000844c
mov dword [ebp - 0xc], ebx
push dword [esi + 4]
push dword [ebp - 0x14]
push eax
call fcn.10009ed2
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
mov eax, dword [0x10021008]
push ebx
push esi
push 0x1000770a
push ebx
push ebx
call dword [eax + 0x78]
test eax, eax
jne 0x10008611
mov eax, dword [0x10021008]
push 0x8000
push dword [esi + 4]
push dword [esi]
call dword [eax + 0x60]
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.10009e0b
pop ecx
pop ecx
jmp 0x10008611
and dword [ebp - 4], edi
lea ecx, [ebp - 4]
and dword [ebp - 8], edi
call fcn.1000b24a
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x1000847c
or edi, 0xffffffff
jmp 0x10008611
call fcn.1000b018
call fcn.1000b049
and dword [ebp - 0x10], edi
mov dword [ebp - 0x18], eax
cmp dword [ebp - 4], edi
jbe 0x100085d6
mov dword [ebp - 0xc], 1
cmp dword [ebp - 8], 0
jne 0x100085c6
push 0x10
lea eax, [ebp - 0x2c]
push 0
push eax
call fcn.10009f72
mov eax, dword [0x10021040]
add esp, 0xc
test dword [eax + 0x1898], 0x200
je 0x100084d1
mov ecx, 0x155e
call fcn.1000ee38
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x2c]
mov ecx, dword [esi + eax*4]
call fcn.1000d772
test eax, eax
js 0x10008589
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
push 4
push ebx
push dword [ebp - 0x14]
call fcn.1000d6ed
add esp, 0xc
mov dword [0x10021104], eax
test eax, eax
jne 0x1000851f
mov eax, dword [0x10021008]
push dword [ebp - 0x28]
call dword [eax + 0x34]
mov eax, dword [0x10021008]
push dword [ebp - 0x2c]
call dword [eax + 0x34]
push 0xfffffffffffffffe
pop edi
jmp 0x10008589
mov eax, dword [0x10021040]
lea edx, [ebp - 0x2c]
push dword [ebp - 0xc]
mov ecx, 0x1000764d
mov dword [0x10021108], ebx
push dword [eax + 0x224]
call fcn.1000b538
pop ecx
pop ecx
test eax, eax
jne 0x10008560
mov eax, dword [0x10021008]
push dword [ebp - 0x28]
call dword [eax + 0x34]
mov eax, dword [0x10021008]
push dword [ebp - 0x2c]
call dword [eax + 0x34]
push 0xfffffffffffffffd
jmp 0x1000851c
lea ecx, [ebp - 0x2c]
call fcn.1000b632
test eax, eax
je 0x10008589
push dword [ebp - 0x2c]
call fcn.1000550e
mov eax, dword [0x10021008]
pop ecx
push dword [ebp - 0x28]
call dword [eax + 0x34]
mov dword [ebp - 8], 1
xor edi, edi
cmp dword [ebp - 0x2c], 0
je 0x100085b6
cmp dword [ebp - 8], 0
jne 0x100085a5
mov eax, dword [0x10021008]
push 0
push dword [ebp - 0x2c]
call dword [eax + 0x114]
cmp dword [ebp - 0x28], 0
je 0x100085b6
mov eax, dword [0x10021008]
push dword [ebp - 0x28]
call dword [eax + 0x34]
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp eax, 2
jbe 0x1000849c
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp - 4]
jb 0x10008495
call fcn.1000b04f
mov eax, dword [ebp - 4]
test eax, eax
je 0x100085f9
mov ebx, eax
push 0xfffffffffffffffe
push esi
call fcn.10009e0b
pop ecx
add esi, 4
pop ecx
sub ebx, 1
jne 0x100085e4
mov eax, dword [ebp - 4]
shl eax, 2
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.10009e0b
cmp dword [ebp - 8], 0
pop ecx
pop ecx
jne 0x10008611
push 0xfffffffffffffffb
pop edi
pop ebx
mov eax, edi
pop edi
pop esi
leave
ret