Function at 0x1021c2b0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x18
call fcn.10077700
mov eax, dword [esp + 0x30]
xor ecx, ecx
xor edx, edx
push ebx
mov cl, byte [eax]
mov dh, byte [eax + 1]
inc eax
or ecx, edx
inc eax
xor edx, edx
push ebp
push esi
mov dl, byte [eax]
push edi
shl edx, 0x10
or ecx, edx
inc eax
xor edx, edx
mov dl, byte [eax]
shl edx, 0x18
or ecx, edx
inc eax
mov dword [esp + 0x14], ecx
xor ecx, ecx
mov cl, byte [eax]
inc eax
xor edx, edx
mov dh, byte [eax]
or ecx, edx
inc eax
xor edx, edx
mov dh, byte [eax + 1]
mov dl, byte [eax]
mov eax, dword [esp + 0x44]
shl edx, 0x10
or ecx, edx
xor edx, edx
mov dh, byte [eax + 1]
mov dword [esp + 0x18], ecx
xor ecx, ecx
mov cl, byte [eax]
inc eax
or ecx, edx
inc eax
xor edx, edx
mov dl, byte [eax]
shl edx, 0x10
or ecx, edx
inc eax
xor edx, edx
mov dl, byte [eax]
shl edx, 0x18
or ecx, edx
inc eax
xor edx, edx
mov dword [esp + 0x44], ecx
mov dl, byte [eax]
inc eax
mov esi, edx
xor edx, edx
mov dh, byte [eax]
or esi, edx
inc eax
xor edx, edx
mov dh, byte [eax + 1]
mov dl, byte [eax]
mov eax, dword [esp + 0x48]
shl edx, 0x10
or esi, edx
test eax, eax
mov dword [esp + 0x10], esi
je 0x1021c5b6
mov ecx, dword [esp + 0x3c]
xor eax, eax
xor edx, edx
mov al, byte [ecx]
lea esi, [ecx + 1]
xor ecx, ecx
mov dword [esp + 0x48], esi
mov ch, byte [esi]
mov dl, byte [esi + 1]
or eax, ecx
inc esi
shl edx, 0x10
or eax, edx
inc esi
xor ecx, ecx
xor edx, edx
mov cl, byte [esi]
shl ecx, 0x18
or eax, ecx
inc esi
xor ecx, ecx
mov cl, byte [esi]
mov dh, byte [esi + 1]
inc esi
or ecx, edx
inc esi
xor edx, edx
mov dh, byte [esi + 1]
mov dl, byte [esi]
shl edx, 0x10
or ecx, edx
mov edx, dword [esp + 0x34]
lea ebx, [edx - 8]
test ebx, ebx
jl 0x1021c5a9
lea edx, [ebx + 8]
mov esi, dword [esp + 0x30]
shr edx, 3
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x40], edx
neg edx
lea edx, [ebx + edx*8]
mov dword [esp + 0x34], edx
xor edx, edx
xor ebx, ebx
mov dl, byte [edi]
inc edi
mov ebp, edx
xor edx, edx
mov dh, byte [edi]
push 1
or ebp, edx
inc edi
xor edx, edx
mov dl, byte [edi]
shl edx, 0x10
or ebp, edx
inc edi
xor edx, edx
mov dl, byte [edi]
shl edx, 0x18
or ebp, edx
inc edi
xor edx, edx
xor ebp, eax
mov dl, byte [edi]
mov bh, byte [edi + 1]
inc edi
or edx, ebx
inc edi
xor ebx, ebx
mov eax, dword [esp + 0x18]
mov bl, byte [edi]
xor ebp, eax
shl ebx, 0x10
or edx, ebx
inc edi
xor ebx, ebx
mov eax, dword [esp + 0x3c]
mov bl, byte [edi]
push eax
shl ebx, 0x18
or edx, ebx
mov ebx, dword [esp + 0x20]
xor edx, ecx
lea ecx, [esp + 0x28]
xor edx, ebx
push ecx
inc edi
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], edx
call fcn.101f87d0
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x50]
xor eax, edx
add esp, 0xc
mov byte [esi], al
mov edx, eax
inc esi
mov ecx, eax
shr edx, 8
mov byte [esi], dl
inc esi
shr ecx, 0x10
mov byte [esi], cl
mov ecx, dword [esp + 0x24]
mov edx, eax
inc esi
shr edx, 0x18
mov byte [esi], dl
mov edx, dword [esp + 0x10]
inc esi
xor ecx, edx
mov edx, ecx
mov byte [esi], cl
inc esi
shr edx, 8
mov byte [esi], dl
mov edx, ecx
inc esi
shr edx, 0x10
mov byte [esi], dl
inc esi
mov edx, ecx
shr edx, 0x18
mov byte [esi], dl
mov edx, dword [esp + 0x40]
inc esi
dec edx
mov dword [esp + 0x40], edx
jne 0x1021c3c4
mov ebx, dword [esp + 0x34]
cmp ebx, 0xfffffff8
je 0x1021c569
lea edx, [edi + ebx + 8]
add ebx, 7
xor edi, edi
xor ebp, ebp
cmp ebx, 7
ja case.default.0x1021c4a9
jmp dword [ebx*4 + 0x1021c848]
dec edx
xor ebx, ebx
mov bl, byte [edx]
mov edi, ebx
shl edi, 0x18
dec edx
xor ebx, ebx
mov bl, byte [edx]
shl ebx, 0x10
or edi, ebx
dec edx
xor ebx, ebx
mov bh, byte [edx]
or edi, ebx
dec edx
xor ebx, ebx
mov bl, byte [edx]
or edi, ebx
dec edx
xor ebx, ebx
mov bl, byte [edx]
mov ebp, ebx
shl ebp, 0x18
dec edx
xor ebx, ebx
mov bl, byte [edx]
shl ebx, 0x10
or ebp, ebx
dec edx
xor ebx, ebx
mov bh, byte [edx]
or ebp, ebx
xor ebx, ebx
mov bl, byte [edx - 1]
or ebp, ebx
mov edx, dword [esp + 0x14]
xor ebp, eax
mov eax, dword [esp + 0x38]
xor ebp, edx
mov dword [esp + 0x20], ebp
mov ebp, dword [esp + 0x18]
xor edi, ecx
push 1
lea ecx, [esp + 0x24]
xor edi, ebp
push eax
push ecx
mov dword [esp + 0x30], edi
call fcn.101f87d0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x50]
xor eax, ebp
add esp, 0xc
mov byte [esi], al
mov edx, eax
inc esi
mov ecx, eax
shr edx, 8
mov byte [esi], dl
mov ebp, dword [esp + 0x10]
inc esi
mov edx, eax
shr ecx, 0x10
mov byte [esi], cl
mov ecx, dword [esp + 0x24]
inc esi
xor ecx, ebp
shr edx, 0x18
mov byte [esi], dl
inc esi
mov edx, ecx
mov byte [esi], cl
inc esi
shr edx, 8
mov byte [esi], dl
mov edx, ecx
inc esi
shr edx, 0x10
mov byte [esi], dl
mov edx, ecx
shr edx, 0x18
mov byte [esi + 1], dl
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x48]
pop edi
mov byte [edx], al
mov edx, eax
shr edx, 8
mov byte [esi], dl
mov edx, eax
inc esi
shr edx, 0x10
mov byte [esi], dl
inc esi
shr eax, 0x18
mov byte [esi], al
inc esi
mov eax, ecx
mov edx, ecx
mov byte [esi], cl
inc esi
shr eax, 8
mov byte [esi], al
inc esi
shr edx, 0x10
shr ecx, 0x18
mov byte [esi], dl
mov byte [esi + 1], cl
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
jmp 0x1021c490
mov eax, dword [esp + 0x3c]
xor ebx, ebx
xor edx, edx
mov bl, byte [eax]
lea esi, [eax + 1]
xor eax, eax
mov dword [esp + 0x48], esi
mov ah, byte [esi]
mov dl, byte [esi + 1]
or ebx, eax
inc esi
shl edx, 0x10
or ebx, edx
inc esi
xor eax, eax
xor edx, edx
mov al, byte [esi]
shl eax, 0x18
or ebx, eax
inc esi
xor eax, eax
mov al, byte [esi]
mov dh, byte [esi + 1]
inc esi
or eax, edx
inc esi
xor edx, edx
mov dh, byte [esi + 1]
mov dl, byte [esi]
shl edx, 0x10
or eax, edx
mov edx, dword [esp + 0x34]
add edx, 0xfffffff8
mov dword [esp + 0x40], eax
test edx, edx
mov dword [esp + 0x34], edx
jle 0x1021c839
lea eax, [edx + 7]
mov edi, dword [esp + 0x30]
shr eax, 3
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x1c], eax
neg eax
lea eax, [edx + eax*8]
mov dword [esp + 0x34], eax
jmp 0x1021c632
mov ecx, dword [esp + 0x44]
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 edx, edx
xor eax, eax
mov dl, byte [esi]
mov al, byte [esi + 1]
shl edx, 0x10
or ebp, edx
inc esi
shl eax, 0x18
or ebp, eax
inc esi
mov edx, ebp
xor eax, eax
mov al, byte [esi]
xor edx, ecx
inc esi
xor ecx, ecx
mov dword [esp + 0x20], edx
xor edx, edx
mov ch, byte [esi]
mov dl, byte [esi + 1]
or eax, ecx
inc esi
shl edx, 0x10
or eax, edx
inc esi
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov cl, byte [esi]
push 0
shl ecx, 0x18
or eax, ecx
inc esi
mov dword [esp + 0x34], eax
xor eax, edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x24]
push edx
push eax
call fcn.101f87d0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov eax, ebx
mov ebx, dword [esp + 0x20]
xor eax, ecx
mov ecx, dword [esp + 0x4c]
xor eax, ebx
mov ebx, dword [esp + 0x24]
xor ecx, edx
add esp, 0xc
xor ecx, ebx
mov byte [edi], al
mov edx, eax
inc edi
shr edx, 8
mov byte [edi], dl
mov edx, eax
inc edi
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
inc edi
shr edx, 0x10
mov byte [edi], dl
mov eax, dword [esp + 0x30]
inc edi
shr ecx, 0x18
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x1c]
mov byte [edi], cl
inc edi
dec eax
mov ebx, ebp
mov dword [esp + 0x1c], eax
jne 0x1021c62e
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x34]
cmp edx, 0xfffffff8
je 0x1021c7f9
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 edx, edx
xor eax, eax
mov dl, byte [esi]
mov al, byte [esi + 1]
shl edx, 0x10
or ebp, edx
inc esi
shl eax, 0x18
or ebp, eax
inc esi
mov edx, ebp
xor eax, eax
mov al, byte [esi]
xor edx, ecx
inc esi
xor ecx, ecx
mov dword [esp + 0x20], edx
xor edx, edx
mov ch, byte [esi]
mov dh, byte [esi + 2]
mov dl, byte [esi + 1]
or eax, ecx
inc esi
mov ecx, dword [esp + 0x10]
shl edx, 0x10
or eax, edx
push 0
mov dword [esp + 0x34], eax
xor eax, ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.101f87d0
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
xor eax, ecx
mov ecx, dword [esp + 0x40]
xor ebx, esi
mov esi, dword [esp + 0x24]
lea edi, [edi + ecx + 8]
add ecx, 7
add esp, 0xc
xor ebx, edx
xor eax, esi
cmp ecx, 7
ja case.default.0x1021c7b2
jmp dword [ecx*4 + 0x1021c868]
mov edx, eax
dec edi
shr edx, 0x18
mov byte [edi], dl
mov ecx, eax
dec edi
shr ecx, 0x10
mov byte [edi], cl
mov edx, eax
dec edi
shr edx, 8
mov byte [edi], dl
dec edi
mov byte [edi], al
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
mov eax, dword [esp + 0x30]
mov ebx, ebp
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x48]
mov edx, ebx
pop edi
shr edx, 8
mov byte [ecx], bl
mov byte [esi], dl
mov ecx, ebx
inc esi
shr ecx, 0x10
mov byte [esi], cl
inc esi
shr ebx, 0x18
mov byte [esi], bl
inc esi
mov edx, eax
mov ecx, eax
mov byte [esi], al
inc esi
shr edx, 8
mov byte [esi], dl
inc esi
shr ecx, 0x10
shr eax, 0x18
mov byte [esi], cl
mov byte [esi + 1], al
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
jmp 0x1021c716