Function at 0x402e40
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.00405310
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 0x402fee
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 0x402fee
cmp dword [esp + 0x90], 0
jne 0x402fee
call fcn.004013b0
test eax, eax
je 0x403968
push 0x20a
lea eax, [esp + 0xa4]
mov dword [esp + 0x9c], 0x200026
push 0
push eax
mov dword [esp + 0xa8], 0x27
call fcn.00405310
add esp, 0xc
lea eax, [esp + 0x2b0]
push eax
lea eax, [esp + 0x9c]
push 0x109
push eax
call fcn.00407093
add esp, 0xc
lea eax, [esp + 0x98]
push 0x415ff4
push 0x109
push eax
call fcn.00407093
mov eax, dword [0x416024]
add esp, 0xc
movups xmm0, xmmword [str.A_DQGE__UV_]
mov dword [esp + 0x20], eax
xor esi, esi
mov ax, word [0x416028]
movups xmmword [esp + 0x10], xmm0
mov word [esp + 0x24], ax
mov eax, 0x1f7047dd
mov ecx, esi
mul esi
mov eax, esi
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
imul eax, eax, 0x39
sub ecx, eax
add ecx, 0x31
xor word [esp + esi*2 + 0x10], cx
inc esi
cmp esi, 0xb
jl 0x402f85
push ecx
lea edx, [esp + 0x9c]
lea ecx, [esp + 0x14]
call fcn.00401f00
mov eax, dword [esp + 0x90]
add esp, 4
test eax, eax
je 0x403968
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.00403ce5
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x40300b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x8c], 0
lea ecx, [esp + 0x2b0]
call fcn.004020e0
call fcn.004013b0
test eax, eax
je 0x403968
mov ecx, 0x28
lea edi, [esp + 0x98]
mov esi, 0x4163f0
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor esi, esi
cmp dword [0x418d30], 2
jl 0x403160
movaps xmm4, xmmword [0x4164a0]
movaps xmm3, xmmword [0x416500]
movaps xmm5, xmmword [0x4164c0]
movaps xmm6, xmmword [0x4164e0]
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 0x403064
jmp 0x403186
mov eax, 0x8fb823ef
mov ecx, esi
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x39
sub ecx, eax
add ecx, 0x31
xor word [esp + esi*2 + 0x98], cx
inc esi
cmp esi, 0x51
jl 0x403160
mov eax, dword [0x416024]
xor esi, esi
movups xmm0, xmmword [str.A_DQGE__UV_]
mov dword [esp + 0x20], eax
mov ax, word [0x416028]
mov word [esp + 0x24], ax
movups xmmword [esp + 0x10], xmm0
nop dword [eax]
mov eax, 0x1f7047dd
mov ecx, esi
mul esi
mov eax, esi
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
imul eax, eax, 0x39
sub ecx, eax
add ecx, 0x31
xor word [esp + esi*2 + 0x10], cx
inc esi
cmp esi, 0xb
jl 0x4031b0
push ecx
lea edx, [esp + 0x9c]
lea ecx, [esp + 0x14]
call fcn.00401f00
add esp, 4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x42
lea edi, [esp + 0x98]
mov esi, 0x4160c8
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor esi, esi
cmp dword [0x418d30], 2
jl 0x403340
movaps xmm4, xmmword [0x4164a0]
movaps xmm3, xmmword [0x416500]
movaps xmm5, xmmword [0x4164c0]
movaps xmm6, xmmword [0x4164e0]
nop word [eax + eax]
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, 0x80
jl 0x403240
jmp 0x403366
mov eax, 0x8fb823ef
mov ecx, esi
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x39
sub ecx, eax
add ecx, 0x31
xor word [esp + esi*2 + 0x98], cx
inc esi
cmp esi, 0x85
jl 0x403340
mov eax, dword [0x416024]
xor esi, esi
movups xmm0, xmmword [str.A_DQGE__UV_]
mov dword [esp + 0x20], eax
mov ax, word [0x416028]
mov word [esp + 0x24], ax
movups xmmword [esp + 0x10], xmm0
mov eax, 0x1f7047dd
mov ecx, esi
mul esi
mov eax, esi
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
imul eax, eax, 0x39
sub ecx, eax
add ecx, 0x31
xor word [esp + esi*2 + 0x10], cx
inc esi
cmp esi, 0xb
jl 0x403390
push ecx
lea edx, [esp + 0x9c]
lea ecx, [esp + 0x14]
call fcn.00401f00
mov ecx, 0x41
lea edi, [esp + 0x9c]
mov esi, 0x416278
add esp, 4
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, dword [0x418d30]
xor esi, esi
cmp edi, 2
jl 0x403510
movaps xmm4, xmmword [0x4164a0]
movaps xmm3, xmmword [0x416500]
movaps xmm5, xmmword [0x4164c0]
movaps xmm6, xmmword [0x4164e0]
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
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, 0x80
jl 0x403410
jmp 0x403536
mov eax, 0x8fb823ef
mov ecx, esi
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x39
sub ecx, eax
add ecx, 0x31
xor word [esp + esi*2 + 0x98], cx
inc esi
cmp esi, 0x83
jl 0x403510
mov eax, dword [0x416024]
xor esi, esi
movups xmm0, xmmword [str.A_DQGE__UV_]
mov dword [esp + 0x20], eax
mov ax, word [0x416028]
mov word [esp + 0x24], ax
movups xmmword [esp + 0x10], xmm0
mov eax, 0x1f7047dd
mov ecx, esi
mul esi
mov eax, esi
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
imul eax, eax, 0x39
sub ecx, eax
add ecx, 0x31
xor word [esp + esi*2 + 0x10], cx
inc esi
cmp esi, 0xb
jl 0x403560
push ecx
lea edx, [esp + 0x9c]
lea ecx, [esp + 0x14]
call fcn.00401f00
add esp, 4
push 0x2ee0
call dword [sym.imp.KERNEL32.dll_Sleep]
movups xmm0, xmmword [0x416218]
xor esi, esi
movups xmmword [esp + 0x30], xmm0
movups xmm0, xmmword [0x416228]
movups xmmword [esp + 0x40], xmm0
movups xmm0, xmmword [0x416238]
movups xmmword [esp + 0x50], xmm0
movups xmm0, xmmword [0x416248]
movups xmmword [esp + 0x60], xmm0
movq xmm0, qword [0x416258]
movq qword [esp + 0x70], xmm0
cmp edi, 2
jl 0x403700
movaps xmm4, xmmword [0x4164a0]
movaps xmm3, xmmword [0x416500]
movaps xmm5, xmmword [0x4164c0]
movaps xmm6, xmmword [0x4164e0]
nop dword [eax + eax]
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 0x403610
jmp 0x403723
mov eax, 0x8fb823ef
mov ecx, esi
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x39
sub ecx, eax
add ecx, 0x31
xor word [esp + esi*2 + 0x30], cx
inc esi
cmp esi, 0x24
jl 0x403700
mov eax, dword [0x416024]
xor esi, esi
movups xmm0, xmmword [str.A_DQGE__UV_]
mov dword [esp + 0x20], eax
mov ax, word [0x416028]
mov word [esp + 0x24], ax
movups xmmword [esp + 0x10], xmm0
nop word [eax + eax]
mov eax, 0x1f7047dd
mov ecx, esi
mul esi
mov eax, esi
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
imul eax, eax, 0x39
sub ecx, eax
add ecx, 0x31
xor word [esp + esi*2 + 0x10], cx
inc esi
cmp esi, 0xb
jl 0x403750
push ecx
lea edx, [esp + 0x34]
lea ecx, [esp + 0x14]
call fcn.00401f00
movups xmm0, xmmword [0x416080]
mov eax, dword [0x4160c0]
add esp, 4
mov dword [esp + 0x70], eax
xor esi, esi
mov ax, word [0x4160c4]
mov word [esp + 0x74], 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 0x4038e0
movaps xmm4, xmmword [0x4164a0]
movaps xmm3, xmmword [0x416500]
movaps xmm5, xmmword [0x4164c0]
movaps xmm6, xmmword [0x4164e0]
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 0x4037f3
jmp 0x403903
mov eax, 0x8fb823ef
mov ecx, esi
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x39
sub ecx, eax
add ecx, 0x31
xor word [esp + esi*2 + 0x30], cx
inc esi
cmp esi, 0x23
jl 0x4038e0
mov eax, dword [0x416024]
xor esi, esi
movups xmm0, xmmword [str.A_DQGE__UV_]
mov dword [esp + 0x20], eax
mov ax, word [0x416028]
mov word [esp + 0x24], ax
movups xmmword [esp + 0x10], xmm0
nop word [eax + eax]
mov eax, 0x1f7047dd
mov ecx, esi
mul esi
mov eax, esi
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
imul eax, eax, 0x39
sub ecx, eax
add ecx, 0x31
xor word [esp + esi*2 + 0x10], cx
inc esi
cmp esi, 0xb
jl 0x403930
push ecx
lea edx, [esp + 0x34]
lea ecx, [esp + 0x14]
call fcn.00401f00
add esp, 4
mov ecx, dword [esp + 0x4bc]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00403ce5
mov esp, ebp
pop ebp
ret 0x10