Function at 0x10014100
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc
call fcn.100781a0
mov eax, dword [esp + 0x24]
push ebx
push ebp
push esi
test eax, eax
push edi
je 0x10014308
mov eax, dword [esp + 0x30]
xor ecx, ecx
xor edx, edx
mov cl, byte [eax]
mov dh, byte [eax + 1]
inc eax
mov ebp, ecx
or ebp, edx
inc eax
xor ecx, ecx
xor edx, edx
mov cl, byte [eax]
mov dl, byte [eax + 1]
shl ecx, 0x10
or ebp, ecx
inc eax
shl edx, 0x18
or ebp, edx
inc eax
xor edx, edx
xor ecx, ecx
mov dl, byte [eax]
mov ch, byte [eax + 1]
inc eax
or edx, ecx
inc eax
xor ecx, ecx
mov ch, byte [eax + 1]
mov cl, byte [eax]
mov eax, dword [esp + 0x28]
shl ecx, 0x10
lea ebx, [eax - 8]
or edx, ecx
test ebx, ebx
jl 0x100142fb
lea eax, [ebx + 8]
mov esi, dword [esp + 0x24]
shr eax, 3
mov edi, dword [esp + 0x20]
mov dword [esp + 0x28], eax
neg eax
lea ecx, [ebx + eax*8]
mov dword [esp + 0x30], ecx
xor eax, eax
xor ecx, ecx
mov al, byte [edi]
mov ch, byte [edi + 1]
inc edi
or eax, ecx
inc edi
xor ecx, ecx
xor ebx, ebx
push 1
mov cl, byte [edi]
shl ecx, 0x10
or eax, ecx
inc edi
xor ecx, ecx
mov cl, byte [edi]
shl ecx, 0x18
or eax, ecx
inc edi
xor ecx, ecx
xor eax, ebp
mov cl, byte [edi]
mov bh, byte [edi + 1]
inc edi
or ecx, ebx
inc edi
xor ebx, ebx
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
mov bl, byte [edi]
shl ebx, 0x10
or ecx, ebx
inc edi
xor ebx, ebx
mov bl, byte [edi]
shl ebx, 0x18
or ecx, ebx
inc edi
xor ecx, edx
mov edx, dword [esp + 0x30]
push edx
push eax
mov dword [esp + 0x24], ecx
call sym.LIBEAY32.dll_des_encrypt1
mov eax, dword [esp + 0x20]
add esp, 0xc
mov byte [esi], al
mov ecx, eax
inc esi
mov edx, eax
shr ecx, 8
mov byte [esi], cl
inc esi
shr edx, 0x10
mov byte [esi], dl
mov ebp, eax
inc esi
shr eax, 0x18
mov byte [esi], al
mov eax, dword [esp + 0x18]
inc esi
mov ecx, eax
shr ecx, 8
mov byte [esi], al
inc esi
mov edx, eax
mov byte [esi], cl
mov ecx, eax
inc esi
shr ecx, 0x10
mov byte [esi], cl
inc esi
shr eax, 0x18
mov byte [esi], al
mov eax, dword [esp + 0x28]
inc esi
dec eax
mov dword [esp + 0x28], eax
jne 0x10014185
mov ebx, dword [esp + 0x30]
cmp ebx, 0xfffffff8
je case.default.0x100144c6
lea ecx, [edi + ebx + 8]
add ebx, 7
xor edi, edi
xor eax, eax
cmp ebx, 7
ja case.default.0x10014251
jmp dword [ebx*4 + 0x10014518]
dec ecx
xor eax, eax
mov al, byte [ecx]
mov edi, eax
shl edi, 0x18
dec ecx
xor eax, eax
mov al, byte [ecx]
shl eax, 0x10
or edi, eax
dec ecx
xor eax, eax
mov ah, byte [ecx]
or edi, eax
dec ecx
xor eax, eax
mov al, byte [ecx]
or edi, eax
dec ecx
xor eax, eax
mov al, byte [ecx]
shl eax, 0x18
dec ecx
xor ebx, ebx
mov bl, byte [ecx]
shl ebx, 0x10
or eax, ebx
dec ecx
xor ebx, ebx
mov bh, byte [ecx]
or eax, ebx
xor ebx, ebx
mov bl, byte [ecx - 1]
or eax, ebx
mov ecx, dword [esp + 0x2c]
xor edi, edx
push 1
lea edx, [esp + 0x18]
xor eax, ebp
push ecx
push edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edi
call sym.LIBEAY32.dll_des_encrypt1
mov eax, dword [esp + 0x20]
add esp, 0xc
mov byte [esi], al
mov ecx, eax
inc esi
mov edx, eax
shr ecx, 8
mov byte [esi], cl
inc esi
shr edx, 0x10
mov byte [esi], dl
inc esi
shr eax, 0x18
mov byte [esi], al
mov eax, dword [esp + 0x18]
inc esi
mov ecx, eax
shr ecx, 8
mov byte [esi], al
inc esi
mov edx, eax
pop edi
mov byte [esi], cl
inc esi
shr edx, 0x10
shr eax, 0x18
mov byte [esi], dl
mov byte [esi + 1], al
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
jmp 0x10014238
mov eax, dword [esp + 0x30]
xor ebx, ebx
xor ecx, ecx
xor edx, edx
mov bl, byte [eax]
mov ch, byte [eax + 1]
inc eax
or ebx, ecx
inc eax
xor ecx, ecx
mov dl, byte [eax]
mov cl, byte [eax + 1]
shl edx, 0x10
or ebx, edx
inc eax
shl ecx, 0x18
or ebx, ecx
inc eax
xor edx, edx
xor ecx, ecx
mov dl, byte [eax]
mov ch, byte [eax + 1]
inc eax
mov ebp, edx
or ebp, ecx
inc eax
xor edx, edx
mov dword [esp + 0x34], ebx
mov dh, byte [eax + 1]
mov dl, byte [eax]
mov eax, dword [esp + 0x28]
shl edx, 0x10
add eax, 0xfffffff8
or ebp, edx
test eax, eax
mov dword [esp + 0x10], ebp
mov dword [esp + 0x30], eax
jl 0x1001450b
lea ecx, [eax + 8]
mov edi, dword [esp + 0x24]
shr ecx, 3
mov esi, dword [esp + 0x20]
mov dword [esp + 0x28], ecx
neg ecx
lea ecx, [eax + ecx*8]
mov dword [esp + 0x30], ecx
xor edx, edx
xor eax, eax
mov dl, byte [esi]
mov ah, byte [esi + 1]
inc esi
mov ebp, edx
or ebp, eax
inc esi
xor ecx, ecx
xor edx, edx
mov cl, byte [esi]
mov dl, byte [esi + 1]
shl ecx, 0x10
or ebp, ecx
inc esi
shl edx, 0x18
or ebp, edx
inc esi
xor ebx, ebx
xor eax, eax
mov bl, byte [esi]
mov ah, byte [esi + 1]
inc esi
or ebx, eax
inc esi
xor ecx, ecx
mov eax, dword [esp + 0x2c]
xor edx, edx
mov cl, byte [esi]
mov dl, byte [esi + 1]
shl ecx, 0x10
or ebx, ecx
inc esi
shl edx, 0x18
push 0
lea ecx, [esp + 0x18]
or ebx, edx
push eax
push ecx
mov dword [esp + 0x20], ebp
inc esi
mov dword [esp + 0x24], ebx
call sym.LIBEAY32.dll_des_encrypt1
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
xor eax, ecx
mov ecx, dword [esp + 0x1c]
add esp, 0xc
xor ecx, edx
mov byte [edi], al
mov edx, eax
inc edi
shr edx, 8
mov byte [edi], dl
mov edx, eax
inc edi
mov dword [esp + 0x34], ebp
shr edx, 0x10
mov byte [edi], dl
inc edi
shr eax, 0x18
mov byte [edi], al
inc edi
mov eax, ecx
mov edx, ecx
mov byte [edi], cl
inc edi
shr eax, 8
mov byte [edi], al
mov eax, dword [esp + 0x28]
inc edi
mov dword [esp + 0x10], ebx
shr edx, 0x10
mov byte [edi], dl
inc edi
shr ecx, 0x18
mov byte [edi], cl
inc edi
dec eax
mov dword [esp + 0x28], eax
jne 0x1001437f
mov eax, dword [esp + 0x30]
mov ebx, ebp
mov ebp, dword [esp + 0x10]
cmp eax, 0xfffffff8
je case.default.0x100144c6
xor eax, eax
xor ecx, ecx
mov al, byte [esi]
mov ch, byte [esi + 1]
inc esi
or eax, ecx
inc esi
xor edx, edx
xor ecx, ecx
push 0
mov dl, byte [esi]
mov cl, byte [esi + 1]
shl edx, 0x10
or eax, edx
inc esi
shl ecx, 0x18
or eax, ecx
inc esi
mov dword [esp + 0x18], eax
xor eax, eax
mov al, byte [esi]
inc esi
xor edx, edx
xor ecx, ecx
mov dh, byte [esi]
mov ch, byte [esi + 2]
mov cl, byte [esi + 1]
or eax, edx
inc esi
mov edx, dword [esp + 0x30]
shl ecx, 0x10
or ecx, eax
lea eax, [esp + 0x18]
push edx
push eax
mov dword [esp + 0x24], ecx
call sym.LIBEAY32.dll_des_encrypt1
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
xor ebx, eax
mov eax, dword [esp + 0x3c]
add esp, 0xc
xor ebp, esi
lea edi, [edi + eax + 8]
add eax, 7
cmp eax, 7
mov ecx, ebp
ja case.default.0x100144c6
jmp dword [eax*4 + 0x10014538]
mov edx, ecx
dec edi
shr edx, 0x18
mov byte [edi], dl
mov eax, ecx
dec edi
shr eax, 0x10
mov byte [edi], al
mov edx, ecx
dec edi
shr edx, 8
mov byte [edi], dl
dec edi
mov byte [edi], cl
mov eax, ebx
dec edi
shr eax, 0x18
mov byte [edi], al
mov ecx, ebx
dec edi
shr ecx, 0x10
mov byte [edi], cl
mov edx, ebx
dec edi
shr edx, 8
mov byte [edi], dl
mov byte [edi - 1], bl
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
jmp 0x10014448