Function at 0x10021b90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10066fad
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x1007c040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x24], edi
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x40]
mov dword [ebp - 0x48], 0x55c
sub eax, ecx
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x4c], eax
xorps xmm0, xmm0
sar eax, 2
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], eax
test eax, eax
je 0x10021c2b
push eax
lea ecx, [ebp - 0x1c]
call fcn.100193b0
push dword [ebp - 0x4c]
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x48]
push eax
push esi
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x20]
add esp, 0xc
lea eax, [esi + eax*4]
mov dword [ebp - 0x18], eax
sub esp, 0xc
mov dword [ebp - 4], 0
mov esi, esp
mov dword [ebp - 0x20], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
sar eax, 2
test eax, eax
je 0x10021c87
push eax
mov ecx, esi
call fcn.100193b0
mov edi, dword [esi]
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
sub esi, eax
push esi
push eax
push edi
call sub.VCRUNTIME140.dll_memmove
mov ecx, dword [ebp - 0x20]
add esp, 0xc
sar esi, 2
lea eax, [edi + esi*4]
mov edi, dword [ebp - 0x24]
mov dword [ecx + 4], eax
call fcn.10013080
add esp, 0xc
mov dword [edi], eax
test eax, eax
je 0x10021d75
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10021d75
movaps xmm0, xmmword [0x10074b30]
xor ecx, ecx
mov dword [edi + 4], eax
mov eax, dword [edi]
mov dword [ebp - 0x24], eax
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x30], 0x110b271d
mov dword [ebp - 0x2c], 0xc190d0c
mov dword [ebp - 0x28], 0x161711
mov al, byte [ebp - 0x40]
xor byte [ebp + ecx - 0x3f], al
inc ecx
cmp ecx, 0x1a
jb 0x10021cd4
sub esp, 0x18
mov byte [ebp - 0x25], 0
mov ecx, esp
lea edx, [ebp - 0x3f]
xorps xmm0, xmm0
lea esi, [edx + 1]
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov al, byte [edx]
inc edx
test al, al
jne 0x10021d04
sub edx, esi
lea eax, [ebp - 0x3f]
push edx
push eax
call fcn.100051a0
mov ecx, dword [ebp - 0x24]
call fcn.10012c60
mov edx, dword [ebp - 0x1c]
add esp, 0x18
mov dword [edi + 4], eax
test edx, edx
je 0x10021d58
mov ecx, dword [ebp - 0x14]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x10021d4e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10021da4
push ecx
push edx
call fcn.100641c5
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10064164
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x1c]
mov dword [edi], 0
test edx, edx
je 0x10021d58
mov ecx, dword [ebp - 0x14]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x10021d4e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10021d4e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3