Function at 0x10002529
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
mov eax, dword [0x10280c30]
mov cl, byte [0x10280c04]
mov dword [esp + 0xc], eax
mov eax, dword [0x10280c24]
mov byte [esp + 3], cl
mov ecx, dword [esp + 0x38]
push ebx
push ebp
push esi
push edi
mov edi, dword [0x10280c3c]
mov ebp, dword [edi + eax*4 + 0x40]
mov eax, dword [0x10280c34]
movzx eax, word [ecx + eax*2 + 0x1a]
mov ecx, 0xffff
mov dword [esp + 0x28], eax
mov ax, word [0x10280c18]
add ax, cx
mov ecx, dword [esp + 0x60]
mov word [0x10280c18], ax
movzx esi, ax
mov eax, esi
imul eax, dword [0x10280c10]
inc dword [0x10280c14]
dec ecx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x14], eax
mov eax, dword [0x10280c40]
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 [0x10280c28]
dec eax
mov dword [0x10280c28], eax
div dword [0x10280c44]
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, 0x19d3
imul edx, eax
dec eax
mov dword [esp + 0x50], eax
movzx ecx, word [ecx]
mov dword [esi + ecx*4], edx
mov esi, dword [0x10280c24]
mov eax, dword [0x10280c14]
dec esi
mov ecx, dword [esp + 0x14]
mov dl, byte [esp + 0x13]
mov dword [0x10280c24], 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 [0x10280c48]
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 [0x10280c0c]
and eax, dword [ebp + ecx*8]
movzx ecx, word [0x10280c38]
add eax, ecx
xor edx, edx
div dword [0x10280c30]
mov ecx, dword [esp + 0x44]
mov dword [0x10280c30], eax
mov eax, 0x19d3
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 0x1000288a
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 [0x10280c3c]
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 [0x10280c34]
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 [0x10280c34], 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, 0x19d3
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 [0x10280c1c]
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 0x10002865
mov eax, dword [0x10280c24]
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 [0x10280c24]
mov eax, dword [esp + 0x60]
inc esi
xor eax, 0x1ed5
mov dword [0x10280c24], esi
cdq
movzx ecx, word [esi + esi + 0x19d3]
idiv ecx
mov word [esi*2 + 0x19d3], ax
mov ecx, dword [0x10280c48]
mov eax, dword [0x10280c0c]
movzx ebp, word [ecx + eax*2]
movzx eax, word [0x10280c38]
mov ecx, dword [esp + 0x28]
sub ebp, eax
mov eax, dword [0x10280c44]
mov dword [esp + 0x2c], ebp
mov ebp, dword [esp + 0x14]
mov ebx, dword [ecx + eax*4]
mov eax, dword [0x10280c40]
movzx edi, byte [eax + 0x503]
mov eax, 0x30a3
movzx eax, word [eax]
cdq
idiv dword [esp + 0x58]
mov eax, 0x19d3
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.10003cb9
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 0x10002763
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 0x100026bd
pop edi
pop esi
pop ebp
mov eax, 0x5ab
pop ebx
add esp, 0x24
ret