Function at 0x1000a836
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x2c
add dword [esp + 0x54], 4
mov ecx, 0x1569
mov eax, dword [0x10074b4c]
mov dl, byte [esp + 0x3c]
mov dword [esp + 0x28], eax
mov eax, dword [0x10074b6c]
sub ecx, eax
inc eax
mov dword [esp + 0x18], ecx
mov dword [0x10074b6c], eax
push ebx
mov ebx, dword [0x10074b70]
push ebp
movzx eax, dl
mov dword [esp + 0xc], eax
push esi
mov esi, dword [0x10074b80]
push edi
mov edi, dword [0x10074b90]
mov ebp, dword [0x10074ba4]
mov ecx, dword [esi + 0x35b8]
sub ecx, eax
mov eax, 0xffff
add word [0x10074b88], ax
mov eax, dword [0x10074b68]
mov dword [esp + 0x24], eax
dec eax
mov dword [esp + 0x30], ecx
mov ecx, dword [0x10074b94]
inc ecx
mov dword [0x10074b68], eax
inc dl
mov dword [esp + 0x10], ecx
mov byte [esp + 0x4c], dl
mov eax, 0x16a7
cdq
idiv ebx
mov eax, 0xb8
mov dword [0x10074b94], ecx
mov dword [esp + 0x34], edx
dec ebx
xor edx, edx
mov ecx, dword [esp + 0x44]
div dword [0x10074b60]
inc dword [0x10074ba0]
imul eax, edi, 0xc
mov dword [0x10074b70], ebx
mov dword [0x10074b60], edx
mov edx, dword [esp + 0x40]
mov cl, byte [eax + ecx + 0x14]
mov eax, dword [esp + 0x58]
add cl, bl
mov ebx, dword [esp + 0x10]
movzx eax, al
imul eax, eax, 0x73
xor cl, al
movzx eax, dl
movzx ecx, cl
imul ecx, eax
inc bl
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ecx
movzx ecx, bl
cmp ebp, dword [eax + ecx*4]
jb 0x1000a9f8
movzx eax, byte [esp + 0x4c]
mov esi, ecx
mov edi, dword [esp + 0x64]
mov dword [esp + 0x20], eax
mov eax, edx
shl eax, 2
mov dword [esp + 0x2c], eax
mov eax, dword [0x10074b64]
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x2c]
movzx ecx, word [eax + ebp*2]
mov eax, dword [esp + 0x20]
mov eax, dword [edx + eax*4]
imul eax, ebp
cdq
idiv ecx
mov ecx, dword [esp + 0x28]
cdq
idiv dword [esp + 0x58]
mov eax, dword [esp + 0x24]
add word [eax + esi*2 + 0x10], dx
mov eax, dword [0x10074b68]
mov edx, dword [0x10074ba8]
inc eax
imul esi, eax, 0xc
mov eax, dword [edi]
lea edi, [edi + 4]
movzx ecx, word [ecx + eax*2]
mov eax, dword [0x10074b80]
add ecx, dword [ebx + eax]
mov eax, dword [esp + 0x60]
mov ebx, dword [esp + 0x50]
add ecx, dword [eax + 0xfd4]
add dword [esi + edx], ecx
xor edx, edx
mov ecx, dword [0x10074b4c]
mov eax, dword [0x10074b9c]
xor eax, ecx
add eax, 0xb1a
div dword [ebx + ebp*4]
mov ebx, dword [esp + 0x10]
dec ecx
inc ebp
mov byte [esp + 0x18], al
mov eax, dword [esp + 0x14]
inc bl
movzx esi, bl
mov dword [0x10074b4c], ecx
mov dword [esp + 0x10], ebx
cmp ebp, dword [eax + esi*4]
jae 0x1000a94a
mov esi, dword [0x10074b80]
mov edi, dword [0x10074b90]
mov edx, dword [esp + 0x40]
mov ecx, dword [0x10074bac]
mov eax, dword [esp + 0x30]
inc ecx
mov ebx, dword [esp + 0x34]
mov dword [0x10074bac], ecx
mov ebp, dword [esp + 0x14]
mov ecx, dword [esi + ecx*4]
mov dword [eax + edi*4], ecx
mov esi, dword [0x10074b48]
mov ecx, esi
mov al, byte [esp + 0x4c]
add ecx, ecx
inc al
movzx edi, al
mov eax, edx
cdq
idiv dword [ebx + ecx*8 + 8]
mov eax, dword [0x10074b50]
mov ecx, dword [esp + 0x5c]
mov ebx, edx
xor edx, edx
add bl, byte [eax + edi*4]
xor bl, byte [ebp + esi*4 + 0x20]
inc esi
mov eax, dword [0x10074b68]
dec eax
mov dword [0x10074b48], esi
mov dword [0x10074b68], eax
mov eax, dword [ecx + eax*4 + 0x18]
div dword [ebp + esi*4]
movzx eax, bl
lea esi, [ecx + edi*4]
add word [0x10074b88], dx
xor edx, edx
div edi
mov ecx, dword [esp + 0x10]
movzx edx, cl
mov ecx, dword [esp + 0x48]
pop edi
movzx ecx, byte [edx + ecx + 1]
add eax, ecx
cdq
idiv dword [esi + 0x10]
mov edx, dword [esp + 0x34]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x14]
movzx ecx, al
mov eax, dword [0x10074b64]
mov edx, dword [edx]
pop esi
pop ebp
movzx eax, word [eax + ecx*4]
mov ecx, dword [esp + 0x54]
pop ebx
sub eax, dword [ecx + edx*4 + 0x18]
mov dword [ecx + edx*4 + 0x18], eax
mov ecx, dword [0x10074b60]
mov eax, dword [0x10074b78]
dec ecx
mov dword [0x10074b60], ecx
xor eax, ecx
add esp, 0x2c
ret