Function at 0x100022a0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10040b83
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
mov eax, dword [0x10051040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x18], eax
mov ecx, dword [0x10053758]
lea esi, [eax + 4]
xor edi, edi
mov dword [ebp - 0x1c], esi
test ecx, ecx
jne 0x1000237f
mov ecx, dword [0x10053744]
mov dword [ebp - 0x20], ecx
test eax, eax
je 0x10002356
mov eax, dword [eax]
cmp eax, dword [esi]
je 0x10002356
push 0xc
call fcn.10021b1a
add esp, 4
mov dword [ebp - 0x24], eax
push dword [ebp - 0x18]
mov dword [ebp - 4], edi
xorps xmm0, xmm0
movq qword [eax], xmm0
mov ecx, eax
mov dword [eax + 8], edi
call fcn.10003970
push dword [ebp - 0x20]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [edi + 4]
mov esi, edx
mov ecx, dword [edi]
sub esi, ecx
sar esi, 2
push esi
call fcn.10004d50
mov esi, dword [ebp - 0x1c]
add esp, 8
jmp 0x10002376
push 0xc
call fcn.10021b1a
mov edi, eax
add esp, 4
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov ecx, dword [0x10053758]
mov eax, dword [ebp - 0x18]
cmp ecx, 1
jne 0x1000240a
mov ecx, dword [0x10053744]
mov dword [ebp - 0x1c], ecx
test eax, eax
je 0x100023ea
mov eax, dword [eax]
cmp eax, dword [esi]
je 0x100023ea
push 0xc
call fcn.10021b1a
add esp, 4
mov dword [ebp - 0x24], eax
push dword [ebp - 0x18]
mov dword [ebp - 4], 1
xorps xmm0, xmm0
movq qword [eax], xmm0
mov ecx, eax
mov dword [eax + 8], 0
call fcn.10003970
push dword [ebp - 0x1c]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [edi + 4]
mov eax, edx
mov ecx, dword [edi]
sub eax, ecx
sar eax, 2
push eax
call fcn.10004e80
add esp, 8
jmp 0x1000240a
push 0xc
call fcn.10021b1a
mov edi, eax
add esp, 4
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
test edi, edi
je 0x10002593
mov eax, dword [edi]
cmp eax, dword [edi + 4]
jne 0x10002593
movups xmm0, xmmword [0x1004bb50]
mov eax, dword [0x1004bb78]
xor ecx, ecx
cmp dword [0x10052c78], 2
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x28], eax
movups xmm0, xmmword [0x1004bb60]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [0x1004bb70]
movq qword [ebp - 0x30], xmm0
jl 0x10002560
movaps xmm4, xmmword [0x1004be40]
movaps xmm3, xmmword [0x1004be70]
movaps xmm5, xmmword [str.1111]
movaps xmm6, xmmword [0x1004be60]
movd xmm0, ecx
lea eax, [ecx + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
pshuflw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, xmm6
paddw xmm1, xmm0
movq xmm0, qword [ebp + ecx*2 - 0x50]
xorps xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movq qword [ebp + ecx*2 - 0x50], xmm1
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
pshuflw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, xmm6
paddw xmm1, xmm0
movq xmm0, qword [ebp + ecx*2 - 0x48]
xorps xmm1, xmm0
movq qword [ebp + ecx*2 - 0x48], xmm1
add ecx, 8
cmp ecx, 0x10
jl 0x10002473
cmp ecx, 0x16
jge 0x10002586
nop dword [eax]
mov eax, 0x5397829d
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, ecx
imul eax, eax, 0x31
sub edx, eax
add edx, 0x38
xor word [ebp + ecx*2 - 0x50], dx
inc ecx
cmp ecx, 0x16
jl 0x10002560
lea ecx, [ebp - 0x50]
call fcn.10001af0
jmp 0x1000261a
push dword [0x1005375c]
push dword [edi + 4]
push dword [edi]
call fcn.1000d250
cmp eax, dword [edi + 4]
lea edx, [eax + 4]
cmove edx, eax
cmp edx, dword [edi + 4]
jne 0x100025b3
mov edx, dword [edi]
mov eax, dword [edx]
push 0
mov dword [0x1005375c], eax
mov ecx, dword [0x23d6b50]
push eax
call dword [0x1005374c]
mov eax, dword [edi]
test eax, eax
je 0x1000260f
mov ecx, dword [edi + 8]
sub ecx, eax
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x100025f1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002638
mov eax, edx
push ecx
push eax
call fcn.10021e64
mov dword [edi], 0
add esp, 8
mov dword [edi + 4], 0
mov dword [edi + 8], 0
push 0xc
push edi
call fcn.10021e64
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10021b0c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.1002692a
int3