Function at 0x100a9820
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
push ebx
push ebp
mov ebp, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov ebx, dword [eax + 0xc]
xor ecx, dword [ebp]
xor edx, dword [ebp + 4]
xor ebx, dword [ebp + 0xc]
mov dword [esp + 0x18], ecx
mov ecx, dword [eax + 8]
mov eax, edx
xor ecx, dword [ebp + 8]
shr eax, 8
mov dword [esp + 8], ecx
movzx ecx, al
mov eax, dword [esp + 8]
shr eax, 0x10
movzx eax, al
mov ebp, dword [esp + 0x1c]
push esi
push edi
mov edi, dword [ecx*4 + 0x101611a8]
xor edi, dword [eax*4 + 0x101615a8]
mov eax, ebx
shr eax, 0x18
mov dword [esp + 0x14], 1
xor edi, dword [eax*4 + 0x101619a8]
mov eax, dword [esp + 0x20]
movzx eax, al
xor edi, dword [eax*4 + 0x10160da8]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, dword [esp + 0x10]
shr eax, 8
movzx eax, al
mov dword [ebp], edi
mov esi, dword [ecx*4 + 0x101615a8]
xor esi, dword [eax*4 + 0x101611a8]
mov eax, dword [esp + 0x20]
shr eax, 0x18
xor esi, dword [eax*4 + 0x101619a8]
movzx eax, dl
xor esi, dword [eax*4 + 0x10160da8]
mov eax, dword [esp + 0x20]
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov dword [ebp + 4], esi
mov ebp, dword [ecx*4 + 0x101615a8]
mov ecx, dword [esp + 0x20]
xor ebp, dword [eax*4 + 0x101611a8]
mov eax, edx
shr eax, 0x18
shr ecx, 8
shr edx, 0x10
movzx ecx, cl
xor ebp, dword [eax*4 + 0x101619a8]
mov eax, dword [esp + 0x10]
movzx eax, al
xor ebp, dword [eax*4 + 0x10160da8]
mov eax, dword [esp + 0x24]
mov dword [eax + 8], ebp
movzx eax, dl
mov eax, dword [eax*4 + 0x101615a8]
xor eax, dword [ecx*4 + 0x101611a8]
mov ecx, dword [esp + 0x10]
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x101619a8]
movzx ecx, bl
xor eax, dword [ecx*4 + 0x10160da8]
mov ecx, dword [esp + 0x24]
mov dword [ecx + 0xc], eax
mov ebx, dword [0x10196d70]
lea ecx, [ebx - 1]
cmp ecx, 1
jle 0x100a9aae
mov ebx, dword [esp + 0x28]
add ebx, 0x18
mov dword [esp + 0x18], ebx
nop dword [eax]
mov ecx, dword [ebx - 8]
mov edx, dword [ebx - 4]
xor ecx, edi
mov dword [esp + 0x20], ecx
xor edx, esi
mov ecx, dword [ebx]
mov ebx, dword [ebx + 4]
xor ecx, ebp
xor ebx, eax
mov dword [esp + 0x10], ecx
mov eax, edx
mov ebp, dword [esp + 0x24]
shr eax, 8
movzx ecx, al
mov eax, dword [esp + 0x10]
shr eax, 0x10
movzx eax, al
mov edi, dword [ecx*4 + 0x101611a8]
xor edi, dword [eax*4 + 0x101615a8]
mov eax, ebx
shr eax, 0x18
xor edi, dword [eax*4 + 0x101619a8]
mov eax, dword [esp + 0x20]
movzx eax, al
xor edi, dword [eax*4 + 0x10160da8]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, dword [esp + 0x10]
shr eax, 8
movzx eax, al
mov dword [ebp], edi
mov esi, dword [ecx*4 + 0x101615a8]
xor esi, dword [eax*4 + 0x101611a8]
mov eax, dword [esp + 0x20]
shr eax, 0x18
xor esi, dword [eax*4 + 0x101619a8]
movzx eax, dl
xor esi, dword [eax*4 + 0x10160da8]
mov eax, dword [esp + 0x20]
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov dword [ebp + 4], esi
mov ebp, dword [ecx*4 + 0x101615a8]
mov ecx, dword [esp + 0x20]
xor ebp, dword [eax*4 + 0x101611a8]
mov eax, edx
shr eax, 0x18
shr ecx, 8
shr edx, 0x10
movzx ecx, cl
xor ebp, dword [eax*4 + 0x101619a8]
mov eax, dword [esp + 0x10]
movzx eax, al
xor ebp, dword [eax*4 + 0x10160da8]
mov eax, dword [esp + 0x24]
mov dword [eax + 8], ebp
movzx eax, dl
mov edx, dword [esp + 0x14]
inc edx
mov dword [esp + 0x14], edx
mov eax, dword [eax*4 + 0x101615a8]
xor eax, dword [ecx*4 + 0x101611a8]
mov ecx, dword [esp + 0x10]
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x101619a8]
movzx ecx, bl
mov ebx, dword [esp + 0x18]
add ebx, 0x10
mov dword [esp + 0x18], ebx
xor eax, dword [ecx*4 + 0x10160da8]
mov ecx, dword [esp + 0x24]
mov dword [ecx + 0xc], eax
mov ecx, dword [0x10196d70]
dec ecx
cmp edx, ecx
jl 0x100a9970
mov ebx, dword [0x10196d70]
mov ecx, dword [esp + 0x28]
shl ebx, 4
mov dword [esp + 0x20], ebx
mov edx, dword [ebx + ecx - 0x10]
mov ebx, dword [ebx + ecx - 0xc]
xor edx, edi
mov edi, dword [esp + 0x24]
xor ebx, esi
mov esi, dword [esp + 0x20]
mov ecx, dword [esi + ecx - 8]
xor ecx, ebp
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x20], ecx
mov ecx, dword [esi + ebp - 4]
xor ecx, eax
movzx eax, dl
movzx eax, byte [eax*4 + 0x10160da9]
mov byte [edi], al
mov eax, ebx
shr eax, 8
movzx eax, al
movzx eax, byte [eax*4 + 0x10160da9]
mov byte [edi + 1], al
mov eax, dword [esp + 0x20]
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax*4 + 0x10160da9]
mov byte [edi + 2], al
mov eax, ecx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x10160da9]
mov byte [edi + 3], al
movzx eax, bl
movzx eax, byte [eax*4 + 0x10160da9]
mov byte [edi + 4], al
mov eax, dword [esp + 0x20]
shr eax, 8
movzx eax, al
movzx eax, byte [eax*4 + 0x10160da9]
mov byte [edi + 5], al
mov eax, ecx
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax*4 + 0x10160da9]
mov byte [edi + 6], al
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x10160da9]
mov byte [edi + 7], al
mov eax, dword [esp + 0x20]
movzx eax, al
movzx eax, byte [eax*4 + 0x10160da9]
mov byte [edi + 8], al
mov eax, ecx
shr eax, 8
movzx eax, al
movzx eax, byte [eax*4 + 0x10160da9]
mov byte [edi + 9], al
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
movzx eax, byte [eax*4 + 0x10160da9]
mov byte [edi + 0xa], al
mov eax, ebx
shr eax, 0x18
shr ebx, 0x10
movzx eax, byte [eax*4 + 0x10160da9]
mov byte [edi + 0xb], al
movzx eax, cl
movzx eax, byte [eax*4 + 0x10160da9]
mov byte [edi + 0xc], al
movzx eax, dl
movzx eax, byte [eax*4 + 0x10160da9]
mov byte [edi + 0xd], al
movzx eax, bl
movzx eax, byte [eax*4 + 0x10160da9]
mov byte [edi + 0xe], al
mov eax, dword [esp + 0x20]
shr eax, 0x18
movzx eax, byte [eax*4 + 0x10160da9]
mov byte [edi + 0xf], al
mov eax, dword [0x10196d70]
add eax, eax
mov eax, dword [ebp + eax*8]
xor dword [edi], eax
mov eax, dword [0x10196d70]
add eax, eax
mov eax, dword [ebp + eax*8 + 4]
xor dword [edi + 4], eax
mov eax, dword [0x10196d70]
add eax, eax
mov eax, dword [ebp + eax*8 + 8]
xor dword [edi + 8], eax
mov eax, dword [0x10196d70]
add eax, eax
mov eax, dword [ebp + eax*8 + 0xc]
xor dword [edi + 0xc], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret