Function at 0x402500
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
push 0xffffffffffffffff
push 0x407163
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x248
mov eax, dword [0x40b008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movups xmm0, xmmword [0x408480]
mov al, byte [0x4084b8]
xor edx, edx
mov esi, dword [0x40b6cc]
mov byte [ebp - 0x220], al
mov dword [ebp - 0x1b4], edx
lea edi, [edx + 1]
lea eax, [edx + 0x1f]
movups xmmword [ebp - 0x258], xmm0
movups xmm0, xmmword [0x408490]
movups xmmword [ebp - 0x248], xmm0
movups xmm0, xmmword [0x4084a0]
movups xmmword [ebp - 0x238], xmm0
movq xmm0, qword [0x4084b0]
movq qword [ebp - 0x228], xmm0
cmp esi, 2
jl 0x4026e0
movaps xmm0, xmmword [0x408530]
movaps xmm4, xmmword [0x4084e0]
movaps xmm3, xmmword [0x408520]
movaps xmm6, xmmword [0x408500]
movaps xmmword [ebp - 0x1d0], xmm0
mov ecx, dword [ebp - 0x1d0]
movd xmm5, edi
movd xmm7, eax
movd xmm0, edx
lea eax, [edx + 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
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x408510]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [ebp + edx - 0x258]
xorps xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movd dword [ebp + edx - 0x258], 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, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x408510]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [ebp + edx - 0x254]
xorps xmm1, xmm0
movd dword [ebp + edx - 0x254], xmm1
add edx, 8
cmp edx, 0x38
jl 0x4025d4
mov dword [ebp - 0x1b4], edx
cmp edx, 0x39
jge 0x402716
nop
mov eax, 0x94f2095
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0x1b4]
movsx eax, al
mov cl, dl
imul eax, eax, 0x37
sub cl, al
add cl, 0x32
xor byte [ebp + edx - 0x258], cl
inc edx
mov dword [ebp - 0x1b4], edx
cmp edx, 0x39
jl 0x4026e0
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp - 0x1b0]
call fcn.00404460
mov dword [ebp - 4], 0
mov eax, dword [0x408444]
movq xmm0, qword [str.e_pWQh_]
mov dword [ebp - 0x1c8], eax
mov ax, word [0x408448]
movq qword [ebp - 0x1d0], xmm0
mov word [ebp - 0x1c4], ax
test ah, ah
je 0x4028b6
xor edx, edx
mov dword [ebp - 0x1b4], edx
cmp esi, 2
jl 0x402880
movaps xmm2, xmmword [0x4084e0]
mov eax, 0x1f
movaps xmm4, xmmword [0x408520]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
mov edx, 8
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
movd xmm5, edi
psrad xmm1, xmm5
movd xmm6, eax
mov eax, dword [0x408530]
movaps xmm0, xmm1
psrld xmm0, xmm6
mov dword [ebp - 0x1b4], edx
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x408500]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x4084f0]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x408510]
packuswb xmm1, xmm1
movd xmm0, eax
paddb xmm1, xmm0
movd xmm0, dword [str.e_pWQh_]
xorps xmm1, xmm0
movaps xmm0, xmm2
movd dword [ebp - 0x1d0], xmm1
movaps xmm1, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm6
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x408500]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x408510]
packuswb xmm1, xmm1
movd xmm0, eax
paddb xmm1, xmm0
movd xmm0, dword [ebp - 0x1cc]
xorps xmm1, xmm0
movd dword [ebp - 0x1cc], xmm1
nop dword [eax]
mov eax, 0x94f2095
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0x1b4]
movsx eax, al
mov cl, dl
imul eax, eax, 0x37
sub cl, al
add cl, 0x32
xor byte [ebp + edx - 0x1d0], cl
inc edx
mov dword [ebp - 0x1b4], edx
cmp edx, 0xe
jl 0x402880
lea eax, [ebp - 0x1d0]
push eax
lea ecx, [ebp - 0x180]
call fcn.00404460
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 1
push eax
call fcn.00401260
mov edi, eax
mov byte [ebp - 4], 2
mov edx, dword [edi + 0x14]
mov eax, edx
mov ecx, dword [edi + 0x10]
sub eax, ecx
cmp eax, 0xb
jb 0x402915
lea eax, [ecx + 0xb]
mov dword [edi + 0x10], eax
mov eax, edi
cmp edx, 0x10
jb 0x4028fc
mov eax, dword [edi]
push 0xb
lea esi, [eax + ecx]
push str.BRdDsx.tmp
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + 0xb], 0
jmp 0x402934
push 0xb
push str.BRdDsx.tmp
mov byte [ebp - 0x1b4], 0
mov ecx, edi
push dword [ebp - 0x1b4]
push 0xb
call fcn.00405180
mov edi, eax
mov dword [ebp - 0x158], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x168], xmm0
mov dword [ebp - 0x154], 0
movups xmm0, xmmword [edi]
movups xmmword [ebp - 0x168], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [ebp - 0x158], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x208]
cmp ecx, 0x10
jb 0x4029ba
mov edx, dword [ebp - 0x21c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4029b0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4029b0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00406167
add esp, 8
push 0x104
lea eax, [ebp - 0x120]
mov dword [ebp - 0x20c], 0
push eax
mov dword [ebp - 0x208], 0xf
mov byte [ebp - 0x21c], 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
dec eax
cmp eax, 0x102
ja 0x4029f7
lea eax, [ebp - 0x120]
jmp 0x402a72
mov ax, word [0x4083f0]
xor edx, edx
movq xmm0, qword [str.q_thb_YVMH_]
mov word [ebp - 0x1c4], ax
mov al, byte [0x4083f2]
movq qword [ebp - 0x1cc], xmm0
mov byte [ebp - 0x1c2], al
mov dword [ebp - 0x1b4], edx
nop word [eax + eax]
mov eax, 0x29e4129f
mul edx
mov eax, dword [ebp - 0x1b4]
sub eax, edx
shr eax, 1
add eax, edx
mov edx, dword [ebp - 0x1b4]
shr eax, 5
mov cl, dl
movsx eax, al
imul eax, eax, 0x37
sub cl, al
add cl, 0x32
xor byte [ebp + edx - 0x1cc], cl
inc edx
mov dword [ebp - 0x1b4], edx
cmp edx, 0xb
jl 0x402a30
lea eax, [ebp - 0x1cc]
push eax
lea ecx, [ebp - 0x200]
call fcn.00404460
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x1ec]
mov eax, edx
mov ecx, dword [ebp - 0x1f0]
sub eax, ecx
cmp eax, 1
jb 0x402abe
lea eax, [ecx + 1]
cmp edx, 0x10
mov dword [ebp - 0x1f0], eax
lea eax, [ebp - 0x200]
cmovae eax, dword [ebp - 0x200]
mov word [eax + ecx], 0x5c
lea eax, [ebp - 0x200]
jmp 0x402adf
push 1
push 0x408364
mov byte [ebp - 0x1b4], 0
lea ecx, [ebp - 0x200]
push dword [ebp - 0x1b4]
push 1
call fcn.00405180
mov dword [ebp - 0x1d8], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x1e8], xmm0
mov dword [ebp - 0x1d4], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x1e8], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x1d8], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x180]
cmp dword [ebp - 0x16c], 0x10
mov edx, dword [ebp - 0x1d8]
cmovae ecx, dword [ebp - 0x180]
mov eax, dword [ebp - 0x1d4]
mov edi, dword [ebp - 0x170]
sub eax, edx
mov dword [ebp - 0x1b4], edx
push edi
push ecx
cmp edi, eax
ja 0x402b9b
cmp dword [ebp - 0x1d4], 0x10
lea esi, [ebp - 0x1e8]
lea eax, [edi + edx]
cmovae esi, dword [ebp - 0x1e8]
mov dword [ebp - 0x1d8], eax
lea eax, [esi + edx]
push eax
call sub.VCRUNTIME140.dll_memmove
mov ecx, dword [ebp - 0x1b4]
lea eax, [edi + esi]
add esp, 0xc
mov byte [eax + ecx], 0
lea eax, [ebp - 0x1e8]
jmp 0x402bb4
mov byte [ebp - 0x1b4], 0
lea ecx, [ebp - 0x1e8]
push dword [ebp - 0x1b4]
push edi
call fcn.00405180
mov dword [ebp - 0x128], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x138], xmm0
mov dword [ebp - 0x124], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x138], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x128], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x1d4]
cmp ecx, 0x10
jb 0x402c34
mov edx, dword [ebp - 0x1e8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402c2a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402c7f
push ecx
push edx
call fcn.00406167
add esp, 8
mov dword [ebp - 0x1d8], 0
mov dword [ebp - 0x1d4], 0xf
mov byte [ebp - 0x1e8], 0
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x1ec]
cmp ecx, 0x10
jb 0x402c8f
mov edx, dword [ebp - 0x200]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402c85
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402c85
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00406167
add esp, 8
sub esp, 0x18
mov dword [ebp - 0x1f0], 0
lea eax, [ebp - 0x168]
mov dword [ebp - 0x1b4], esp
mov ecx, esp
mov dword [ebp - 0x1ec], 0xf
mov byte [ebp - 0x200], 0
push eax
call fcn.00404530
sub esp, 0x18
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x1b0]
mov ecx, esp
push eax
call fcn.00404530
mov ecx, 0x40b6d4
mov byte [ebp - 4], 9
call fcn.00401440
test al, al
je 0x402f31
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 0x198]
push eax
call fcn.00401da0
lea eax, [ebp - 0x138]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x150]
push eax
call fcn.00401da0
mov byte [ebp - 4], 0xc
mov edx, str.md5_cur:
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.00404cf0
cmp dword [ebp - 0x184], 0x10
lea edx, [ebp - 0x198]
push dword [ebp - 0x188]
cmovae edx, dword [ebp - 0x198]
mov ecx, eax
call fcn.004052f0
add esp, 4
mov ecx, eax
push 0x404f10
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.md5_orig:
call fcn.00404cf0
cmp dword [ebp - 0x13c], 0x10
lea edx, [ebp - 0x150]
push dword [ebp - 0x140]
cmovae edx, dword [ebp - 0x150]
mov ecx, eax
call fcn.004052f0
add esp, 4
mov ecx, eax
push 0x404f10
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
cmp dword [ebp - 0x13c], 0x10
lea ecx, [ebp - 0x150]
mov esi, dword [ebp - 0x188]
lea edx, [ebp - 0x198]
cmovae ecx, dword [ebp - 0x150]
cmp dword [ebp - 0x184], 0x10
cmovae edx, dword [ebp - 0x198]
cmp esi, dword [ebp - 0x140]
jne 0x402e27
sub esi, 4
jb 0x402de8
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x402ded
add edx, 4
add ecx, 4
sub esi, 4
jae 0x402dd7
cmp esi, 0xfffffffc
je 0x402e21
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x402e1a
cmp esi, 0xfffffffd
je 0x402e21
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x402e1a
cmp esi, 0xfffffffe
je 0x402e21
mov al, byte [edx + 2]
cmp al, byte [ecx + 2]
jne 0x402e1a
cmp esi, 0xffffffff
je 0x402e21
mov al, byte [edx + 3]
cmp al, byte [ecx + 3]
je 0x402e21
sbb eax, eax
or eax, 1
jmp 0x402e23
xor eax, eax
test eax, eax
je 0x402e47
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 0x138]
push eax
call fcn.00402080
push str.replaced_n
call fcn.00401020
add esp, 4
cmp dword [ebp - 0x16c], 0x10
lea eax, [ebp - 0x180]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmovae eax, dword [ebp - 0x180]
push eax
call esi
test eax, eax
je 0x402e89
push str._plugin.asi
call esi
test eax, eax
je 0x402e89
push str.Print_Export
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402e89
call eax
test al, al
jne 0x402ea4
cmp dword [ebp - 0x124], 0x10
lea eax, [ebp - 0x138]
cmovae eax, dword [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 0x13c]
cmp ecx, 0x10
jb 0x402eda
mov edx, dword [ebp - 0x150]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402ed0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402f21
push ecx
push edx
call fcn.00406167
add esp, 8
mov ecx, dword [ebp - 0x184]
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x13c], 0xf
mov byte [ebp - 0x150], 0
cmp ecx, 0x10
jb 0x402f31
mov edx, dword [ebp - 0x198]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402f27
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402f27
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00406167
add esp, 8
mov ecx, dword [ebp - 0x124]
cmp ecx, 0x10
jb 0x402f6b
mov edx, dword [ebp - 0x138]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402f61
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403058
push ecx
push edx
call fcn.00406167
add esp, 8
mov ecx, dword [ebp - 0x154]
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 0xf
mov byte [ebp - 0x138], 0
cmp ecx, 0x10
jb 0x402fc0
mov edx, dword [ebp - 0x168]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402fb6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403058
push ecx
push edx
call fcn.00406167
add esp, 8
mov ecx, dword [ebp - 0x16c]
mov dword [ebp - 0x158], 0
mov dword [ebp - 0x154], 0xf
mov byte [ebp - 0x168], 0
cmp ecx, 0x10
jb 0x403011
mov edx, dword [ebp - 0x180]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403007
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403058
push ecx
push edx
call fcn.00406167
add esp, 8
mov ecx, dword [ebp - 0x19c]
mov dword [ebp - 0x170], 0
mov dword [ebp - 0x16c], 0xf
mov byte [ebp - 0x180], 0
cmp ecx, 0x10
jb 0x403068
mov edx, dword [ebp - 0x1b0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40305e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40305e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00406167
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00406129
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret