Function at 0x1400087e0
Capabilities:
Get common file path
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xd0]
sub rsp, 0x1d0
mov rax, qword [0x1400cd070]
xor rax, rsp
mov qword [rbp + 0xc0], rax
mov r12, rcx
xor r13d, r13d
mov qword [0x1400d0150], r13
mov dword [0x1400d0158], r13d
lea rcx, [0x1400bedf0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.Wow64DisableWow64FsRedirection
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea r15d, [r13 + 1]
test rax, rax
je 0x140008862
mov dword [0x1400d0158], r15d
lea rcx, [0x1400d0150]
call rax
call fcn.1400019f0
mov rcx, rax
test rax, rax
je 0x140008e39
mov rax, qword [rax]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x58], rax
lea rdx, str.FFFFFFFFEEEEEEEEAAAAAAAABBBBBBBB
mov r14, 0xffffffffffffffff
cmp rdx, 0x10000
jae 0x1400088a8
movzx edx, dx
lea rcx, [rsp + 0x58]
call fcn.1400028f0
jmp 0x1400088c7
mov rax, r14
nop dword [rax + rax]
inc rax
cmp byte [rdx + rax], 0
jne 0x1400088b0
mov r8d, eax
lea rcx, [rsp + 0x58]
call fcn.140002a80
nop
lea rcx, [rsp + 0x58]
call fcn.14001cac0
mov rdi, qword [rsp + 0x58]
cmp dword [rdi - 0x10], 2
jg 0x1400088f0
lea rcx, [rdi - 0x18]
call fcn.140008330
lea rbx, [rax + 0x18]
mov qword [rsp + 0x40], rbx
jmp 0x14000896a
mov rcx, qword [rdi - 0x18]
test rcx, rcx
je 0x140008907
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
test rax, rax
jne 0x140008921
call fcn.1400019f0
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x20]
mov rcx, rax
test rax, rax
je 0x140008e2e
mov rax, qword [rcx]
mov r8d, r15d
mov edx, 2
call qword [rax]
test rax, rax
je 0x140008e44
lea rbx, [rax + 0x18]
mov qword [rsp + 0x40], rbx
cmp dword [rbx - 0xc], 2
jl 0x140008e23
mov dword [rbx - 0x10], 2
mov byte [rbx + 2], 0
mov r9d, 2
mov r8, rdi
mov edx, r9d
mov rcx, rbx
call fcn.1400015e0
nop
mov r8, rbx
lea rdx, str.dump_sa_s
lea rcx, [rsp + 0x58]
call fcn.140002720
nop
lea rdx, [rbx - 0x18]
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140008999
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
call fcn.1400019f0
mov rcx, rax
test rax, rax
je 0x140008e2e
mov rax, qword [rax]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x50], rax
call fcn.1400019f0
mov rcx, rax
test rax, rax
je 0x140008e4a
mov rax, qword [rax]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x48], rax
lea rdx, str.spkd113
cmp rdx, 0x10000
jae 0x1400089f8
movzx edx, dx
lea rcx, [rsp + 0x48]
call fcn.1400028f0
jmp 0x140008a17
mov rax, r14
nop dword [rax + rax]
inc rax
cmp byte [rdx + rax], 0
jne 0x140008a00
mov r8d, eax
lea rcx, [rsp + 0x48]
call fcn.140002a80
nop
call fcn.1400019f0
mov rcx, rax
test rax, rax
je 0x140008e55
mov rax, qword [rax]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x60], rax
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_memset
mov edx, 0x104
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r9, qword [rsp + 0x58]
lea r8, [rbp - 0x50]
lea rdx, str._sdrivers_s.sys
lea rcx, [rsp + 0x50]
call fcn.140002720
lea r8, [rbp - 0x50]
lea rdx, str._sdriversdump_sa.sys
lea rcx, [rsp + 0x60]
call fcn.140002720
mov rsi, qword [rsp + 0x60]
mov ecx, r15d
sub ecx, dword [rsi - 8]
mov eax, dword [rsi - 0xc]
or eax, ecx
jge 0x140008aa9
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.1400025b0
mov rsi, qword [rsp + 0x60]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__access]
cmp eax, 0xffffffff
je 0x140008b2c
lea rdx, str._bus2345_
lea rcx, [0x1400be1c8]
call fcn.14001cde0
mov rbx, qword [rsp + 0x48]
mov ecx, r15d
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
or eax, ecx
jge 0x140008aef
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.1400025b0
mov rbx, qword [rsp + 0x48]
mov ecx, r15d
sub ecx, dword [rsi - 8]
mov eax, dword [rsi - 0xc]
or eax, ecx
jge 0x140008b0d
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.1400025b0
mov rsi, qword [rsp + 0x60]
mov r8, rbx
mov rdx, rsi
call fcn.140008e60
test eax, eax
jne 0x140008c75
lea rcx, [0x1400be1e0]
jmp 0x140008c69
mov rdi, qword [rsp + 0x50]
mov ecx, r15d
sub ecx, dword [rdi - 8]
mov eax, dword [rdi - 0xc]
or eax, ecx
jge 0x140008b4f
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.1400025b0
mov rdi, qword [rsp + 0x50]
mov r8, rdi
lea rdx, str._bus2345_
lea rcx, [0x1400be1f8]
call fcn.14001cde0
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140008d22
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x68]
mov r8d, 0x37578
lea rdx, [0x1400868b0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x1400d0158], 0
je 0x140008bff
lea rcx, [0x1400bee20]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.Wow64RevertWow64FsRedirection
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140008bff
mov dword [0x1400d0158], r13d
mov rcx, qword [0x1400d0150]
call rax
lea rdx, str._bus2345_
lea rcx, [0x1400be238]
call fcn.14001cde0
mov rbx, qword [rsp + 0x48]
mov ecx, r15d
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
or eax, ecx
jge 0x140008c35
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.1400025b0
mov rbx, qword [rsp + 0x48]
mov ecx, r15d
sub ecx, dword [rdi - 8]
mov eax, dword [rdi - 0xc]
or eax, ecx
jge 0x140008c53
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.1400025b0
mov rdi, qword [rsp + 0x50]
mov r8, rbx
mov rdx, rdi
call fcn.140008e60
test eax, eax
jne 0x140008c75
lea rcx, [0x1400be248]
lea rdx, str._bus2345_
call fcn.14001cde0
sub r15d, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
or eax, r15d
jge 0x140008c92
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.1400025b0
mov rbx, qword [rsp + 0x48]
mov rdx, rbx
mov rcx, r12
call fcn.140009100
test rax, rax
je 0x140008cb5
lea rdx, str._bus2345_
lea rcx, [0x1400be260]
call fcn.14001cde0
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
xor edx, edx
mov rcx, r12
call fcn.140009100
mov qword [rsp + 0x38], r13
lea rcx, [rsp + 0x6c]
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 0x40
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x228004
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
lea r8, [rsp + 0x70]
lea rdx, str._bus2345_
lea rcx, [0x1400be318]
call fcn.14001cde0
jmp 0x140008d7a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str._bus2345_
lea rcx, [0x1400be210]
call fcn.14001cde0
cmp dword [0x1400d0158], 0
je 0x140008d7a
lea rcx, [0x1400bee20]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.Wow64RevertWow64FsRedirection
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140008d7a
mov dword [0x1400d0158], r13d
mov rcx, qword [0x1400d0150]
call rax
nop
lea rdx, [rsi - 0x18]
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140008d95
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140008db5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140008dd5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r14d
sub r14d, 1
jg 0x140008df3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.140072f40
lea r11, [rsp + 0x1d0]
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
mov ecx, 0x80070057
call fcn.140001850
int3
mov ecx, 0x80004005
call fcn.140001850
nop
mov ecx, 0x80004005
call fcn.140001850
nop
call fcn.140002710
nop
mov ecx, 0x80004005
call fcn.140001850
nop
mov ecx, 0x80004005
call fcn.140001850
int3