Function at 0x10202820
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov ebp, dword [esp + 0x38]
movzx ebx, byte [ebp]
movzx eax, byte [ebp + 1]
inc ebp
movzx ecx, byte [ebp + 1]
inc ebp
movzx edx, byte [ebp + 1]
inc ebp
shl eax, 8
or ebx, eax
movzx eax, byte [ebp + 1]
inc ebp
shl ecx, 0x10
or ebx, ecx
movzx ecx, byte [ebp + 1]
inc ebp
shl edx, 0x18
inc ebp
or ebx, edx
movzx edx, byte [ebp]
shl ecx, 8
or eax, ecx
movzx ecx, byte [ebp + 1]
inc ebp
shl edx, 0x10
shl ecx, 0x18
or eax, edx
or eax, ecx
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
inc ebp
add ecx, 0xfffffff8
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ecx
js 0x10202965
lea eax, [ecx + 8]
shr eax, 3
mov dword [esp + 0x14], eax
neg eax
lea edx, [ecx + eax*8]
mov dword [esp + 0x34], edx
movzx ebx, byte [esi]
movzx eax, byte [esi + 1]
inc esi
movzx ecx, byte [esi + 1]
inc esi
movzx edx, byte [esi + 1]
inc esi
shl eax, 8
or ebx, eax
movzx eax, byte [esi + 1]
inc esi
shl ecx, 0x10
or ebx, ecx
movzx ecx, byte [esi + 1]
inc esi
shl edx, 0x18
or ebx, edx
movzx edx, byte [esi + 1]
inc esi
shl ecx, 8
or eax, ecx
movzx ecx, byte [esi + 1]
inc esi
shl edx, 0x10
or eax, edx
shl ecx, 0x18
or eax, ecx
lea edx, [esp + 0x1c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
push edx
push eax
mov dword [esp + 0x24], ebx
inc esi
call fcn.10201ff0
mov eax, dword [esp + 0x24]
xor eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
xor ecx, dword [esp + 0x40]
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
mov eax, dword [esp + 0x20]
inc edi
mov edx, ecx
shr edx, 0x10
mov byte [edi], dl
inc edi
shr ecx, 0x18
mov byte [edi], cl
add esp, 8
inc edi
sub dword [esp + 0x14], 1
mov dword [esp + 0x10], ebx
mov dword [esp + 0x38], eax
jne 0x102028a5
mov ecx, dword [esp + 0x34]
cmp ecx, 0xfffffff8
je 0x10202a28
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 + 0x1c], 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
lea eax, [esp + 0x1c]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x28]
push eax
push ecx
call fcn.10201ff0
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
xor eax, dword [esp + 0x40]
lea edi, [edi + edx + 8]
add edx, 7
add esp, 8
xor ecx, ebx
cmp edx, 7
ja case.default.0x102029e7
jmp dword [edx*4 + 0x10202a6c]
dec edi
mov edx, eax
shr edx, 0x18
mov byte [edi], dl
dec edi
mov edx, eax
shr edx, 0x10
mov byte [edi], dl
dec edi
mov edx, eax
shr edx, 8
mov byte [edi], dl
dec edi
mov byte [edi], al
dec edi
mov eax, ecx
shr eax, 0x18
mov byte [edi], al
dec edi
mov edx, ecx
shr edx, 0x10
mov byte [edi], dl
dec edi
mov eax, ecx
shr eax, 8
mov byte [edi], al
mov byte [edi - 1], cl
mov eax, dword [esp + 0x38]
mov byte [ebp - 8], bl
sub ebp, 8
inc ebp
mov ecx, ebx
shr ecx, 8
mov byte [ebp], cl
inc ebp
mov edx, ebx
shr edx, 0x10
mov byte [ebp], dl
inc ebp
shr ebx, 0x18
mov byte [ebp], bl
inc ebp
mov byte [ebp], al
inc ebp
mov ecx, eax
shr ecx, 8
mov byte [ebp], cl
inc ebp
mov edx, eax
pop edi
shr edx, 0x10
mov byte [ebp], dl
shr eax, 0x18
pop esi
mov byte [ebp + 1], al
pop ebp
pop ebx
add esp, 0x14
ret