Function at 0x1400022f0
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 - 0x298]
sub rsp, 0x398
mov rax, qword [0x140043238]
xor rax, rsp
mov qword [rbp + 0x280], rax
mov r14, rcx
mov dword [rsp + 0x30], edx
mov r9, rcx
lea r8, str.SoftwareSysinternals_s
xor edi, edi
lea rcx, [rsp + 0x60]
mov edx, 0x104
mov qword [rsp + 0x50], rdi
call fcn.1400028b0
cmp dword [rsp + 0x30], edi
jne 0x1400027b6
mov rcx, r14
call fcn.140001cb0
mov dword [rsp + 0x30], eax
test eax, eax
jne 0x1400027b6
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_RegOpenKeyA]
lea r15d, [rdi + 1]
test eax, eax
jne 0x140002448
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x38]
lea rax, [rbp + 0x70]
xor r8d, r8d
lea rdx, [0x1400308d0]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400023dd
lea rdx, [rbp + 0x70]
lea rcx, str.iotuap
call fcn.140014b10
test eax, eax
cmove ebx, r15d
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x140002448
mov rcx, qword [0x140043188]
xor sil, sil
mov r14d, edi
call fcn.140002910
nop
lea rcx, str.Accept_Eula__Y_N__
call fcn.140001800
call fcn.1400147d4
movsx edx, al
lea rcx, [0x14003096c]
mov ebx, eax
call fcn.140001800
lea ecx, [rbx - 0x59]
test cl, 0xdf
jne 0x140002431
mov r14d, r15d
movzx esi, r15b
sub bl, 0x4e
test bl, 0xdf
je 0x14000243e
cmp sil, r15b
jne 0x140002400
mov dword [rsp + 0x30], r14d
jmp 0x1400027b0
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_RegOpenKeyA]
test eax, eax
jne 0x1400024d1
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_RegQueryValueExA]
test eax, eax
jne 0x1400024be
cmp dword [rsp + 0x38], 4
jne 0x1400024be
cmp dword [rsp + 0x3c], r15d
cmove ebx, r15d
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140002832
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 3
je 0x140002832
mov qword [rsp + 0x3e0], r12
mov edx, 0x3e8
mov ecx, 0x40
mov qword [rsp + 0x390], r13
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, r15d
lea rcx, str.Riched32.dll
mov rsi, rax
call fcn.140001850
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 dword [rax]
nop word [rax + rax]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x140002550
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 0x140002580
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 0x1400025d0
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 0x140002630
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 0x140002690
mov r12, qword [rsp + 0x3e0]
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 0x1400026f0
mov r13, qword [rsp + 0x390]
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 0x140002750
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 0x140002770
mov word [r9 + 0x24], di
xor r8d, r8d
inc word [rsi + 8]
lea r9, [0x140001940]
mov rdx, rsi
mov qword [rsp + 0x20], r14
xor ecx, ecx
call qword [sym.imp.USER32.dll_DialogBoxIndirectParamA]
mov rcx, rsi
mov dword [rsp + 0x30], eax
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [rsp + 0x30], edi
je 0x14000280d
lea r8, [rsp + 0x50]
mov rcx, 0xffffffff80000001
lea rdx, [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x140002809
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_RegSetValueExA]
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 + 0x280]
xor rcx, rsp
call fcn.1400069e0
add rsp, 0x398
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1400022b0
int3