Function at 0x10002506
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
mov eax, dword [0x11010410]
mov cl, byte [0x110103e4]
mov dword [esp + 0xc], eax
mov eax, dword [0x11010404]
mov byte [esp + 3], cl
mov ecx, dword [esp + 0x38]
push ebx
push ebp
push esi
push edi
mov edi, dword [0x1101041c]
mov ebp, dword [edi + eax*4 + 0x40]
mov eax, dword [0x11010414]
movzx eax, word [ecx + eax*2 + 0x1a]
mov ecx, 0xffff
mov dword [esp + 0x28], eax
mov ax, word [0x110103f8]
add ax, cx
mov ecx, dword [esp + 0x60]
mov word [0x110103f8], ax
movzx esi, ax
mov eax, esi
imul eax, dword [0x110103f0]
inc dword [0x110103f4]
dec ecx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x14], eax
mov eax, dword [0x11010420]
movzx eax, byte [eax + ecx*2]
cdq
idiv dword [esp + 0x50]
xor edx, edx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x48], eax
mov eax, dword [0x11010408]
dec eax
mov dword [0x11010408], eax
div dword [0x11010424]
mov edx, dword [ecx + 0x47e8]
mov ecx, dword [esp + 0x60]
mov ebx, eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x18], edx
mov edi, dword [edi + eax*4 + 0xa0]
add dword [edx + ecx*4], esi
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov ecx, dword [edi]
sub edi, 4
mov dword [esp + 0x20], edi
movzx edx, word [edx + ecx*4 + 0x48]
mov ecx, 0x50f
imul edx, eax
dec eax
mov dword [esp + 0x50], eax
movzx ecx, word [ecx]
mov dword [esi + ecx*4], edx
mov esi, dword [0x11010404]
mov eax, dword [0x110103f4]
dec esi
mov ecx, dword [esp + 0x14]
mov dl, byte [esp + 0x13]
mov dword [0x11010404], esi
movzx ecx, word [ecx + eax*2]
sub ecx, ebx
movzx eax, dl
add ecx, eax
mov eax, dword [esp + 0x44]
movzx eax, byte [esi + eax]
or ecx, eax
mov eax, dword [0x11010428]
and ebx, ecx
mov ecx, dword [esp + 0x50]
dec dl
mov byte [esp + 0x13], dl
movzx eax, word [eax + ecx*2 + 0x24]
mov ecx, dword [0x110103ec]
and eax, dword [ebp + ecx*8]
movzx ecx, word [0x11010418]
add eax, ecx
xor edx, edx
div dword [0x11010410]
mov ecx, dword [esp + 0x44]
mov dword [0x11010410], eax
mov eax, 0x50f
mov word [esi*2 + 0x1ec3], bx
movzx eax, word [eax]
movzx ebx, byte [eax + ecx]
mov eax, dword [edi]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x58], ebx
cmp ebx, dword [ecx + eax*8 + 0x58]
jne 0x10002867
mov edi, dword [esp + 0x3c]
imul ecx, dword [esp + 0x60], 0xc
add edi, 0x1b
mov esi, dword [esp + 0x50]
add edi, ebx
imul ebp, ebx, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x30], ecx
add ebp, dword [esp + 0x48]
mov dword [esp + 0x3c], ebp
mov eax, dword [0x1101041c]
inc esi
mov edx, dword [esp + 0x38]
mov dword [esp + 0x50], esi
mov eax, dword [eax + esi*4]
add eax, dword [ecx + edx]
xor edx, edx
movzx ecx, byte [esp + 0x13]
div ecx
mov esi, dword [0x11010414]
xor edx, edx
movzx ecx, byte [ebp]
mov byte [esp + 0x13], al
movzx eax, word [esi + esi + 0x1ef9]
div ecx
xor edx, edx
mov ecx, 0x573
add esi, eax
mov eax, dword [esp + 0x40]
mov dword [0x11010414], esi
mov esi, dword [esp + 0x50]
imul eax, esi
sub eax, ebx
div ecx
mov ecx, dword [esp + 0x48]
xor edx, edx
movzx ecx, byte [ecx + esi*2]
div ecx
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x18]
mov byte [ecx + esi*2], al
mov eax, 0x50f
mov ecx, ebx
inc word [eax]
mov ax, word [eax]
movzx eax, ax
sub ecx, dword [edx + eax*8]
mov edx, dword [esp + 0x20]
xor ecx, ebx
mov eax, dword [edx]
sub ecx, dword [edx + eax*8]
mov eax, dword [0x110103fc]
mov dword [eax + ebx*4], ecx
mov eax, dword [esp + 0x48]
movzx ecx, byte [eax + esi]
mov dword [esp + 0x60], ecx
cmp ecx, ebx
jg 0x10002842
mov eax, dword [0x11010404]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x44]
sub cl, byte [eax*2 + 0x1ec3]
xor cl, byte [edx + eax*2]
mov dl, byte [esp + 0x13]
movzx eax, dl
inc dl
mov byte [esp + 0x13], dl
mov byte [eax + ebx], cl
mov esi, dword [0x11010404]
mov eax, dword [esp + 0x60]
inc esi
xor eax, 0x1ed5
mov dword [0x11010404], esi
cdq
movzx ecx, word [esi + esi + 0x50f]
idiv ecx
mov word [esi*2 + 0x50f], ax
mov ecx, dword [0x11010428]
mov eax, dword [0x110103ec]
movzx ebp, word [ecx + eax*2]
movzx eax, word [0x11010418]
mov ecx, dword [esp + 0x28]
sub ebp, eax
mov eax, dword [0x11010424]
mov dword [esp + 0x2c], ebp
mov ebp, dword [esp + 0x14]
mov ebx, dword [ecx + eax*4]
mov eax, dword [0x11010420]
movzx edi, byte [eax + 0x13e2]
mov eax, 0x30a3
movzx eax, word [eax]
cdq
idiv dword [esp + 0x58]
mov eax, 0x50f
movzx ecx, word [eax]
mov eax, dword [esp + 0x1c]
movzx esi, word [eax + ecx*4]
mov eax, dword [esp + 0x40]
movzx eax, word [ebp + eax*2]
mov ebp, dword [esp + 0x2c]
xor esi, eax
mov eax, dword [esp + 0x54]
inc dword [esp + 0x40]
push dword [eax + ecx*8]
mov eax, dword [esp + 0x64]
push esi
push edx
push eax
push edi
push eax
push ebx
push eax
push 0xa1
push ebp
call fcn.10003cb0
mov ecx, dword [esp + 0x88]
add esp, 0x28
mov edi, dword [esp + 0x24]
inc ecx
mov ebx, dword [esp + 0x58]
mov dword [esp + 0x60], ecx
mov byte [edi], al
cmp ecx, ebx
jle 0x10002740
mov ebp, dword [esp + 0x3c]
mov esi, dword [esp + 0x50]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x54]
inc ebx
mov eax, dword [edx]
add ebp, 3
inc edi
mov dword [esp + 0x58], ebx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x24], edi
cmp ebx, dword [ecx + eax*8 + 0x58]
mov ecx, dword [esp + 0x30]
je 0x1000269a
pop edi
pop esi
pop ebp
mov eax, 0x5ab
pop ebx
add esp, 0x24
ret