Function at 0x1000235b
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1012b4c0
mov eax, 0x14
call fcn.101704b0
cmp dword [esp + 0x2c], 0
push ebx
push ebp
push esi
push edi
je 0x1012b706
mov esi, dword [esp + 0x38]
mov ebp, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x28]
movzx eax, byte [esi + 1]
movzx edx, byte [esi]
movzx ecx, byte [esi + 4]
shl eax, 8
or edx, eax
movzx eax, byte [esi + 2]
shl eax, 0x10
or edx, eax
movzx eax, byte [esi + 3]
shl eax, 0x18
or edx, eax
movzx eax, byte [esi + 5]
shl eax, 8
or ecx, eax
mov dword [esp + 0x10], edx
movzx eax, byte [esi + 6]
shl eax, 0x10
or ecx, eax
movzx eax, byte [esi + 7]
shl eax, 0x18
or ecx, eax
add ebp, 0xfffffff8
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x30], ebp
js 0x1012b607
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 eax, byte [ebx + 1]
movzx edx, byte [ebx]
movzx ecx, byte [ebx + 4]
shl eax, 8
or edx, eax
movzx eax, byte [ebx + 2]
shl eax, 0x10
push dword [esp + 0x34]
or edx, eax
movzx eax, byte [ebx + 3]
shl eax, 0x18
or edx, eax
movzx eax, byte [ebx + 5]
xor edx, dword [esp + 0x14]
shl eax, 8
or ecx, eax
mov dword [esp + 0x20], edx
movzx eax, byte [ebx + 6]
shl eax, 0x10
or ecx, eax
movzx eax, byte [ebx + 7]
shl eax, 0x18
add ebx, 8
or ecx, eax
lea eax, [esp + 0x20]
xor ecx, dword [esp + 0x40]
push eax
mov dword [esp + 0x28], ecx
call sym.libcrypto_1_1.dll_RC2_encrypt
mov edx, dword [esp + 0x24]
add esp, 8
mov ecx, dword [esp + 0x20]
mov eax, edx
shr eax, 8
mov byte [edi], dl
mov byte [edi + 1], al
mov eax, edx
shr eax, 0x10
mov byte [edi + 2], al
mov eax, edx
shr eax, 0x18
mov byte [edi + 3], al
mov eax, ecx
shr eax, 8
mov byte [edi + 4], cl
mov byte [edi + 5], al
mov eax, ecx
shr eax, 0x10
mov byte [edi + 6], al
mov eax, ecx
shr eax, 0x18
mov byte [edi + 7], al
add edi, 8
mov dword [esp + 0x10], edx
mov dword [esp + 0x3c], ecx
dec ebp
jne 0x1012b553
mov ebp, dword [esp + 0x30]
cmp ebp, 0xfffffff8
je 0x1012b6cd
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.0x1012b625
jmp dword [eax*4 + 0x1012b958]
movzx ebx, byte [ecx - 1]
dec ecx
shl ebx, 0x18
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x10
or ebx, eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 8
or ebx, eax
movzx eax, byte [ecx - 1]
dec ecx
or ebx, eax
movzx ebp, byte [ecx - 1]
dec ecx
shl ebp, 0x18
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x10
or ebp, eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 8
or ebp, eax
movzx eax, byte [ecx - 1]
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_RC2_encrypt
mov edx, dword [esp + 0x24]
add esp, 8
mov ecx, dword [esp + 0x20]
mov eax, edx
shr eax, 8
mov byte [edi], dl
mov byte [edi + 1], al
mov eax, edx
shr eax, 0x10
mov byte [edi + 2], al
mov eax, edx
shr eax, 0x18
mov byte [edi + 3], al
mov eax, ecx
shr eax, 8
mov byte [edi + 4], cl
mov byte [edi + 5], al
mov eax, ecx
shr eax, 0x10
mov byte [edi + 6], al
mov eax, ecx
shr eax, 0x18
mov byte [edi + 7], al
mov byte [esi], dl
mov eax, edx
shr eax, 8
mov byte [esi + 1], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 2], al
mov eax, ecx
shr edx, 0x18
mov byte [esi + 3], dl
mov byte [esi + 4], cl
shr eax, 8
mov byte [esi + 5], al
mov eax, ecx
shr eax, 0x10
pop edi
mov byte [esi + 6], al
shr ecx, 0x18
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 eax, byte [ebx + 1]
movzx ecx, byte [ebx]
movzx edx, byte [ebx + 4]
shl eax, 8
or ecx, eax
movzx eax, byte [ebx + 2]
shl eax, 0x10
or ecx, eax
movzx eax, byte [ebx + 3]
shl eax, 0x18
or ecx, eax
movzx eax, byte [ebx + 5]
shl eax, 8
or edx, eax
mov dword [esp + 0x3c], ecx
movzx eax, byte [ebx + 6]
shl eax, 0x10
or edx, eax
movzx eax, byte [ebx + 7]
shl eax, 0x18
or edx, eax
add edi, 0xfffffff8
mov dword [esp + 0x10], edx
js 0x1012b846
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
jmp 0x1012b780
movzx eax, byte [ebp + 1]
movzx edi, byte [ebp]
movzx esi, byte [ebp + 4]
shl eax, 8
or edi, eax
movzx eax, byte [ebp + 2]
shl eax, 0x10
push dword [esp + 0x34]
or edi, eax
movzx eax, byte [ebp + 3]
shl eax, 0x18
or edi, eax
movzx eax, byte [ebp + 5]
shl eax, 8
or esi, eax
mov dword [esp + 0x20], edi
movzx eax, byte [ebp + 6]
shl eax, 0x10
or esi, eax
movzx eax, byte [ebp + 7]
shl eax, 0x18
add ebp, 8
or esi, eax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x28], esi
call sym.libcrypto_1_1.dll_RC2_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]
mov byte [ebx], cl
shr eax, 8
mov byte [ebx + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 2], al
mov eax, edx
shr ecx, 0x18
mov byte [ebx + 3], cl
mov ecx, edi
mov byte [ebx + 4], dl
shr eax, 8
mov byte [ebx + 5], al
mov eax, edx
shr eax, 0x10
shr edx, 0x18
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 0x1012b780
mov edi, dword [esp + 0x18]
mov dword [esp + 0x30], ebx
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x30]
jmp 0x1012b84a
mov esi, dword [esp + 0x2c]
cmp edi, 0xfffffff8
je 0x1012b91e
movzx eax, byte [ebp + 1]
movzx ecx, byte [ebp]
movzx edx, byte [ebp + 4]
push dword [esp + 0x34]
shl eax, 8
or ecx, eax
movzx eax, byte [ebp + 2]
shl eax, 0x10
or ecx, eax
movzx eax, byte [ebp + 3]
shl eax, 0x18
or ecx, eax
movzx eax, byte [ebp + 5]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
movzx ecx, byte [ebp + 7]
shl eax, 8
or edx, eax
shl ecx, 8
movzx eax, byte [ebp + 6]
or ecx, eax
lea eax, [esp + 0x20]
shl ecx, 0x10
or edx, ecx
push eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x28], edx
call sym.libcrypto_1_1.dll_RC2_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.0x1012b8d3
jmp dword [edi*4 + 0x1012b978]
dec ecx
shr eax, 0x18
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, 8
mov byte [ecx], al
mov eax, dword [esp + 0x30]
dec ecx
mov byte [ecx], al
dec ecx
mov eax, edx
shr eax, 0x18
mov byte [ecx], al
dec ecx
mov eax, edx
shr eax, 0x10
mov byte [ecx], al
dec ecx
mov eax, edx
shr eax, 8
mov byte [ecx], al
mov byte [ecx - 1], dl
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov byte [ebx], cl
mov eax, ecx
shr eax, 8
mov byte [ebx + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 2], al
mov eax, edx
shr ecx, 0x18
mov byte [ebx + 3], cl
mov byte [ebx + 4], dl
shr eax, 8
mov byte [ebx + 5], al
mov eax, edx
pop edi
shr eax, 0x10
pop esi
mov byte [ebx + 6], al
shr edx, 0x18
pop ebp
mov byte [ebx + 7], dl
pop ebx
add esp, 0x14
ret