Function at 0x402ba0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x4b8
mov eax, dword [0x418040]
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.00404b20
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 0x402d46
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 0x402d46
cmp dword [esp + 0x90], 0
jne 0x402d46
call fcn.004013a0
test eax, eax
je 0x4032c0
push 0x20a
lea eax, [esp + 0xa4]
mov dword [esp + 0x9c], 0x200026
push 0
push eax
mov dword [esp + 0xa8], 0x27
call fcn.00404b20
add esp, 0xc
lea eax, [esp + 0x2b0]
push eax
lea eax, [esp + 0x9c]
push 0x109
push eax
call fcn.004068a3
add esp, 0xc
lea eax, [esp + 0x98]
push 0x415ff4
push 0x109
push eax
call fcn.004068a3
mov eax, dword [0x416024]
add esp, 0xc
movups xmm0, xmmword [str.C_BSEKQ_WP]
mov dword [esp + 0x20], eax
xor esi, esi
mov ax, word [0x416028]
movups xmmword [esp + 0x10], xmm0
mov word [esp + 0x24], ax
mov eax, 0x5397829d
mov ecx, esi
mul esi
shr edx, 4
imul eax, edx, 0x31
sub ecx, eax
add ecx, 0x33
xor word [esp + esi*2 + 0x10], cx
inc esi
cmp esi, 0xb
jl 0x402ce5
push ecx
lea edx, [esp + 0x9c]
lea ecx, [esp + 0x14]
call fcn.00401ee0
mov eax, dword [esp + 0x90]
add esp, 4
test eax, eax
je 0x4032c0
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.00403645
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x402d63
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x8c], 0
lea ecx, [esp + 0x2b0]
call fcn.004020c0
call fcn.004013a0
test eax, eax
je 0x4032c0
mov ecx, 0x28
lea edi, [esp + 0x98]
mov esi, str.rPQezHiHZXLZ._ci
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor esi, esi
cmp dword [0x418d24], 2
jl 0x402eb0
movaps xmm4, xmmword [0x416380]
movaps xmm3, xmmword [0x4163e0]
movaps xmm5, xmmword [0x4163a0]
movaps xmm6, xmmword [0x4163b0]
nop dword [eax]
movd xmm0, esi
lea eax, [esi + 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
pshuflw xmm0, xmm2, 0xd8
pshufhw 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
psrad xmm1, 4
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw 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 0x402dc0
jmp 0x402ed4
mov eax, 0x5397829d
mov ecx, esi
imul esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x31
sub ecx, eax
add ecx, 0x33
xor word [esp + esi*2 + 0x98], cx
inc esi
cmp esi, 0x51
jl 0x402eb0
mov eax, dword [0x416024]
xor esi, esi
movups xmm0, xmmword [str.C_BSEKQ_WP]
mov dword [esp + 0x20], eax
mov ax, word [0x416028]
mov word [esp + 0x24], ax
movups xmmword [esp + 0x10], xmm0
nop dword [eax + eax]
mov eax, 0x5397829d
mov ecx, esi
mul esi
shr edx, 4
imul eax, edx, 0x31
sub ecx, eax
add ecx, 0x33
xor word [esp + esi*2 + 0x10], cx
inc esi
cmp esi, 0xb
jl 0x402f00
push ecx
lea edx, [esp + 0x9c]
lea ecx, [esp + 0x14]
call fcn.00401ee0
add esp, 4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x50
lea edi, [esp + 0x98]
mov esi, 0x4160e0
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, dword [0x418d24]
xor esi, esi
cmp edi, 2
jl 0x403072
movaps xmm4, xmmword [0x416380]
movaps xmm3, xmmword [0x4163e0]
movaps xmm5, xmmword [0x4163a0]
movaps xmm6, xmmword [0x4163b0]
movd xmm0, esi
lea eax, [esi + 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
pshuflw xmm0, xmm2, 0xd8
pshufhw 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
psrad xmm1, 4
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw 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, 0xa0
jl 0x402f80
jmp 0x403096
mov eax, 0x5397829d
mov ecx, esi
imul esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x31
sub ecx, eax
add ecx, 0x33
xor word [esp + esi*2 + 0x98], cx
inc esi
cmp esi, 0xa1
jl 0x403072
mov eax, dword [0x416024]
xor esi, esi
movups xmm0, xmmword [str.C_BSEKQ_WP]
mov dword [esp + 0x20], eax
mov ax, word [0x416028]
mov word [esp + 0x24], ax
movups xmmword [esp + 0x10], xmm0
mov eax, 0x5397829d
mov ecx, esi
mul esi
shr edx, 4
imul eax, edx, 0x31
sub ecx, eax
add ecx, 0x33
xor word [esp + esi*2 + 0x10], cx
inc esi
cmp esi, 0xb
jl 0x4030c0
push ecx
lea edx, [esp + 0x9c]
lea ecx, [esp + 0x14]
call fcn.00401ee0
add esp, 4
push 0x2ee0
call dword [sym.imp.KERNEL32.dll_Sleep]
movups xmm0, xmmword [0x416080]
mov ax, word [0x4160c0]
xor esi, esi
mov word [esp + 0x70], ax
movups xmmword [esp + 0x30], xmm0
movups xmm0, xmmword [0x416090]
movups xmmword [esp + 0x40], xmm0
movups xmm0, xmmword [0x4160a0]
movups xmmword [esp + 0x50], xmm0
movups xmm0, xmmword [0x4160b0]
movups xmmword [esp + 0x60], xmm0
cmp edi, 2
jl 0x403243
movaps xmm4, xmmword [0x416380]
movaps xmm3, xmmword [0x4163e0]
movaps xmm5, xmmword [0x4163a0]
movaps xmm6, xmmword [0x4163b0]
movd xmm0, esi
lea eax, [esi + 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
pshuflw xmm0, xmm2, 0xd8
pshufhw 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
psrad xmm1, 4
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw 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 0x403160
jmp 0x403264
mov eax, 0x5397829d
mov ecx, esi
imul esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x31
sub ecx, eax
add ecx, 0x33
xor word [esp + esi*2 + 0x30], cx
inc esi
cmp esi, 0x21
jl 0x403243
mov eax, dword [0x416024]
xor esi, esi
movups xmm0, xmmword [str.C_BSEKQ_WP]
mov dword [esp + 0x20], eax
mov ax, word [0x416028]
mov word [esp + 0x24], ax
movups xmmword [esp + 0x10], xmm0
nop dword [eax + eax]
mov eax, 0x5397829d
mov ecx, esi
mul esi
shr edx, 4
imul eax, edx, 0x31
sub ecx, eax
add ecx, 0x33
xor word [esp + esi*2 + 0x10], cx
inc esi
cmp esi, 0xb
jl 0x403290
push ecx
lea edx, [esp + 0x34]
lea ecx, [esp + 0x14]
call fcn.00401ee0
add esp, 4
mov ecx, dword [esp + 0x4bc]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00403645
mov esp, ebp
pop ebp
ret 0x10