Function at 0x1000caa0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x2c
movzx ecx, byte [0x1005340a]
mov eax, dword [0x100533e4]
mov edx, dword [esp + 0x44]
push ebx
push ebp
movzx eax, word [eax + ecx*4]
mov dword [esp + 0x10], eax
mov eax, dword [0x10053404]
mov ebp, dword [esp + 0x3c]
inc eax
mov dword [0x10053404], eax
movzx ecx, dx
inc edx
and ecx, eax
mov dword [esp + 0x4c], 0x1067
movzx eax, byte [0x100533fe]
and ax, bp
mov dword [esp + 0x18], ecx
movzx eax, ax
mov dword [esp + 0xc], eax
mov eax, dword [0x10053430]
push esi
mov si, word [0x100533fc]
push edi
mov edi, dword [esp + 0x60]
mov ecx, dword [edi]
mov eax, dword [eax + ecx*4]
or eax, dword [0x100533ec]
mov dword [esp + 0x28], eax
movzx eax, dx
xor edx, edx
mov ebx, dword [edi + eax*4]
lea eax, [edi + eax*4]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x64]
movzx ecx, si
mov eax, dword [eax + 0x59d8]
xor eax, dword [0x10053420]
mov dword [esp + 0x60], eax
mov eax, 0x1ce7
div ecx
lea ecx, [ebp*2]
mov eax, 0xffff
add si, ax
mov dword [esp + 0x30], edx
add ecx, ebp
mov word [0x100533fc], si
shl ecx, 2
mov eax, 0x10624dd3
mov ebp, dword [esp + 0x60]
mov dword [esp + 0x38], ecx
mul dword [ecx + edi]
imul eax, dword [0x100533d8], 0x10d4
mov edi, dword [esp + 0x50]
mov ecx, edx
mov edx, dword [esp + 0x20]
shr ecx, 4
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
movzx esi, ax
mov dword [esp + 0x24], esi
lea eax, [esi - 1]
imul eax, ebx
add eax, dword [edi + 0x3ea8]
mov dword [edx + 4], eax
lea eax, [esi*4]
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x2c], eax
mov eax, dword [0x100533f4]
mov eax, dword [edx + eax*4]
and dword [ebp + esi*4], eax
mov eax, dword [0x10053444]
dec dword [0x100533f4]
movzx eax, word [eax + esi*2]
sub dword [esp + 0x54], eax
mov eax, dword [edx + 0x2cc8]
xor edx, edx
div ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
movzx ecx, ax
add ecx, ecx
mov eax, ebp
mov ebp, dword [esp + 0x44]
mov dword [eax + ecx*8], 0xaf9
lea eax, [esi*4]
mov ecx, dword [eax + edi]
cmp ecx, 0xdfd
jne 0x1000cc2b
mov dx, word [0x10053410]
nop dword [eax]
mov eax, ecx
inc ecx
or eax, dword [0x10053410]
xor dx, ax
mov word [0x10053410], dx
cmp ecx, 0xdfd
je 0x1000cc10
mov eax, dword [0x1005341c]
mov edx, dword [esp + 0x58]
movzx ecx, byte [0x1005340b]
cmp dword [edx + eax*4], ecx
jle 0x1000cc4c
cmp dword [0x100533dc], 0x60f
ja 0x1000cc75
cmp dword [esp + 0x54], ebp
je 0x1000cc75
movzx eax, word [0x10053450]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], eax
mov eax, ebp
shl eax, 4
add ecx, eax
mov eax, dword [ecx]
imul eax, esi
imul eax, eax, 0x1829
mov dword [ecx], eax
mov ecx, dword [esp + 0x10]
mov eax, 0x1a2dbe6b
mul ecx
mov eax, ecx
dec ecx
sub eax, edx
mov dword [esp + 0x10], ecx
shr eax, 1
add eax, edx
xor edx, edx
shr eax, 0xc
sub eax, dword [esp + 0x1c]
div dword [esp + 0x28]
xor edx, edx
mov esi, eax
mov eax, 1
mov word [0x100533fc], ax
mov eax, 0x1a35
div dword [esp + 0x54]
imul ecx, eax, 0x1b20
mov eax, ebp
or eax, 1
sub eax, dword [esp + 0x24]
sub ecx, dword [esp + 0x5c]
mov dword [0x10053400], ecx
mov ecx, dword [esp + 0x58]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x54]
or eax, 0xef1
or dword [0x100533ec], eax
mov ax, word [0x1005343c]
movzx edx, ax
inc ax
imul edx, esi
mov word [0x1005343c], ax
mov dword [esp + 0x44], edx
cmp ebx, 0x1a27
jae 0x1000cd36
cmp dword [esp + 0x1c], 0x16df
ja 0x1000cd36
mov eax, 0x1f3a
cmp word [esp + 0x18], ax
jne 0x1000cd36
mov eax, 0x9f7
or word [0x10053408], ax
mov eax, 1
sub eax, dword [0x10053410]
mov word [0x10053410], ax
jmp 0x1000cd4b
mov edx, dword [esp + 0x54]
or eax, 0xffffffff
sub eax, ebx
add edx, 0xc29
mov ebx, eax
mov dword [esp + 0x44], edx
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x54], eax
ja 0x1000ce6c
mov edi, dword [esp + 0x14]
movzx esi, di
mov edi, dword [esp + 0x50]
cmp esi, 1
jne 0x1000ce6c
cmp dword [ecx + 4], edx
jne 0x1000cdbf
mov edx, dword [esp + 0x2c]
or eax, 1
mov esi, dword [esp + 0x30]
mov dword [0x10053424], eax
mov eax, dword [edi + 0x1c38]
mov dword [edx + esi], eax
mov eax, dword [esp + 0x18]
add eax, 0xffff
movzx eax, ax
mov al, byte [edi + eax*4]
xor byte [0x1005340a], al
mov eax, dword [esp + 0x1c]
cmp eax, dword [0x10053424]
jne 0x1000ce50
mov eax, dword [esp + 0x34]
mov dword [eax], 1
jmp 0x1000ce50
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x64]
mov eax, dword [eax + 8]
cmp eax, dword [edx + 4]
jne 0x1000cddb
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0xc]
cmp eax, dword [edi + 4]
ja 0x1000ce50
xor edx, edx
mov ecx, dword [esp + 0x60]
mov eax, esi
div dword [edi + 0x14e4]
push dword [ecx + ebp*8]
and ebp, 0x18be
push dword [esp + 0x60]
push dword [0x10053424]
push eax
push ebp
call fcn.10004390
mov ecx, dword [esp + 0x58]
add esp, 0x14
mov edx, dword [esp + 0x60]
mov dword [edx + ecx*4], eax
cmp esi, 0x13a7
jae 0x1000ce4c
mov eax, dword [0x10053400]
mov edx, 0x13a7
mov ebp, dword [esp + 0x4c]
sub edx, esi
mov esi, dword [esp + 0x24]
nop dword [eax]
mov ecx, dword [ebp + 0x1a24]
and ecx, 1
add ebx, ecx
mov ecx, dword [edi + ebx*4]
add ecx, esi
and eax, ecx
mov dword [0x10053400], eax
sub edx, 1
jne 0x1000ce30
mov ecx, dword [esp + 0x58]
mov eax, dword [0x10053428]
mov edx, dword [esp + 0x38]
pop edi
pop esi
mov eax, dword [ecx + eax*4]
pop ebp
mov dword [edx + ecx], eax
mov eax, 0xdfa
pop ebx
add esp, 0x2c
ret
dec dword [0x100533f8]
jmp 0x1000ce50