Function at 0x1000bbe7
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x3c
mov eax, dword [0x100fdd3c]
mov dword [esp], eax
push ebx
mov dl, byte [0x100fdd02]
push ebp
push esi
mov esi, dword [esp + 0x50]
movzx eax, si
imul ecx, eax, 3
mov dword [esp + 0x10], eax
mov eax, dword [0x100fdd18]
push edi
mov edi, dword [esp + 0x58]
movzx ebp, dl
mov dword [esp + 0x1c], ebp
mov ebx, dword [0x100fdd2c]
movzx eax, byte [ecx + eax]
mov ecx, dword [0x100fdd4c]
mov dword [esp + 0x2c], eax
lea eax, [esi - 1]
movzx eax, ax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], 0x1dfd
sub ecx, dword [edi + eax*4 + 0x24]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x40], ecx
mov ecx, dword [0x100fdd48]
mov dword [esp + 0x28], ecx
inc ecx
mov dword [0x100fdd48], ecx
mov ebp, dword [edi + eax*4]
imul ebp, eax
mov eax, ecx
xor eax, 0x170f
inc esi
inc byte [0x100fdd1c]
mov dword [esp + 0x18], eax
mov eax, dword [0x100fdd0c]
and eax, 0x1b88
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], eax
movzx eax, si
mov dword [esp + 0x3c], eax
mov eax, 0xffff
add esi, eax
mov dword [esp + 0x54], esi
mov esi, dword [esp + 0x14]
imul eax, esi, 0xc
mov eax, dword [eax + edi]
imul eax, esi
inc ebx
mov dword [0x100fdd2c], ebx
xor ebx, dword [esp + 0x1c]
inc dl
mov byte [0x100fdd02], dl
mov dword [esp + 0x20], ebx
mov dword [esp + 0x38], eax
movzx eax, dl
mov edx, dword [esp + 0x30]
imul eax, eax, 0xc
mov eax, dword [eax + edi]
mov dword [esp + 0x24], eax
mov eax, dword [0x1df9]
movzx eax, byte [edx + eax*4]
xor edx, edx
div esi
movzx esi, word [0x100fdd34]
mov ebp, edx
mov edx, dword [esp + 0x28]
mov eax, dword [edx]
mov ebx, dword [edi + eax*4]
mov edi, ecx
shl eax, 4
mov ecx, dword [eax + 0x1e81]
dec dword [0x100fdd48]
imul eax, dword [edx], 3
mov edx, dword [esp + 0x10]
movzx eax, byte [eax + edx]
xor edx, edx
div dword [0x100fdd14]
push edx
push dword [0x100fdd48]
push ecx
push esi
push edi
push ebx
push ebp
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x5c]
push dword [esp + 0x64]
call fcn.1000ac68
movzx edx, byte [0x100fdd02]
mov ecx, dword [0x100fdd10]
mov esi, dword [esp + 0x6c]
mov dword [ecx + edx*4], eax
xor edx, edx
mov eax, dword [esp + 0x3c]
movzx ecx, byte [esi + 0xd06]
mov bl, byte [0x100fdd02]
movzx eax, byte [eax + 0x2d1]
div ecx
mov edx, dword [esp + 0x44]
movzx ecx, bl
movzx edx, byte [ecx + edx + 0xd]
movzx ecx, word [ecx + ecx + 0x1e6f]
or edx, ecx
inc bl
push edx
push eax
mov byte [0x100fdd02], bl
call fcn.10009716
movzx ecx, byte [0x100fdd02]
add esp, 0x34
mov edx, dword [esp + 0x58]
mov edi, 0x1dfd
mov ebx, dword [esp + 0x54]
mov dword [0x100fdd28], eax
movzx eax, byte [ecx + esi]
sub eax, dword [esp + 0x14]
mov dword [edx + ecx*4 + 0x70], eax
mov al, byte [0x100fdd02]
dec al
movzx ecx, al
mov byte [0x100fdd02], al
mov eax, dword [edi]
mov dword [esp + 0x20], ecx
movzx eax, word [eax*8 + 0x1e5b]
cmp ecx, eax
jae 0x1000bf25
mov eax, dword [esp + 0x44]
mov ebp, ecx
shl ebp, 4
add ebp, dword [esp + 0x50]
movzx esi, bx
lea eax, [eax + ecx*4]
add eax, 0x98
mov dword [esp + 0x24], eax
mov eax, dword [0x100fdd14]
xor edx, edx
div ecx
mov edx, dword [esp + 0x10]
sub eax, dword [0x100fdd14]
mov dword [0x100fdd14], eax
mov eax, dword [edi]
movzx eax, word [edx + eax*2 + 0x1e]
xor edx, edx
xor eax, ecx
add dword [esi*4 + 0x1dfd], eax
movzx ecx, byte [0x100fdd02]
mov eax, dword [esp + 0x18]
movzx eax, byte [ecx + eax + 0x17]
imul eax, eax, 0x100f
xor eax, dword [0x100fdd08]
div dword [ecx*4]
xor edx, edx
mov dword [ecx*4], eax
dec dword [0x100fdd08]
inc ebx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
mov eax, dword [eax]
mov edi, dword [eax*4 + 0x1dfd]
movzx eax, bx
mov dword [esp + 0x54], eax
movzx eax, byte [ecx + eax + 0x27]
div dword [ebp]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x5c]
mov esi, eax
mov eax, dword [0x100fdd30]
inc eax
mov edx, dword [edx]
mov dword [0x100fdd30], eax
mov ecx, dword [ecx + eax*4]
mov eax, dword [0x100fdd48]
or ecx, eax
dec eax
mov dword [0x100fdd48], eax
mov eax, dword [0x100fdd04]
mov eax, dword [eax + 0x6250]
or eax, dword [esp + 0x54]
push eax
push dword [esp + 0x58]
mov eax, dword [esp + 0x28]
push ecx
push edx
push 0x62a
push 0xfaf
push 0
or eax, 0x120d
push eax
push esi
push dword [0x100fdd3c]
push edi
call fcn.1000ac68
mov esi, dword [esp + 0x80]
lea ebp, [ebp + 0x10]
mov dword [0x100fdd14], eax
mov edi, 0x1dfd
imul eax, esi, 0xc
add esp, 0x2c
mov ecx, dword [esp + 0x20]
add dword [esp + 0x24], 4
mov eax, dword [eax + 0x28c]
cdq
idiv dword [esp + 0x1c]
mov eax, edx
xor edx, edx
div dword [0x100fdd0c]
inc ecx
mov dword [0x100fdd0c], eax
mov eax, dword [edi]
mov dword [esp + 0x20], ecx
movzx eax, word [eax*8 + 0x1e5b]
cmp ecx, eax
jl 0x1000bdf4
mov eax, dword [0x100fdd30]
mov ebp, dword [esp + 0x5c]
dec eax
mov edi, dword [0x100fdd24]
mov dword [0x100fdd30], eax
imul eax, eax, 0xc
mov eax, dword [eax + ebp]
cmp eax, dword [0x100fdd3c]
jne 0x1000bf70
mov dx, word [0x100fdd38]
movzx eax, dx
cmp edi, eax
je 0x1000bf70
mov ecx, dword [esp + 0x2c]
inc ebx
mov eax, dword [0x100fdd2c]
movzx esi, bx
cmp eax, dword [ecx + esi*4 + 0xa0]
jb 0x1000c06f
mov al, byte [0x100fdd02]
mov edx, 0x1dfd
dec al
mov ecx, dword [esp + 0x30]
mov byte [0x100fdd02], al
movzx esi, al
imul eax, esi, 3
movzx ecx, byte [eax + ecx]
mov eax, dword [edx]
xor edx, edx
movzx eax, word [eax*8 + 0x1e5b]
div ecx
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x58]
imul ecx, dword [ecx], 0xc
add eax, dword [ecx + edx]
xor edx, edx
mov ecx, dword [esp + 0x10]
or edi, eax
movzx eax, word [0x100fdd44]
imul eax, eax, 0xc
mov dword [0x100fdd24], edi
mov edi, 0x1df9
movzx ecx, byte [esi + ecx]
mov dword [esp + 0x34], edi
mov eax, dword [eax + 0xf9]
add eax, dword [0x100fdd20]
div ecx
mov eax, dword [esp + 0x18]
xor edx, 0x1e11
movzx ecx, byte [esi + eax]
mov eax, edx
xor edx, edx
div ecx
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov byte [esi + edx], al
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x58]
movzx esi, bx
mov eax, dword [eax]
movzx ecx, byte [ecx + eax*4]
movzx eax, word [0x100fdd44]
xor ecx, 0x1a83
imul eax, eax, 0xc
mov dword [eax + ebp], ecx
movzx ecx, byte [0x100fdd03]
imul eax, esi, 0xc
xor ecx, dword [eax + edx]
xor edx, edx
imul ecx, dword [eax + ebp]
mov eax, dword [esp + 0x1c]
mov dword [eax*4 + 0xf9], ecx
mov ecx, 0xf65
mov eax, dword [0x100fdd30]
inc eax
mov dword [0x100fdd30], eax
div ecx
push dword [0x100fdd20]
push eax
call fcn.10009716
pop ecx
mov dword [esi*4], eax
mov dx, word [0x100fdd38]
pop ecx
jmp 0x1000c074
mov edi, 0x1dfd
mov eax, dword [0x100fdd20]
inc eax
movzx ecx, word [0x100fdd50]
mov dword [0x100fdd20], eax
xor eax, 0xdb1
dec dword [0x100fdd28]
mov dword [esp + 0x40], eax
imul eax, esi, 0xc
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x54], 0xe68
mov eax, dword [eax + esi]
mov esi, 0x672
sub eax, ecx
mov dword [esp + 0x44], eax
mov eax, 0xffff
add dx, ax
lea eax, [ebx - 1]
mov ebx, dword [esp + 0x10]
movzx ecx, ax
mov word [0x100fdd38], dx
add ecx, ecx
movzx eax, dx
xor edx, edx
movzx eax, byte [eax + ebx]
imul eax, dword [edi + ecx*8]
mov ecx, dword [0x100fdd08]
mov dword [esp + 0x48], eax
mov eax, ecx
div esi
inc ecx
mov dword [0x100fdd08], ecx
mov ecx, dword [edi]
mov dword [esp + 0x58], eax
mov eax, dword [edi + ecx*4]
cdq
idiv dword [ecx*4 + 0x28c]
mov cl, byte [0x100fdd03]
movzx edi, byte [0x100fdd02]
mov ebp, edx
xor edx, edx
movzx eax, cl
div edi
movzx ebx, byte [edi + ebx]
mov edx, dword [esp + 0x2c]
mov esi, eax
add ebx, 0x18fb
inc cl
mov byte [0x100fdd03], cl
mov ecx, dword [esp + 0x1c]
mov eax, ecx
add eax, eax
mov eax, dword [edx + eax*8]
xor edx, edx
div dword [esp + 0x54]
imul eax, edi, 0xc
mov edi, dword [esp + 0x5c]
mov eax, dword [eax + edi]
xor eax, 0x822
push eax
push edx
push esi
push ebx
push ebp
push dword [esp + 0x6c]
push ecx
push dword [esp + 0x64]
push dword [esp + 0x64]
push dword [0x100fdd28]
push dword [esp + 0x68]
call fcn.1000ac68
mov edx, dword [esp + 0x60]
mov ecx, dword [edx]
mov edx, dword [esp + 0x5c]
mov byte [edx + ecx], al
movzx eax, word [0x100fdd38]
push dword [edi + eax*4]
push 0xb06
call fcn.10009716
movzx eax, word [0x100fdd00]
add esp, 0x34
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret