Function at 0x1400176d0
Capabilities:
Get file size
Get hostname
Query or enumerate registry value
Write file on windows

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x430
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x30], 0xfffffffffffffffe
mov qword [rbp + 0x428], rbx
mov qword [rbp + 0x430], rsi
mov qword [rbp + 0x438], rdi
mov rax, qword [0x14003d020]
xor rax, rbp
mov qword [rbp + 0x3e0], rax
mov r14, rcx
mov qword [rbp + 0x38], rcx
lea rax, vtable.DPTraceNS::COutput.0
mov qword [rcx], rax
lea rax, vtable.DPTraceNS::CFileOutput.0
mov qword [rcx], rax
lea rcx, [rbp + 0x18]
call fcn.140015b00
nop
lea rdx, [r14 + 0x10]
lea rcx, [rbp + 0x18]
call fcn.140015c70
test al, al
jne 0x140017751
xor esi, esi
jmp 0x140017cc1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
mov dword [rbp], esi
lea ebx, [rsi + 4]
mov rcx, qword [rbp + 0x18]
test rcx, rcx
je 0x1400177a4
mov dword [rbp + 8], ebx
lea rax, [rbp + 8]
mov qword [rsp + 0x28], rax
lea rax, [rbp]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x10]
xor r8d, r8d
lea rdx, str.NewFileAlways
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400177a4
cmp dword [rbp + 0x10], ebx
jne 0x1400177a4
cmp dword [rbp], esi
seta al
jmp 0x1400177a6
mov al, 1
mov r12d, 2
test al, al
cmovne ebx, r12d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x8000080
mov dword [rsp + 0x20], ebx
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [r12 + 1]
lea rcx, [r14 + 0x10]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [r14 + 8], rax
cmp rax, 0xffffffffffffffff
je 0x140017cc1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
xor edx, edx
test eax, eax
jne 0x140017af8
mov r8d, 0x168
lea rcx, [rbp + 0x50]
call fcn.14001b300
mov dword [rbp], esi
mov qword [rsp + 0x20], rsi
lea r9, [rbp]
lea r8d, [r12 + 6]
lea rdx, str.trace3_r_n
mov rcx, qword [r14 + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rax, str.17:06:29
mov qword [rsp + 0x28], rax
lea rax, str.Dec__7_2018
mov qword [rsp + 0x20], rax
lea r9, str.Compiled:__s__s_r_n
or rdi, 0xffffffffffffffff
mov r8, rdi
mov edx, 0x168
lea rcx, [rbp + 0x50]
call fcn.1400150b0
lea rax, [rbp + 0x50]
mov r8, rdi
nop dword [rax]
inc r8
cmp byte [rax + r8], sil
jne 0x140017870
mov qword [rsp + 0x20], rsi
lea r9, [rbp]
lea rdx, [rbp + 0x50]
mov rcx, qword [r14 + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor edx, edx
mov r8d, 0x105
lea rcx, [rbp + 0x1c0]
call fcn.14001b300
mov dword [rbp + 8], 0x105
mov r8d, 0x105
lea rdx, [rbp + 0x1c0]
mov rcx, qword [0x14003f2a8]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rax, [rbp + 0x1c0]
mov qword [rsp + 0x20], rax
lea r9, str.File_location:__s_r_n
mov r8, rdi
mov edx, 0x168
lea rcx, [rbp + 0x50]
call fcn.1400150b0
lea rax, [rbp + 0x50]
mov r8, rdi
inc r8
cmp byte [rax + r8], sil
jne 0x1400178f0
mov qword [rsp + 0x20], rsi
lea r9, [rbp]
lea rdx, [rbp + 0x50]
mov rcx, qword [r14 + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, r14
call fcn.140017e00
xor edx, edx
mov r8d, 0x105
lea rcx, [rbp + 0x2d0]
call fcn.14001b300
mov dword [rbp + 8], 0x104
lea rdx, [rbp + 8]
lea rcx, [rbp + 0x2d0]
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea rax, [rbp + 0x2d0]
mov qword [rsp + 0x20], rax
lea r9, str.Machine_name:__s_r_n
mov r8, rdi
mov edx, 0x168
lea rcx, [rbp + 0x50]
call fcn.1400150b0
movzx eax, word [0x140036d24]
mov word [rbp + 0x1b5], ax
movzx eax, byte [0x140036d26]
mov byte [rbp + 0x1b7], al
lea rax, [rbp + 0x50]
mov r8, rdi
nop word [rax + rax]
inc r8
cmp byte [rax + r8], sil
jne 0x140017990
mov qword [rsp + 0x20], rsi
lea r9, [rbp]
lea rdx, [rbp + 0x50]
mov rcx, qword [r14 + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rax, str.3.0.1
mov qword [rsp + 0x20], rax
lea r9, str.Trace_Ver:__s_r_n
mov r8, rdi
mov edx, 0x168
lea rcx, [rbp + 0x50]
call fcn.1400150b0
lea rax, [rbp + 0x50]
mov r8, rdi
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], sil
jne 0x1400179e0
mov qword [rsp + 0x20], rsi
lea r9, [rbp]
lea rdx, [rbp + 0x50]
mov rcx, qword [r14 + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, r14
call fcn.140018280
test al, al
jne 0x140017a2c
mov qword [rsp + 0x20], rsi
lea r9, [rbp]
mov r8d, 0x16
lea rdx, str.FileVersion:_UNKNOWN_r_n
mov rcx, qword [r14 + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, r14
call fcn.140018040
test eax, eax
jne 0x140017a56
mov qword [rsp + 0x20], rsi
lea r9, [rbp]
lea r8d, [rax + 0x1b]
lea rdx, str.No_U.are.U_products_found_r_n
mov rcx, qword [r14 + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
call fcn.1400155f0
lea rcx, str.installation:_LOCAL_r_n
lea r8, str.installation:_NETWORK_r_n
test eax, eax
cmovne r8, rcx
mov r9, rdi
mov edx, 0x168
lea rcx, [rbp + 0x50]
call fcn.14002132c
lea rax, [rbp + 0x50]
mov r8, rdi
inc r8
cmp byte [rax + r8], sil
jne 0x140017a87
mov qword [rsp + 0x20], rsi
lea r9, [rbp]
lea rdx, [rbp + 0x50]
mov rcx, qword [r14 + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, r14
call fcn.140018550
mov r9, rdi
lea r8, [0x140036da0]
mov edx, 0x168
lea rcx, [rbp + 0x50]
call fcn.14002132c
lea rax, [rbp + 0x50]
nop dword [rax + rax]
inc rdi
cmp byte [rax + rdi], sil
jne 0x140017ad0
mov r8, rdi
mov qword [rsp + 0x20], rsi
lea r9, [rbp]
lea rdx, [rbp + 0x50]
mov rcx, qword [r14 + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x140017cc1
mov r9d, r12d
xor r8d, r8d
mov rcx, qword [r14 + 8]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov word [rbp + 0x40], si
xor eax, eax
mov qword [rbp + 0x42], rax
mov dword [rbp + 0x4a], eax
mov word [rbp + 0x4e], ax
lea rcx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
xor edx, edx
mov r8d, 0x105
lea rcx, [rbp + 0x1c0]
call fcn.14001b300
movzx eax, word [rbp + 0x40]
movzx ecx, word [rbp + 0x46]
movzx edx, word [rbp + 0x42]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], edx
lea r9, str._02u__02u__02u
or rdi, 0xffffffffffffffff
mov r8, rdi
mov edx, 0x105
lea rcx, [rbp + 0x1c0]
call fcn.1400150b0
mov rbx, rsi
mov qword [rbp + 8], rbx
lea rcx, [rbp + 0x1c0]
mov rax, rdi
nop
lea rax, [rax + 1]
cmp byte [rcx + rax], 0
jne 0x140017b80
lea r13, [rax + 7]
cmp r13, 0x400
ja 0x140017bc9
mov rcx, r13
call fcn.140014960
test al, al
je 0x140017bc9
lea rax, [r13 + 0xf]
cmp rax, r13
ja 0x140017bb6
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14001a420
sub rsp, rax
lea r15, [rsp + 0x40]
jmp 0x140017bfa
mov rax, rdi
sub rax, r13
cmp rax, 0x10
jb 0x140017cb6
lea rcx, [r13 + 0x10]
call fcn.140021104
test rax, rax
jne 0x140017bec
mov r15, rsi
jmp 0x140017bfa
mov qword [rax], rsi
mov rbx, rax
mov qword [rbp + 8], rax
lea r15, [rax + 0x10]
test r15, r15
je 0x140017c90
mov byte [r15 + 4], 0x4e
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [r15], eax
lea rax, [rbp + 0x1c0]
nop dword [rax + rax]
inc rdi
cmp byte [rax + rdi], 0
jne 0x140017c20
mov word [r15 + 5], di
test di, di
je 0x140017c47
movzx r8d, di
lea rcx, [r15 + 7]
lea rdx, [rbp + 0x1c0]
call fcn.14001ac70
mov rcx, qword [r14 + 8]
cmp rcx, 0xffffffffffffffff
je 0x140017c90
mov r9d, r12d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
movzx eax, word [r15 + 5]
test ax, ax
je 0x140017c76
movzx r8d, ax
lea rdx, [r15 + 7]
call fcn.140018670
mov qword [rsp + 0x20], rsi
lea r9, [rbp + 0x10]
mov r8d, r13d
mov rdx, r15
mov rcx, qword [r14 + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
test rbx, rbx
je 0x140017cc1
nop word [rax + rax]
mov rcx, rbx
mov rbx, qword [rbx]
mov qword [rbp + 8], rbx
call fcn.14001df3c
test rbx, rbx
jne 0x140017ca0
jmp 0x140017cc1
mov ecx, 0x80070216
call fcn.140013350
nop
mov rcx, qword [rbp + 0x18]
test rcx, rcx
je 0x140017cd4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp + 0x18], rsi
mov dword [rbp + 0x20], esi
mov rax, r14
mov rcx, qword [rbp + 0x3e0]
xor rcx, rbp
call fcn.140019920
mov rbx, qword [rbp + 0x428]
mov rsi, qword [rbp + 0x430]
mov rdi, qword [rbp + 0x438]
lea rsp, [rbp + 0x3f0]
pop r15
pop r14
pop r13
pop r12
pop rbp
ret