Function at 0x140115420
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x2b8]
sub rsp, 0x390
mov qword [rbp + 0x68], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140415a10]
xor rax, rsp
mov qword [rbp + 0x280], rax
mov r15, rcx
mov qword [rbp - 8], rcx
mov edx, 0x104
lea rcx, [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx r13d, word [rbp + 0x70]
mov word [rsp + 0x40], r13w
lea rax, [rbp + 0x70]
or rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140115490
xor edi, edi
mov qword [rsp + 0x70], rdi
test ebx, ebx
jne 0x1401154b3
lea rax, [0x140346ce0]
mov qword [rsp + 0x68], rax
jmp 0x1401154d9
mov edx, ebx
lea rcx, [rsp + 0x68]
call fcn.1401fcb40
movsxd r9, ebx
mov eax, dword [rsp + 0x70]
inc eax
movsxd rdx, eax
lea r8, [rbp + 0x70]
mov rcx, qword [rsp + 0x68]
call fcn.1402ba94c
mov edx, ebx
lea rcx, [rsp + 0x68]
call fcn.1401fde50
nop
lea rdx, [rsp + 0x68]
mov rcx, r15
call fcn.1400f8ca0
mov rcx, rax
mov dword [rsp + 0x20], edi
lea r9, vtable.type_info.0
lea r8, vtable.type_info.0
xor edx, edx
call fcn.1402d68d8
mov rbx, rax
cmp dword [rsp + 0x70], 0
jle 0x140115523
mov rcx, qword [rsp + 0x68]
call fcn.1402b7350
test rbx, rbx
jne 0x14011552f
xor al, al
jmp 0x140115be4
mov r8d, 8
movzx ecx, r13w
call fcn.140184e30
mov rbx, rax
lea r14, vtable.HitmanPro35::FileSystemNtfs.0
test rax, rax
je 0x14011558b
cmp dword [rax + 8], 8
je 0x140115562
mov rax, qword [rax]
mov edx, 1
mov rcx, rbx
call qword [rax]
jmp 0x14011558b
mov ecx, 0x20
call fcn.1402b6dbc
mov rsi, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x14011558b
mov qword [rax + 8], r15
mov qword [rax], r14
mov qword [rax + 0x10], rbx
mov word [rax + 0x18], r13w
jmp 0x140115593
mov rsi, rdi
mov qword [rsp + 0x48], rdi
lea r12, vtable.Core::SharedPtr_class_HitmanPro35::FileSystemNtfs_.0
mov qword [rbp + 0x18], r12
mov qword [rbp + 0x20], rsi
mov qword [rbp - 0x40], rdi
mov qword [rbp + 0x28], rdi
test rsi, rsi
je 0x1401155df
mov ecx, 4
call fcn.1402b6dbc
mov r14, rax
mov qword [rbp - 0x40], rax
test rax, rax
je 0x1401155cd
mov dword [rax], edi
mov qword [rbp + 0x28], rax
jmp 0x1401155d8
mov r14, rdi
mov qword [rbp - 0x40], rdi
mov qword [rbp + 0x28], rdi
mov dword [r14], 1
mov r8d, 2
movzx ecx, r13w
call fcn.140184e30
mov rbx, rax
test rax, rax
je 0x14011563b
cmp dword [rax + 8], 2
je 0x14011560b
mov rax, qword [rax]
mov edx, 1
mov rcx, rbx
call qword [rax]
jmp 0x14011563b
mov ecx, 0x20
call fcn.1402b6dbc
mov r14, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x14011563b
mov qword [rax + 8], r15
lea rax, vtable.HitmanPro35::FileSystemNtfs.0
mov qword [r14], rax
mov qword [r14 + 0x10], rbx
mov word [r14 + 0x18], r13w
jmp 0x140115643
mov r14, rdi
mov qword [rsp + 0x50], rdi
mov qword [rbp + 0x30], r12
mov qword [rbp + 0x38], r14
mov rax, rdi
mov qword [rbp - 0x48], rax
mov qword [rbp + 0x40], rax
test r14, r14
je 0x140115683
mov ecx, 4
call fcn.1402b6dbc
mov qword [rbp - 0x48], rax
test rax, rax
je 0x140115672
mov dword [rax], edi
jmp 0x140115679
mov rax, rdi
mov qword [rbp - 0x48], rax
mov qword [rbp + 0x40], rax
mov dword [rax], 1
test rsi, rsi
je 0x140115b6d
test r14, r14
je 0x140115b6d
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x48]
test al, al
je 0x140115b6d
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x48]
test al, al
je 0x140115b6d
xorps xmm0, xmm0
movdqu xmmword [rbp], xmm0
mov qword [rbp + 0x10], rdi
lea rdx, [rbp]
mov rcx, rsi
call fcn.140176860
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
mov r14, rdi
mov qword [rbp - 0x78], rdi
mov r15d, edi
mov rax, qword [rbp + 8]
mov rcx, qword [rbp]
sub rax, rcx
sar rax, 3
mov qword [rsp + 0x60], rax
mov rbx, qword [rbp - 0x80]
mov r12, qword [rsp + 0x78]
test eax, eax
jle 0x1401157d7
mov r13, rcx
nop word [rax + rax]
mov ecx, 0x50
call fcn.1402b6dbc
mov qword [rbp - 0x70], rax
test rax, rax
je 0x14011573c
mov r9, qword [r13]
mov r8, qword [rsp + 0x50]
mov rdx, rsi
mov rcx, rax
call fcn.1401763a0
mov rsi, rax
jmp 0x14011573f
mov rsi, rdi
mov qword [rsp + 0x58], rsi
lea rax, [rsp + 0x58]
cmp rax, rbx
jae 0x14011578e
lea rax, [rsp + 0x58]
cmp r12, rax
ja 0x14011578e
lea rsi, [rsp + 0x58]
sub rsi, r12
sar rsi, 3
cmp rbx, r14
jne 0x140115780
lea rcx, [rsp + 0x78]
call fcn.1400bb350
mov r14, qword [rbp - 0x78]
mov rbx, qword [rbp - 0x80]
mov r12, qword [rsp + 0x78]
test rbx, rbx
je 0x1401157b2
mov rax, qword [r12 + rsi*8]
mov qword [rbx], rax
jmp 0x1401157b2
cmp rbx, r14
jne 0x1401157aa
lea rcx, [rsp + 0x78]
call fcn.1400bb350
mov r14, qword [rbp - 0x78]
mov rbx, qword [rbp - 0x80]
mov r12, qword [rsp + 0x78]
test rbx, rbx
je 0x1401157b2
mov qword [rbx], rsi
add rbx, 8
mov qword [rbp - 0x80], rbx
inc r15d
add r13, 8
cmp r15d, dword [rsp + 0x60]
mov rsi, qword [rsp + 0x48]
jl 0x140115710
movzx r13d, word [rsp + 0x40]
mov dword [rsp + 0x40], edi
sub rbx, r12
sar rbx, 3
test ebx, ebx
jle 0x140115b4d
mov r15, rdi
mov qword [rsp + 0x60], rdi
movzx eax, r13w
mov dword [rsp + 0x58], eax
nop word [rax + rax]
mov r13, qword [r12 + r15*8]
mov r14, qword [r13 + 0x48]
mov qword [rbp - 0x70], r14
mov r9, r14
mov r8d, eax
lea rdx, str._c:_VBR__u
lea rcx, [rbp - 0x68]
call fcn.1401fcfe0
nop
mov rsi, rdi
mov r8, r14
lea rdx, str.Volume_Boot_Record__Sector__d_
lea rcx, [rbp - 0x38]
call fcn.1401fcfe0
nop
movsxd r8, dword [r13 + 0x30]
mov rdx, qword [r13 + 0x38]
mov rcx, qword [r13 + 0x18]
call fcn.1402c22d0
test eax, eax
setne al
test al, al
je 0x14011590a
mov ecx, 0x88
call fcn.1402b6dbc
mov qword [rbp - 0x70], rax
test rax, rax
je 0x14011589e
lea r8, [r13 + 8]
lea rdx, [r13 + 0x28]
lea rcx, [rbp - 0x68]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp - 0x38]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x68]
mov qword [rsp + 0x20], rcx
mov r9, r14
mov rcx, rax
call fcn.14016b2b0
mov rsi, rax
jmp 0x1401158a1
mov rsi, rdi
mov qword [rbp - 0x50], rdi
mov edx, 0x11
lea rcx, [rbp - 0x58]
call fcn.1401fcb40
mov eax, dword [rbp - 0x50]
inc eax
movsxd rdx, eax
mov r9d, 0x11
lea r8, str.Win64_Bootkit.VBR
mov rcx, qword [rbp - 0x58]
call fcn.1402ba94c
mov edx, 0x11
lea rcx, [rbp - 0x58]
call fcn.1401fde50
nop
lea r8, [rbp - 0x58]
mov edx, 2
mov rcx, rsi
call fcn.1400d9690
nop
cmp dword [rbp - 0x50], 0
jle 0x140115aa6
mov rcx, qword [rbp - 0x58]
call fcn.1402b7350
jmp 0x140115aa6
test r15, r15
jle 0x140115961
mov ecx, 0x88
call fcn.1402b6dbc
mov qword [rbp - 0x70], rax
test rax, rax
je 0x140115959
mov rdx, qword [r12]
add rdx, 8
lea r8, [r13 + 8]
lea rcx, [rbp - 0x68]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp - 0x38]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x68]
mov qword [rsp + 0x20], rcx
mov r9, r14
mov rcx, rax
call fcn.14016b2b0
mov rsi, rax
jmp 0x14011595c
mov rsi, rdi
jmp 0x140115aa6
lea r14, vtable.Core::ByteArray.0
mov qword [rbp - 0x28], r14
mov dword [rbp - 0x20], edi
mov qword [rbp - 0x18], rdi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov rcx, r13
call fcn.140176580
test al, al
je 0x140115a89
mov qword [rbp + 0x48], r14
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov qword [rbp + 0x60], rax
mov rsi, qword [r12]
mov r15d, 0x54
mov r8d, r15d
lea edx, [r15 - 0x4c]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
mov qword [rbp + 0x58], rax
mov ecx, edi
test rax, rax
cmovne ecx, r15d
mov dword [rbp + 0x50], ecx
mov rax, qword [rsi + 0x18]
test rax, rax
je 0x140115a0d
cmp dword [rsi + 0x10], r15d
jl 0x140115a0d
movups xmm0, xmmword [rax]
movups xmmword [r14], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [r14 + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [r14 + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [r14 + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [r14 + 0x40], xmm0
mov eax, dword [rax + 0x50]
mov dword [r14 + 0x50], eax
mov r15, qword [rbp - 0x18]
test r14, r14
je 0x140115a24
movsxd r8, ecx
mov rdx, r14
mov rcx, r15
call fcn.1402b7460
mov ecx, 0x88
call fcn.1402b6dbc
mov qword [rsp + 0x68], rax
test rax, rax
je 0x140115a70
lea r8, [r13 + 8]
lea rcx, [rbp - 0x68]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp - 0x38]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x68]
mov qword [rsp + 0x20], rcx
mov r9, qword [rbp - 0x70]
lea rdx, [rbp - 0x28]
mov rcx, rax
call fcn.14016b2b0
mov rsi, rax
mov r15, qword [rbp - 0x18]
jmp 0x140115a73
mov rsi, rdi
test r14, r14
je 0x140115a8d
mov r8, r14
xor edx, edx
mov rcx, qword [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x140115a8d
mov r15, qword [rbp - 0x18]
test r15, r15
je 0x140115aa1
mov r8, r15
xor edx, edx
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r15, qword [rsp + 0x60]
test rsi, rsi
je 0x140115aed
mov rdx, rsi
mov r14, qword [rbp - 8]
mov rcx, r14
call fcn.1400f8580
cmp qword [r14 + 0x430], 0
je 0x140115aed
mov eax, dword [rsi + 0x40]
shr rax, 0x14
test al, 1
jne 0x140115add
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x10]
test rax, rax
je 0x140115aed
mov rdx, rsi
mov rcx, qword [r14 + 0x430]
call fcn.1401ce0b0
nop
cmp dword [rbp - 0x30], 0
jle 0x140115afd
mov rcx, qword [rbp - 0x38]
call fcn.1402b7350
nop
cmp dword [rbp - 0x60], 0
jle 0x140115b0c
mov rcx, qword [rbp - 0x68]
call fcn.1402b7350
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
inc r15
mov qword [rsp + 0x60], r15
cmp eax, ebx
mov eax, dword [rsp + 0x58]
jl 0x140115800
test ebx, ebx
jle 0x140115b4d
mov rsi, r12
mov rcx, qword [rsi]
test rcx, rcx
je 0x140115b43
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
inc edi
add rsi, 8
cmp edi, ebx
jl 0x140115b31
mov bl, 1
test r12, r12
je 0x140115b5d
mov rcx, r12
call fcn.1402150f0
nop
mov rcx, qword [rbp]
test rcx, rcx
je 0x140115b71
call fcn.1402150f0
jmp 0x140115b71
xor bl, bl
jmp 0x140115b7b
mov r14, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rbp - 0x48]
test rdi, rdi
je 0x140115bae
mov eax, dword [rdi]
test eax, eax
jle 0x140115b8e
dec eax
mov dword [rdi], eax
cmp dword [rdi], 0
jne 0x140115bae
test r14, r14
je 0x140115ba5
mov rax, qword [r14]
mov edx, 1
mov rcx, r14
call qword [rax]
mov rcx, rdi
call fcn.1402150f0
nop
mov rdi, qword [rbp - 0x40]
test rdi, rdi
je 0x140115be1
mov eax, dword [rdi]
test eax, eax
jle 0x140115bc1
dec eax
mov dword [rdi], eax
cmp dword [rdi], 0
jne 0x140115be1
test rsi, rsi
je 0x140115bd9
mov r8, qword [rsi]
mov edx, 1
mov rcx, rsi
call qword [r8]
mov rcx, rdi
call fcn.1402150f0
movzx eax, bl
mov rcx, qword [rbp + 0x280]
xor rcx, rsp
call fcn.1402b6d40
lea r11, [rsp + 0x390]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret