Function at 0x4012a0
Capabilities:
Encode data using xor
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x728
mov eax, dword [0x417040]
xor eax, ebp
mov dword [ebp - 4], eax
cmp word [0x414f36], 0
movups xmm0, xmmword [0x414f24]
mov eax, dword [0x414f34]
push esi
push edi
movups xmmword [ebp - 0x720], xmm0
mov dword [ebp - 0x710], eax
je 0x401312
xor esi, esi
nop dword [eax]
mov eax, 0x8d3dcb09
mov ecx, esi
mul esi
shr edx, 5
imul eax, edx, 0x3a
sub ecx, eax
add ecx, 0x34
xor word [ebp + esi*2 - 0x720], cx
inc esi
cmp esi, 0xa
jl 0x4012f0
lea eax, [ebp - 0x720]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp byte [0x414fb9], 0
mov esi, eax
movups xmm0, xmmword [str.zAgB_KCrR_QM__6]
mov cx, word [0x414fb8]
mov edi, dword [0x417ce0]
movaps xmm4, xmmword [0x415320]
movups xmmword [ebp - 0x680], xmm0
mov dword [ebp - 0x658], esi
movq xmm0, qword [0x414fb0]
movq qword [ebp - 0x670], xmm0
mov word [ebp - 0x668], cx
je 0x4014ed
xor edx, edx
mov dword [ebp - 0x654], edx
cmp edi, 2
jl 0x4014b0
movaps xmm0, xmmword [0x415340]
movaps xmm5, xmmword [0x4152f0]
movaps xmm3, xmmword [0x415350]
movaps xmm6, xmmword [0x415310]
movaps xmmword [ebp - 0x690], xmm0
mov ecx, dword [ebp - 0x690]
nop word [eax + eax]
movd xmm0, edx
lea eax, [edx + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm5
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, xmm6
psubd xmm2, xmm0
movd xmm0, ecx
andps xmm2, xmm4
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [ebp + edx - 0x680]
xorps xmm2, xmm0
movd xmm0, eax
movd dword [ebp + edx - 0x680], xmm2
pshufd xmm2, xmm0, 0
paddd xmm2, xmm5
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, xmm6
psubd xmm2, xmm0
movd xmm0, ecx
andps xmm2, xmm4
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [ebp + edx - 0x67c]
xorps xmm2, xmm0
movd dword [ebp + edx - 0x67c], xmm2
add edx, 8
cmp edx, 0x18
jl 0x4013b0
mov dword [ebp - 0x654], edx
cmp edx, 0x1a
jge 0x4014ed
nop dword [eax + eax]
mov eax, 0x8d3dcb09
imul edx
add edx, dword [ebp - 0x654]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0x654]
movsx eax, al
mov cl, dl
imul eax, eax, 0x3a
sub cl, al
add cl, 0x34
xor byte [ebp + edx - 0x680], cl
inc edx
mov dword [ebp - 0x654], edx
cmp edx, 0x1a
jl 0x4014b0
lea eax, [ebp - 0x680]
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
mov dword [ebp - 0x694], eax
test eax, eax
je 0x401ddd
cmp byte [0x415073], 0
movups xmm0, xmmword [str.fAZrVM_I]
movups xmmword [ebp - 0x6e0], xmm0
movq xmm0, qword [0x41506c]
movq qword [ebp - 0x6d0], xmm0
je 0x4016b1
xor edx, edx
mov dword [ebp - 0x654], edx
cmp edi, 2
jl 0x401681
movaps xmm0, xmmword [0x415340]
lea eax, [ebp - 0x6e0]
movaps xmm5, xmmword [0x4152f0]
mov esi, 4
movaps xmm4, xmmword [0x415350]
sub esi, eax
movaps xmm6, xmmword [0x415310]
movaps xmm3, xmmword [0x415320]
movaps xmmword [ebp - 0x690], xmm0
mov eax, dword [ebp - 0x690]
nop dword [eax]
nop dword [eax + eax]
movd xmm0, edx
lea ecx, [ebp - 0x6e0]
pshufd xmm2, xmm0, 0
add ecx, edx
paddd xmm2, xmm5
add edx, 8
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
movd xmm0, eax
lea eax, [esi + ecx]
andps xmm2, xmm3
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [ecx]
xorps xmm2, xmm0
movd xmm0, eax
movd dword [ecx], xmm2
pshufd xmm2, xmm0, 0
mov eax, dword [ebp - 0x690]
paddd xmm2, xmm5
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
movd xmm0, eax
andps xmm2, xmm3
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [ecx + 4]
xorps xmm2, xmm0
movd dword [ecx + 4], xmm2
cmp edx, 0x18
jl 0x401590
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x4016b1
mov eax, 0x8d3dcb09
mul edx
shr edx, 5
movsx eax, dl
mov edx, dword [ebp - 0x654]
mov cl, dl
imul eax, eax, 0x3a
sub cl, al
add cl, 0x34
xor byte [ebp + edx - 0x6e0], cl
inc edx
mov dword [ebp - 0x654], edx
cmp edx, 0x18
jl 0x401681
lea eax, [ebp - 0x6e0]
push eax
push dword [ebp - 0x658]
call esi
mov dword [ebp - 0x65c], eax
test eax, eax
je 0x401ddd
cmp byte [0x414fff], 0
movups xmm0, xmmword [0x414fe8]
movups xmmword [ebp - 0x700], xmm0
movq xmm0, qword [0x414ff8]
movq qword [ebp - 0x6f0], xmm0
je 0x401871
xor edx, edx
mov dword [ebp - 0x654], edx
cmp edi, 2
jl 0x401841
movaps xmm0, xmmword [0x415340]
lea eax, [ebp - 0x700]
movaps xmm5, xmmword [0x4152f0]
mov edx, 4
movaps xmm4, xmmword [0x415350]
xor esi, esi
movaps xmm6, xmmword [0x415310]
sub edx, eax
movaps xmm3, xmmword [0x415320]
movaps xmmword [ebp - 0x690], xmm0
mov eax, dword [ebp - 0x690]
nop dword [eax]
movd xmm0, esi
lea ecx, [ebp - 0x700]
pshufd xmm2, xmm0, 0
add ecx, esi
paddd xmm2, xmm5
add esi, 8
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
movd xmm0, eax
lea eax, [edx + ecx]
andps xmm2, xmm3
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [ecx]
xorps xmm2, xmm0
movd xmm0, eax
movd dword [ecx], xmm2
pshufd xmm2, xmm0, 0
mov eax, dword [ebp - 0x690]
paddd xmm2, xmm5
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
movd xmm0, eax
andps xmm2, xmm3
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [ecx + 4]
xorps xmm2, xmm0
movd dword [ecx + 4], xmm2
cmp esi, 0x18
jl 0x401750
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x401871
mov eax, 0x8d3dcb09
mul edx
shr edx, 5
movsx eax, dl
mov edx, dword [ebp - 0x654]
mov cl, dl
imul eax, eax, 0x3a
sub cl, al
add cl, 0x34
xor byte [ebp + edx - 0x700], cl
inc edx
mov dword [ebp - 0x654], edx
cmp edx, 0x18
jl 0x401841
lea eax, [ebp - 0x700]
push eax
push dword [ebp - 0x658]
call esi
mov dword [ebp - 0x698], eax
test eax, eax
je 0x401ddd
mov ecx, dword [0x415054]
xor edx, edx
mov dword [ebp - 0x6b0], ecx
mov cl, byte [0x415058]
mov byte [ebp - 0x6ac], cl
mov dword [ebp - 0x654], edx
movups xmm0, xmmword [str.fAZVPNnRT_P__]
movups xmmword [ebp - 0x6c0], xmm0
cmp edi, 2
jl 0x401a00
movaps xmm0, xmmword [0x415340]
movaps xmm5, xmmword [0x4152f0]
movaps xmm4, xmmword [0x415350]
movaps xmm6, xmmword [0x415310]
movaps xmm3, xmmword [0x415320]
movaps xmmword [ebp - 0x690], xmm0
mov ecx, dword [ebp - 0x690]
nop word [eax + eax]
movd xmm0, edx
lea eax, [edx + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm5
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
movd xmm0, ecx
andps xmm2, xmm3
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [ebp + edx - 0x6c0]
xorps xmm2, xmm0
movd xmm0, eax
movd dword [ebp + edx - 0x6c0], xmm2
pshufd xmm2, xmm0, 0
paddd xmm2, xmm5
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
movd xmm0, ecx
andps xmm2, xmm3
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [ebp + edx - 0x6bc]
xorps xmm2, xmm0
movd dword [ebp + edx - 0x6bc], xmm2
add edx, 8
cmp edx, 0x10
jl 0x401900
mov dword [ebp - 0x654], edx
cmp edx, 0x15
jge 0x401a3d
nop dword [eax + eax]
mov eax, 0x8d3dcb09
imul edx
add edx, dword [ebp - 0x654]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0x654]
movsx eax, al
mov cl, dl
imul eax, eax, 0x3a
sub cl, al
add cl, 0x34
xor byte [ebp + edx - 0x6c0], cl
inc edx
mov dword [ebp - 0x654], edx
cmp edx, 0x15
jl 0x401a00
lea eax, [ebp - 0x6c0]
push eax
push dword [ebp - 0x658]
call esi
mov dword [ebp - 0x658], eax
test eax, eax
je 0x401ddd
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0
push 0x438
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, 0xffffffff
je 0x401ddd
push 0
push 0x18
lea eax, [ebp - 0x640]
push eax
push 0
push edi
call dword [ebp - 0x694]
mov esi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea eax, [ebp - 0x644]
push 0
push 4
push eax
lea eax, [ebp - 0x63c]
push eax
push edi
call esi
test eax, eax
je 0x401ddd
push 0
push 4
lea eax, [ebp - 0x650]
push eax
mov eax, dword [ebp - 0x644]
add eax, 0xc
push eax
push edi
call esi
test eax, eax
je 0x401ddd
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp word [0x414fd6], 0
movups xmm0, xmmword [str.hPNGTVHN]
mov eax, dword [0x414fd4]
mov dword [ebp - 0x668], eax
movups xmmword [ebp - 0x680], xmm0
movq xmm0, qword [0x414fcc]
movq qword [ebp - 0x670], xmm0
je 0x401c44
xor esi, esi
cmp dword [0x417ce0], 2
jl 0x401c13
movaps xmm2, xmmword [0x4152f0]
mov eax, str.hPNGTVHN
movaps xmm3, xmmword [0x415350]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
mov esi, 8
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, xmmword [0x415310]
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x415300]
pshuflw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
paddw xmm1, xmmword [0x415330]
movq xmm0, qword [eax]
xorps xmm1, xmm0
movaps xmm0, xmm2
movq qword [ebp - 0x680], xmm1
movaps xmm1, 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, xmmword [0x415310]
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
pshuflw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, qword [ebp - 0x678]
paddw xmm1, xmmword [0x415330]
xorps xmm1, xmm0
movq qword [ebp - 0x678], xmm1
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 [ebp + esi*2 - 0x680], cx
inc esi
cmp esi, 0xe
jl 0x401c13
mov esi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea eax, [ebp - 0x680]
push eax
lea eax, [ebp - 0x218]
push 0x105
push eax
call fcn.00405bb3
push 0x104
call fcn.00405c22
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x654], eax
push ecx
push 0x104
push eax
call fcn.00405b4f
mov ecx, dword [ebp - 0x644]
add esp, 0x1c
push dword [ecx + 0x1c]
call dword [ebp - 0x65c]
mov eax, dword [ebp - 0x644]
push dword [ebp - 0x654]
mov eax, dword [eax + 0x10]
add eax, 0x38
push eax
call dword [ebp - 0x658]
mov eax, dword [ebp - 0x644]
push dword [ebp - 0x654]
mov eax, dword [eax + 0x10]
add eax, 0x40
push eax
call dword [ebp - 0x658]
push 0x104
lea eax, [ebp - 0x628]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [ebp - 0x644]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x65c], eax
mov eax, dword [ebp - 0x650]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x64c], eax
nop word [eax + eax]
push 0
push 4
lea eax, [ebp - 0x648]
push eax
lea eax, [ebp - 0x64c]
push eax
push edi
call esi
test eax, eax
je 0x401ddd
mov ecx, dword [ebp - 0x648]
push 0
movzx eax, word [ecx + 0x26]
push eax
lea eax, [ebp - 0x420]
push eax
push dword [ecx + 0x28]
push edi
call esi
test eax, eax
je 0x401ddd
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x628]
push eax
call fcn.00405a4e
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x648]
je 0x401d71
mov eax, dword [eax]
mov dword [ebp - 0x64c], eax
cmp eax, dword [ebp - 0x65c]
jne 0x401d00
jmp 0x401d95
push dword [ebp - 0x654]
mov esi, dword [ebp - 0x658]
add eax, 0x24
push eax
call esi
mov eax, dword [ebp - 0x648]
push dword [ebp - 0x654]
add eax, 0x2c
push eax
call esi
mov eax, dword [ebp - 0x644]
push dword [eax + 0x1c]
call dword [ebp - 0x698]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00405a4e
add esp, 8
test eax, eax
je 0x401ddd
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004028e5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004028e5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret