Function at 0x10021790
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100595a8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x10070014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x2c], eax
mov esi, dword [0x100767ac]
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
cmp esi, 0x17
ja 0x10021947
mov ebx, dword [eax + 0x14]
test ebx, ebx
je 0x100217f4
push 4
push ebx
call edi
test eax, eax
jne 0x100217ee
push esi
mov ecx, ebx
call dword [0x100665c0]
mov esi, dword [0x100767ac]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 4], 0
xor ecx, ecx
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
push esi
cmp esi, 0xa
jge 0x1002187c
movaps xmm0, xmmword [0x10068550]
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], 0x48421c14
mov word [ebp - 0x30], 0x48
nop dword [eax]
mov al, byte [ebp - 0x44]
xor byte [ebp + ecx - 0x43], al
inc ecx
cmp ecx, 0x14
jb 0x10021830
sub esp, 0x18
mov byte [ebp - 0x2f], 0
lea eax, [ebp - 0x43]
mov ecx, esp
push eax
call fcn.10005650
lea eax, [ebp - 0x60]
push eax
call fcn.10009e40
add esp, 0x20
lea ecx, [ebp - 0x28]
push eax
call fcn.1000b360
mov eax, dword [ebp - 0x4c]
cmp eax, 0x10
jb 0x100218ea
inc eax
push eax
push dword [ebp - 0x60]
call fcn.10005420
jmp 0x100218ea
movaps xmm0, xmmword [0x10068640]
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], 0x3939336d
mov byte [ebp - 0x30], 0
mov al, byte [ebp - 0x44]
xor byte [ebp + ecx - 0x43], al
inc ecx
cmp ecx, 0x13
jb 0x10021892
sub esp, 0x18
mov byte [ebp - 0x30], 0
lea eax, [ebp - 0x43]
mov ecx, esp
push eax
call fcn.10005650
lea eax, [ebp - 0x60]
push eax
call fcn.10009e40
add esp, 0x20
lea ecx, [ebp - 0x28]
push eax
call fcn.1000b360
mov eax, dword [ebp - 0x4c]
cmp eax, 0x10
jb 0x100218d8
inc eax
push eax
push dword [ebp - 0x60]
call fcn.10005420
mov dword [ebp - 0x4c], 0xf
mov dword [ebp - 0x50], 0
mov byte [ebp - 0x60], 0
mov esi, dword [ebp - 0x2c]
mov esi, dword [esi + 0x1c]
test esi, esi
je 0x10021909
push 4
push esi
call edi
test eax, eax
jne 0x10021909
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call dword [0x100665c8]
mov eax, dword [0x100767ac]
test eax, eax
jle 0x10021919
push ecx
push eax
call fcn.10021740
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x10021932
inc eax
push eax
push dword [ebp - 0x28]
call fcn.10005420
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov ebx, dword [0x100767b8]
cmp ebx, 0x14
ja 0x100219d7
mov esi, dword [eax + 0x18]
test esi, esi
je 0x10021972
push 4
push esi
call edi
test eax, eax
jne 0x1002196f
push ebx
mov ecx, esi
call dword [0x100665c0]
mov eax, dword [ebp - 0x2c]
mov esi, dword [eax + 0x20]
mov ebx, dword [0x100767b8]
test esi, esi
je 0x10021991
push 4
push esi
call edi
test eax, eax
jne 0x10021991
push ebx
mov ecx, esi
call dword [0x100665cc]
movd xmm0, dword [0x100767b8]
mov ecx, 0x10b8150
cvtdq2ps xmm0, xmm0
addss xmm0, dword [0x10067718]
movss dword [ebp - 0x2c], xmm0
movss dword [0x10070058], xmm0
call fcn.10011160
test eax, eax
je 0x100219d7
lea esi, [eax + 0x1ac]
push 4
push esi
call edi
test eax, eax
jne 0x100219d7
movss xmm0, dword [ebp - 0x2c]
movss dword [esi], xmm0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10054950
mov esp, ebp
pop ebp
ret