Function at 0x140070d60
Capabilities:
Create process on windows
Query or enumerate registry value
Read .ini file
Set registry value

Disassembly:
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x23a0]
mov eax, 0x24a0
call fcn.14024c240
sub rsp, rax
mov qword [rbp - 0x18], 0xfffffffffffffffe
mov qword [rsp + 0x24d8], rbx
mov qword [rsp + 0x24e0], rsi
mov qword [rsp + 0x24e8], rdi
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rbp + 0x2390], rax
mov rdi, rcx
xor r8d, r8d
lea rdx, str.CBaseFuncSub::FS_ProcDIASInstall
lea rcx, [rsp + 0x78]
call fcn.1400075a0
nop
xor r15d, r15d
mov r13d, r15d
lea rax, vtable.CPDLRegData.0
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], r15
call fcn.140102a14
mov r11, rax
mov ecx, r15d
test rax, rax
setne cl
test ecx, ecx
jne 0x140070e04
mov ecx, 0x80004005
call fcn.140005210
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x58], rbx
mov ecx, UnRegisterTypeLib
call fcn.1401027e8
test rax, rax
je 0x140070e3a
mov r8d, UnRegisterTypeLib
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.140005b00
mov rbx, qword [rbp - 0x58]
mov rcx, qword [0x1403b9760]
mov rax, qword [rcx]
mov r14d, gethostbyaddr
mov r8d, r14d
mov edx, 0x3f2
call qword [rax + 0x28]
mov rcx, qword [0x1403b9760]
mov rax, qword [rcx]
mov r8, rbx
mov edx, 0x3f2
call qword [rax + 0x38]
mov rcx, qword [0x1403b9760]
mov rax, qword [rcx]
xor r8d, r8d
mov edx, 0x3f2
call qword [rax + 0x30]
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov r9, qword [rax]
lea r8, [rbp + 0x390]
lea rdx, str.TEMPPATH
mov rcx, rax
call qword [r9 + 0x18]
lea rcx, [rbp + 0x390]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea rdx, str.InsDrv.ini
lea rcx, [rbp + 0x390]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea r11, [rbp + 0x390]
mov qword [rsp + 0x28], r11
mov dword [rsp + 0x20], 0x40
lea r9, [rbp + 0x80]
lea r8, [0x1402dc4e0]
lea rdx, str.Product
lea rcx, str.Installer_Info
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea r11, [rbp + 0x390]
mov qword [rsp + 0x28], r11
mov dword [rsp + 0x20], 0x40
lea r9, [rbp + 0x100]
lea r8, [0x1402dc4e0]
lea rdx, str.Version
lea rcx, str.Installer_Info
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea r11, [rbp + 0x390]
mov qword [rsp + 0x28], r11
mov dword [rsp + 0x20], reloc.WSOCK32.dll_recv
lea r9, [rbp + 0x60]
lea r8, [0x1402e2d90]
lea rdx, str.ServiceStart
lea rcx, str.DIAS
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rdx, [0x1402e3828]
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
lea rcx, [rbp + 0x60]
test eax, eax
lea rdx, [0x1402e3828]
je 0x140070f8b
lea rdx, [0x1402e2d90]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov r9, qword [rax]
lea r8, [rbp + 0x1390]
lea rdx, str.DIASREGISTICF
mov rcx, rax
call qword [r9 + 0x18]
lea r9, [rbp + 0x80]
lea r8, str._t_t_tSet__V1____s
mov edx, 7
lea rcx, [rsp + 0x78]
call fcn.140007780
lea r9, [rbp + 0x100]
lea r8, str._t_t_tSet__V2____s
mov edx, 7
lea rcx, [rsp + 0x78]
call fcn.140007780
lea r9, [rbp + 0x60]
lea r8, str._t_t_tSet__V5____s
mov edx, 7
lea rcx, [rsp + 0x78]
call fcn.140007780
lea r9, [rbp + 0x1390]
lea r8, str._t_t_tSet__V7____s
mov edx, 7
lea rcx, [rsp + 0x78]
call fcn.140007780
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rbp - 0x10]
call fcn.14024b970
mov dword [rbp - 0x10], 0x68
mov r12d, 1
mov word [rbp + 0x30], r12w
mov dword [rbp + 0x2c], r12d
mov qword [rbp - 0x50], r15
mov rax, qword [rdi]
xor r9d, r9d
lea r8, [rbp + 0x180]
lea rdx, str.DIASsetup.exe
mov rcx, rdi
call qword [rax + 0x3d0]
mov esi, eax
test eax, eax
jne 0x140071623
lea rax, [rbp + 0x1390]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x100]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x80]
lea r8, [rbp + 0x180]
lea rdx, str.__s___s__v_ALLUSERS1_ADDLOCALALL_V1__s__V2_s_V5_s_REBOOTR_V7_s__qn_
lea rcx, [rbp + 0x1b90]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r11, [rbp - 0x50]
mov qword [rsp + 0x48], r11
lea rax, [rbp - 0x10]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x1b90]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140071623
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, r15d
nop word [rax + rax]
mov edx, 0x3e8
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x140071142
mov rcx, qword [0x1403b9760]
mov rax, qword [rcx]
mov r8d, r12d
mov edx, 0x3f2
call qword [rax + 0x30]
inc edi
cmp edi, r14d
jb 0x140071110
or edx, 0xffffffff
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov r9, qword [rax]
lea r8, [rbp + 0xb90]
lea rdx, str.DIASREGISTVERSION
mov rcx, rax
call qword [r9 + 0x18]
lea r9, [rbp + 0xb90]
lea r8, str._t_t_t_DIASREGISTVERSION____s
mov edx, 7
lea rcx, [rsp + 0x78]
call fcn.140007780
lea rdx, [0x1402f24a0]
lea rcx, [rbp + 0xb90]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov r8d, 0x20019
lea rcx, [rsp + 0x58]
test eax, eax
je 0x140071406
lea rdx, str.SOFTWARECanonDIASSETUP
call fcn.140102030
test eax, eax
jne 0x140071600
xor r8d, r8d
lea rdx, str.CBaseRegData::QueryValue
lea rcx, [rbp - 0x78]
call fcn.1400075a0
nop
lea r9, str.DIASDone
lea r8, str.name___s
mov edx, r12d
lea rcx, [rbp - 0x78]
call fcn.140007780
lea r11, [rsp + 0x50]
mov qword [rsp + 0x28], r11
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x70]
xor r8d, r8d
lea rdx, str.DIASDone
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov qword [rsp + 0x68], r15
test eax, eax
jne 0x1400712c6
mov edx, dword [rsp + 0x50]
add edx, 4
lea ecx, [rax + 0x40]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rsp + 0x68], rax
test rax, rax
je 0x1400712aa
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
lea rdx, str.DIASDone
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1400712c6
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
test rax, rax
jne 0x140071298
mov qword [rsp + 0x68], r15
jmp 0x1400712c6
lea rdx, str._t_t_tGlobalFree
lea rcx, [rbp - 0x78]
call fcn.140029dc0
jmp 0x1400712c6
lea r9, str.DIASDone
lea r8, str._t_t_tCannot_Get_Area_for___s_
mov edx, 7
lea rcx, [rbp - 0x78]
call fcn.140007780
mov r9, qword [rsp + 0x68]
lea r8, str.return___08x
mov edx, 2
lea rcx, [rbp - 0x78]
call fcn.140007780
mov r12, qword [rsp + 0x68]
lea rcx, [rbp - 0x78]
call fcn.140007730
test r12, r12
je 0x14007138f
mov r13d, 1
mov r9, r12
lea r8, str._t_t_tGet_RegValue_DIASDone___s
lea edx, [r13 + 6]
lea rcx, [rsp + 0x78]
call fcn.140007780
lea rdx, str.Reboot
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140071361
lea rdx, [0x1402e2d90]
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140071386
mov rcx, qword [0x1403b9770]
mov rax, qword [rcx]
mov edx, reloc.OLEAUT32.dll_UnRegisterTypeLib
call qword [rax + 0x18]
mov esi, 0x80010028
mov dword [0x1403b95bc], 0x28
jmp 0x140071386
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rcx, qword [rax + 8]
add rcx, 0x6814
lea rdx, [0x1402e0308]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GlobalFree]
xor r8d, r8d
lea rdx, str.CBaseRegData::RegClose
lea rcx, [rbp - 0x38]
call fcn.1400075a0
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400713e1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r12d, eax
test eax, eax
je 0x1400713da
mov dword [rsp + 0x20], eax
lea r9, str._t_t_tRegClose
lea r8, str.ApiName:__s__ReturnCode:__d
mov edx, 6
lea rcx, [rbp - 0x38]
call fcn.140007780
mov qword [rsp + 0x60], r15
jmp 0x1400713e4
mov r12d, r15d
mov r9d, r12d
lea r8, str.return___08x
mov edx, 2
lea rcx, [rbp - 0x38]
call fcn.140007780
nop
lea rcx, [rbp - 0x38]
jmp 0x1400715da
lea rdx, str.SOFTWARECanonDIASSETUPDIASUser
call fcn.140102030
test eax, eax
jne 0x140071600
xor r8d, r8d
lea rdx, str.CBaseRegData::QueryValue
lea rcx, [rbp - 0x68]
call fcn.1400075a0
nop
lea r9, [rbp + 0x80]
lea r8, str.name___s
mov edx, r12d
lea rcx, [rbp - 0x68]
call fcn.140007780
lea r11, [rsp + 0x50]
mov qword [rsp + 0x28], r11
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x70]
xor r8d, r8d
lea rdx, [rbp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov qword [rsp + 0x68], r15
test eax, eax
jne 0x14007150a
mov edx, dword [rsp + 0x50]
add edx, 4
lea ecx, [rax + 0x40]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rsp + 0x68], rax
test rax, rax
je 0x1400714ee
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
lea rdx, [rbp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14007150a
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
test rax, rax
jne 0x1400714dc
mov qword [rsp + 0x68], r15
jmp 0x14007150a
lea rdx, str._t_t_tGlobalFree
lea rcx, [rbp - 0x68]
call fcn.140029dc0
jmp 0x14007150a
lea r9, [rbp + 0x80]
lea r8, str._t_t_tCannot_Get_Area_for___s_
mov edx, 7
lea rcx, [rbp - 0x68]
call fcn.140007780
mov r9, qword [rsp + 0x68]
lea r8, str.return___08x
mov edx, 2
lea rcx, [rbp - 0x68]
call fcn.140007780
mov r12, qword [rsp + 0x68]
lea rcx, [rbp - 0x68]
call fcn.140007730
test r12, r12
je 0x140071568
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x80]
lea r8, str._t_t_tGet_RegValue__s___s
mov edx, 7
lea rcx, [rsp + 0x78]
call fcn.140007780
mov r13d, 1
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GlobalFree]
xor r8d, r8d
lea rdx, str.CBaseRegData::RegClose
lea rcx, [rbp - 0x28]
call fcn.1400075a0
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400715ba
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r12d, eax
test eax, eax
je 0x1400715b3
mov dword [rsp + 0x20], eax
lea r9, str._t_t_tRegClose
lea r8, str.ApiName:__s__ReturnCode:__d
mov edx, 6
lea rcx, [rbp - 0x28]
call fcn.140007780
mov qword [rsp + 0x60], r15
jmp 0x1400715bd
mov r12d, r15d
mov r9d, r12d
lea r8, str.return___08x
mov edx, 2
lea rcx, [rbp - 0x28]
call fcn.140007780
nop
lea rcx, [rbp - 0x28]
call fcn.140007730
test r13d, r13d
je 0x140071600
sub r14d, edi
je 0x140071644
mov rcx, qword [0x1403b9760]
mov rax, qword [rcx]
mov r8d, r14d
mov edx, 0x3f2
call qword [rax + 0x30]
jmp 0x140071644
mov rcx, qword [0x1403b9770]
mov rax, qword [rcx]
mov edx, reloc.OLEAUT32.dll_VariantTimeToSystemTime
call qword [rax + 0x18]
mov esi, 0x80010028
mov dword [0x1403b95bc], 0x28
jmp 0x140071644
mov rcx, qword [0x1403b9770]
mov rax, qword [rcx]
mov edx, reloc.OLEAUT32.dll_VariantTimeToSystemTime
call qword [rax + 0x18]
mov dword [0x1403b95bc], 0x51
mov esi, 0x80010051
mov r9d, esi
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x78]
call fcn.140007780
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14007167a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rax, vtable.CPDLRegData.0
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14007169b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x60]
lea rax, vtable.CBaseRegData.0
mov qword [rsp + 0x58], rax
test rcx, rcx
je 0x1400716b3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rsp + 0x78]
call fcn.140007730
xor eax, eax
mov rcx, qword [rbp + 0x2390]
xor rcx, rsp
call fcn.140245660
lea r11, [rsp + 0x24a0]
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