Function at 0x104a6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
cmp dword [esi], 0
je 0x104bb
push 0xfffffffffffffffb
jmp 0x104c3
cmp dword [esi + 8], 0
je 0x104c9
push 0xfffffffffffffffa
pop eax
jmp 0x10730
mov edi, dword [ebp + 8]
test edi, edi
je 0x1072e
mov eax, dword [ebp + 0xc]
test eax, eax
jle 0x1072e
mov ebx, 0x80
cdq
mov ecx, ebx
idiv ecx
mov ecx, eax
mov eax, dword [esi + 4]
sub eax, 0
mov dword [ebp + 0xc], ecx
je 0x1070c
dec eax
je 0x10693
dec eax
je 0x1050c
or eax, 0xffffffff
jmp 0x10730
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x18]
test ecx, ecx
mov dword [ebp - 4], eax
jle 0x10726
mov dword [ebp + 8], ecx
xor edi, edi
mov eax, dword [ebp - 0x10]
push esi
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00010cec
mov eax, edi
push 8
cdq
pop ecx
mov dword [ebp + 0x14], edi
idiv ecx
mov ecx, dword [ebp + 0x10]
and dword [ebp + 0x14], 7
mov dl, byte [ebp - 0x20]
and dl, bl
add eax, ecx
mov cl, byte [ebp + 0x14]
shr dl, cl
mov cl, byte [ebp - 0xf]
shr cl, 7
xor byte [eax], dl
mov dl, byte [ebp - 0x10]
shl dl, 1
or cl, dl
mov dl, byte [ebp - 0xf]
mov byte [ebp - 0x10], cl
mov cl, byte [ebp - 0xe]
shr cl, 7
shl dl, 1
or cl, dl
mov dl, byte [ebp - 0xe]
mov byte [ebp - 0xf], cl
mov cl, byte [ebp - 0xd]
shr cl, 7
shl dl, 1
or cl, dl
mov dl, byte [ebp - 0xd]
mov byte [ebp - 0xe], cl
mov cl, byte [ebp - 0xc]
shr cl, 7
shl dl, 1
or cl, dl
mov dl, byte [ebp - 0xc]
mov byte [ebp - 0xd], cl
mov cl, byte [ebp - 0xb]
shr cl, 7
shl dl, 1
or cl, dl
mov dl, byte [ebp - 0xb]
mov byte [ebp - 0xc], cl
mov cl, byte [ebp - 0xa]
shr cl, 7
shl dl, 1
or cl, dl
mov dl, byte [ebp - 0xa]
mov byte [ebp - 0xb], cl
mov cl, byte [ebp - 9]
shr cl, 7
shl dl, 1
or cl, dl
mov dl, byte [ebp - 9]
mov byte [ebp - 0xa], cl
mov cl, byte [ebp - 8]
mov al, byte [eax]
shr cl, 7
shl dl, 1
or cl, dl
mov dl, byte [ebp - 8]
mov byte [ebp - 9], cl
mov cl, byte [ebp - 7]
shr cl, 7
shl dl, 1
or cl, dl
mov dl, byte [ebp - 7]
mov byte [ebp - 8], cl
mov cl, byte [ebp - 6]
shr cl, 7
shl dl, 1
or cl, dl
mov dl, byte [ebp - 6]
mov byte [ebp - 7], cl
mov cl, byte [ebp - 5]
shr cl, 7
shl dl, 1
or cl, dl
mov dl, byte [ebp - 5]
mov byte [ebp - 6], cl
mov cl, byte [ebp - 4]
shr cl, 7
shl dl, 1
or cl, dl
mov dl, byte [ebp - 4]
mov byte [ebp - 5], cl
mov cl, byte [ebp - 3]
shr cl, 7
shl dl, 1
or cl, dl
mov dl, byte [ebp - 3]
mov byte [ebp - 4], cl
mov cl, byte [ebp - 2]
shr cl, 7
shl dl, 1
or cl, dl
mov dl, byte [ebp - 2]
mov byte [ebp - 3], cl
mov cl, byte [ebp - 1]
shr cl, 7
shl dl, 1
or cl, dl
mov byte [ebp - 2], cl
mov cl, 7
sub cl, byte [ebp + 0x14]
shr al, cl
mov cl, byte [ebp - 1]
shl cl, 1
and al, 1
or al, cl
inc edi
cmp edi, ebx
mov byte [ebp - 1], al
jl 0x10531
dec dword [ebp + 8]
jne 0x1052f
jmp 0x10726
mov eax, dword [esi + 0xc]
mov ebx, dword [ebp + 0x10]
xor eax, dword [edi]
push esi
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [edi + 4]
xor eax, dword [esi + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 8]
xor eax, dword [esi + 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0xc]
xor eax, dword [esi + 0x18]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push eax
call fcn.00010cec
mov eax, dword [ebp + 0xc]
add edi, 0x10
dec eax
test eax, eax
jle 0x10726
mov dword [ebp + 0x10], eax
mov eax, dword [edi]
push esi
xor eax, dword [ebx]
add ebx, 0x10
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [edi + 4]
xor eax, dword [ebx - 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 8]
xor eax, dword [ebx - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0xc]
xor eax, dword [ebx - 4]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push eax
call fcn.00010cec
add edi, 0x10
dec dword [ebp + 0x10]
jne 0x106d2
jmp 0x10726
test ecx, ecx
jle 0x10726
mov ebx, ecx
push esi
push dword [ebp + 0x10]
push edi
call fcn.00010cec
add dword [ebp + 0x10], 0x10
add edi, 0x10
dec ebx
jne 0x10712
mov eax, dword [ebp + 0xc]
shl eax, 7
jmp 0x10730
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10