Function at 0x14002bf68
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x208]
sub rsp, 0x2d0
mov qword [rbp], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rax, qword [0x14007c478]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov r15, r8
mov rbx, rdx
lea r12, str.base_stor_vss_tools_vssagent_vshw_mon.cpp
mov qword [rsp + 0x58], r12
lea r14, str.CVssXmlDiagDocument::SaveNodeToXmlEndAtRoot
mov qword [rsp + 0x60], r14
lea rax, str.TST__
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x70], 0x311
mov dword [rsp + 0x74], 9
mov dword [rsp + 0x78], 0xdc
xor r13d, r13d
mov dword [rbp - 8], 0x1000000
xor edx, edx
lea r8d, [r13 + 0x78]
lea rcx, [rbp - 0x80]
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x58]
lea rcx, [rbp + 0x40]
call fcn.14004058c
nop
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
or rsi, 0xffffffffffffffff
mov eax, dword [rdx + rcx]
cmp dword [0x14009e100], eax
jg 0x14002c3c3
lea rdx, [0x14009e108]
lea rcx, [rbp + 0x28]
call fcn.140029ca4
nop
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r9 + 1]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rdi, rax
lea rax, vtable.._AV__CVssAuto_PEAXV__CVssAutoGenericValue_Storage_PEAX_0_0P6AHPEAX_Z_1_CloseHandle__YAH0_ZP6AAEAPEAXAEAPEAX_Z_1_Identity___DTyper_PEAX__SAAEAPEAX1_Z____.0
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], rdi
cmp rdi, rsi
je 0x14002c404
movabs rax, 0x3e617461442f3c
mov qword [rbp + 0xb0], rax
mov r14d, 7
lea ebx, [r14 - 0xe]
mov r9d, 2
xor r8d, r8d
mov edx, ebx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x14002c37c
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x48]
mov r8d, 7
lea rdx, [rbp + 0xc0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
je 0x14002c2e8
cmp dword [rsp + 0x48], 7
jne 0x14002c2e8
mov eax, dword [rbp + 0xc0]
cmp eax, dword [rbp + 0xb0]
jne 0x14002c12b
movzx eax, word [rbp + 0xc4]
cmp ax, word [rbp + 0xb4]
jne 0x14002c12b
mov al, byte [rbp + 0xc6]
cmp al, byte [rbp + 0xb6]
je 0x14002c13e
inc r14d
dec ebx
cmp ebx, 0xffffffba
jl 0x14002c32f
jmp 0x14002c0a3
neg r14d
mov r9d, 2
xor r8d, r8d
mov edx, r14d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x14002c447
mov rcx, r15
call fcn.140006150
mov rcx, rax
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
nop dword [rax + rax]
mov rbx, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x14002c48e
mov rcx, rax
call qword [sym.imp.OLEAUT32.dll_VariantInit]
nop dword [rax + rax]
mov r15d, eax
lea r12d, [rax*2 + 2]
movsxd rcx, r12d
lea rdx, [0x140054410]
call fcn.140043b28
mov r14, rax
mov qword [rbp + 0x20], rax
lea rax, vtable.CVssAutoCppPtr_char____ptr64_.0
mov qword [rbp + 0x18], rax
test r14, r14
je 0x14002c4ce
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r14
mov r9d, r15d
mov r8, rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
nop dword [rax + rax]
movsxd r15, eax
test eax, eax
jle 0x14002c512
mov byte [r15 + r14], r13b
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
mov r8d, r15d
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
je 0x14002c5a8
cmp dword [rsp + 0x40], r15d
jne 0x14002c5a8
lea rax, [rbp + 0xb0]
inc rsi
cmp byte [rax + rsi], r13b
jne 0x14002c243
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
mov r8d, esi
lea rdx, [rbp + 0xb0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
je 0x14002c55d
cmp dword [rsp + 0x40], esi
jne 0x14002c55d
mov rcx, r14
call fcn.1400434b8
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
nop
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
nop
lea rcx, [rbp + 0x28]
call fcn.1400299c8
nop
lea rcx, [rbp + 0x40]
call fcn.1400406a0
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.1400438c0
mov rbx, qword [rsp + 0x310]
add rsp, 0x2d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov dword [rsp + 0x30], 0xff
mov dword [rsp + 0x28], 0xd
mov dword [rsp + 0x20], 0x338
lea r9, str.CVssXmlDiagDocument::SaveNodeToXmlEndAtRoot
lea r8, str.VHWMONC
mov rdx, r12
lea rcx, [rsp + 0x58]
call fcn.1400400dc
lea r8, [0x1400618f8]
mov rdx, rax
lea rcx, [rbp + 0x40]
call fcn.140041e40
int3
mov dword [rsp + 0x30], 0xff
mov dword [rsp + 0x28], 0xd
mov dword [rsp + 0x20], 0x346
lea r9, str.CVssXmlDiagDocument::SaveNodeToXmlEndAtRoot
lea r8, str.VHWMONC
mov rdx, r12
lea rcx, [rsp + 0x58]
call fcn.1400400dc
lea r9, str.Cannot_find_the_xml_terminating_flag___Data_
mov r8d, 0x8000ffff
mov rdx, rax
lea rcx, [rbp + 0x40]
call fcn.140041508
int3
mov dword [rsp + 0x30], 0xff
mov dword [rsp + 0x28], 0xd
mov dword [rsp + 0x20], 0x330
lea r9, str.CVssXmlDiagDocument::SaveNodeToXmlEndAtRoot
lea r8, str.VHWMONC
mov rdx, r12
lea rcx, [rsp + 0x58]
call fcn.1400400dc
lea r8, [0x1400618c8]
mov rdx, rax
lea rcx, [rbp + 0x40]
call fcn.140041e40
nop
lea rcx, [0x14009e100]
call fcn.140043aa8
cmp dword [0x14009e100], esi
jne 0x14002c02f
lea rcx, [0x14009e108]
call fcn.1400324b8
lea rcx, [0x140052d30]
call fcn.140044014
lea rcx, [0x14009e100]
call fcn.140043a38
jmp 0x14002c02f
mov dword [rsp + 0x30], 0xdc
mov dword [rsp + 0x28], 9
mov dword [rsp + 0x20], 0x325
mov r9, r14
lea r8, str.TST__
mov rdx, r12
lea rcx, [rsp + 0x58]
call fcn.1400400dc
lea r8, str.CreateFile
mov rdx, rax
lea rcx, [rbp + 0x40]
call fcn.140041e40
int3
mov dword [rsp + 0x30], 0xff
mov dword [rsp + 0x28], 0xd
mov dword [rsp + 0x20], 0x33d
lea r9, str.CVssXmlDiagDocument::SaveNodeToXmlEndAtRoot
lea r8, str.VHWMONC
mov rdx, r12
lea rcx, [rsp + 0x58]
call fcn.1400400dc
lea r8, [0x1400618c8]
mov rdx, rax
lea rcx, [rbp + 0x40]
call fcn.140041e40
nop
mov dword [rsp + 0x30], 0xdc
mov dword [rsp + 0x28], 9
mov dword [rsp + 0x20], 0x34c
lea r9, str.CVssXmlDiagDocument::SaveNodeToXmlEndAtRoot
lea r8, str.TST__
mov rdx, r12
lea rcx, [rsp + 0x58]
call fcn.1400400dc
mov rdx, rax
lea rcx, [rbp + 0x40]
call fcn.1400414c4
nop
mov dword [rsp + 0x30], 0xdc
mov dword [rsp + 0x28], 9
mov dword [rsp + 0x20], 0x354
lea r9, str.CVssXmlDiagDocument::SaveNodeToXmlEndAtRoot
lea r8, str.TST__
lea rdx, str.base_stor_vss_tools_vssagent_vshw_mon.cpp
lea rcx, [rsp + 0x58]
call fcn.1400400dc
mov rdx, rax
lea rcx, [rbp + 0x40]
call fcn.1400414c4
int3
mov dword [rsp + 0x30], 0xdc
mov dword [rsp + 0x28], 9
mov dword [rsp + 0x20], 0x358
lea r9, str.CVssXmlDiagDocument::SaveNodeToXmlEndAtRoot
lea r8, str.TST__
lea rdx, str.base_stor_vss_tools_vssagent_vshw_mon.cpp
lea rcx, [rsp + 0x58]
call fcn.1400400dc
lea r8, [0x14005dc10]
mov rdx, rax
lea rcx, [rbp + 0x40]
call fcn.140041e40
int3
mov dword [rsp + 0x30], 0xff
mov dword [rsp + 0x28], 0xd
mov dword [rsp + 0x20], 0x363
lea r9, str.CVssXmlDiagDocument::SaveNodeToXmlEndAtRoot
lea r8, str.VHWMONC
lea rdx, str.base_stor_vss_tools_vssagent_vshw_mon.cpp
lea rcx, [rsp + 0x58]
call fcn.1400400dc
lea r8, [0x14005dc38]
mov rdx, rax
lea rcx, [rbp + 0x40]
call fcn.140041e40
int3
mov dword [rsp + 0x30], 0xdc
mov dword [rsp + 0x28], 9
mov dword [rsp + 0x20], 0x35e
lea r9, str.CVssXmlDiagDocument::SaveNodeToXmlEndAtRoot
lea r8, str.TST__
lea rdx, str.base_stor_vss_tools_vssagent_vshw_mon.cpp
lea rcx, [rsp + 0x58]
call fcn.1400400dc
lea r8, [0x14005dc38]
mov rdx, rax
lea rcx, [rbp + 0x40]
call fcn.140041e40
int3