Function at 0x10002897
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
mov cl, byte [0x10280c01]
push ebx
push ebp
mov ebp, dword [esp + 0x44]
mov ebx, dword [0x10280c30]
movzx eax, cl
dec cl
push esi
push edi
mov edi, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x18], ebx
movzx eax, word [edi + eax*8]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x38]
mov byte [0x10280c01], cl
mov ecx, dword [0x10280c24]
movzx eax, byte [eax + ebp*4]
mov dword [esp + 0x2c], eax
mov eax, dword [0x10280c0c]
mov dword [esp + 0x24], eax
sub eax, ebp
mov dword [esp + 0x14], eax
inc ebp
mov dword [esp + 0x28], ebp
mov ax, word [edi + ebp*2]
xor ax, bx
inc ecx
movzx esi, ax
mov eax, dword [0x10280c48]
mov dword [0x10280c24], ecx
movzx eax, word [eax + ecx*2]
mov ecx, dword [0x10280c14]
mov dword [esp + 0x1c], eax
mov eax, dword [edx + 0x5b2c]
add dword [0x10280c2c], 2
mov dword [esp + 0x4c], eax
mov eax, dword [0x10280c20]
and eax, 0x1fa
dec ebp
mov dword [esp + 0x44], eax
dec ecx
mov eax, dword [0x10280c1c]
mov dword [0x10280c14], ecx
movzx edi, word [edi + ebp*2]
imul edi, dword [eax + ecx*4]
mov ecx, dword [0x10280c4c]
inc ecx
mov dword [0x10280c4c], ecx
mov eax, dword [edx + ebp*4]
mov edx, esi
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x20], edi
mov dword [esp + 0x40], edx
movzx eax, byte [eax + ebp + 8]
mov dword [esp + 0x48], eax
cmp eax, edx
jb 0x100029ff
mov edi, dword [esp + 0x44]
mov esi, dword [esp + 0x4c]
and edi, 0x1823
mov eax, dword [0x10280c24]
xor edx, edx
mov ecx, dword [esp + 0x18]
lea ecx, [ecx + eax*4]
mov eax, edi
xor eax, ebx
div dword [ecx + 0x68]
mov dword [ecx + 0x68], edx
xor edx, edx
mov ecx, dword [0x10280c14]
mov eax, dword [0x10280c1c]
mov ax, word [eax + ecx*4 + 0x20]
dec ecx
mov word [0x10280c38], ax
mov eax, dword [esp + 0x1c]
mov dword [0x10280c14], ecx
movzx ecx, byte [eax + 0x1e7]
mov eax, 0x1ac3
div ecx
add dword [esi + ebp*4], eax
mov eax, dword [esp + 0x48]
mov ebx, dword [0x10280c30]
inc eax
mov dword [esp + 0x48], eax
cmp eax, dword [esp + 0x40]
jge 0x1000298c
mov esi, dword [0x10280c0c]
mov ecx, dword [0x10280c4c]
mov edi, dword [esp + 0x20]
jmp 0x10002a03
mov esi, dword [esp + 0x24]
imul eax, ebp, 0x12c6
lea edx, [ecx + 1]
mov ebp, dword [esp + 0x38]
add edx, edx
sub eax, ebx
mov ebx, dword [esp + 0x2c]
add eax, 0x10c7
mov dword [0x10280c30], eax
mov eax, dword [0x10280c34]
movzx ecx, byte [eax + ebp]
mov eax, dword [0x10280c3c]
mov eax, dword [eax + edx*8]
add eax, ecx
mov ecx, dword [esp + 0x28]
sub eax, dword [ecx + esi*4 + 0x1c]
mov dword [ecx + esi*4 + 0x1c], eax
mov edx, dword [0x10280c34]
mov eax, dword [0x10280c08]
add edx, 2
movzx ecx, byte [0x10280c00]
add edx, edx
cmp ecx, dword [eax + edx*8]
jbe 0x10002a9b
mov al, byte [0x10280c01]
mov edx, dword [esp + 0x30]
inc al
mov byte [0x10280c01], al
movzx ecx, al
mov eax, dword [0x10280c0c]
movzx eax, byte [eax + ebp]
cmp ax, word [edx + ecx*2 + 0x48]
jae 0x10002a9b
inc dword [edi]
mov ecx, dword [edi]
mov eax, dword [esp + 0x3c]
mov edx, dword [ebx - 4]
movzx eax, word [eax + ecx*2 + 6]
mov ecx, dword [esp + 0x4c]
imul eax, dword [ecx + edx*4]
mov dword [ecx + edx*4], eax
mov eax, dword [esp + 0x10]
pop edi
pop esi
movzx eax, ax
xor eax, dword [esp + 0xc]
pop ebp
pop ebx
add esp, 0x24
ret