Function at 0x1401166a0
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 [0x140418a10]
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 0x140116710
xor edi, edi
mov qword [rsp + 0x70], rdi
test ebx, ebx
jne 0x140116733
lea rax, [0x140348ca0]
mov qword [rsp + 0x68], rax
jmp 0x140116759
mov edx, ebx
lea rcx, [rsp + 0x68]
call fcn.1401ff260
movsxd r9, ebx
mov eax, dword [rsp + 0x70]
inc eax
movsxd rdx, eax
lea r8, [rbp + 0x70]
mov rcx, qword [rsp + 0x68]
call fcn.1402bd21c
mov edx, ebx
lea rcx, [rsp + 0x68]
call fcn.140200570
nop
lea rdx, [rsp + 0x68]
mov rcx, r15
call fcn.1400f9c50
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.1402d8fb8
mov rbx, rax
cmp dword [rsp + 0x70], 0
jle 0x1401167a3
mov rcx, qword [rsp + 0x68]
call fcn.1402b9c20
test rbx, rbx
jne 0x1401167af
xor al, al
jmp 0x140116e64
mov r8d, 8
movzx ecx, r13w
call fcn.140186220
mov rbx, rax
lea r14, vtable.HitmanPro35::FileSystemNtfs.0
test rax, rax
je 0x14011680b
cmp dword [rax + 8], 8
je 0x1401167e2
mov rax, qword [rax]
mov edx, 1
mov rcx, rbx
call qword [rax]
jmp 0x14011680b
mov ecx, 0x20
call fcn.1402b968c
mov rsi, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x14011680b
mov qword [rax + 8], r15
mov qword [rax], r14
mov qword [rax + 0x10], rbx
mov word [rax + 0x18], r13w
jmp 0x140116813
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 0x14011685f
mov ecx, 4
call fcn.1402b968c
mov r14, rax
mov qword [rbp - 0x40], rax
test rax, rax
je 0x14011684d
mov dword [rax], edi
mov qword [rbp + 0x28], rax
jmp 0x140116858
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.140186220
mov rbx, rax
test rax, rax
je 0x1401168bb
cmp dword [rax + 8], 2
je 0x14011688b
mov rax, qword [rax]
mov edx, 1
mov rcx, rbx
call qword [rax]
jmp 0x1401168bb
mov ecx, 0x20
call fcn.1402b968c
mov r14, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x1401168bb
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 0x1401168c3
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 0x140116903
mov ecx, 4
call fcn.1402b968c
mov qword [rbp - 0x48], rax
test rax, rax
je 0x1401168f2
mov dword [rax], edi
jmp 0x1401168f9
mov rax, rdi
mov qword [rbp - 0x48], rax
mov qword [rbp + 0x40], rax
mov dword [rax], 1
test rsi, rsi
je 0x140116ded
test r14, r14
je 0x140116ded
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x48]
test al, al
je 0x140116ded
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x48]
test al, al
je 0x140116ded
xorps xmm0, xmm0
movdqu xmmword [rbp], xmm0
mov qword [rbp + 0x10], rdi
lea rdx, [rbp]
mov rcx, rsi
call fcn.140177c30
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 0x140116a57
mov r13, rcx
nop word [rax + rax]
mov ecx, 0x50
call fcn.1402b968c
mov qword [rbp - 0x70], rax
test rax, rax
je 0x1401169bc
mov r9, qword [r13]
mov r8, qword [rsp + 0x50]
mov rdx, rsi
mov rcx, rax
call fcn.140177770
mov rsi, rax
jmp 0x1401169bf
mov rsi, rdi
mov qword [rsp + 0x58], rsi
lea rax, [rsp + 0x58]
cmp rax, rbx
jae 0x140116a0e
lea rax, [rsp + 0x58]
cmp r12, rax
ja 0x140116a0e
lea rsi, [rsp + 0x58]
sub rsi, r12
sar rsi, 3
cmp rbx, r14
jne 0x140116a00
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 0x140116a32
mov rax, qword [r12 + rsi*8]
mov qword [rbx], rax
jmp 0x140116a32
cmp rbx, r14
jne 0x140116a2a
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 0x140116a32
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 0x140116990
movzx r13d, word [rsp + 0x40]
mov dword [rsp + 0x40], edi
sub rbx, r12
sar rbx, 3
test ebx, ebx
jle 0x140116dcd
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.1401ff700
nop
mov rsi, rdi
mov r8, r14
lea rdx, str.Volume_Boot_Record__Sector__d_
lea rcx, [rbp - 0x38]
call fcn.1401ff700
nop
movsxd r8, dword [r13 + 0x30]
mov rdx, qword [r13 + 0x38]
mov rcx, qword [r13 + 0x18]
call fcn.1402c4b40
test eax, eax
setne al
test al, al
je 0x140116b8a
mov ecx, 0x88
call fcn.1402b968c
mov qword [rbp - 0x70], rax
test rax, rax
je 0x140116b1e
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.14016c540
mov rsi, rax
jmp 0x140116b21
mov rsi, rdi
mov qword [rbp - 0x50], rdi
mov edx, 0x11
lea rcx, [rbp - 0x58]
call fcn.1401ff260
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.1402bd21c
mov edx, 0x11
lea rcx, [rbp - 0x58]
call fcn.140200570
nop
lea r8, [rbp - 0x58]
mov edx, 2
mov rcx, rsi
call fcn.1400d9700
nop
cmp dword [rbp - 0x50], 0
jle 0x140116d26
mov rcx, qword [rbp - 0x58]
call fcn.1402b9c20
jmp 0x140116d26
test r15, r15
jle 0x140116be1
mov ecx, 0x88
call fcn.1402b968c
mov qword [rbp - 0x70], rax
test rax, rax
je 0x140116bd9
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.14016c540
mov rsi, rax
jmp 0x140116bdc
mov rsi, rdi
jmp 0x140116d26
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.140177950
test al, al
je 0x140116d09
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 0x140116c8d
cmp dword [rsi + 0x10], r15d
jl 0x140116c8d
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 0x140116ca4
movsxd r8, ecx
mov rdx, r14
mov rcx, r15
call fcn.1402b9d30
mov ecx, 0x88
call fcn.1402b968c
mov qword [rsp + 0x68], rax
test rax, rax
je 0x140116cf0
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.14016c540
mov rsi, rax
mov r15, qword [rbp - 0x18]
jmp 0x140116cf3
mov rsi, rdi
test r14, r14
je 0x140116d0d
mov r8, r14
xor edx, edx
mov rcx, qword [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x140116d0d
mov r15, qword [rbp - 0x18]
test r15, r15
je 0x140116d21
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 0x140116d6d
mov rdx, rsi
mov r14, qword [rbp - 8]
mov rcx, r14
call fcn.1400f9530
cmp qword [r14 + 0x430], 0
je 0x140116d6d
mov eax, dword [rsi + 0x40]
shr rax, 0x14
test al, 1
jne 0x140116d5d
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x10]
test rax, rax
je 0x140116d6d
mov rdx, rsi
mov rcx, qword [r14 + 0x430]
call fcn.1401cf6d0
nop
cmp dword [rbp - 0x30], 0
jle 0x140116d7d
mov rcx, qword [rbp - 0x38]
call fcn.1402b9c20
nop
cmp dword [rbp - 0x60], 0
jle 0x140116d8c
mov rcx, qword [rbp - 0x68]
call fcn.1402b9c20
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 0x140116a80
test ebx, ebx
jle 0x140116dcd
mov rsi, r12
mov rcx, qword [rsi]
test rcx, rcx
je 0x140116dc3
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
inc edi
add rsi, 8
cmp edi, ebx
jl 0x140116db1
mov bl, 1
test r12, r12
je 0x140116ddd
mov rcx, r12
call fcn.1402177e0
nop
mov rcx, qword [rbp]
test rcx, rcx
je 0x140116df1
call fcn.1402177e0
jmp 0x140116df1
xor bl, bl
jmp 0x140116dfb
mov r14, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rbp - 0x48]
test rdi, rdi
je 0x140116e2e
mov eax, dword [rdi]
test eax, eax
jle 0x140116e0e
dec eax
mov dword [rdi], eax
cmp dword [rdi], 0
jne 0x140116e2e
test r14, r14
je 0x140116e25
mov rax, qword [r14]
mov edx, 1
mov rcx, r14
call qword [rax]
mov rcx, rdi
call fcn.1402177e0
nop
mov rdi, qword [rbp - 0x40]
test rdi, rdi
je 0x140116e61
mov eax, dword [rdi]
test eax, eax
jle 0x140116e41
dec eax
mov dword [rdi], eax
cmp dword [rdi], 0
jne 0x140116e61
test rsi, rsi
je 0x140116e59
mov r8, qword [rsi]
mov edx, 1
mov rcx, rsi
call qword [r8]
mov rcx, rdi
call fcn.1402177e0
movzx eax, bl
mov rcx, qword [rbp + 0x280]
xor rcx, rsp
call fcn.1402b9610
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