Function at 0x140118090
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 [0x14041da10]
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 0x140118100
xor edi, edi
mov qword [rsp + 0x70], rdi
test ebx, ebx
jne 0x140118123
lea rax, [0x14034d1a0]
mov qword [rsp + 0x68], rax
jmp 0x140118149
mov edx, ebx
lea rcx, [rsp + 0x68]
call fcn.1402028a0
movsxd r9, ebx
mov eax, dword [rsp + 0x70]
inc eax
movsxd rdx, eax
lea r8, [rbp + 0x70]
mov rcx, qword [rsp + 0x68]
call fcn.1402c06dc
mov edx, ebx
lea rcx, [rsp + 0x68]
call fcn.140203bb0
nop
lea rdx, [rsp + 0x68]
mov rcx, r15
call fcn.1400fb230
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.1402dc608
mov rbx, rax
cmp dword [rsp + 0x70], 0
jle 0x140118193
mov rcx, qword [rsp + 0x68]
call fcn.1402bd0e0
test rbx, rbx
jne 0x14011819f
xor al, al
jmp 0x140118854
mov r8d, 8
movzx ecx, r13w
call fcn.140187e60
mov rbx, rax
lea r14, vtable.HitmanPro35::FileSystemNtfs.0
test rax, rax
je 0x1401181fb
cmp dword [rax + 8], 8
je 0x1401181d2
mov rax, qword [rax]
mov edx, 1
mov rcx, rbx
call qword [rax]
jmp 0x1401181fb
mov ecx, 0x20
call fcn.1402bcb4c
mov rsi, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x1401181fb
mov qword [rax + 8], r15
mov qword [rax], r14
mov qword [rax + 0x10], rbx
mov word [rax + 0x18], r13w
jmp 0x140118203
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 0x14011824f
mov ecx, 4
call fcn.1402bcb4c
mov r14, rax
mov qword [rbp - 0x40], rax
test rax, rax
je 0x14011823d
mov dword [rax], edi
mov qword [rbp + 0x28], rax
jmp 0x140118248
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.140187e60
mov rbx, rax
test rax, rax
je 0x1401182ab
cmp dword [rax + 8], 2
je 0x14011827b
mov rax, qword [rax]
mov edx, 1
mov rcx, rbx
call qword [rax]
jmp 0x1401182ab
mov ecx, 0x20
call fcn.1402bcb4c
mov r14, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x1401182ab
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 0x1401182b3
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 0x1401182f3
mov ecx, 4
call fcn.1402bcb4c
mov qword [rbp - 0x48], rax
test rax, rax
je 0x1401182e2
mov dword [rax], edi
jmp 0x1401182e9
mov rax, rdi
mov qword [rbp - 0x48], rax
mov qword [rbp + 0x40], rax
mov dword [rax], 1
test rsi, rsi
je 0x1401187dd
test r14, r14
je 0x1401187dd
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x48]
test al, al
je 0x1401187dd
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x48]
test al, al
je 0x1401187dd
xorps xmm0, xmm0
movdqu xmmword [rbp], xmm0
mov qword [rbp + 0x10], rdi
lea rdx, [rbp]
mov rcx, rsi
call fcn.140179870
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 0x140118447
mov r13, rcx
nop word [rax + rax]
mov ecx, 0x50
call fcn.1402bcb4c
mov qword [rbp - 0x70], rax
test rax, rax
je 0x1401183ac
mov r9, qword [r13]
mov r8, qword [rsp + 0x50]
mov rdx, rsi
mov rcx, rax
call fcn.1401793b0
mov rsi, rax
jmp 0x1401183af
mov rsi, rdi
mov qword [rsp + 0x58], rsi
lea rax, [rsp + 0x58]
cmp rax, rbx
jae 0x1401183fe
lea rax, [rsp + 0x58]
cmp r12, rax
ja 0x1401183fe
lea rsi, [rsp + 0x58]
sub rsi, r12
sar rsi, 3
cmp rbx, r14
jne 0x1401183f0
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 0x140118422
mov rax, qword [r12 + rsi*8]
mov qword [rbx], rax
jmp 0x140118422
cmp rbx, r14
jne 0x14011841a
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 0x140118422
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 0x140118380
movzx r13d, word [rsp + 0x40]
mov dword [rsp + 0x40], edi
sub rbx, r12
sar rbx, 3
test ebx, ebx
jle 0x1401187bd
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.140202d40
nop
mov rsi, rdi
mov r8, r14
lea rdx, str.Volume_Boot_Record__Sector__d_
lea rcx, [rbp - 0x38]
call fcn.140202d40
nop
movsxd r8, dword [r13 + 0x30]
mov rdx, qword [r13 + 0x38]
mov rcx, qword [r13 + 0x18]
call fcn.1402c8000
test eax, eax
setne al
test al, al
je 0x14011857a
mov ecx, 0x88
call fcn.1402bcb4c
mov qword [rbp - 0x70], rax
test rax, rax
je 0x14011850e
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.14016e150
mov rsi, rax
jmp 0x140118511
mov rsi, rdi
mov qword [rbp - 0x50], rdi
mov edx, 0x11
lea rcx, [rbp - 0x58]
call fcn.1402028a0
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.1402c06dc
mov edx, 0x11
lea rcx, [rbp - 0x58]
call fcn.140203bb0
nop
lea r8, [rbp - 0x58]
mov edx, 2
mov rcx, rsi
call fcn.1400dab80
nop
cmp dword [rbp - 0x50], 0
jle 0x140118716
mov rcx, qword [rbp - 0x58]
call fcn.1402bd0e0
jmp 0x140118716
test r15, r15
jle 0x1401185d1
mov ecx, 0x88
call fcn.1402bcb4c
mov qword [rbp - 0x70], rax
test rax, rax
je 0x1401185c9
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.14016e150
mov rsi, rax
jmp 0x1401185cc
mov rsi, rdi
jmp 0x140118716
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.140179590
test al, al
je 0x1401186f9
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 0x14011867d
cmp dword [rsi + 0x10], r15d
jl 0x14011867d
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 0x140118694
movsxd r8, ecx
mov rdx, r14
mov rcx, r15
call fcn.1402bd1f0
mov ecx, 0x88
call fcn.1402bcb4c
mov qword [rsp + 0x68], rax
test rax, rax
je 0x1401186e0
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.14016e150
mov rsi, rax
mov r15, qword [rbp - 0x18]
jmp 0x1401186e3
mov rsi, rdi
test r14, r14
je 0x1401186fd
mov r8, r14
xor edx, edx
mov rcx, qword [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1401186fd
mov r15, qword [rbp - 0x18]
test r15, r15
je 0x140118711
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 0x14011875d
mov rdx, rsi
mov r14, qword [rbp - 8]
mov rcx, r14
call fcn.1400fab10
cmp qword [r14 + 0x438], 0
je 0x14011875d
mov eax, dword [rsi + 0x40]
shr rax, 0x14
test al, 1
jne 0x14011874d
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x10]
test rax, rax
je 0x14011875d
mov rdx, rsi
mov rcx, qword [r14 + 0x438]
call fcn.1401d18d0
nop
cmp dword [rbp - 0x30], 0
jle 0x14011876d
mov rcx, qword [rbp - 0x38]
call fcn.1402bd0e0
nop
cmp dword [rbp - 0x60], 0
jle 0x14011877c
mov rcx, qword [rbp - 0x68]
call fcn.1402bd0e0
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 0x140118470
test ebx, ebx
jle 0x1401187bd
mov rsi, r12
mov rcx, qword [rsi]
test rcx, rcx
je 0x1401187b3
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
inc edi
add rsi, 8
cmp edi, ebx
jl 0x1401187a1
mov bl, 1
test r12, r12
je 0x1401187cd
mov rcx, r12
call fcn.14021ae20
nop
mov rcx, qword [rbp]
test rcx, rcx
je 0x1401187e1
call fcn.14021ae20
jmp 0x1401187e1
xor bl, bl
jmp 0x1401187eb
mov r14, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rbp - 0x48]
test rdi, rdi
je 0x14011881e
mov eax, dword [rdi]
test eax, eax
jle 0x1401187fe
dec eax
mov dword [rdi], eax
cmp dword [rdi], 0
jne 0x14011881e
test r14, r14
je 0x140118815
mov rax, qword [r14]
mov edx, 1
mov rcx, r14
call qword [rax]
mov rcx, rdi
call fcn.14021ae20
nop
mov rdi, qword [rbp - 0x40]
test rdi, rdi
je 0x140118851
mov eax, dword [rdi]
test eax, eax
jle 0x140118831
dec eax
mov dword [rdi], eax
cmp dword [rdi], 0
jne 0x140118851
test rsi, rsi
je 0x140118849
mov r8, qword [rsi]
mov edx, 1
mov rcx, rsi
call qword [r8]
mov rcx, rdi
call fcn.14021ae20
movzx eax, bl
mov rcx, qword [rbp + 0x280]
xor rcx, rsp
call fcn.1402bcad0
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