Function at 0x140001000
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rbx, r8
mov rdi, rdx
test r8, r8
jne 0x140001036
xor eax, eax
jmp 0x1400012bc
lea rax, [rsp + 0x50]
mov qword [rsp + 0x2d8], rsi
mov qword [rsp + 0x40], rax
lea r9, [0x140013240]
lea rax, [rsp + 0x58]
xor esi, esi
mov qword [rsp + 0x38], rax
mov rdx, rcx
mov qword [rsp + 0x30], rsi
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
mov rcx, 0xffffffff80000000
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140001279
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea r9, [0x140013244]
lea rax, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x38], rax
lea rdx, str.shell
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14000126e
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea r9, [0x140013254]
lea rax, [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0x38], rax
lea rdx, str.open
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140001263
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea r9, [0x140013264]
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x38], rax
lea rdx, str.command
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140001258
mov r8, rdi
lea rdx, str.__s_____1_
lea rcx, [rbp - 0x80]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x70]
lea r9d, [rsi + 1]
xor r8d, r8d
xor edx, edx
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14000124d
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea r9, [0x140013290]
lea rax, [rsp + 0x78]
xor r8d, r8d
mov qword [rsp + 0x38], rax
lea rdx, str.DefaultIcon
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14000124d
xor r9d, r9d
lea rdx, str._s__d
mov r8, rbx
lea rcx, [rbp - 0x80]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x78]
lea r9d, [rsi + 1]
xor r8d, r8d
xor edx, edx
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x78]
test eax, eax
je 0x14000127d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x1400012b4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov rsi, qword [rsp + 0x2d8]
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.140001ec0
add rsp, 0x2a0
pop rdi
pop rbx
pop rbp
ret