Function at 0x9bf1be
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0x24], 0
mov eax, dword [ebp + 0x20]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
je 0x9bf3d4
movzx edx, byte [eax]
inc eax
xor ecx, ecx
mov dword [ebp - 4], eax
mov ch, byte [eax]
or edx, ecx
inc eax
movzx ecx, byte [eax]
shl ecx, 0x10
or edx, ecx
inc eax
movzx ecx, byte [eax]
movzx ebx, byte [eax + 1]
shl ecx, 0x18
or edx, ecx
inc eax
inc eax
xor ecx, ecx
mov ch, byte [eax]
or ebx, ecx
inc eax
xor ecx, ecx
mov ch, byte [eax + 1]
mov cl, byte [eax]
mov eax, dword [ebp + 0x10]
shl ecx, 0x10
or ebx, ecx
lea ecx, [eax - 8]
test ecx, ecx
mov dword [ebp + 8], ebx
jl 0x9bf2db
lea eax, [ecx + 8]
shr eax, 3
mov dword [ebp + 0xc], eax
neg eax
lea eax, [ecx + eax*8]
mov dword [ebp + 0x10], eax
movzx eax, byte [esi]
inc esi
xor ecx, ecx
xor ebx, ebx
push dword [ebp + 0x1c]
mov ch, byte [esi]
or eax, ecx
inc esi
push dword [ebp + 0x18]
movzx ecx, byte [esi]
shl ecx, 0x10
or eax, ecx
inc esi
push dword [ebp + 0x14]
movzx ecx, byte [esi]
shl ecx, 0x18
or eax, ecx
inc esi
xor eax, edx
movzx ecx, byte [esi]
mov bh, byte [esi + 1]
inc esi
or ecx, ebx
inc esi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
movzx ebx, byte [esi]
shl ebx, 0x10
or ecx, ebx
inc esi
push eax
movzx ebx, byte [esi]
shl ebx, 0x18
or ecx, ebx
inc esi
xor ecx, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
call fcn.009beeb5
mov eax, dword [ebp - 0x10]
add esp, 0x10
mov byte [edi], al
mov ebx, eax
inc edi
mov ecx, dword [ebp - 0xc]
shr ebx, 8
mov byte [edi], bl
mov ebx, eax
inc edi
mov edx, eax
shr ebx, 0x10
mov byte [edi], bl
inc edi
shr eax, 0x18
mov byte [edi], al
inc edi
mov eax, ecx
mov dword [ebp + 8], ecx
mov byte [edi], cl
inc edi
shr eax, 8
mov byte [edi], al
mov eax, ecx
inc edi
shr eax, 0x10
mov byte [edi], al
inc edi
shr ecx, 0x18
mov byte [edi], cl
inc edi
dec dword [ebp + 0xc]
jne 0x9bf234
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
cmp ecx, 0xfffffff8
je 0x9bf399
lea ebx, [esi + ecx + 8]
add ecx, 7
xor esi, esi
xor eax, eax
cmp ecx, 7
ja case.default.0x9bf2f4
jmp dword [ecx*4 + 0x9bf5da]
movzx esi, byte [ebx - 1]
dec ebx
shl esi, 0x18
movzx eax, byte [ebx - 1]
dec ebx
shl eax, 0x10
or esi, eax
dec ebx
xor eax, eax
mov ah, byte [ebx]
or esi, eax
movzx eax, byte [ebx - 1]
dec ebx
or esi, eax
movzx eax, byte [ebx - 1]
dec ebx
shl eax, 0x18
movzx ecx, byte [ebx - 1]
dec ebx
shl ecx, 0x10
or eax, ecx
dec ebx
xor ecx, ecx
mov ch, byte [ebx]
or eax, ecx
movzx ecx, byte [ebx - 1]
or eax, ecx
push dword [ebp + 0x1c]
xor esi, dword [ebp + 8]
xor eax, edx
push dword [ebp + 0x18]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], esi
push dword [ebp + 0x14]
push eax
call fcn.009beeb5
mov eax, dword [ebp - 0x10]
add esp, 0x10
mov byte [edi], al
mov ebx, eax
inc edi
mov ecx, dword [ebp - 0xc]
shr ebx, 8
mov byte [edi], bl
mov ebx, eax
inc edi
mov edx, eax
shr ebx, 0x10
mov byte [edi], bl
inc edi
shr eax, 0x18
mov byte [edi], al
inc edi
mov eax, ecx
mov dword [ebp + 8], ecx
mov byte [edi], cl
inc edi
shr eax, 8
mov ebx, dword [ebp + 8]
mov byte [edi], al
mov eax, ecx
inc edi
shr eax, 0x10
shr ecx, 0x18
mov byte [edi], al
mov byte [edi + 1], cl
mov eax, dword [ebp + 0x20]
mov ecx, edx
shr ecx, 8
mov byte [eax], dl
mov eax, dword [ebp - 4]
mov byte [eax], cl
mov ecx, edx
inc eax
shr ecx, 0x10
mov byte [eax], cl
inc eax
shr edx, 0x18
mov byte [eax], dl
inc eax
mov ecx, ebx
mov byte [eax], bl
inc eax
shr ecx, 8
mov byte [eax], cl
mov ecx, ebx
inc eax
shr ecx, 0x10
shr ebx, 0x18
mov byte [eax], cl
mov byte [eax + 1], bl
jmp 0x9bf5d5
movzx ebx, byte [eax]
inc eax
xor ecx, ecx
mov dword [ebp - 4], eax
xor edx, edx
mov ch, byte [eax]
or ebx, ecx
inc eax
movzx ecx, byte [eax]
shl ecx, 0x10
or ebx, ecx
inc eax
movzx ecx, byte [eax]
shl ecx, 0x18
or ebx, ecx
inc eax
movzx ecx, byte [eax]
mov dh, byte [eax + 1]
inc eax
or ecx, edx
inc eax
xor edx, edx
mov dh, byte [eax + 1]
mov dl, byte [eax]
mov eax, dword [ebp + 0x10]
shl edx, 0x10
add eax, 0xfffffff8
or ecx, edx
test eax, eax
mov dword [ebp + 8], ecx
mov dword [ebp + 0x10], eax
jl 0x9bf4e0
lea ecx, [eax + 8]
shr ecx, 3
mov dword [ebp - 8], ecx
neg ecx
lea eax, [eax + ecx*8]
mov dword [ebp + 0x10], eax
movzx eax, byte [esi]
inc esi
xor ecx, ecx
xor edx, edx
push dword [ebp + 0x1c]
mov ch, byte [esi]
or eax, ecx
inc esi
push dword [ebp + 0x18]
movzx ecx, byte [esi]
shl ecx, 0x10
or eax, ecx
inc esi
push dword [ebp + 0x14]
movzx ecx, byte [esi]
shl ecx, 0x18
or eax, ecx
inc esi
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x10], eax
movzx ecx, byte [esi]
mov dh, byte [esi + 1]
inc esi
or ecx, edx
inc esi
lea eax, [ebp - 0x10]
movzx edx, byte [esi]
shl edx, 0x10
or ecx, edx
inc esi
push eax
movzx edx, byte [esi]
shl edx, 0x18
or ecx, edx
inc esi
mov dword [ebp + 0x24], ecx
mov dword [ebp - 0xc], ecx
call fcn.009befe7
xor ebx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
xor eax, dword [ebp - 0xc]
add esp, 0x10
mov byte [edi], bl
mov ecx, ebx
inc edi
shr ecx, 8
mov byte [edi], cl
mov ecx, ebx
inc edi
shr ecx, 0x10
mov byte [edi], cl
inc edi
shr ebx, 0x18
mov byte [edi], bl
inc edi
mov ecx, eax
mov ebx, dword [ebp + 0xc]
mov byte [edi], al
inc edi
shr ecx, 8
mov byte [edi], cl
mov ecx, eax
inc edi
shr ecx, 0x10
mov byte [edi], cl
inc edi
shr eax, 0x18
mov byte [edi], al
mov eax, dword [ebp + 0x24]
inc edi
dec dword [ebp - 8]
mov dword [ebp + 8], eax
jne 0x9bf431
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
cmp eax, 0xfffffff8
je 0x9bf59f
movzx eax, byte [esi]
inc esi
xor ecx, ecx
push dword [ebp + 0x1c]
xor edx, edx
mov ch, byte [esi]
or eax, ecx
inc esi
push dword [ebp + 0x18]
movzx ecx, byte [esi]
shl ecx, 0x10
or eax, ecx
inc esi
push dword [ebp + 0x14]
movzx ecx, byte [esi]
shl ecx, 0x18
or eax, ecx
inc esi
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x10], eax
movzx ecx, byte [esi]
mov dh, byte [esi + 1]
inc esi
or ecx, edx
inc esi
xor edx, edx
lea eax, [ebp - 0x10]
mov dh, byte [esi + 1]
push eax
mov dl, byte [esi]
shl edx, 0x10
or ecx, edx
mov dword [ebp + 0x24], ecx
mov dword [ebp - 0xc], ecx
call fcn.009befe7
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
xor ebx, dword [ebp - 0x10]
xor eax, dword [ebp - 0xc]
lea edi, [edi + ecx + 8]
add ecx, 7
add esp, 0x10
cmp ecx, 7
ja case.default.0x9bf557
jmp dword [ecx*4 + 0x9bf5fa]
mov ecx, eax
dec edi
shr ecx, 0x18
mov byte [edi], cl
mov ecx, eax
dec edi
shr ecx, 0x10
mov byte [edi], cl
mov ecx, eax
dec edi
shr ecx, 8
mov byte [edi], cl
dec edi
mov byte [edi], al
mov eax, ebx
dec edi
shr eax, 0x18
mov byte [edi], al
mov eax, ebx
dec edi
shr eax, 0x10
mov byte [edi], al
mov eax, ebx
dec edi
shr eax, 8
mov byte [edi], al
mov byte [edi - 1], bl
mov eax, dword [ebp + 0x24]
mov ebx, dword [ebp + 0xc]
mov dword [ebp + 8], eax
mov ecx, eax
mov eax, dword [ebp + 0x20]
mov edx, ebx
shr edx, 8
mov byte [eax], bl
mov eax, dword [ebp - 4]
mov byte [eax], dl
mov edx, ebx
inc eax
shr edx, 0x10
mov byte [eax], dl
inc eax
shr ebx, 0x18
mov byte [eax], bl
inc eax
mov edx, ecx
mov byte [eax], cl
inc eax
shr edx, 8
mov byte [eax], dl
mov edx, ecx
inc eax
shr edx, 0x10
shr ecx, 0x18
mov byte [eax], dl
mov byte [eax + 1], cl
pop edi
pop esi
pop ebx
leave
ret