Function at 0x140005940
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x398]
sub rsp, 0x498
mov rax, qword [0x14013d0a8]
xor rax, rsp
mov qword [rbp + 0x380], rax
mov r14, rcx
mov dword [rsp + 0x30], edx
mov r9, rcx
lea r8, str.SoftwareSysinternals_s
xor edi, edi
lea rcx, [rbp + 0x170]
mov edx, 0x104
mov qword [rsp + 0x50], rdi
call fcn.1400051d0
cmp dword [rsp + 0x30], edi
jne 0x140005e06
mov rcx, r14
call fcn.140005510
mov dword [rsp + 0x30], eax
test eax, eax
jne 0x140005e06
lea r8, [rsp + 0x40]
mov qword [rsp + 0x40], rdi
lea rdx, str.SoftwareMicrosoftwindows_ntcurrentversion
mov dword [rsp + 0x3c], 0x208
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x38], edi
mov ebx, edi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
lea r15d, [rdi + 1]
test eax, eax
jne 0x140005a9a
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x38]
lea rax, [rsp + 0x60]
xor r8d, r8d
lea rdx, [0x1400f5e10]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140005a31
lea rdx, [rsp + 0x60]
lea rcx, str.iotuap
call fcn.1400bef10
test eax, eax
cmove ebx, r15d
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x140005a9a
mov rcx, qword [str.SYSINTERNALS_SOFTWARE_LICENSE_TERMS_nThese_license_terms_are_an_agreement_between_Sysinternals_a_wholly_owned_subsidiary_of_Microsoft_Corporation__and_you.Please_read_them.They_apply_to_the_software_you_are_downloading_from_https:__sysinternals.com__which_includes_the_media_on_which_you_received_it__if_any.The_terms_also_apply_to_any_Sysinternals_n_updates__nsupplements__nInternet___based_services__nand_support_services_nfor_this_software__unless_other_terms_accompany_those_items.If_so__those_terms_apply._nBY_USING_THE_SOFTWARE__YOU_ACCEPT_THESE_TERMS.IF_YOU_DO_NOT_ACCEPT_THEM__DO_NOT_USE_THE_SOFTWARE._n_nIf_you_comply_with_these_license_terms__you_have_the_rights_below._nINSTALLATION_AND_USER_RIGHTS_nYou_may_install_and_use_any_number_of_copies_of_the_software_on_your_devices._n_nSCOPE_OF_LICENSE_nThe_software_is_licensed__not_sold.This_agreement_only_gives_you_some_rights_to_use_the_software.Sysinternals_reserves_all_other_rights.Unless_applicable_law_gives_you_more_rights_despite_this_limitation__you_may_use_the_software_only_as_expressly_permitted_in_this_agreement.In_doing_so__you_must_comply_with_any_technical_limitations_in_the_software_that_only_allow_you_to_use_it_in_certain_ways.You_may_not_n_work_around_any_technical_limitations_in_the_software__nreverse_engineer__decompile_or_disassemble_the_software__except_and_only_to_the_extent_that_applicable_law_expressly_permits__despite_this_limitation__nmake_more_copies_of_the_software_than_specified_in_this_agreement_or_allowed_by_applicable_law__despite_this_limitation__npublish_the_software_for_others_to_copy__nrent__lease_or_lend_the_software__ntransfer_the_software_or_this_agreement_to_any_third_party__or_n_use_the_software_for_commercial_software_hosting_services._n_nSENSITIVE_INFORMATION_nPlease_be_aware_that__similar_to_other_debug_tools_that_capture]
xor sil, sil
mov r14d, edi
call fcn.140006090
lea rcx, str.Accept_Eula__Y_N__
call fcn.140006030
call fcn.1400c60b8
movsx edx, al
lea rcx, [0x1400f5ef4]
mov ebx, eax
call fcn.140006030
lea ecx, [rbx - 0x59]
test cl, 0xdf
jne 0x140005a83
mov r14d, r15d
movzx esi, r15b
sub bl, 0x4e
test bl, 0xdf
je 0x140005a90
cmp sil, r15b
jne 0x140005a52
mov dword [rsp + 0x30], r14d
jmp 0x140005e00
lea r8, [rsp + 0x48]
mov qword [rsp + 0x48], rdi
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionServerServerLevels
mov dword [rsp + 0x3c], edi
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x40], 4
mov ebx, edi
mov dword [rsp + 0x38], edi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x140005b23
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x38]
lea rax, [rsp + 0x3c]
xor r8d, r8d
lea rdx, str.NanoServer
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140005b10
cmp dword [rsp + 0x38], 4
jne 0x140005b10
cmp dword [rsp + 0x3c], r15d
cmove ebx, r15d
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140005e84
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 3
je 0x140005e84
mov qword [rsp + 0x4e0], r12
mov edx, 0x3e8
mov ecx, 0x40
mov qword [rsp + 0x490], r13
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, r15d
lea rcx, str.Riched32.dll
mov rsi, rax
call fcn.140003050
lea rcx, str.License_Agreement
mov dword [rsi], 0x80c808d0
lea rdx, [rsi + 0x16]
mov dword [rsi + 0xa], edi
sub rdx, rcx
mov qword [rsi + 0xe], 0xb40138
mov word [rsi + 8], di
nop word [rax + rax]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x140005ba0
mov eax, 8
lea rcx, str.MS_Shell_Dlg
lea rdx, [rsi + 0x3c]
mov word [rsi + 0x3a], ax
sub rdx, rcx
nop word [rax + rax]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x140005bd0
mov ecx, 0x1f6
lea rax, [rsi + 0x59]
and rax, 0xfffffffffffffffc
lea r8, [rax + 0x12]
lea rdx, [r8 + 4]
mov word [rax + 0x10], cx
lea rcx, str.You_can_also_use_the__accepteula_command_line_switch_to_accept_the_EULA.
mov dword [rax + 8], 0x30007
sub rdx, rcx
mov dword [rax + 0xc], 0xe012a
mov dword [rax], 0x50000000
mov dword [r8], 0x82ffff
nop
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x140005c20
mov word [r8 + 0x96], di
lea rax, [r8 + 0x9b]
inc word [rsi + 8]
lea rcx, str.Agree
and rax, 0xfffffffffffffffc
lea r8, [rax + 0x12]
lea rdx, [r8 + 4]
sub rdx, rcx
mov dword [rax + 8], 0x9f00c9
mov dword [rax + 0xc], 0xe0032
mov word [rax + 0x10], r15w
mov dword [rax], 0x50010000
mov dword [r8], 0x80ffff
nop dword [rax]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x140005c80
mov word [r8 + 0x12], di
lea rax, [r8 + 0x17]
inc word [rsi + 8]
lea rdx, str.Decline
and rax, 0xfffffffffffffffc
mov ecx, 2
lea r9, [rax + 0x12]
lea r8, [r9 + 4]
sub r8, rdx
mov word [rax + 0x10], cx
mov rcx, rdx
mov dword [rax + 8], 0x9f00ff
mov dword [rax + 0xc], 0xe0032
mov dword [rax], 0x50010000
mov dword [r9], 0x80ffff
nop word [rax + rax]
movzx eax, word [rcx]
mov word [r8 + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x140005ce0
mov r12, qword [rsp + 0x4e0]
lea rax, [r9 + 0x1b]
mov word [r9 + 0x16], di
and rax, 0xfffffffffffffffc
inc word [rsi + 8]
lea r9, [rax + 0x12]
mov ecx, 0x1f5
lea r8, [r9 + 4]
mov word [rax + 0x10], cx
lea rcx, str.Print
mov dword [rax + 8], 0x9f0007
sub r8, rcx
mov dword [rax + 0xc], 0xe0032
mov dword [rax], 0x50010000
mov dword [r9], 0x80ffff
movzx eax, word [rcx]
mov word [r8 + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x140005d40
mov r13, qword [rsp + 0x490]
lea rax, [r9 + 0x17]
and rax, 0xfffffffffffffffc
mov word [r9 + 0x12], di
inc word [rsi + 8]
mov ecx, 0x1f4
lea r9, [rax + 0x12]
mov word [rax + 0x10], cx
mov r8, r9
mov dword [rax + 8], 0xe0007
lea rcx, str.RICHEDIT
mov dword [rax + 0xc], 0x8c012a
sub r8, rcx
mov dword [rax], 0x50a11844
nop dword [rax + rax]
movzx eax, word [rcx]
mov word [r8 + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x140005da0
lea rcx, [r9 + 0x12]
sub rcx, rdx
nop dword [rax + rax]
movzx eax, word [rdx]
mov word [rcx + rdx], ax
lea rdx, [rdx + 2]
test ax, ax
jne 0x140005dc0
mov word [r9 + 0x24], di
xor r8d, r8d
inc word [rsi + 8]
lea r9, [0x140005230]
mov rdx, rsi
mov qword [rsp + 0x20], r14
xor ecx, ecx
call qword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
mov rcx, rsi
mov dword [rsp + 0x30], eax
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [rsp + 0x30], edi
je 0x140005e5f
lea r8, [rsp + 0x50]
mov rcx, 0xffffffff80000001
lea rdx, [rbp + 0x170]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x140005e5b
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], 4
lea rdx, str.EulaAccepted
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x30], edi
setne dil
mov eax, edi
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.1400b5660
add rsp, 0x498
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.140005900
int3