Function at 0x10021d40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10077068
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x1009d084]
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 ebx, ecx
mov dword [ebp - 0x48], ebx
mov esi, dword [0x100a6910]
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
cmp esi, 0x1388
ja 0x10021de6
mov ebx, dword [ebx + 0x34]
test ebx, ebx
je 0x10021db6
push 4
push ebx
call edi
test eax, eax
jne 0x10021db0
mov ebx, dword [ebx + 0x124]
test ebx, ebx
je 0x10021db0
push 4
push ebx
call edi
test eax, eax
jne 0x10021db0
push esi
mov ecx, ebx
call dword [0x1009049c]
mov esi, dword [0x100a6910]
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x14]
mov dword ds:[0xbc675c], eax
fild dword ds:[0xbc6758]
mov edx, dword ds:[0xbc675c]
push edx
mov ecx, 0xc20ec0
fstp dword ds:[0xbc7c00]
call dword [0x1008cf58]
mov ebx, dword [ebp - 0x48]
mov esi, dword [0x100a692c]
cmp esi, 0x17
ja 0x10021f68
mov ebx, dword [ebx + 0x38]
test ebx, ebx
je 0x10021e27
push 4
push ebx
call edi
test eax, eax
jne 0x10021e21
mov ebx, dword [ebx + 0x124]
test ebx, ebx
je 0x10021e21
push 4
push ebx
call edi
test eax, eax
jne 0x10021e21
push esi
mov ecx, ebx
call dword [0x1009049c]
mov esi, dword [0x100a692c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 4], 0
xor ecx, ecx
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
push esi
cmp esi, 0xa
jge 0x10021eaf
movaps xmm0, xmmword [0x10091e30]
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], 0x4d4d4719
mov byte [ebp - 0x30], cl
nop dword [eax]
mov al, byte [ebp - 0x44]
xor byte [ebp + ecx - 0x43], al
inc ecx
cmp ecx, 0x13
jb 0x10021e60
sub esp, 0x18
mov byte [ebp - 0x30], 0
lea eax, [ebp - 0x43]
mov ecx, esp
push eax
call fcn.100029b0
lea eax, [ebp - 0x60]
push eax
call fcn.10005a00
add esp, 0x20
lea ecx, [ebp - 0x2c]
push eax
call fcn.100074c0
mov eax, dword [ebp - 0x4c]
cmp eax, 0x10
jb 0x10021f1c
inc eax
lea ecx, [ebp - 0x60]
push eax
push dword [ebp - 0x60]
call fcn.10002790
jmp 0x10021f1c
movaps xmm0, xmmword [0x10092060]
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], 0x70707a
mov al, byte [ebp - 0x44]
xor byte [ebp + ecx - 0x43], al
inc ecx
cmp ecx, 0x12
jb 0x10021ec1
sub esp, 0x18
mov byte [ebp - 0x31], 0
lea eax, [ebp - 0x43]
mov ecx, esp
push eax
call fcn.100029b0
lea eax, [ebp - 0x60]
push eax
call fcn.10005a00
add esp, 0x20
lea ecx, [ebp - 0x2c]
push eax
call fcn.100074c0
mov eax, dword [ebp - 0x4c]
cmp eax, 0x10
jb 0x10021f0a
inc eax
lea ecx, [ebp - 0x60]
push eax
push dword [ebp - 0x60]
call fcn.10002790
mov dword [ebp - 0x4c], 0xf
mov dword [ebp - 0x50], 0
mov byte [ebp - 0x60], 0
mov ebx, dword [ebp - 0x48]
lea edx, [ebp - 0x2c]
mov ecx, dword [ebx + 0x3c]
call fcn.10014710
mov eax, dword [0x100a692c]
test eax, eax
jle 0x10021f3a
push ecx
push eax
call fcn.10021cf0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x10021f56
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.10002790
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
mov eax, dword [0x100a6930]
mov dword [ebp - 0x14], eax
dec eax
cmp eax, 9
ja 0x10022011
mov esi, dword [ebx + 0x40]
test esi, esi
je 0x10021fa8
push 4
push esi
call edi
test eax, eax
jne 0x10021fa8
mov esi, dword [esi + 0x124]
test esi, esi
je 0x10021fa8
push 4
push esi
call edi
test eax, eax
jne 0x10021fa8
push dword [ebp - 0x14]
mov ecx, esi
call dword [0x1009049c]
mov esi, dword [ebx + 0x44]
mov eax, dword [0x100a6930]
mov dword [ebp - 0x14], eax
test esi, esi
je 0x10021fcb
push 4
push esi
call edi
test eax, eax
jne 0x10021fcb
push dword [ebp - 0x14]
mov ecx, esi
call dword [0x100904a4]
movd xmm0, dword [0x100a6930]
mov ecx, 0xd78d28
cvtdq2ps xmm0, xmm0
addss xmm0, dword [0x10091b94]
movss dword [ebp - 0x14], xmm0
movss dword [0x1009dba8], xmm0
call fcn.10014880
test eax, eax
je 0x10022011
lea esi, [eax + 0x1b8]
push 4
push esi
call edi
test eax, eax
jne 0x10022011
movss xmm0, dword [ebp - 0x14]
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.1003a2a5
mov esp, ebp
pop ebp
ret