Function at 0x10007d80
Capabilities:
Encode data using xor

Disassembly:
jmp 0x10073c10
mov eax, 0x20
call fcn.100011c0
mov eax, dword [esp + 0x34]
movzx ecx, byte [eax + 1]
movzx edx, byte [eax + 4]
push ebx
push ebp
lea ebp, [eax + 1]
shl edx, 0x18
movzx eax, byte [eax]
shl eax, 8
or ecx, eax
movzx eax, byte [ebp + 1]
shl eax, 8
shl ecx, 0x10
or ecx, eax
movzx eax, byte [ebp + 2]
or ecx, eax
movzx eax, byte [ebp + 4]
shl eax, 0x10
add ebp, 5
or edx, eax
mov dword [esp + 8], ecx
push esi
push edi
movzx eax, byte [ebp]
shl eax, 8
or edx, eax
movzx eax, byte [ebp + 1]
or edx, eax
cmp dword [esp + 0x48], 0
mov dword [esp + 0x14], edx
je 0x10073e6b
mov ebx, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
add ebx, 0xfffffff8
mov edi, dword [esp + 0x34]
mov dword [esp + 0x18], ebx
js 0x10073d66
lea eax, [ebx + 8]
shr eax, 3
mov dword [esp + 0x24], eax
neg eax
lea ebx, [ebx + eax*8]
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x24]
nop dword [eax + eax]
movzx edx, byte [edi]
movzx eax, byte [edi + 1]
movzx ecx, byte [edi + 4]
shl eax, 0x10
push dword [esp + 0x40]
shl edx, 0x18
or edx, eax
shl ecx, 0x18
movzx eax, byte [edi + 2]
shl eax, 8
or edx, eax
movzx eax, byte [edi + 3]
or edx, eax
movzx eax, byte [edi + 5]
xor edx, dword [esp + 0x14]
shl eax, 0x10
or ecx, eax
mov dword [esp + 0x2c], edx
movzx eax, byte [edi + 6]
shl eax, 8
or ecx, eax
movzx eax, byte [edi + 7]
or ecx, eax
add edi, 8
xor ecx, dword [esp + 0x18]
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x34], ecx
call sym.libcrypto_1_1.dll_CAST_encrypt
mov ecx, dword [esp + 0x30]
add esp, 8
mov edx, dword [esp + 0x2c]
mov eax, ecx
shr eax, 0x18
mov byte [esi], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 1], al
mov eax, ecx
shr eax, 8
mov byte [esi + 2], al
mov eax, edx
shr eax, 0x18
mov byte [esi + 4], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 5], al
mov eax, edx
shr eax, 8
mov byte [esi + 3], cl
mov byte [esi + 6], al
mov byte [esi + 7], dl
add esi, 8
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
sub ebx, 1
jne 0x10073cb0
mov ebx, dword [esp + 0x18]
cmp ebx, 0xfffffff8
je 0x10073e2c
mov eax, dword [esp + 0x18]
lea ecx, [ebx + 8]
add ecx, edi
add eax, 7
xor edi, edi
xor ebx, ebx
cmp eax, 7
ja case.default.0x10073d84
jmp dword [eax*4 + 0x100740bc]
movzx edi, byte [ecx - 1]
dec ecx
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 8
or edi, eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x10
or edi, eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x18
or edi, eax
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]
shl eax, 0x18
or ebx, eax
push dword [esp + 0x40]
xor ebx, dword [esp + 0x14]
lea eax, [esp + 0x2c]
xor edi, edx
mov dword [esp + 0x2c], ebx
push eax
mov dword [esp + 0x34], edi
call sym.libcrypto_1_1.dll_CAST_encrypt
mov ecx, dword [esp + 0x30]
add esp, 8
mov edx, dword [esp + 0x2c]
mov eax, ecx
shr eax, 0x18
mov byte [esi], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 1], al
mov eax, ecx
shr eax, 8
mov byte [esi + 2], al
mov eax, edx
shr eax, 0x18
mov byte [esi + 4], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 5], al
mov eax, edx
shr eax, 8
mov byte [esi + 3], cl
mov byte [esi + 6], al
mov byte [esi + 7], dl
mov eax, ecx
lea edi, [ebp - 1]
shr eax, 8
mov esi, edx
mov dword [esp + 0x10], eax
mov ebx, edx
shr esi, 0x10
mov eax, ecx
shr eax, 0x10
mov dword [esp + 0x20], esi
mov esi, edx
mov dword [esp + 0x14], eax
mov eax, ecx
shr esi, 0x18
shr ebx, 8
shr eax, 0x18
mov dword [esp + 0x18], eax
lea eax, [ebp - 5]
mov dword [esp + 0x1c], esi
mov esi, eax
jmp 0x1007407f
mov edi, dword [esp + 0x3c]
add edi, 0xfffffff8
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x24], ebp
js 0x10073f6b
mov ebp, dword [esp + 0x38]
lea eax, [edi + 8]
shr eax, 3
mov dword [esp + 0x18], eax
neg eax
lea edi, [edi + eax*8]
mov dword [esp + 0x1c], edi
nop word [eax + eax]
movzx edi, byte [ebx]
movzx eax, byte [ebx + 1]
movzx esi, byte [ebx + 4]
shl eax, 0x10
push dword [esp + 0x40]
shl edi, 0x18
or edi, eax
shl esi, 0x18
movzx eax, byte [ebx + 2]
shl eax, 8
or edi, eax
movzx eax, byte [ebx + 3]
or edi, eax
movzx eax, byte [ebx + 5]
shl eax, 0x10
or esi, eax
mov dword [esp + 0x2c], edi
movzx eax, byte [ebx + 6]
shl eax, 8
or esi, eax
movzx eax, byte [ebx + 7]
or esi, eax
add ebx, 8
lea eax, [esp + 0x2c]
mov dword [esp + 0x30], esi
push eax
call sym.libcrypto_1_1.dll_CAST_decrypt
mov ecx, dword [esp + 0x30]
add esp, 8
xor ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x2c]
mov eax, ecx
xor edx, dword [esp + 0x14]
shr eax, 0x18
mov byte [ebp], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp + 1], al
mov eax, ecx
shr eax, 8
mov byte [ebp + 2], al
mov eax, edx
shr eax, 0x18
mov byte [ebp + 4], al
mov eax, edx
shr eax, 0x10
mov byte [ebp + 5], al
mov eax, edx
shr eax, 8
mov byte [ebp + 3], cl
mov ecx, edi
mov byte [ebp + 7], dl
mov edx, esi
mov byte [ebp + 6], al
add ebp, 8
sub dword [esp + 0x18], 1
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
jne 0x10073ea0
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x20], ebp
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
jmp 0x10073f6f
mov esi, dword [esp + 0x38]
cmp edi, 0xfffffff8
je 0x1007403c
movzx edx, byte [ebx]
movzx eax, byte [ebx + 1]
movzx ecx, byte [ebx + 4]
shl eax, 0x10
push dword [esp + 0x40]
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]
shl eax, 0x10
or ecx, eax
mov dword [esp + 0x28], edx
movzx eax, byte [ebx + 7]
mov dword [esp + 0x1c], ecx
movzx ecx, byte [ebx + 6]
shl ecx, 8
or ecx, eax
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x1c]
or eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], eax
lea eax, [esp + 0x2c]
push eax
call sym.libcrypto_1_1.dll_CAST_decrypt
mov edx, dword [esp + 0x30]
lea ecx, [edi + 8]
mov ebx, dword [esp + 0x34]
add edi, 7
xor edx, dword [esp + 0x18]
add esp, 8
xor ebx, dword [esp + 0x14]
add ecx, esi
cmp edi, 7
ja case.default.0x10073ffb
jmp dword [edi*4 + 0x100740dc]
dec ecx
mov byte [ecx], bl
dec ecx
mov eax, ebx
shr eax, 8
mov byte [ecx], al
dec ecx
mov eax, ebx
shr eax, 0x10
mov byte [ecx], al
dec ecx
shr ebx, 0x18
mov byte [ecx], bl
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 + 0x24]
mov edx, dword [esp + 0x18]
mov eax, ecx
lea ebx, [ebp - 5]
shr eax, 8
lea edi, [ebx + 4]
mov dword [esp + 0x10], eax
mov esi, edx
shr esi, 0x10
mov eax, ecx
shr eax, 0x10
mov dword [esp + 0x28], ebx
mov ebx, edx
mov dword [esp + 0x20], esi
mov esi, edx
mov dword [esp + 0x14], eax
mov eax, ecx
shr esi, 0x18
shr ebx, 8
shr eax, 0x18
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x28]
mov dword [esp + 0x18], eax
lea eax, [ebp - 5]
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x18]
mov byte [ebp - 6], bl
mov ebx, dword [esp + 0x14]
mov byte [eax], bl
mov ebx, dword [esp + 0x10]
mov byte [eax + 1], bl
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
mov byte [esi + 2], cl
mov byte [esi + 3], al
mov eax, dword [esp + 0x20]
mov byte [edi], al
mov byte [edi + 1], bl
mov byte [edi + 2], dl
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret