Function at 0x100022b6
Capabilities:
Encode data using xor

Disassembly:
jmp 0x100a8030
mov eax, 0x14
call fcn.101704b0
cmp dword [esp + 0x2c], 0
push ebx
push ebp
push esi
push edi
je 0x100a827a
mov esi, dword [esp + 0x38]
mov ebp, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x28]
movzx edx, byte [esi]
movzx eax, byte [esi + 1]
movzx ecx, byte [esi + 4]
shl eax, 0x10
shl edx, 0x18
or edx, eax
shl ecx, 0x18
movzx eax, byte [esi + 2]
shl eax, 8
or edx, eax
movzx eax, byte [esi + 3]
or edx, eax
movzx eax, byte [esi + 5]
shl eax, 0x10
or ecx, eax
mov dword [esp + 0x10], edx
movzx eax, byte [esi + 6]
shl eax, 8
or ecx, eax
movzx eax, byte [esi + 7]
or ecx, eax
add ebp, 0xfffffff8
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x30], ebp
js 0x100a8177
lea eax, [ebp + 8]
shr eax, 3
mov dword [esp + 0x14], eax
neg eax
lea ebp, [ebp + eax*8]
mov dword [esp + 0x30], ebp
mov ebp, dword [esp + 0x14]
movzx edx, byte [ebx]
movzx eax, byte [ebx + 1]
movzx ecx, byte [ebx + 4]
shl eax, 0x10
push dword [esp + 0x34]
shl edx, 0x18
or edx, eax
shl ecx, 0x18
movzx eax, byte [ebx + 2]
shl eax, 8
or edx, eax
movzx eax, byte [ebx + 3]
or edx, eax
movzx eax, byte [ebx + 5]
xor edx, dword [esp + 0x14]
shl eax, 0x10
or ecx, eax
mov dword [esp + 0x20], edx
movzx eax, byte [ebx + 6]
shl eax, 8
or ecx, eax
movzx eax, byte [ebx + 7]
or ecx, eax
add ebx, 8
xor ecx, dword [esp + 0x40]
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x28], ecx
call sym.libcrypto_1_1.dll_CAST_encrypt
mov edx, dword [esp + 0x24]
add esp, 8
mov ecx, dword [esp + 0x20]
mov eax, edx
shr eax, 0x18
mov byte [edi], al
mov eax, edx
shr eax, 0x10
mov byte [edi + 1], al
mov eax, edx
shr eax, 8
mov byte [edi + 2], al
mov eax, ecx
shr eax, 0x18
mov byte [edi + 3], dl
mov byte [edi + 4], al
mov eax, ecx
shr eax, 0x10
mov byte [edi + 5], al
mov eax, ecx
shr eax, 8
mov byte [edi + 6], al
mov byte [edi + 7], cl
add edi, 8
mov dword [esp + 0x10], edx
mov dword [esp + 0x3c], ecx
dec ebp
jne 0x100a80c3
mov ebp, dword [esp + 0x30]
cmp ebp, 0xfffffff8
je 0x100a823d
mov eax, dword [esp + 0x30]
lea ecx, [ebp + 8]
add ecx, ebx
add eax, 7
xor ebx, ebx
xor ebp, ebp
cmp eax, 7
ja case.default.0x100a8195
jmp dword [eax*4 + 0x100a84cc]
movzx ebx, byte [ecx - 1]
dec ecx
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 8
or ebx, eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x10
or ebx, eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x18
or ebx, eax
movzx ebp, byte [ecx - 1]
dec ecx
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 8
or ebp, eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x10
or ebp, eax
movzx eax, byte [ecx - 1]
shl eax, 0x18
or ebp, eax
push dword [esp + 0x34]
xor ebx, dword [esp + 0x40]
lea eax, [esp + 0x20]
xor ebp, edx
mov dword [esp + 0x24], ebx
push eax
mov dword [esp + 0x24], ebp
call sym.libcrypto_1_1.dll_CAST_encrypt
mov edx, dword [esp + 0x24]
add esp, 8
mov ecx, dword [esp + 0x20]
mov eax, edx
shr eax, 0x18
mov byte [edi], al
mov eax, edx
shr eax, 0x10
mov byte [edi + 1], al
mov eax, edx
shr eax, 8
mov byte [edi + 2], al
mov eax, ecx
shr eax, 0x18
mov byte [edi + 3], dl
mov byte [edi + 4], al
mov eax, ecx
shr eax, 0x10
mov byte [edi + 5], al
mov eax, ecx
shr eax, 8
mov byte [edi + 6], al
mov byte [edi + 7], cl
mov eax, edx
shr eax, 0x18
mov byte [esi], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 1], al
mov eax, edx
shr eax, 8
mov byte [esi + 2], al
mov eax, ecx
shr eax, 0x18
mov byte [esi + 3], dl
mov byte [esi + 4], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 5], al
mov eax, ecx
shr eax, 8
pop edi
mov byte [esi + 6], al
mov byte [esi + 7], cl
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0x30]
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x14], ebx
movzx ecx, byte [ebx]
movzx eax, byte [ebx + 1]
movzx edx, byte [ebx + 4]
shl eax, 0x10
shl ecx, 0x18
or ecx, eax
shl edx, 0x18
movzx eax, byte [ebx + 2]
shl eax, 8
or ecx, eax
movzx eax, byte [ebx + 3]
or ecx, eax
movzx eax, byte [ebx + 5]
shl eax, 0x10
or edx, eax
mov dword [esp + 0x3c], ecx
movzx eax, byte [ebx + 6]
shl eax, 8
or edx, eax
movzx eax, byte [ebx + 7]
or edx, eax
add edi, 0xfffffff8
mov dword [esp + 0x10], edx
js 0x100a83ba
mov ebx, dword [esp + 0x2c]
lea eax, [edi + 8]
shr eax, 3
mov dword [esp + 0x30], eax
neg eax
lea edi, [edi + eax*8]
mov dword [esp + 0x18], edi
nop
movzx edi, byte [ebp]
movzx eax, byte [ebp + 1]
movzx esi, byte [ebp + 4]
shl eax, 0x10
push dword [esp + 0x34]
shl edi, 0x18
or edi, eax
shl esi, 0x18
movzx eax, byte [ebp + 2]
shl eax, 8
or edi, eax
movzx eax, byte [ebp + 3]
or edi, eax
movzx eax, byte [ebp + 5]
shl eax, 0x10
or esi, eax
mov dword [esp + 0x20], edi
movzx eax, byte [ebp + 6]
shl eax, 8
or esi, eax
movzx eax, byte [ebp + 7]
or esi, eax
add ebp, 8
lea eax, [esp + 0x20]
mov dword [esp + 0x24], esi
push eax
call sym.libcrypto_1_1.dll_CAST_decrypt
mov ecx, dword [esp + 0x24]
add esp, 8
xor ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x20]
mov eax, ecx
xor edx, dword [esp + 0x10]
shr eax, 0x18
mov byte [ebx], al
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 1], al
mov eax, ecx
shr eax, 8
mov byte [ebx + 2], al
mov eax, edx
shr eax, 0x18
mov byte [ebx + 3], cl
mov ecx, edi
mov byte [ebx + 4], al
mov eax, edx
shr eax, 0x10
mov byte [ebx + 5], al
mov eax, edx
shr eax, 8
mov byte [ebx + 6], al
mov byte [ebx + 7], dl
add ebx, 8
dec dword [esp + 0x30]
mov edx, esi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x10], edx
jne 0x100a82f0
mov edi, dword [esp + 0x18]
mov dword [esp + 0x30], ebx
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x30]
jmp 0x100a83be
mov esi, dword [esp + 0x2c]
cmp edi, 0xfffffff8
je 0x100a848e
movzx edx, byte [ebp]
movzx eax, byte [ebp + 1]
movzx ecx, byte [ebp + 4]
push dword [esp + 0x34]
shl eax, 0x10
shl edx, 0x18
or edx, eax
shl ecx, 0x18
movzx eax, byte [ebp + 2]
shl eax, 8
or edx, eax
movzx eax, byte [ebp + 3]
or edx, eax
movzx eax, byte [ebp + 5]
shl eax, 0x10
or ecx, eax
mov dword [esp + 0x1c], edx
movzx eax, byte [ebp + 7]
mov dword [esp + 0x34], ecx
movzx ecx, byte [ebp + 6]
mov ebp, dword [esp + 0x34]
shl ecx, 8
or ecx, eax
mov dword [esp + 0x20], edx
lea eax, [esp + 0x20]
or ebp, ecx
push eax
mov dword [esp + 0x28], ebp
call sym.libcrypto_1_1.dll_CAST_decrypt
mov edx, dword [esp + 0x24]
lea ecx, [edi + 8]
mov eax, dword [esp + 0x28]
add edi, 7
xor eax, dword [esp + 0x18]
add esp, 8
xor edx, dword [esp + 0x3c]
add ecx, esi
mov dword [esp + 0x30], eax
cmp edi, 7
ja case.default.0x100a844b
jmp dword [edi*4 + 0x100a84ec]
dec ecx
mov byte [ecx], al
dec ecx
shr eax, 8
mov byte [ecx], al
mov eax, dword [esp + 0x30]
dec ecx
shr eax, 0x10
mov byte [ecx], al
mov eax, dword [esp + 0x30]
dec ecx
shr eax, 0x18
mov byte [ecx], al
dec ecx
mov byte [ecx], dl
dec ecx
mov eax, edx
shr eax, 8
mov byte [ecx], al
dec ecx
mov eax, edx
shr eax, 0x10
mov byte [ecx], al
shr edx, 0x18
mov byte [ecx - 1], dl
mov ecx, dword [esp + 0x18]
mov edx, ebp
mov eax, ecx
shr eax, 0x18
mov byte [ebx], al
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 1], al
mov eax, ecx
shr eax, 8
mov byte [ebx + 2], al
mov eax, edx
shr eax, 0x18
mov byte [ebx + 3], cl
mov byte [ebx + 4], al
mov eax, edx
shr eax, 0x10
mov byte [ebx + 5], al
mov eax, edx
pop edi
pop esi
shr eax, 8
mov byte [ebx + 6], al
pop ebp
mov byte [ebx + 7], dl
pop ebx
add esp, 0x14
ret