Function at 0x1021a700
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10
call fcn.10077700
mov eax, dword [esp + 0x28]
push ebx
push ebp
push esi
test eax, eax
push edi
je 0x1021a983
mov ebp, dword [esp + 0x34]
xor edx, edx
xor eax, eax
xor ecx, ecx
mov dl, byte [ebp]
mov al, byte [ebp + 1]
shl edx, 0x18
inc ebp
shl eax, 0x10
mov ch, byte [ebp + 1]
or edx, eax
inc ebp
or edx, ecx
inc ebp
xor eax, eax
xor ecx, ecx
mov al, byte [ebp]
or edx, eax
inc ebp
xor eax, eax
mov al, byte [ebp]
mov cl, byte [ebp + 1]
shl eax, 0x18
inc ebp
shl ecx, 0x10
or eax, ecx
inc ebp
xor ecx, ecx
mov ch, byte [ebp]
or eax, ecx
inc ebp
xor ecx, ecx
mov cl, byte [ebp]
sub ebp, 7
or eax, ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x34], eax
lea ebx, [ecx - 8]
test ebx, ebx
jl 0x1021a976
lea eax, [ebx + 8]
mov esi, dword [esp + 0x28]
shr eax, 3
mov edi, dword [esp + 0x24]
mov dword [esp + 0x38], eax
neg eax
lea eax, [ebx + eax*8]
mov dword [esp + 0x2c], eax
xor eax, eax
xor ecx, ecx
mov al, byte [edi]
mov cl, byte [edi + 1]
shl eax, 0x18
inc edi
xor ebx, ebx
shl ecx, 0x10
or eax, ecx
inc edi
xor ecx, ecx
mov ch, byte [edi]
or eax, ecx
inc edi
xor ecx, ecx
mov cl, byte [edi]
or eax, ecx
inc edi
xor ecx, ecx
xor eax, edx
mov cl, byte [edi]
mov bl, byte [edi + 1]
shl ecx, 0x18
inc edi
mov edx, dword [esp + 0x30]
shl ebx, 0x10
or ecx, ebx
inc edi
xor ebx, ebx
mov dword [esp + 0x18], eax
mov bh, byte [edi]
mov eax, dword [esp + 0x34]
or ecx, ebx
inc edi
xor ebx, ebx
push edx
mov bl, byte [edi]
or ecx, ebx
inc edi
xor ecx, eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x24], ecx
call fcn.1021ac40
mov edx, dword [esp + 0x20]
add esp, 8
mov ecx, edx
mov eax, edx
shr ecx, 0x18
mov byte [esi], cl
inc esi
shr eax, 0x10
mov byte [esi], al
mov eax, dword [esp + 0x1c]
mov ecx, edx
inc esi
shr ecx, 8
mov byte [esi], cl
inc esi
mov ecx, eax
mov dword [esp + 0x34], eax
mov byte [esi], dl
inc esi
shr ecx, 0x18
mov byte [esi], cl
mov ecx, eax
inc esi
shr ecx, 0x10
mov byte [esi], cl
mov ecx, eax
inc esi
shr ecx, 8
mov byte [esi], cl
mov ecx, dword [esp + 0x38]
inc esi
mov byte [esi], al
inc esi
dec ecx
mov dword [esp + 0x38], ecx
jne 0x1021a796
mov ebx, dword [esp + 0x2c]
cmp ebx, 0xfffffff8
je 0x1021a932
lea ecx, [edi + ebx + 8]
add ebx, 7
xor edi, edi
cmp ebx, 7
mov dword [esp + 0x28], 0
ja case.default.0x1021a86e
jmp dword [ebx*4 + 0x1021ac00]
dec ecx
xor ebx, ebx
mov bl, byte [ecx]
mov dword [esp + 0x28], ebx
mov edi, dword [esp + 0x28]
dec ecx
xor ebx, ebx
mov bh, byte [ecx]
or edi, ebx
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x28]
dec ecx
xor ebx, ebx
mov bl, byte [ecx]
shl ebx, 0x10
or edi, ebx
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x28]
dec ecx
xor ebx, ebx
mov bl, byte [ecx]
shl ebx, 0x18
or edi, ebx
mov dword [esp + 0x28], edi
dec ecx
xor ebx, ebx
mov bl, byte [ecx]
mov edi, ebx
dec ecx
xor ebx, ebx
mov bh, byte [ecx]
or edi, ebx
dec ecx
xor ebx, ebx
mov bl, byte [ecx]
shl ebx, 0x10
or edi, ebx
xor ebx, ebx
mov bl, byte [ecx - 1]
shl ebx, 0x18
or edi, ebx
mov ecx, dword [esp + 0x28]
xor edi, edx
mov edx, dword [esp + 0x30]
xor ecx, eax
lea eax, [esp + 0x18]
push edx
push eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ecx
call fcn.1021ac40
mov edx, dword [esp + 0x20]
add esp, 8
mov ecx, edx
mov eax, edx
shr ecx, 0x18
mov byte [esi], cl
inc esi
shr eax, 0x10
mov byte [esi], al
mov eax, dword [esp + 0x1c]
mov ecx, edx
inc esi
shr ecx, 8
mov byte [esi], cl
inc esi
mov ecx, eax
mov byte [esi], dl
inc esi
shr ecx, 0x18
mov byte [esi], cl
mov ecx, eax
inc esi
shr ecx, 0x10
mov byte [esi], cl
mov ecx, eax
inc esi
shr ecx, 8
mov byte [esi], cl
mov byte [esi + 1], al
mov ecx, edx
pop edi
shr ecx, 0x18
mov byte [ebp], cl
mov ecx, edx
inc ebp
pop esi
shr ecx, 0x10
mov byte [ebp], cl
mov ecx, edx
inc ebp
shr ecx, 8
mov byte [ebp], cl
inc ebp
mov ecx, eax
mov byte [ebp], dl
mov edx, eax
inc ebp
shr edx, 0x18
mov byte [ebp], dl
inc ebp
shr ecx, 0x10
mov byte [ebp], cl
mov edx, eax
inc ebp
shr edx, 8
mov byte [ebp], dl
mov byte [ebp + 1], al
pop ebp
pop ebx
add esp, 0x10
ret
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
jmp 0x1021a84f
mov ebp, dword [esp + 0x34]
xor eax, eax
xor ecx, ecx
xor edx, edx
mov al, byte [ebp]
mov cl, byte [ebp + 1]
shl eax, 0x18
inc ebp
shl ecx, 0x10
mov dh, byte [ebp + 1]
or eax, ecx
inc ebp
or eax, edx
inc ebp
xor ecx, ecx
xor edx, edx
mov cl, byte [ebp]
or eax, ecx
inc ebp
xor ecx, ecx
mov dword [esp + 0x10], eax
mov cl, byte [ebp]
mov dl, byte [ebp + 1]
shl ecx, 0x18
inc ebp
shl edx, 0x10
or ecx, edx
inc ebp
xor edx, edx
mov dh, byte [ebp]
or ecx, edx
inc ebp
xor edx, edx
mov dl, byte [ebp]
sub ebp, 7
or ecx, edx
mov edx, dword [esp + 0x2c]
add edx, 0xfffffff8
mov dword [esp + 0x38], ecx
test edx, edx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x2c], edx
jl 0x1021abf2
lea eax, [edx + 8]
mov edi, dword [esp + 0x28]
shr eax, 3
mov esi, dword [esp + 0x24]
mov dword [esp + 0x14], eax
neg eax
lea eax, [edx + eax*8]
mov dword [esp + 0x2c], eax
xor ecx, ecx
xor edx, edx
mov cl, byte [esi]
mov dl, byte [esi + 1]
mov ebp, ecx
xor eax, eax
shl ebp, 0x18
inc esi
xor ecx, ecx
shl edx, 0x10
mov ah, byte [esi + 1]
or ebp, edx
inc esi
or ebp, eax
inc esi
xor ebx, ebx
xor edx, edx
xor eax, eax
mov cl, byte [esi]
mov bl, byte [esi + 1]
or ebp, ecx
inc esi
shl ebx, 0x18
mov dl, byte [esi + 1]
inc esi
shl edx, 0x10
mov ah, byte [esi + 1]
or ebx, edx
inc esi
mov edx, dword [esp + 0x30]
or ebx, eax
inc esi
xor ecx, ecx
lea eax, [esp + 0x18]
mov cl, byte [esi]
push edx
or ebx, ecx
push eax
mov dword [esp + 0x20], ebp
inc esi
mov dword [esp + 0x24], ebx
call fcn.1021ac40
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
xor eax, ecx
mov ecx, dword [esp + 0x40]
add esp, 8
xor ecx, edx
mov edx, eax
shr edx, 0x18
mov byte [edi], dl
mov edx, eax
inc edi
mov dword [esp + 0x10], ebp
shr edx, 0x10
mov byte [edi], dl
mov edx, eax
inc edi
mov dword [esp + 0x38], ebx
shr edx, 8
mov byte [edi], dl
inc edi
mov edx, ecx
mov byte [edi], al
mov eax, ecx
inc edi
shr eax, 0x18
mov byte [edi], al
inc edi
shr edx, 0x10
mov byte [edi], dl
mov eax, ecx
inc edi
shr eax, 8
mov byte [edi], al
mov eax, dword [esp + 0x14]
inc edi
mov byte [edi], cl
inc edi
dec eax
mov dword [esp + 0x14], eax
jne 0x1021aa0b
mov ebp, dword [esp + 0x34]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x2c]
mov ecx, ebx
cmp edx, 0xfffffff8
je 0x1021abae
xor ebx, ebx
xor ecx, ecx
mov bl, byte [esi]
mov cl, byte [esi + 1]
shl ebx, 0x18
inc esi
xor edx, edx
shl ecx, 0x10
mov dh, byte [esi + 1]
or ebx, ecx
inc esi
or ebx, edx
inc esi
xor eax, eax
xor ecx, ecx
xor edx, edx
mov al, byte [esi]
or ebx, eax
inc esi
xor eax, eax
mov dword [esp + 0x18], ebx
mov al, byte [esi]
mov cl, byte [esi + 1]
shl eax, 0x18
inc esi
shl ecx, 0x10
mov dh, byte [esi + 1]
or eax, ecx
mov dl, byte [esi + 2]
inc esi
or eax, edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30]
push eax
push ecx
call fcn.1021ac40
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
xor ecx, edx
mov edx, dword [esp + 0x34]
add esp, 8
xor eax, esi
lea edi, [edi + edx + 8]
add edx, 7
cmp edx, 7
ja case.default.0x1021ab65
jmp dword [edx*4 + 0x1021ac20]
dec edi
mov byte [edi], cl
mov edx, ecx
dec edi
shr edx, 8
mov byte [edi], dl
mov edx, ecx
dec edi
shr edx, 0x10
mov byte [edi], dl
dec edi
shr ecx, 0x18
mov byte [edi], cl
dec edi
mov byte [edi], al
mov ecx, eax
dec edi
shr ecx, 8
mov byte [edi], cl
mov edx, eax
dec edi
shr edx, 0x10
mov byte [edi], dl
shr eax, 0x18
mov byte [edi - 1], al
mov eax, dword [esp + 0x28]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x38], eax
mov ecx, eax
mov eax, ebx
mov edx, eax
pop edi
shr edx, 0x18
mov byte [ebp], dl
mov edx, eax
inc ebp
pop esi
shr edx, 0x10
mov byte [ebp], dl
mov edx, eax
inc ebp
shr edx, 8
mov byte [ebp], dl
inc ebp
mov edx, ecx
mov byte [ebp], al
mov eax, ecx
inc ebp
shr eax, 0x18
mov byte [ebp], al
inc ebp
shr edx, 0x10
mov byte [ebp], dl
mov eax, ecx
inc ebp
shr eax, 8
mov byte [ebp], al
mov byte [ebp + 1], cl
pop ebp
pop ebx
add esp, 0x10
ret
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
jmp 0x1021aadb