Function at 0x10021970
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10062638
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x10077604]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov cl, 0x70
mov dword [ebp - 0x1c], 0x1e043270
mov dword [ebp - 0x18], 0x19262f
xor eax, eax
mov dword [ebp - 0x14], 0x1c051126
mov word [ebp - 0x10], 4
nop dword [eax]
xor byte [ebp + eax - 0x1b], cl
inc eax
cmp eax, 0xc
jae 0x100219cf
mov cl, byte [ebp - 0x1c]
jmp 0x100219c0
cmp byte [ebp - 0x1b], 0
mov byte [ebp - 0xf], 0
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], 0
mov byte [ebp - 0x64], 0
jne 0x100219ef
xor ecx, ecx
jmp 0x100219fe
lea ecx, [ebp - 0x1b]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100219f5
sub ecx, edx
push ecx
lea eax, [ebp - 0x1b]
push eax
lea ecx, [ebp - 0x64]
call fcn.10002800
lea eax, [ebp - 0x64]
mov dword [ebp - 4], 0
push eax
push dword [esi]
call fcn.10012500
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x50]
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x10021a41
inc eax
push 1
push eax
push dword [ebp - 0x64]
call fcn.10002610
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 4
push dword [esi + 4]
call edi
test eax, eax
je 0x10021a59
mov dword [esi + 4], 0
mov byte [ebp - 0x18], 0x6d
mov al, 0xc
xor al, byte [ebp - 0x18]
mov cl, 0x1e
mov bh, 0xf
mov byte [ebp - 0x16], al
mov al, byte [ebp - 0x18]
mov dh, cl
xor bh, byte [ebp - 0x18]
mov dl, 8
mov bl, 0x32
mov byte [ebp - 0xf], 0
mov ah, 0xe
mov byte [ebp - 0x17], bh
mov ch, 2
mov byte [ebp - 0xf], 0
xor cl, al
mov dword [ebp - 0x50], 0xf
xor dl, al
mov byte [ebp - 0x15], cl
xor bl, al
mov byte [ebp - 0x14], dl
xor ah, al
mov byte [ebp - 0x13], bl
xor ch, al
mov byte [ebp - 0x12], ah
xor dh, al
mov byte [ebp - 0x11], ch
mov byte [ebp - 0x10], dh
mov dword [ebp - 0x54], 0
mov byte [ebp - 0x64], 0
test bh, bh
jne 0x10021abc
xor ecx, ecx
jmp 0x10021acb
lea ecx, [ebp - 0x17]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10021ac2
sub ecx, edx
push ecx
lea eax, [ebp - 0x17]
push eax
lea ecx, [ebp - 0x64]
call fcn.10002800
lea eax, [ebp - 0x64]
mov dword [ebp - 4], 1
push eax
push dword [esi]
call fcn.10012500
mov dword [esi + 8], eax
add esp, 8
mov eax, dword [ebp - 0x50]
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x10021b0e
inc eax
push 1
push eax
push dword [ebp - 0x64]
call fcn.10002610
add esp, 0xc
movaps xmm0, xmmword [0x10069970]
xor ecx, ecx
movups xmmword [ebp - 0x20], xmm0
mov byte [ebp - 0x10], 0
nop
mov al, byte [ebp - 0x20]
xor byte [ebp + ecx - 0x1f], al
inc ecx
cmp ecx, 0xf
jb 0x10021b20
cmp byte [ebp - 0x1f], 0
mov byte [ebp - 0x10], 0
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], 0
mov byte [ebp - 0x64], 0
jne 0x10021b4d
xor ecx, ecx
jmp 0x10021b5c
lea ecx, [ebp - 0x1f]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10021b53
sub ecx, edx
push ecx
lea eax, [ebp - 0x1f]
push eax
lea ecx, [ebp - 0x64]
call fcn.10002800
lea eax, [ebp - 0x64]
mov dword [ebp - 4], 2
push eax
push dword [esi]
call fcn.10012500
mov dword [esi + 0xc], eax
add esp, 8
mov eax, dword [ebp - 0x50]
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x10021b9f
inc eax
push 1
push eax
push dword [ebp - 0x64]
call fcn.10002610
add esp, 0xc
movaps xmm0, xmmword [0x10069980]
xor ecx, ecx
movups xmmword [ebp - 0x20], xmm0
mov word [ebp - 0x10], 0x5d4f
mov byte [ebp - 0xe], 0
mov al, byte [ebp - 0x20]
xor byte [ebp + ecx - 0x1f], al
inc ecx
cmp ecx, 0x11
jb 0x10021bb6
cmp byte [ebp - 0x1f], 0
mov byte [ebp - 0xe], 0
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], 0
mov byte [ebp - 0x64], 0
jne 0x10021be3
xor ecx, ecx
jmp 0x10021bf9
lea ecx, [ebp - 0x1f]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10021bf0
sub ecx, edx
push ecx
lea eax, [ebp - 0x1f]
push eax
lea ecx, [ebp - 0x64]
call fcn.10002800
lea eax, [ebp - 0x64]
mov dword [ebp - 4], 3
push eax
push dword [esi]
call fcn.10012500
mov dword [esi + 0x10], eax
add esp, 8
mov eax, dword [ebp - 0x50]
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x10021c3c
inc eax
push 1
push eax
push dword [ebp - 0x64]
call fcn.10002610
add esp, 0xc
movaps xmm0, xmmword [0x10069960]
xor ecx, ecx
movups xmmword [ebp - 0x34], xmm0
mov word [ebp - 0x24], 0x715
mov byte [ebp - 0x22], 0
mov al, byte [ebp - 0x34]
xor byte [ebp + ecx - 0x33], al
inc ecx
cmp ecx, 0x11
jb 0x10021c53
cmp byte [ebp - 0x33], 0
mov byte [ebp - 0x22], 0
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x4c], 0
jne 0x10021c80
xor ecx, ecx
jmp 0x10021c8f
lea ecx, [ebp - 0x33]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10021c86
sub ecx, edx
push ecx
lea eax, [ebp - 0x33]
push eax
lea ecx, [ebp - 0x4c]
call fcn.10002800
lea eax, [ebp - 0x4c]
mov dword [ebp - 4], 4
push eax
push dword [esi]
call fcn.10012500
mov dword [esi + 0x14], eax
add esp, 8
mov eax, dword [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x10021cd2
push 1
inc eax
push eax
push dword [ebp - 0x4c]
call fcn.10002610
add esp, 0xc
push 4
push dword [esi + 8]
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x4c], 0
call edi
test eax, eax
je 0x10021cf6
mov dword [esi + 8], 0
push 4
push dword [esi + 0xc]
call edi
test eax, eax
je 0x10021d08
mov dword [esi + 0xc], 0
push 4
push dword [esi + 0x10]
call edi
test eax, eax
je 0x10021d1a
mov dword [esi + 0x10], 0
push 4
push dword [esi + 0x14]
call edi
test eax, eax
je 0x10021d2c
mov dword [esi + 0x14], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x10021d4b
cmp dword [0x1007814c], 0
je 0x10021d40
push 3
jmp 0x10021d42
push 2
push eax
call fcn.10012b40
add esp, 8
mov eax, dword [esi + 0x10]
test eax, eax
je 0x10021d6a
cmp dword [0x10078150], 0
je 0x10021d5f
push 3
jmp 0x10021d61
push 2
push eax
call fcn.10012b40
add esp, 8
cmp dword [esi + 0x14], 0
je 0x10021da3
cmp dword [0x10078154], 0
mov eax, 0xeb
mov ecx, 0x74
cmovne eax, ecx
mov byte [0x427dcd], al
cmp dword [0x10078154], 0
je 0x10021d96
push 3
jmp 0x10021d98
push 2
push dword [esi + 0x14]
call fcn.10012b40
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret