Function at 0x10021760
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007fced
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x10091040]
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 esi, dword [ebp + 8]
lea ecx, [ebp - 0x43]
xorps xmm0, xmm0
mov word [ebp - 0x44], 0x2d
mov byte [ebp - 0x43], 0
lea edx, [ecx + 1]
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100217b4
sub ecx, edx
lea eax, [ebp - 0x43]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.100024a0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffffd
mov dword [ebp - 4], 0
cmp eax, 9
ja case.default.0x100217e0
jmp dword [eax*4 + 0x10021cb8]
movaps xmm0, xmmword [0x10089670]
xor ecx, ecx
push 6
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x2c], 0x787468
nop dword [eax]
mov al, byte [ebp - 0x3c]
xor byte [ebp + ecx - 0x3b], al
inc ecx
cmp ecx, 0x12
jb 0x10021800
sub esp, 0x18
mov byte [ebp - 0x29], 0
mov edx, esp
lea ecx, [ebp - 0x3b]
xorps xmm0, xmm0
lea esi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10021830
sub ecx, esi
lea eax, [ebp - 0x3b]
push ecx
push eax
mov ecx, edx
call fcn.100024a0
lea eax, [ebp - 0x5c]
push eax
call fcn.10006910
add esp, 0x20
lea ecx, [ebp - 0x28]
push eax
call fcn.1000b490
mov ecx, dword [ebp - 0x48]
cmp ecx, 0xf
jbe 0x10021bdb
mov edx, dword [ebp - 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10021bd1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10021bd1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
movaps xmm0, xmmword [0x10089f30]
xor ecx, ecx
push 7
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x2c], 0x313d21
mov al, byte [ebp - 0x3c]
xor byte [ebp + ecx - 0x3b], al
inc ecx
cmp ecx, 0x12
jb 0x100218a8
sub esp, 0x18
mov byte [ebp - 0x29], 0
mov edx, esp
lea ecx, [ebp - 0x3b]
xorps xmm0, xmm0
lea esi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100218d8
jmp 0x10021837
movaps xmm0, xmmword [0x10089370]
xor ecx, ecx
push 8
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x2c], 0x565a46
nop word [eax + eax]
mov al, byte [ebp - 0x3c]
xor byte [ebp + ecx - 0x3b], al
inc ecx
cmp ecx, 0x12
jb 0x10021900
sub esp, 0x18
mov byte [ebp - 0x29], 0
mov edx, esp
lea ecx, [ebp - 0x3b]
xorps xmm0, xmm0
lea esi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10021930
jmp 0x10021837
movaps xmm0, xmmword [0x1008a1f0]
xor ecx, ecx
push 9
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x2c], 0x272b37
mov al, byte [ebp - 0x3c]
xor byte [ebp + ecx - 0x3b], al
inc ecx
cmp ecx, 0x12
jb 0x10021952
sub esp, 0x18
mov byte [ebp - 0x29], 0
mov edx, esp
lea ecx, [ebp - 0x3b]
xorps xmm0, xmm0
lea esi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10021982
jmp 0x10021837
movaps xmm0, xmmword [0x10089c90]
xor ecx, ecx
push 0xa
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x2c], 0xf031f
mov al, byte [ebp - 0x3c]
xor byte [ebp + ecx - 0x3b], al
inc ecx
cmp ecx, 0x12
jb 0x100219a4
sub esp, 0x18
mov byte [ebp - 0x29], 0
mov edx, esp
lea ecx, [ebp - 0x3b]
xorps xmm0, xmm0
lea esi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100219d4
jmp 0x10021837
movaps xmm0, xmmword [0x100898c0]
xor ecx, ecx
push 0xb
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x2c], 0x6e627e
mov al, byte [ebp - 0x3c]
xor byte [ebp + ecx - 0x3b], al
inc ecx
cmp ecx, 0x12
jb 0x100219f6
sub esp, 0x18
mov byte [ebp - 0x29], 0
mov edx, esp
lea ecx, [ebp - 0x3b]
xorps xmm0, xmm0
lea esi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10021a26
jmp 0x10021837
movaps xmm0, xmmword [0x100898f0]
xor ecx, ecx
push 0xc
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x2c], 0x6f637f
mov al, byte [ebp - 0x3c]
xor byte [ebp + ecx - 0x3b], al
inc ecx
cmp ecx, 0x12
jb 0x10021a48
sub esp, 0x18
mov byte [ebp - 0x29], 0
mov edx, esp
lea ecx, [ebp - 0x3b]
xorps xmm0, xmm0
lea esi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10021a78
jmp 0x10021837
movaps xmm0, xmmword [0x10089b50]
xor ecx, ecx
push 0xd
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x2c], 0x101c00
nop word [eax + eax]
mov al, byte [ebp - 0x3c]
xor byte [ebp + ecx - 0x3b], al
inc ecx
cmp ecx, 0x12
jb 0x10021aa0
sub esp, 0x18
mov byte [ebp - 0x29], 0
mov edx, esp
lea ecx, [ebp - 0x3b]
xorps xmm0, xmm0
lea esi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10021ad0
jmp 0x10021837
movaps xmm0, xmmword [str.8mqd_Tg_JY_g]
xor ecx, ecx
push 0xe
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x2c], 0x4c405c
mov al, byte [ebp - 0x3c]
xor byte [ebp + ecx - 0x3b], al
inc ecx
cmp ecx, 0x12
jb 0x10021af2
sub esp, 0x18
mov byte [ebp - 0x29], 0
mov edx, esp
lea ecx, [ebp - 0x3b]
xorps xmm0, xmm0
lea esi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10021b22
jmp 0x10021837
movaps xmm0, xmmword [0x10089be0]
xor ecx, ecx
push 0xf
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x2c], 0xa061a
mov al, byte [ebp - 0x3c]
xor byte [ebp + ecx - 0x3b], al
inc ecx
cmp ecx, 0x12
jb 0x10021b44
sub esp, 0x18
mov byte [ebp - 0x29], 0
mov edx, esp
lea ecx, [ebp - 0x3b]
xorps xmm0, xmm0
lea esi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10021b74
jmp 0x10021837
movaps xmm0, xmmword [0x1008a0d0]
xor ecx, ecx
push esi
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x2c], 0x2c203c
mov al, byte [ebp - 0x3c]
xor byte [ebp + ecx - 0x3b], al
inc ecx
cmp ecx, 0x12
jb 0x10021b95
sub esp, 0x18
mov byte [ebp - 0x29], 0
mov edx, esp
lea ecx, [ebp - 0x3b]
xorps xmm0, xmm0
lea esi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10021bc5
jmp 0x10021837
push ecx
push edx
call fcn.1007d105
add esp, 8
mov eax, dword [edi]
mov esi, dword [ebp - 0x28]
mov dword [ebp - 0x40], eax
test eax, eax
je 0x10021c66
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10021c66
cmp dword [ebp - 0x14], 0xf
lea ecx, [ebp - 0x28]
cmova ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10021c05
sub ecx, edx
mov dword [ebp - 0x44], ecx
lea esi, [ecx + 0x21]
push esi
call fcn.1007d113
push esi
mov edi, eax
push 0
push edi
call sub.VCRUNTIME140.dll_memset
cmp dword [ebp - 0x14], 0xf
lea edx, [ebp - 0x28]
push dword [ebp - 0x44]
cmova edx, dword [ebp - 0x28]
lea esi, [edi + 0x20]
push edx
push esi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x44]
add esp, 0x1c
mov ecx, dword [ebp - 0x40]
mov dword [edi + 4], esi
mov dword [edi + 0x14], eax
push edi
mov dword [edi + 0x18], 0x1f
call dword [0x10088b54]
push edi
call fcn.1007d11c
mov esi, dword [ebp - 0x28]
add esp, 4
mov eax, dword [ebp - 0x14]
cmp eax, 0xf
jbe 0x10021c99
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x10021c8f
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002188c
push ecx
push esi
call fcn.1007d105
add esp, 8
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.1007d0a4
mov esp, ebp
pop ebp
ret 8