Function at 0x10002874
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
mov cl, byte [0x110103e1]
push ebx
push ebp
mov ebp, dword [esp + 0x48]
mov ebx, dword [0x11010410]
movzx eax, cl
dec cl
push esi
push edi
mov edi, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
mov dword [esp + 0x1c], ebx
movzx eax, word [edi + eax*8]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
mov byte [0x110103e1], cl
mov ecx, dword [0x11010404]
movzx eax, byte [eax + ebp*4]
mov dword [esp + 0x30], eax
mov eax, dword [0x110103ec]
mov dword [esp + 0x28], eax
sub eax, ebp
inc ebp
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], ebp
mov ax, word [edi + ebp*2]
xor ax, bx
inc ecx
movzx esi, ax
mov eax, dword [0x11010428]
mov dword [0x11010404], ecx
movzx eax, word [eax + ecx*2]
mov ecx, dword [0x110103f4]
mov dword [esp + 0x20], eax
mov eax, dword [edx + 0x5b2c]
add dword [0x1101040c], 2
mov dword [esp + 0x48], eax
mov eax, dword [0x11010400]
and eax, 0x1fa
dec ebp
mov dword [esp + 0x18], eax
dec ecx
mov eax, dword [0x110103fc]
mov dword [0x110103f4], ecx
mov dword [esp + 0x50], ebp
movzx ebp, word [edi + ebp*2]
imul ebp, dword [eax + ecx*4]
mov edi, dword [0x1101042c]
mov ecx, dword [esp + 0x50]
inc edi
mov dword [0x1101042c], edi
mov dword [esp + 0x24], ebp
mov eax, dword [edx + ecx*4]
mov edx, esi
mov esi, dword [esp + 0x48]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x44], edx
movzx eax, byte [eax + ecx + 8]
mov dword [esp + 0x4c], eax
cmp eax, edx
jb 0x100029ea
mov edi, dword [esp + 0x18]
mov ebp, ecx
and edi, 0x195e
mov eax, dword [0x11010404]
xor edx, edx
mov ecx, dword [esp + 0x1c]
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 [0x110103f4]
mov eax, dword [0x110103fc]
mov ax, word [eax + ecx*4 + 0x20]
dec ecx
mov word [0x11010418], ax
mov eax, dword [esp + 0x20]
mov dword [0x110103f4], ecx
movzx ecx, byte [eax + 0x1e7]
mov eax, 0x4ee
div ecx
add dword [esi + ebp*4], eax
mov eax, dword [esp + 0x4c]
mov ebx, dword [0x11010410]
inc eax
mov dword [esp + 0x4c], eax
cmp eax, dword [esp + 0x44]
jge 0x10002973
mov edx, dword [0x110103ec]
mov edi, dword [0x1101042c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x50]
jmp 0x100029ee
mov edx, dword [esp + 0x28]
imul eax, ecx, 0x12c6
add edi, edi
mov ecx, dword [esp + 0x3c]
sub eax, ebx
mov ebx, dword [esp + 0x30]
add eax, 0x10c7
mov dword [0x11010410], eax
mov eax, dword [0x11010414]
movzx ecx, byte [eax + ecx]
mov eax, dword [0x1101041c]
mov eax, dword [eax + edi*8 + 0x14]
add eax, ecx
mov ecx, dword [esp + 0x2c]
sub eax, dword [ecx + edx*4 + 0x18]
mov dword [ecx + edx*4 + 0x18], eax
mov edx, dword [0x11010414]
mov eax, dword [0x110103e8]
add edx, 2
movzx ecx, byte [0x110103e0]
add edx, edx
cmp ecx, dword [eax + edx*8]
jbe 0x10002a86
mov al, byte [0x110103e1]
mov edx, dword [esp + 0x3c]
inc al
mov byte [0x110103e1], al
movzx ecx, al
mov eax, dword [0x110103ec]
movzx eax, byte [eax + edx]
mov edx, dword [esp + 0x34]
cmp ax, word [edx + ecx*2 + 0x42]
jae 0x10002a86
inc dword [ebp]
mov ecx, dword [ebp]
mov eax, dword [esp + 0x40]
mov edx, dword [ebx - 4]
movzx eax, word [eax + ecx*2 + 0xc]
imul eax, dword [esi + edx*4]
mov dword [esi + 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, 0x28
ret