Function at 0x10002070
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
mov esi, dword [0x10082404]
mov edx, dword [0x1008240c]
mov eax, esi
imul eax, esi
imul eax, esi
imul eax, esi
lea ebx, [eax + eax*2 + 3]
mov eax, dword [0x10082408]
imul ebx, esi
lea eax, [edx + eax*2]
lea ebp, [eax*4]
sub ebp, eax
mov eax, dword [0x10082408]
neg ebp
sub ebp, ebx
mov ebx, dword [0x10082400]
push edi
mov edi, dword [esp + 0x3c]
add ebp, edi
lea eax, [edi + eax*2]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], eax
mov eax, dword [0x100823fc]
mov ebp, ebx
imul ebp, edx
sub ebp, eax
add ebp, esi
imul ebp, esi
add ebp, eax
lea eax, [edi + ebp*4]
mov dword [esp + 0x24], eax
mov eax, esi
sub eax, edx
imul eax, dword [0x10082408]
lea ebp, [ebx + 1]
imul ebp, ebx
sub eax, ebp
add eax, dword [0x100823fc]
xor ecx, ecx
lea ebp, [edi + eax*2]
add eax, ebp
mov dword [esp + 0x28], eax
lea eax, [esi + 3]
imul eax, edx
lea ebp, [esi + esi*2]
sub ebp, eax
lea eax, [edi + ebp*4]
mov dword [esp + 0x2c], eax
mov eax, dword [0x100823fc]
add eax, eax
sub eax, ebx
sub eax, 2
imul eax, dword [0x10082408]
lea ebp, [edx*4]
sub eax, ebp
add eax, esi
lea ebp, [eax + edi]
mov edi, ebx
imul edi, dword [0x100823fc]
lea edi, [edi + edi*4 - 5]
imul edi, ebx
lea eax, [ebp + eax*4]
add edi, eax
mov dword [esp + 0x34], edi
mov edi, edx
imul edi, esi
add edi, 1
imul edi, ebx
mov eax, edx
sub eax, edi
mov edi, dword [esp + 0x3c]
lea edi, [edi + eax*4]
add eax, edi
mov dword [esp + 0x30], eax
lea eax, [ebx + edx]
mov dword [esp + 0x14], ecx
imul eax, edx
mov dword [esp + 0x18], ecx
lea edx, [eax + eax*2]
mov eax, dword [0x100823fc]
lea eax, [eax + eax*2 - 3]
imul eax, esi
sub eax, edx
mov edx, dword [esp + 0x40]
lea edi, [eax + edx + 1]
mov eax, dword [esp + 0x14]
add eax, 1
xor edx, edx
mov ebp, 0x3dde
div ebp
mov eax, dword [esp + 0x1c]
movzx eax, byte [eax + edx]
add eax, dword [esp + 0x18]
mov dword [esp + 0x14], edx
xor edx, edx
div ebp
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
movzx eax, byte [eax + ebp]
mov byte [esp + 0x13], al
mov eax, dword [esp + 0x24]
mov dword [esp + 0x18], edx
movzx edx, byte [eax + edx]
mov eax, dword [esp + 0x28]
mov byte [eax + ebp], dl
movzx edx, byte [esp + 0x13]
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
mov byte [eax + ebp], dl
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
movzx eax, byte [edx + eax]
mov edx, dword [esp + 0x34]
movzx edx, byte [edx + ebp]
add eax, edx
xor edx, edx
mov ebp, 0x3dde
div ebp
mov eax, dword [esp + 0x3c]
sub edx, ebx
sub edx, dword [0x10082408]
sub edx, esi
add edx, dword [0x100823fc]
movzx edx, byte [edx + eax]
xor byte [edi + ecx - 1], dl
mov eax, dword [esp + 0x14]
add eax, 1
xor edx, edx
div ebp
mov eax, dword [esp + 0x1c]
movzx eax, byte [eax + edx]
add eax, dword [esp + 0x18]
mov dword [esp + 0x14], edx
xor edx, edx
div ebp
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
movzx eax, byte [eax + ebp]
mov byte [esp + 0x13], al
mov eax, dword [esp + 0x24]
mov dword [esp + 0x18], edx
movzx edx, byte [eax + edx]
mov eax, dword [esp + 0x28]
mov byte [eax + ebp], dl
movzx edx, byte [esp + 0x13]
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
mov byte [eax + ebp], dl
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
movzx eax, byte [edx + eax]
mov edx, dword [esp + 0x34]
movzx edx, byte [edx + ebp]
add eax, edx
xor edx, edx
mov ebp, 0x3dde
div ebp
mov eax, dword [esp + 0x3c]
sub edx, ebx
sub edx, dword [0x10082408]
sub edx, esi
add edx, dword [0x100823fc]
movzx edx, byte [edx + eax]
mov eax, dword [esp + 0x14]
xor byte [edi + ecx], dl
add eax, 1
xor edx, edx
div ebp
mov eax, dword [esp + 0x1c]
movzx eax, byte [eax + edx]
add eax, dword [esp + 0x18]
mov dword [esp + 0x14], edx
xor edx, edx
div ebp
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
movzx eax, byte [eax + ebp]
mov byte [esp + 0x13], al
mov eax, dword [esp + 0x24]
mov dword [esp + 0x18], edx
movzx edx, byte [eax + edx]
mov eax, dword [esp + 0x28]
mov byte [eax + ebp], dl
movzx edx, byte [esp + 0x13]
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
mov byte [eax + ebp], dl
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x30]
movzx eax, byte [edx + eax]
mov edx, dword [esp + 0x34]
movzx edx, byte [edx + ebp]
add eax, edx
xor edx, edx
mov ebp, 0x3dde
div ebp
mov eax, dword [esp + 0x3c]
sub edx, ebx
sub edx, dword [0x10082408]
sub edx, esi
add edx, dword [0x100823fc]
movzx edx, byte [edx + eax]
xor byte [edi + ecx + 1], dl
mov eax, dword [esp + 0x14]
add eax, 1
xor edx, edx
div ebp
mov eax, dword [esp + 0x1c]
movzx eax, byte [eax + edx]
add eax, dword [esp + 0x18]
mov dword [esp + 0x14], edx
xor edx, edx
div ebp
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
movzx eax, byte [eax + ebp]
mov byte [esp + 0x13], al
mov eax, dword [esp + 0x24]
mov dword [esp + 0x18], edx
movzx edx, byte [eax + edx]
mov eax, dword [esp + 0x28]
mov byte [eax + ebp], dl
movzx edx, byte [esp + 0x13]
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
mov byte [eax + ebp], dl
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
movzx eax, byte [edx + eax]
mov edx, dword [esp + 0x34]
movzx edx, byte [edx + ebp]
add eax, edx
xor edx, edx
mov ebp, 0x3dde
div ebp
mov eax, dword [esp + 0x3c]
sub edx, ebx
sub edx, dword [0x10082408]
sub edx, esi
add edx, dword [0x100823fc]
movzx edx, byte [edx + eax]
mov eax, dword [esp + 0x14]
xor byte [edi + ecx + 2], dl
add eax, 1
xor edx, edx
div ebp
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x1c]
movzx eax, byte [eax + edx]
add eax, dword [esp + 0x18]
xor edx, edx
div ebp
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
movzx eax, byte [eax + ebp]
mov byte [esp + 0x13], al
mov eax, dword [esp + 0x24]
add ecx, 5
mov dword [esp + 0x18], edx
movzx edx, byte [eax + edx]
mov eax, dword [esp + 0x28]
mov byte [eax + ebp], dl
movzx edx, byte [esp + 0x13]
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
mov byte [eax + ebp], dl
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
movzx eax, byte [edx + eax]
mov edx, dword [esp + 0x34]
movzx edx, byte [edx + ebp]
add eax, edx
xor edx, edx
mov ebp, 0x3dde
div ebp
mov eax, dword [esp + 0x3c]
sub edx, ebx
sub edx, dword [0x10082408]
sub edx, esi
add edx, dword [0x100823fc]
movzx edx, byte [edx + eax]
xor byte [edi + ecx - 2], dl
cmp ecx, 0x22600
jb 0x10002194
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret