Function at 0x1401161d0
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 [0x1403eaa10]
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 0x140116240
xor edi, edi
mov qword [rsp + 0x70], rdi
test ebx, ebx
jne 0x140116263
lea rax, [0x140323de0]
mov qword [rsp + 0x68], rax
jmp 0x140116289
mov edx, ebx
lea rcx, [rsp + 0x68]
call fcn.1401e9030
movsxd r9, ebx
mov eax, dword [rsp + 0x70]
inc eax
movsxd rdx, eax
lea r8, [rbp + 0x70]
mov rcx, qword [rsp + 0x68]
call fcn.14029b4d8
mov edx, ebx
lea rcx, [rsp + 0x68]
call fcn.1401ea290
nop
lea rdx, [rsp + 0x68]
mov rcx, r15
call fcn.1400fa9f0
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.1402b6e68
mov rbx, rax
cmp dword [rsp + 0x70], 0
jle 0x1401162d3
mov rcx, qword [rsp + 0x68]
call fcn.140298600
test rbx, rbx
jne 0x1401162df
xor al, al
jmp 0x140116994
mov r8d, 8
movzx ecx, r13w
call fcn.140175400
mov rbx, rax
lea r14, vtable.HitmanPro35::FileSystemNtfs.0
test rax, rax
je 0x14011633b
cmp dword [rax + 8], 8
je 0x140116312
mov rax, qword [rax]
mov edx, 1
mov rcx, rbx
call qword [rax]
jmp 0x14011633b
mov ecx, 0x20
call fcn.14029806c
mov rsi, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x14011633b
mov qword [rax + 8], r15
mov qword [rax], r14
mov qword [rax + 0x10], rbx
mov word [rax + 0x18], r13w
jmp 0x140116343
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 0x14011638f
mov ecx, 4
call fcn.14029806c
mov r14, rax
mov qword [rbp - 0x40], rax
test rax, rax
je 0x14011637d
mov dword [rax], edi
mov qword [rbp + 0x28], rax
jmp 0x140116388
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.140175400
mov rbx, rax
test rax, rax
je 0x1401163eb
cmp dword [rax + 8], 2
je 0x1401163bb
mov rax, qword [rax]
mov edx, 1
mov rcx, rbx
call qword [rax]
jmp 0x1401163eb
mov ecx, 0x20
call fcn.14029806c
mov r14, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x1401163eb
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 0x1401163f3
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 0x140116433
mov ecx, 4
call fcn.14029806c
mov qword [rbp - 0x48], rax
test rax, rax
je 0x140116422
mov dword [rax], edi
jmp 0x140116429
mov rax, rdi
mov qword [rbp - 0x48], rax
mov qword [rbp + 0x40], rax
mov dword [rax], 1
test rsi, rsi
je 0x14011691d
test r14, r14
je 0x14011691d
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x48]
test al, al
je 0x14011691d
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x48]
test al, al
je 0x14011691d
xorps xmm0, xmm0
movdqu xmmword [rbp], xmm0
mov qword [rbp + 0x10], rdi
lea rdx, [rbp]
mov rcx, rsi
call fcn.140167210
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 0x140116587
mov r13, rcx
nop word [rax + rax]
mov ecx, 0x50
call fcn.14029806c
mov qword [rbp - 0x70], rax
test rax, rax
je 0x1401164ec
mov r9, qword [r13]
mov r8, qword [rsp + 0x50]
mov rdx, rsi
mov rcx, rax
call fcn.140166d50
mov rsi, rax
jmp 0x1401164ef
mov rsi, rdi
mov qword [rsp + 0x58], rsi
lea rax, [rsp + 0x58]
cmp rax, rbx
jae 0x14011653e
lea rax, [rsp + 0x58]
cmp r12, rax
ja 0x14011653e
lea rsi, [rsp + 0x58]
sub rsi, r12
sar rsi, 3
cmp rbx, r14
jne 0x140116530
lea rcx, [rsp + 0x78]
call fcn.1400bae00
mov r14, qword [rbp - 0x78]
mov rbx, qword [rbp - 0x80]
mov r12, qword [rsp + 0x78]
test rbx, rbx
je 0x140116562
mov rax, qword [r12 + rsi*8]
mov qword [rbx], rax
jmp 0x140116562
cmp rbx, r14
jne 0x14011655a
lea rcx, [rsp + 0x78]
call fcn.1400bae00
mov r14, qword [rbp - 0x78]
mov rbx, qword [rbp - 0x80]
mov r12, qword [rsp + 0x78]
test rbx, rbx
je 0x140116562
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 0x1401164c0
movzx r13d, word [rsp + 0x40]
mov dword [rsp + 0x40], edi
sub rbx, r12
sar rbx, 3
test ebx, ebx
jle 0x1401168fd
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.1401e94c0
nop
mov rsi, rdi
mov r8, r14
lea rdx, str.Volume_Boot_Record__Sector__d_
lea rcx, [rbp - 0x38]
call fcn.1401e94c0
nop
movsxd r8, dword [r13 + 0x30]
mov rdx, qword [r13 + 0x38]
mov rcx, qword [r13 + 0x18]
call fcn.1402a2dc0
test eax, eax
setne al
test al, al
je 0x1401166ba
mov ecx, 0x88
call fcn.14029806c
mov qword [rbp - 0x70], rax
test rax, rax
je 0x14011664e
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.14015eee0
mov rsi, rax
jmp 0x140116651
mov rsi, rdi
mov qword [rbp - 0x50], rdi
mov edx, 0x11
lea rcx, [rbp - 0x58]
call fcn.1401e9030
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.14029b4d8
mov edx, 0x11
lea rcx, [rbp - 0x58]
call fcn.1401ea290
nop
lea r8, [rbp - 0x58]
mov edx, 2
mov rcx, rsi
call fcn.1400d62d0
nop
cmp dword [rbp - 0x50], 0
jle 0x140116856
mov rcx, qword [rbp - 0x58]
call fcn.140298600
jmp 0x140116856
test r15, r15
jle 0x140116711
mov ecx, 0x88
call fcn.14029806c
mov qword [rbp - 0x70], rax
test rax, rax
je 0x140116709
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.14015eee0
mov rsi, rax
jmp 0x14011670c
mov rsi, rdi
jmp 0x140116856
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.140166f30
test al, al
je 0x140116839
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 0x1401167bd
cmp dword [rsi + 0x10], r15d
jl 0x1401167bd
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 0x1401167d4
movsxd r8, ecx
mov rdx, r14
mov rcx, r15
call fcn.140298710
mov ecx, 0x88
call fcn.14029806c
mov qword [rsp + 0x68], rax
test rax, rax
je 0x140116820
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.14015eee0
mov rsi, rax
mov r15, qword [rbp - 0x18]
jmp 0x140116823
mov rsi, rdi
test r14, r14
je 0x14011683d
mov r8, r14
xor edx, edx
mov rcx, qword [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x14011683d
mov r15, qword [rbp - 0x18]
test r15, r15
je 0x140116851
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 0x14011689d
mov rdx, rsi
mov r14, qword [rbp - 8]
mov rcx, r14
call fcn.1400fa0f0
cmp qword [r14 + 0x430], 0
je 0x14011689d
mov eax, dword [rsi + 0x40]
shr rax, 0x14
test al, 1
jne 0x14011688d
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x10]
test rax, rax
je 0x14011689d
mov rdx, rsi
mov rcx, qword [r14 + 0x430]
call fcn.1401be260
nop
cmp dword [rbp - 0x30], 0
jle 0x1401168ad
mov rcx, qword [rbp - 0x38]
call fcn.140298600
nop
cmp dword [rbp - 0x60], 0
jle 0x1401168bc
mov rcx, qword [rbp - 0x68]
call fcn.140298600
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 0x1401165b0
test ebx, ebx
jle 0x1401168fd
mov rsi, r12
mov rcx, qword [rsi]
test rcx, rcx
je 0x1401168f3
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
inc edi
add rsi, 8
cmp edi, ebx
jl 0x1401168e1
mov bl, 1
test r12, r12
je 0x14011690d
mov rcx, r12
call fcn.1402012c0
nop
mov rcx, qword [rbp]
test rcx, rcx
je 0x140116921
call fcn.1402012c0
jmp 0x140116921
xor bl, bl
jmp 0x14011692b
mov r14, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rbp - 0x48]
test rdi, rdi
je 0x14011695e
mov eax, dword [rdi]
test eax, eax
jle 0x14011693e
dec eax
mov dword [rdi], eax
cmp dword [rdi], 0
jne 0x14011695e
test r14, r14
je 0x140116955
mov rax, qword [r14]
mov edx, 1
mov rcx, r14
call qword [rax]
mov rcx, rdi
call fcn.1402012c0
nop
mov rdi, qword [rbp - 0x40]
test rdi, rdi
je 0x140116991
mov eax, dword [rdi]
test eax, eax
jle 0x140116971
dec eax
mov dword [rdi], eax
cmp dword [rdi], 0
jne 0x140116991
test rsi, rsi
je 0x140116989
mov r8, qword [rsi]
mov edx, 1
mov rcx, rsi
call qword [r8]
mov rcx, rdi
call fcn.1402012c0
movzx eax, bl
mov rcx, qword [rbp + 0x280]
xor rcx, rsp
call fcn.140297ff0
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