Function at 0x1000fe00
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc
call fcn.100bff40
cmp dword [esp + 0x24], 0
mov eax, dword [esp + 0x20]
push ebx
push ebp
push esi
push edi
je 0x1000ffff
movzx edx, byte [eax]
movzx ecx, byte [eax + 1]
inc eax
shl ecx, 8
or edx, ecx
movzx ecx, byte [eax + 1]
inc eax
shl ecx, 0x10
or edx, ecx
movzx ecx, byte [eax + 1]
mov ebx, dword [esp + 0x28]
inc eax
movzx ebp, byte [eax + 1]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
shl ecx, 0x18
inc eax
or edx, ecx
movzx ecx, byte [eax + 1]
inc eax
shl ecx, 8
or ebp, ecx
movzx ecx, byte [eax + 2]
inc eax
movzx eax, byte [eax]
shl ecx, 8
or ecx, eax
shl ecx, 0x10
or ebp, ecx
add ebx, 0xfffffff8
js 0x1000ff39
lea eax, [ebx + 8]
shr eax, 3
mov dword [esp + 0x28], eax
neg eax
lea ecx, [ebx + eax*8]
mov dword [esp + 0x30], ecx
movzx eax, byte [edi]
movzx ecx, byte [edi + 1]
inc edi
shl ecx, 8
or eax, ecx
movzx ecx, byte [edi + 1]
inc edi
shl ecx, 0x10
or eax, ecx
movzx ecx, byte [edi + 1]
inc edi
shl ecx, 0x18
or eax, ecx
movzx ecx, byte [edi + 1]
inc edi
movzx ebx, byte [edi + 1]
inc edi
shl ebx, 8
or ecx, ebx
movzx ebx, byte [edi + 1]
inc edi
shl ebx, 0x10
or ecx, ebx
movzx ebx, byte [edi + 1]
inc edi
xor eax, edx
mov edx, dword [esp + 0x2c]
shl ebx, 0x18
push 1
or ecx, ebx
mov dword [esp + 0x18], eax
push edx
lea eax, [esp + 0x1c]
xor ecx, ebp
push eax
inc edi
mov dword [esp + 0x24], ecx
call sym.LIBEAY32.dll_DES_encrypt1
mov eax, dword [esp + 0x20]
mov byte [esi], al
inc esi
mov ecx, eax
shr ecx, 8
mov byte [esi], cl
inc esi
mov ecx, eax
shr ecx, 0x10
mov byte [esi], cl
inc esi
mov edx, eax
shr eax, 0x18
mov byte [esi], al
mov eax, dword [esp + 0x24]
inc esi
mov byte [esi], al
inc esi
mov ecx, eax
shr ecx, 8
mov byte [esi], cl
inc esi
mov ecx, eax
shr ecx, 0x10
mov byte [esi], cl
inc esi
mov ebp, eax
shr eax, 0x18
mov byte [esi], al
add esp, 0xc
inc esi
sub dword [esp + 0x28], 1
jne 0x1000fe87
mov ebx, dword [esp + 0x30]
cmp ebx, 0xfffffff8
je case.default.0x100101b5
lea edi, [edi + ebx + 8]
add ebx, 7
xor ecx, ecx
xor eax, eax
cmp ebx, 7
ja case.default.0x1000ff52
jmp dword [ebx*4 + 0x100101fc]
movzx ecx, byte [edi - 1]
dec edi
shl ecx, 0x18
movzx eax, byte [edi - 1]
dec edi
shl eax, 0x10
or ecx, eax
movzx eax, byte [edi - 1]
dec edi
shl eax, 8
or ecx, eax
movzx eax, byte [edi - 1]
dec edi
or ecx, eax
movzx eax, byte [edi - 1]
dec edi
shl eax, 0x18
movzx ebx, byte [edi - 1]
dec edi
shl ebx, 0x10
or eax, ebx
movzx ebx, byte [edi - 1]
dec edi
shl ebx, 8
or eax, ebx
movzx edi, byte [edi - 1]
or eax, edi
xor ecx, ebp
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x2c]
xor eax, edx
push 1
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], eax
call sym.LIBEAY32.dll_DES_encrypt1
mov eax, dword [esp + 0x20]
mov byte [esi], al
inc esi
mov ecx, eax
shr ecx, 8
mov byte [esi], cl
inc esi
mov edx, eax
shr edx, 0x10
mov byte [esi], dl
inc esi
shr eax, 0x18
mov byte [esi], al
mov eax, dword [esp + 0x24]
inc esi
mov byte [esi], al
inc esi
mov ecx, eax
add esp, 0xc
shr ecx, 8
mov byte [esi], cl
inc esi
mov edx, eax
shr edx, 0x10
pop edi
mov byte [esi], dl
shr eax, 0x18
mov byte [esi + 1], al
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
movzx ebx, byte [eax]
movzx ecx, byte [eax + 1]
inc eax
movzx edx, byte [eax + 1]
inc eax
shl ecx, 8
or ebx, ecx
movzx ecx, byte [eax + 1]
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
inc eax
movzx ebp, byte [eax + 1]
inc eax
shl edx, 0x10
or ebx, edx
movzx edx, byte [eax + 1]
inc eax
shl ecx, 0x18
or ebx, ecx
movzx ecx, byte [eax + 2]
inc eax
shl edx, 8
or ebp, edx
movzx edx, byte [eax]
mov eax, dword [esp + 0x28]
shl ecx, 8
or ecx, edx
shl ecx, 0x10
or ebp, ecx
add eax, 0xfffffff8
mov dword [esp + 0x34], ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x30], eax
js 0x10010135
lea ecx, [eax + 8]
shr ecx, 3
mov dword [esp + 0x28], ecx
neg ecx
lea eax, [eax + ecx*8]
mov dword [esp + 0x30], eax
movzx ebp, byte [esi]
movzx ecx, byte [esi + 1]
inc esi
movzx edx, byte [esi + 1]
inc esi
movzx eax, byte [esi + 1]
inc esi
movzx ebx, byte [esi + 1]
inc esi
shl ecx, 8
or ebp, ecx
movzx ecx, byte [esi + 1]
inc esi
shl edx, 0x10
or ebp, edx
movzx edx, byte [esi + 1]
inc esi
shl eax, 0x18
or ebp, eax
movzx eax, byte [esi + 1]
inc esi
shl ecx, 8
or ebx, ecx
mov ecx, dword [esp + 0x2c]
shl edx, 0x10
or ebx, edx
push 0
shl eax, 0x18
push ecx
lea edx, [esp + 0x1c]
or ebx, eax
push edx
mov dword [esp + 0x20], ebp
inc esi
mov dword [esp + 0x24], ebx
call sym.LIBEAY32.dll_DES_encrypt1
mov eax, dword [esp + 0x40]
xor eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
xor ecx, dword [esp + 0x24]
mov byte [edi], al
inc edi
mov edx, eax
shr edx, 8
mov byte [edi], dl
inc edi
mov edx, eax
shr edx, 0x10
mov byte [edi], dl
inc edi
shr eax, 0x18
mov byte [edi], al
inc edi
mov byte [edi], cl
inc edi
mov eax, ecx
shr eax, 8
mov byte [edi], al
inc edi
mov edx, ecx
shr edx, 0x10
mov byte [edi], dl
inc edi
shr ecx, 0x18
mov byte [edi], cl
add esp, 0xc
inc edi
sub dword [esp + 0x28], 1
mov dword [esp + 0x34], ebp
mov dword [esp + 0x10], ebx
jne 0x10010075
mov eax, dword [esp + 0x30]
mov ebx, ebp
mov ebp, dword [esp + 0x10]
cmp eax, 0xfffffff8
je case.default.0x100101b5
movzx eax, byte [esi]
movzx ecx, byte [esi + 1]
inc esi
movzx edx, byte [esi + 1]
shl ecx, 8
or eax, ecx
inc esi
movzx ecx, byte [esi + 1]
inc esi
shl ecx, 0x18
shl edx, 0x10
or eax, edx
or eax, ecx
inc esi
movzx edx, byte [esi + 1]
mov dword [esp + 0x14], eax
movzx eax, byte [esi]
inc esi
movzx ecx, byte [esi + 2]
shl edx, 8
inc esi
or eax, edx
movzx edx, byte [esi]
shl ecx, 8
or ecx, edx
shl ecx, 0x10
or ecx, eax
mov eax, dword [esp + 0x2c]
push 0
mov dword [esp + 0x1c], ecx
push eax
lea ecx, [esp + 0x1c]
push ecx
call sym.LIBEAY32.dll_DES_encrypt1
mov eax, dword [esp + 0x3c]
xor ebp, dword [esp + 0x24]
xor ebx, dword [esp + 0x20]
lea edi, [edi + eax + 8]
add eax, 7
add esp, 0xc
mov ecx, ebp
cmp eax, 7
ja case.default.0x100101b5
jmp dword [eax*4 + 0x1001021c]
dec edi
mov edx, ecx
shr edx, 0x18
mov byte [edi], dl
dec edi
mov eax, ecx
shr eax, 0x10
mov byte [edi], al
dec edi
mov edx, ecx
shr edx, 8
mov byte [edi], dl
dec edi
mov byte [edi], cl
dec edi
mov eax, ebx
shr eax, 0x18
mov byte [edi], al
dec edi
mov ecx, ebx
shr ecx, 0x10
mov byte [edi], cl
dec edi
mov edx, ebx
shr edx, 8
mov byte [edi], dl
mov byte [edi - 1], bl
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret