Function at 0x1000b69d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0xc]
cmp ecx, 0x10
je 0x1000b6b9
cmp ecx, 0x18
je 0x1000b6b9
cmp ecx, 0x20
je 0x1000b6b9
push 3
pop eax
leave
ret
cmp dword [ebp + 0x10], 0
je 0x1000b6d7
mov eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
lea eax, [eax + eax + 6]
cmp dword [ebp + 0x10], eax
je 0x1000b6d7
push 4
jmp 0x1000b6b6
mov eax, ecx
cdq
and edx, 7
add eax, edx
xor edx, edx
push ebx
sar eax, 3
push esi
mov esi, dword [ebp + 0x14]
lea eax, [eax + eax + 6]
mov dword [esi + 0x200], eax
mov eax, dword [ebp + 8]
mov dh, byte [eax]
push edi
movzx edi, byte [eax + 2]
mov dl, byte [eax + 1]
shl edx, 8
or edx, edi
movzx edi, byte [eax + 3]
shl edx, 8
or edx, edi
mov dword [esi], edx
xor edx, edx
mov dh, byte [eax + 4]
movzx ebx, byte [eax + 6]
lea edi, [esi + 4]
mov dl, byte [eax + 5]
shl edx, 8
or edx, ebx
movzx ebx, byte [eax + 7]
shl edx, 8
or edx, ebx
mov dword [edi], edx
movzx ebx, byte [eax + 0xa]
xor edx, edx
mov dh, byte [eax + 8]
mov dl, byte [eax + 9]
shl edx, 8
or edx, ebx
movzx ebx, byte [eax + 0xb]
shl edx, 8
or edx, ebx
mov dword [esi + 8], edx
movzx ebx, byte [eax + 0xe]
xor edx, edx
mov dh, byte [eax + 0xc]
mov dl, byte [eax + 0xd]
shl edx, 8
or edx, ebx
movzx ebx, byte [eax + 0xf]
shl edx, 8
or edx, ebx
cmp ecx, 0x10
mov dword [esi + 0xc], edx
jne 0x1000b7e4
mov ebx, edx
mov ecx, edx
mov dword [ebp - 8], 0x2c
call fcn.1000b668
xor eax, dword [esi]
mov ecx, dword [edi]
xor eax, 0x1000000
xor ecx, eax
mov dword [esi + 0x10], eax
mov eax, dword [esi + 8]
xor eax, ecx
mov dword [esi + 0x18], eax
xor eax, ebx
push 4
mov dword [esi + 0x14], ecx
mov dword [esi + 0x1c], eax
mov dword [ebp + 0xc], 0x10021cac
pop ebx
mov ecx, dword [edi + 0x18]
add edi, 0x10
call fcn.1000b668
xor eax, dword [edi - 4]
mov ecx, dword [ebp + 0xc]
xor eax, dword [ecx]
add dword [ebp + 0xc], ebx
mov dword [edi + 0xc], eax
mov ecx, dword [edi]
xor ecx, eax
mov dword [edi + 0x10], ecx
mov eax, dword [edi + 4]
xor eax, ecx
mov dword [edi + 0x14], eax
mov ecx, dword [edi + 8]
xor ecx, eax
cmp dword [ebp + 0xc], 0x10021cd0
mov dword [edi + 0x18], ecx
jne 0x1000b7a6
jmp 0x1000b9ef
cmp ecx, 0x18
jne 0x1000b8c3
movzx edx, byte [eax + 0x12]
xor ecx, ecx
mov ch, byte [eax + 0x10]
mov dword [ebp - 8], 0x34
mov cl, byte [eax + 0x11]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax + 0x13]
shl ecx, 8
or ecx, edx
mov dword [esi + 0x10], ecx
movzx edx, byte [eax + 0x16]
xor ecx, ecx
mov ch, byte [eax + 0x14]
mov cl, byte [eax + 0x15]
movzx eax, byte [eax + 0x17]
shl ecx, 8
or ecx, edx
shl ecx, 8
or ecx, eax
mov dword [esi + 0x14], ecx
call fcn.1000b668
xor eax, dword [esi]
mov edi, dword [edi]
mov ecx, dword [esi + 0xc]
xor eax, 0x1000000
xor edi, eax
mov dword [esi + 0x18], eax
mov eax, dword [esi + 8]
xor eax, edi
xor ecx, eax
mov dword [ebp - 4], 0xffffffd8
sub dword [ebp - 4], esi
push 4
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ecx
lea edi, [esi + 0x28]
mov dword [ebp + 0xc], 0x10021cac
pop ebx
mov eax, dword [edi - 0x18]
xor eax, dword [edi - 4]
mov ecx, dword [edi - 0x14]
xor ecx, eax
mov dword [edi], eax
mov eax, dword [ebp - 4]
mov dword [edi + 4], ecx
add edi, 0x18
add eax, edi
sar eax, 2
mov ecx, dword [esi + eax*4 + 0x14]
call fcn.1000b668
xor eax, dword [edi - 0x28]
mov ecx, dword [ebp + 0xc]
xor eax, dword [ecx]
add dword [ebp + 0xc], ebx
mov dword [edi - 0x10], eax
mov ecx, dword [edi - 0x24]
xor ecx, eax
mov dword [edi - 0xc], ecx
mov eax, dword [edi - 0x20]
xor eax, ecx
mov dword [edi - 8], eax
mov ecx, dword [edi - 0x1c]
xor ecx, eax
cmp dword [ebp + 0xc], 0x10021cc8
mov dword [edi - 4], ecx
jne 0x1000b86b
jmp 0x1000b9ef
cmp ecx, 0x20
jne 0x1000bb68
xor ecx, ecx
mov ch, byte [eax + 0x10]
movzx edx, byte [eax + 0x12]
mov dword [ebp - 8], 0x3c
mov cl, byte [eax + 0x11]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax + 0x13]
shl ecx, 8
or ecx, edx
mov dword [esi + 0x10], ecx
movzx edx, byte [eax + 0x16]
xor ecx, ecx
mov ch, byte [eax + 0x14]
mov cl, byte [eax + 0x15]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax + 0x17]
shl ecx, 8
or ecx, edx
mov dword [esi + 0x14], ecx
movzx edx, byte [eax + 0x1a]
xor ecx, ecx
mov ch, byte [eax + 0x18]
mov cl, byte [eax + 0x19]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax + 0x1b]
shl ecx, 8
or ecx, edx
mov dword [esi + 0x18], ecx
movzx edx, byte [eax + 0x1e]
xor ecx, ecx
mov ch, byte [eax + 0x1c]
mov cl, byte [eax + 0x1d]
movzx eax, byte [eax + 0x1f]
shl ecx, 8
or ecx, edx
shl ecx, 8
or ecx, eax
mov dword [esi + 0x1c], ecx
call fcn.1000b668
xor eax, dword [esi]
mov edi, dword [edi]
mov ecx, dword [esi + 0xc]
xor eax, 0x1000000
xor edi, eax
mov dword [esi + 0x20], eax
mov eax, dword [esi + 8]
xor eax, edi
xor ecx, eax
mov dword [ebp - 4], 0xffffffd0
sub dword [ebp - 4], esi
push 4
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ecx
lea edi, [esi + 0x30]
mov dword [ebp + 0xc], 0x10021cac
pop ebx
mov ecx, dword [edi - 4]
ror ecx, 8
call fcn.1000b668
xor eax, dword [edi - 0x20]
mov ecx, dword [edi - 0x1c]
xor ecx, eax
mov dword [edi], eax
mov eax, dword [edi - 0x18]
xor eax, ecx
mov dword [edi + 4], ecx
mov ecx, dword [edi - 0x14]
xor ecx, eax
mov dword [edi + 8], eax
mov eax, dword [ebp - 4]
mov dword [edi + 0xc], ecx
add edi, 0x20
add eax, edi
sar eax, 2
mov ecx, dword [esi + eax*4 + 0x1c]
call fcn.1000b668
xor eax, dword [edi - 0x30]
mov ecx, dword [ebp + 0xc]
xor eax, dword [ecx]
add dword [ebp + 0xc], ebx
mov dword [edi - 0x10], eax
mov ecx, dword [edi - 0x2c]
xor ecx, eax
mov dword [edi - 0xc], ecx
mov eax, dword [edi - 0x28]
xor eax, ecx
mov dword [edi - 8], eax
mov ecx, dword [edi - 0x24]
xor ecx, eax
cmp dword [ebp + 0xc], 0x10021cc4
mov dword [edi - 4], ecx
jne 0x1000b984
mov eax, dword [ebp - 8]
lea eax, [esi + eax*4 - 0x10]
mov edx, dword [eax]
add eax, ebx
lea ecx, [esi + 0x100]
mov dword [ecx], edx
mov edx, dword [eax]
add ecx, ebx
mov dword [ecx], edx
add eax, ebx
mov edx, dword [eax]
add ecx, ebx
mov dword [ecx], edx
add eax, ebx
mov edx, dword [eax]
add ecx, ebx
mov dword [ecx], edx
xor edx, edx
inc edx
sub ecx, 0xc
sub eax, 0xc
cmp dword [esi + 0x200], edx
mov dword [ebp - 8], edx
jle 0x1000bb44
mov dword [ebp - 4], ebx
sub eax, 0x10
mov edx, dword [eax]
mov dword [ebp + 0xc], edx
mov ebx, dword [ebp + 0xc]
shr edx, 0x18
mov edx, dword [edx*4 + 0x10020ca8]
shr ebx, 0x10
movzx edi, bl
xor edx, dword [edi*4 + 0x100210a8]
mov ebx, dword [ebp + 0xc]
shr ebx, 8
movzx edi, bl
xor edx, dword [edi*4 + 0x100214a8]
movzx edi, byte [ebp + 0xc]
xor edx, dword [edi*4 + 0x100218a8]
add ecx, 0x10
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ebp + 0xc], edx
mov ebx, dword [ebp + 0xc]
shr edx, 0x18
mov edx, dword [edx*4 + 0x10020ca8]
shr ebx, 0x10
movzx edi, bl
xor edx, dword [edi*4 + 0x100210a8]
mov ebx, dword [ebp + 0xc]
shr ebx, 8
movzx edi, bl
xor edx, dword [edi*4 + 0x100214a8]
movzx edi, byte [ebp + 0xc]
xor edx, dword [edi*4 + 0x100218a8]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ebp + 0xc], edx
mov ebx, dword [ebp + 0xc]
shr edx, 0x18
mov edx, dword [edx*4 + 0x10020ca8]
shr ebx, 0x10
movzx edi, bl
xor edx, dword [edi*4 + 0x100210a8]
mov ebx, dword [ebp + 0xc]
shr ebx, 8
movzx edi, bl
xor edx, dword [edi*4 + 0x100214a8]
movzx edi, byte [ebp + 0xc]
xor edx, dword [edi*4 + 0x100218a8]
mov dword [ecx + 8], edx
mov edx, dword [eax + 0xc]
mov dword [ebp + 0xc], edx
mov ebx, dword [ebp + 0xc]
shr ebx, 0x10
shr edx, 0x18
mov edx, dword [edx*4 + 0x10020ca8]
movzx edi, bl
xor edx, dword [edi*4 + 0x100210a8]
mov ebx, dword [ebp + 0xc]
shr ebx, 8
movzx edi, bl
xor edx, dword [edi*4 + 0x100214a8]
movzx edi, byte [ebp + 0xc]
xor edx, dword [edi*4 + 0x100218a8]
inc dword [ebp - 8]
mov ebx, dword [ebp - 4]
mov dword [ecx + 0xc], edx
mov edx, dword [ebp - 8]
cmp edx, dword [esi + 0x200]
jl 0x1000ba30
sub eax, 0x10
mov edx, dword [eax]
add ecx, 0x10
mov dword [ecx], edx
add eax, ebx
mov edx, dword [eax]
add ecx, ebx
mov dword [ecx], edx
add eax, ebx
mov edx, dword [eax]
add ecx, ebx
mov dword [ecx], edx
mov eax, dword [eax + 4]
mov dword [ecx + 4], eax
xor eax, eax
jmp 0x1000bb6b
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret