Function at 0x10008384
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.100111a2
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x100083aa
push 0xfffffffffffffffe
pop edi
jmp 0x10008617
push ebx
mov ebx, dword [ebp - 0x10]
xor edx, edx
test ebx, ebx
je 0x100083cd
mov eax, dword [0x10020fd8]
mov ecx, edx
and ecx, 0x1f
mov al, byte [ecx + eax + 0x1858]
xor byte [edx + esi], al
inc edx
cmp edx, ebx
jb 0x100083b4
mov eax, dword [0x10020fd8]
cmp dword [eax + 0xa4], 1
jne 0x10008462
push 8
call fcn.10009df4
mov esi, eax
mov dword [ebp - 0x10], esi
pop ecx
test esi, esi
je 0x10008616
push 4
push 0x3000
mov dword [esi + 4], ebx
mov eax, dword [0x10020fa0]
push ebx
xor ebx, ebx
push ebx
call dword [eax + 0x5c]
mov dword [esi], eax
test eax, eax
je 0x10008451
mov dword [ebp - 0xc], ebx
push dword [esi + 4]
push dword [ebp - 0x14]
push eax
call fcn.10009ed7
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
mov eax, dword [0x10020fa0]
push ebx
push esi
push 0x1000770f
push ebx
push ebx
call dword [eax + 0x78]
test eax, eax
jne 0x10008616
mov eax, dword [0x10020fa0]
push 0x8000
push dword [esi + 4]
push dword [esi]
call dword [eax + 0x60]
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.10009e10
pop ecx
pop ecx
jmp 0x10008616
and dword [ebp - 4], edi
lea ecx, [ebp - 4]
and dword [ebp - 8], edi
call fcn.1000b25d
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x10008481
or edi, 0xffffffff
jmp 0x10008616
call fcn.1000b02b
call fcn.1000b05c
and dword [ebp - 0x10], edi
mov dword [ebp - 0x18], eax
cmp dword [ebp - 4], edi
jbe 0x100085db
mov dword [ebp - 0xc], 1
cmp dword [ebp - 8], 0
jne 0x100085cb
push 0x10
lea eax, [ebp - 0x2c]
push 0
push eax
call fcn.10009f77
mov eax, dword [0x10020fd8]
add esp, 0xc
test dword [eax + 0x1898], 0x200
je 0x100084d6
mov ecx, 0x12e2
call fcn.1000ee4b
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x2c]
mov ecx, dword [esi + eax*4]
call fcn.1000d785
test eax, eax
js 0x1000858e
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
push 4
push ebx
push dword [ebp - 0x14]
call fcn.1000d700
add esp, 0xc
mov dword [0x1002109c], eax
test eax, eax
jne 0x10008524
mov eax, dword [0x10020fa0]
push dword [ebp - 0x28]
call dword [eax + 0x34]
mov eax, dword [0x10020fa0]
push dword [ebp - 0x2c]
call dword [eax + 0x34]
push 0xfffffffffffffffe
pop edi
jmp 0x1000858e
mov eax, dword [0x10020fd8]
lea edx, [ebp - 0x2c]
push dword [ebp - 0xc]
mov ecx, 0x10007652
mov dword [0x100210a0], ebx
push dword [eax + 0x224]
call fcn.1000b54b
pop ecx
pop ecx
test eax, eax
jne 0x10008565
mov eax, dword [0x10020fa0]
push dword [ebp - 0x28]
call dword [eax + 0x34]
mov eax, dword [0x10020fa0]
push dword [ebp - 0x2c]
call dword [eax + 0x34]
push 0xfffffffffffffffd
jmp 0x10008521
lea ecx, [ebp - 0x2c]
call fcn.1000b645
test eax, eax
je 0x1000858e
push dword [ebp - 0x2c]
call fcn.10005511
mov eax, dword [0x10020fa0]
pop ecx
push dword [ebp - 0x28]
call dword [eax + 0x34]
mov dword [ebp - 8], 1
xor edi, edi
cmp dword [ebp - 0x2c], 0
je 0x100085bb
cmp dword [ebp - 8], 0
jne 0x100085aa
mov eax, dword [0x10020fa0]
push 0
push dword [ebp - 0x2c]
call dword [eax + 0x114]
cmp dword [ebp - 0x28], 0
je 0x100085bb
mov eax, dword [0x10020fa0]
push dword [ebp - 0x28]
call dword [eax + 0x34]
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp eax, 2
jbe 0x100084a1
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp - 4]
jb 0x1000849a
call fcn.1000b062
mov eax, dword [ebp - 4]
test eax, eax
je 0x100085fe
mov ebx, eax
push 0xfffffffffffffffe
push esi
call fcn.10009e10
pop ecx
add esi, 4
pop ecx
sub ebx, 1
jne 0x100085e9
mov eax, dword [ebp - 4]
shl eax, 2
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.10009e10
cmp dword [ebp - 8], 0
pop ecx
pop ecx
jne 0x10008616
push 0xfffffffffffffffb
pop edi
pop ebx
mov eax, edi
pop edi
pop esi
leave
ret