Function at 0x14015e220
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x258]
sub rsp, 0x330
mov qword [rbp + 8], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x1403eaa10]
xor rax, rsp
mov qword [rbp + 0x220], rax
lea r12, [0x140323de0]
mov qword [rsp + 0x78], r12
xor r14d, r14d
mov qword [rbp - 0x80], r14
mov edx, 0x104
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov qword [rsp + 0x70], r14
lea edx, [r14 + 5]
lea rcx, [rsp + 0x68]
call fcn.1401e9030
mov eax, dword [rsp + 0x70]
inc eax
movsxd rdx, eax
lea r9d, [r14 + 5]
lea r8, str.hosts
mov rcx, qword [rsp + 0x68]
call fcn.14029b4d8
lea edx, [r14 + 5]
lea rcx, [rsp + 0x68]
call fcn.1401ea290
nop
mov qword [rsp + 0x40], r14
lea edx, [r14 + 3]
lea rcx, [rsp + 0x38]
call fcn.1401e9030
mov eax, dword [rsp + 0x40]
inc eax
movsxd rdx, eax
lea r9d, [r14 + 3]
lea r8, [0x140333b08]
mov rcx, qword [rsp + 0x38]
call fcn.14029b4d8
lea edx, [r14 + 3]
lea rcx, [rsp + 0x38]
call fcn.1401ea290
nop
mov qword [rsp + 0x60], r14
lea edx, [r14 + 7]
lea rcx, [rsp + 0x58]
call fcn.1401e9030
mov eax, dword [rsp + 0x60]
inc eax
movsxd rdx, eax
lea r9d, [r14 + 7]
lea r8, str.drivers
mov rcx, qword [rsp + 0x58]
call fcn.14029b4d8
lea edx, [r14 + 7]
lea rcx, [rsp + 0x58]
call fcn.1401ea290
nop
lea rax, [rbp + 0x10]
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x14015e350
mov qword [rsp + 0x50], r14
test ebx, ebx
jne 0x14015e36a
mov qword [rsp + 0x48], r12
jmp 0x14015e390
mov edx, ebx
lea rcx, [rsp + 0x48]
call fcn.1401e9030
movsxd r9, ebx
mov eax, dword [rsp + 0x50]
inc eax
movsxd rdx, eax
lea r8, [rbp + 0x10]
mov rcx, qword [rsp + 0x48]
call fcn.14029b4d8
mov edx, ebx
lea rcx, [rsp + 0x48]
call fcn.1401ea290
nop
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x78]
call fcn.1400d1690
nop
lea r8, [rsp + 0x38]
mov rdx, rax
lea rcx, [rbp - 0x30]
call fcn.1400d1690
nop
lea r8, [rsp + 0x68]
mov rdx, rax
lea rcx, [rbp - 0x40]
call fcn.1400d1690
mov rbx, rax
mov edx, dword [rax + 0xc]
lea rcx, [rsp + 0x78]
call fcn.1401e9030
movsxd r9, dword [rbx + 0xc]
mov ecx, dword [rbp - 0x80]
inc ecx
movsxd rdx, ecx
mov r8, qword [rbx]
mov rcx, qword [rsp + 0x78]
call fcn.14029b4d8
mov edx, dword [rbx + 0xc]
lea rcx, [rsp + 0x78]
call fcn.1401ea290
nop
cmp dword [rbp - 0x38], 0
jle 0x14015e41b
mov rcx, qword [rbp - 0x40]
call fcn.140298600
nop
cmp dword [rbp - 0x28], 0
jle 0x14015e42b
mov rcx, qword [rbp - 0x30]
call fcn.140298600
nop
cmp dword [rbp - 0x70], 0
jle 0x14015e43b
mov rcx, qword [rbp - 0x78]
call fcn.140298600
nop
cmp dword [rsp + 0x50], 0
jle 0x14015e44d
mov rcx, qword [rsp + 0x48]
call fcn.140298600
nop
cmp dword [rsp + 0x60], 0
jle 0x14015e45f
mov rcx, qword [rsp + 0x58]
call fcn.140298600
nop
cmp dword [rsp + 0x40], 0
jle 0x14015e471
mov rcx, qword [rsp + 0x38]
call fcn.140298600
nop
cmp dword [rsp + 0x70], 0
jle 0x14015e482
mov rcx, qword [rsp + 0x68]
call fcn.140298600
xor bl, bl
mov byte [rsp + 0x30], bl
xor r15b, r15b
xor sil, sil
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x48], r14
mov qword [rbp - 0x60], r12
mov qword [rbp - 0x58], r14
lea rax, vtable.Core::ByteArray.0
mov qword [rbp - 0x18], rax
mov dword [rbp - 0x10], r14d
mov qword [rbp - 8], r14
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov qword [rbp], rax
lea rdx, [rbp - 0x18]
lea rcx, [rsp + 0x78]
call fcn.1401f2430
test al, al
je 0x14015ea17
mov eax, dword [rbp - 0x10]
cmp eax, 2
jl 0x14015ea17
mov rcx, qword [rbp - 8]
cmp byte [rcx], 0xff
jne 0x14015e4f4
cmp byte [rcx + 1], 0xfe
jne 0x14015e4f4
mov sil, 1
jmp 0x14015e8c9
lea rdx, vtable.Core::Text::ASCIIEncoding.0
mov qword [rsp + 0x68], rdx
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, rcx
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x68]
call fcn.1401ee0e0
nop
lea rax, vtable.Core::StringReader.0
mov qword [rbp - 0x30], rax
lea rax, [rbp - 0x40]
mov qword [rbp - 0x28], rax
mov dword [rbp - 0x20], r14d
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], r14
xor dil, dil
mov byte [rsp + 0x31], dil
mov r12d, r14d
mov r13d, r14d
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x30]
call fcn.1401f95c0
test al, al
je 0x14015e893
mov esi, 1
nop dword [rax]
nop word [rax + rax]
lea rdx, [rbp - 0x78]
lea rcx, [rsp + 0x38]
call fcn.1401eb9e0
mov rbx, rax
mov edx, dword [rax + 0xc]
lea rcx, [rsp + 0x38]
call fcn.1401e9030
movsxd r9, dword [rbx + 0xc]
mov ecx, dword [rsp + 0x40]
inc ecx
movsxd rdx, ecx
mov r8, qword [rbx]
mov rcx, qword [rsp + 0x38]
call fcn.14029b4d8
mov edx, dword [rbx + 0xc]
lea rcx, [rsp + 0x38]
call fcn.1401ea290
nop
cmp dword [rbp - 0x70], 0
jle 0x14015e5c5
mov rcx, qword [rbp - 0x78]
call fcn.140298600
mov eax, dword [rsp + 0x44]
test eax, eax
jne 0x14015e5e2
test dil, dil
jne 0x14015e5da
mov byte [rsp + 0x31], 1
mov r12d, r14d
inc r12d
jmp 0x14015e80e
cmp eax, 5
jl 0x14015e80e
mov r8d, esi
lea rdx, [0x140331778]
lea rcx, [rsp + 0x38]
call fcn.1401eb700
test al, al
jne 0x14015e80e
lea rax, [0x140323de0]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], 0
xor r14b, r14b
xor esi, esi
xor edi, edi
mov ecx, dword [rsp + 0x44]
test ecx, ecx
jle 0x14015e6e3
nop dword [rax]
test rdi, rdi
js 0x14015e82f
cmp esi, ecx
jge 0x14015e82f
mov rax, qword [rsp + 0x38]
movzx ebx, word [rax + rdi*2]
cmp bx, 0x20
je 0x14015e6d3
cmp bx, 9
je 0x14015e6d3
test r14b, r14b
jne 0x14015e69f
mov edx, dword [rsp + 0x54]
inc edx
lea rcx, [rsp + 0x48]
call fcn.1401e9030
movsxd rcx, dword [rsp + 0x54]
mov rax, qword [rsp + 0x48]
mov word [rax + rcx*2], bx
mov edx, dword [rsp + 0x54]
inc edx
lea rcx, [rsp + 0x48]
call fcn.1401ea290
mov ecx, dword [rsp + 0x44]
jmp 0x14015e6d6
mov edx, dword [rsp + 0x64]
inc edx
lea rcx, [rsp + 0x58]
call fcn.1401e9030
movsxd rcx, dword [rsp + 0x64]
mov rax, qword [rsp + 0x58]
mov word [rax + rcx*2], bx
mov edx, dword [rsp + 0x64]
inc edx
lea rcx, [rsp + 0x58]
call fcn.1401ea290
mov ecx, dword [rsp + 0x44]
jmp 0x14015e6d6
mov r14b, 1
inc esi
inc rdi
cmp esi, ecx
jl 0x14015e640
mov esi, 1
mov r8d, esi
lea rdx, str.127.0.0.1
lea rcx, [rsp + 0x48]
call fcn.1401eb700
test al, al
jne 0x14015e7d9
cmp dword [rsp + 0x54], 0
jle 0x14015e7d9
cmp dword [rsp + 0x64], 0
jle 0x14015e7d9
cmp r12d, 0x32
jl 0x14015e72c
movzx r15d, r15b
cmp r13d, 3
cmovl r15d, esi
inc r13d
xor r14d, r14d
mov ebx, r14d
lea rdi, str.www.google.
nop dword [rax]
xor r8d, r8d
mov rdx, qword [rdi]
lea rcx, [rsp + 0x58]
call fcn.1401e8da0
test al, al
jne 0x14015e765
inc ebx
add rdi, 8
movsxd rax, ebx
cmp rax, 2
jb 0x14015e740
jmp 0x14015e7dc
mov edx, dword [rsp + 0x64]
lea rcx, [rbp - 0x50]
call fcn.1401e9030
movsxd r9, dword [rsp + 0x64]
mov eax, dword [rbp - 0x48]
inc eax
movsxd rdx, eax
mov r8, qword [rsp + 0x58]
mov rcx, qword [rbp - 0x50]
call fcn.14029b4d8
mov edx, dword [rsp + 0x64]
lea rcx, [rbp - 0x50]
call fcn.1401ea290
mov edx, dword [rsp + 0x54]
lea rcx, [rbp - 0x60]
call fcn.1401e9030
movsxd r9, dword [rsp + 0x54]
mov eax, dword [rbp - 0x58]
inc eax
movsxd rdx, eax
mov r8, qword [rsp + 0x48]
mov rcx, qword [rbp - 0x60]
call fcn.14029b4d8
mov edx, dword [rsp + 0x54]
lea rcx, [rbp - 0x60]
call fcn.1401ea290
movzx ebx, sil
mov byte [rsp + 0x30], bl
jmp 0x14015e7e1
xor r14d, r14d
movzx ebx, byte [rsp + 0x30]
cmp dword [rsp + 0x60], 0
jle 0x14015e7f3
mov rcx, qword [rsp + 0x58]
call fcn.140298600
nop
cmp dword [rsp + 0x50], 0
jle 0x14015e804
mov rcx, qword [rsp + 0x48]
call fcn.140298600
test bl, bl
jne 0x14015e890
jmp 0x14015e813
movzx ebx, byte [rsp + 0x30]
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x30]
call fcn.1401f95c0
test al, al
je 0x14015e890
movzx edi, byte [rsp + 0x31]
jmp 0x14015e570
lea rcx, [rbp - 0x78]
call fcn.1401e6d00
nop
lea rax, vtable.Core::IndexOutOfRangeException.0
mov qword [rbp - 0x78], rax
mov edx, 0x2a
lea rcx, [rbp - 0x70]
call fcn.1401e9030
mov eax, dword [rbp - 0x68]
inc eax
movsxd rdx, eax
mov r9d, 0x2a
lea r8, str.Index_was_outside_the_bounds_of_the_array.
mov rcx, qword [rbp - 0x70]
call fcn.14029b4d8
mov edx, 0x2a
lea rcx, [rbp - 0x70]
call fcn.1401ea290
nop
lea rdx, [0x1403e2d68]
lea rcx, [rbp - 0x78]
call fcn.14029f768
nop
xor sil, sil
cmp dword [rsp + 0x40], 0
jle 0x14015e8a5
mov rcx, qword [rsp + 0x38]
call fcn.140298600
nop
cmp dword [rbp - 0x38], 0
jle 0x14015e8b5
mov rcx, qword [rbp - 0x40]
call fcn.140298600
nop
test bl, bl
jne 0x14015e8c2
test r15b, r15b
je 0x14015ea17
lea r12, [0x140323de0]
mov ecx, 0x58
call fcn.14029806c
mov rdi, rax
mov qword [rsp + 0x68], rax
test rax, rax
je 0x14015e8f9
lea rdx, [rsp + 0x78]
mov rcx, rax
call fcn.1400d5b80
lea rax, vtable.HitmanPro35::RepairHostsFile.0
mov qword [rdi], rax
jmp 0x14015e8fc
mov rdi, r14
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], 0
test r15b, r15b
je 0x14015e952
mov edx, 0x6d
lea rcx, [rsp + 0x38]
call fcn.1401e9030
mov eax, dword [rsp + 0x40]
inc eax
movsxd rdx, eax
mov r9d, 0x6d
lea r8, str.Hosts_file_is_compromised._Contains_large_amounts_of_empty_lines_to_trick_the_viewer_the_hosts_file_is_clean.
mov rcx, qword [rsp + 0x38]
call fcn.14029b4d8
mov edx, 0x6d
lea rcx, [rsp + 0x38]
call fcn.1401ea290
jmp 0x14015e9f6
test sil, sil
je 0x14015e997
mov edx, 0x51
lea rcx, [rsp + 0x38]
call fcn.1401e9030
mov eax, dword [rsp + 0x40]
inc eax
movsxd rdx, eax
mov r9d, 0x51
lea r8, str.Hosts_file_is_compromised._Hosts_file_contains_Byte_order_mark__BOM__obfuscation.
mov rcx, qword [rsp + 0x38]
call fcn.14029b4d8
mov edx, 0x51
lea rcx, [rsp + 0x38]
call fcn.1401ea290
jmp 0x14015e9f6
mov r9, qword [rbp - 0x60]
mov r8, qword [rbp - 0x50]
lea rdx, str.Hosts_file_is_compromised:__s_is_directed_to_an_hardcoded_IP__s.
lea rcx, [rbp - 0x78]
call fcn.1401e94c0
mov rbx, rax
mov edx, dword [rax + 0xc]
lea rcx, [rsp + 0x38]
call fcn.1401e9030
movsxd r9, dword [rbx + 0xc]
mov ecx, dword [rsp + 0x40]
inc ecx
movsxd rdx, ecx
mov r8, qword [rbx]
mov rcx, qword [rsp + 0x38]
call fcn.14029b4d8
mov edx, dword [rbx + 0xc]
lea rcx, [rsp + 0x38]
call fcn.1401ea290
nop
cmp dword [rbp - 0x70], 0
jle 0x14015e9f6
mov rcx, qword [rbp - 0x78]
call fcn.140298600
mov rdx, qword [rsp + 0x38]
mov rcx, rdi
call fcn.14015c010
nop
cmp dword [rsp + 0x40], 0
jle 0x14015ea1a
mov rcx, qword [rsp + 0x38]
call fcn.140298600
jmp 0x14015ea1a
mov rdi, r14
mov r8, qword [rbp - 8]
test r8, r8
je 0x14015ea30
xor edx, edx
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
cmp dword [rbp - 0x58], 0
jle 0x14015ea40
mov rcx, qword [rbp - 0x60]
call fcn.140298600
nop
cmp dword [rbp - 0x48], 0
jle 0x14015ea50
mov rcx, qword [rbp - 0x50]
call fcn.140298600
nop
cmp dword [rbp - 0x80], 0
jle 0x14015ea60
mov rcx, qword [rsp + 0x78]
call fcn.140298600
mov rax, rdi
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.140297ff0
lea r11, [rsp + 0x330]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret