Function at 0x140107850
Capabilities:
Delete registry key
Delete registry value
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x198], rbx
mov rax, qword [0x1402a6808]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov r15, r9
mov rbx, r8
mov rdi, rcx
sub edx, 0x2b
je 0x140108349
sub edx, 0xe5
je 0x14010809a
cmp edx, 1
jne 0x140107c24
mov r14d, 0xfa2
movzx eax, bx
sub ax, r14w
cmp ax, dx
mov rax, rbx
ja 0x140107925
shr rax, 0x10
cmp ax, 2
jne 0x140107929
movzx edx, bx
xor esi, esi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
mov r8d, 0x188
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
cmp rax, 0xffffffffffffffff
je 0x14010836a
mov edx, r14d
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.USER32.dll_GetDlgItem]
xor r9d, r9d
mov edx, 0x111
mov rcx, qword [rdi + 0x18]
cmp r15, rax
lea r8d, [r14 + 2]
je 0x14010791a
lea r8d, [r14 + 5]
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x14010836a
shr rax, 0x10
mov rcx, rbx
sub rcx, 2
je 0x140108089
sub rcx, r14
je 0x140107f2b
cmp rcx, 3
je 0x140107c74
mov ecx, 0x300
cmp ax, cx
jne 0x140107a2b
xor eax, eax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
mov dword [rbp - 0x60], eax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov edx, 0xfa6
mov r9d, 0x12
lea r8d, [r9 - 5]
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
xor esi, esi
cmp eax, 1
jne 0x1401079fb
movzx eax, word [rbp - 0x80]
cmp ax, 0x2e
je 0x1401079fb
mov word [rbp - 0x7e], ax
mov eax, 0x2e
mov word [rbp - 0x80], ax
mov word [rbp - 0x7c], si
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov edx, 0xfa6
lea r8d, [rsi + 0xc]
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov qword [rsp + 0x20], 2
mov edx, 0xfa6
lea r9d, [rsi + 2]
mov r8d, 0xb1
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
setg sil
mov edx, 0xfa4
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
mov edx, esi
call qword [sym.imp.USER32.dll_EnableWindow]
jmp 0x14010836a
cmp ax, 1
jne 0x140107c24
movzx r12d, bx
xor esi, esi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
mov r8d, 0x188
mov edx, r12d
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov r15, rax
mov r13d, 0xfa1
cmp bx, r13w
jne 0x140107c2b
cmp rax, 0xffffffffffffffff
je 0x140107c24
mov qword [rsp + 0x20], rsi
mov r9, rax
mov r8d, 0x18a
mov edx, r12d
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
cmp rax, 0x20
ja 0x14010836a
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
mov r9, r15
mov r8d, 0x189
mov edx, r12d
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
lea rdx, [rbp - 0x10]
lea rcx, str.customize
call fcn.1401b26dc
test eax, eax
jne 0x140107b06
mov edx, r14d
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
lea edx, [r13 + 5]
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
lea edx, [rsi + 5]
call qword [sym.imp.USER32.dll_ShowWindow]
mov byte [rdi + 0x30], 1
jmp 0x140107c0a
cmp byte [rdi + 0x30], sil
je 0x140107b45
mov edx, r14d
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
mov edx, 0xfa6
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
mov byte [rdi + 0x30], sil
mov qword [rsp + 0x20], rsi
xor r9d, r9d
mov r8d, 0x18b
mov edx, r14d
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov rbx, rax
sub rbx, 1
js 0x140107b91
nop dword [rax]
mov qword [rsp + 0x20], rsi
mov r9, rbx
mov r8d, 0x182
mov edx, r14d
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
sub rbx, 1
jns 0x140107b70
imul rbx, r15, 0x3cc
lea rax, [0x140228af4]
add rbx, rax
mov esi, 0x1a
lea r15, [0x1401e4278]
mov r12d, 0xfa3
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x140107c00
mov qword [rsp + 0x20], rbx
xor r9d, r9d
mov r8d, 0x1a2
mov edx, r12d
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
cmp rax, 0xffffffffffffffff
jne 0x140107c00
mov qword [rsp + 0x20], rbx
xor r9d, r9d
mov r8d, 0x180
mov edx, r14d
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
add rbx, 0x24
sub rsi, 1
jne 0x140107bb4
mov edx, 0xfa4
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x14010836f
cmp bx, r14w
jne 0x140107c5b
cmp r15, 0xffffffffffffffff
je 0x140107c24
mov edx, 0xfa4
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
mov edx, 1
call qword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x14010836f
mov r12d, 0xfa3
cmp bx, r12w
jne 0x140107c24
cmp r15, 0xffffffffffffffff
je 0x140107c24
lea edx, [r12 + 4]
jmp 0x140107c3c
xor eax, eax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
mov dword [rbp - 0x60], eax
xor esi, esi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
mov r8d, 0x188
mov r12d, 0xfa3
mov edx, r12d
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov r15, rax
mov qword [rsp + 0x20], rsi
mov r9, rax
mov r8d, 0x18a
mov edx, r12d
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
cmp rax, 0x11
jg 0x14010836a
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov r9, r15
mov r8d, 0x189
mov edx, r12d
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [rbp - 0x80]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x74]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ebx, esi
test eax, eax
cmove ebx, dword [rsp + 0x74]
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp ebx, 1
jg 0x140107dfd
mov ecx, esi
test eax, eax
cmove ecx, dword [rsp + 0x70]
test ecx, ecx
jne 0x140107dfd
mov dword [rbp - 0x50], 0x5c
xor eax, eax
mov qword [rbp - 0x4c], rax
mov qword [rbp - 0x44], rax
mov qword [rbp - 0x3c], rax
mov qword [rbp - 0x34], rax
mov qword [rbp - 0x2c], rax
mov qword [rbp - 0x24], rax
mov qword [rbp - 0x1c], rax
mov dword [rbp - 0x14], eax
lea r8, [rbp - 0x80]
lea edx, [rsi + 0x20]
lea rcx, [rbp - 0x50]
call fcn.1401a659c
lea rdx, [rbp - 0x50]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x140107e6e
mov dword [rsp + 0x60], 0x40
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x64]
xor r8d, r8d
mov rdx, qword [str.Notepad_backup]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor edx, edx
mov rcx, qword [rsp + 0x68]
test eax, eax
jne 0x140107e68
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x28], eax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x64]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rdx, qword [str.Notepad_backup]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov qword [rsp + 0x20], rsi
mov r9, r15
mov r8d, 0x182
mov edx, r12d
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov qword [rsp + 0x20], rsi
xor r9d, r9d
mov edx, 0xfa1
mov r8d, 0x188
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov rsi, rax
mov edx, 0xfa7
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_EnableWindow]
cmp rsi, 0xffffffffffffffff
je 0x14010836a
mov ebx, 1
imul rsi, rsi, 0x1b
lea r15, [0x140228ad0]
nop dword [rax]
movsxd rax, ebx
add rax, rsi
lea rax, [rax + rax*8]
lea rdx, [r15 + rax*4]
lea rcx, [rbp - 0x80]
call fcn.1401b26dc
test eax, eax
je 0x140107f07
inc ebx
cmp ebx, 0x1b
jl 0x140107ee0
jmp 0x14010836a
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x180
mov edx, r14d
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
jmp 0x14010836a
mov rcx, rdi
call fcn.1401083f0
xor eax, eax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
mov dword [rbp - 0x60], eax
mov r12d, 0xfa3
mov rcx, qword [rdi + 0x18]
cmp byte [rdi + 0x30], al
jne 0x140107fd6
xor esi, esi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
mov r8d, 0x188
mov edx, r14d
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov rbx, rax
mov qword [rsp + 0x20], rsi
mov r9, rax
mov r8d, 0x18a
mov edx, r14d
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
cmp rax, 0x11
jg 0x14010836a
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov r9, rbx
mov r8d, 0x189
mov edx, r14d
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
lea rdx, [rbp - 0x80]
mov rcx, rdi
call fcn.140107720
mov qword [rsp + 0x20], rsi
mov r9, rbx
mov r8d, 0x182
mov edx, r14d
jmp 0x140108041
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov edx, 0xfa6
mov r9d, 0x12
lea r8d, [r9 - 5]
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x1a2
mov edx, r12d
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
cmp rax, 0xffffffffffffffff
jne 0x14010836a
lea rdx, [rbp - 0x80]
mov rcx, rdi
call fcn.140107720
lea r15, [0x1401e4278]
mov qword [rsp + 0x20], r15
xor r9d, r9d
mov edx, 0xfa6
lea r8d, [r9 + 0xc]
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x180
mov edx, r12d
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov edx, 0xfa4
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_EnableWindow]
jmp 0x14010836a
xor edx, edx
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.USER32.dll_EndDialog]
jmp 0x14010836a
xor esi, esi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
lea rax, [rsp + 0x64]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov r14d, esi
test eax, eax
cmove r14d, dword [rsp + 0x64]
mov ebx, esi
mov r12d, 0xfa3
test r14d, r14d
jle 0x1401081f6
lea r15, [0x1401e4278]
mov dword [rsp + 0x60], 0x20
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x60]
lea r8, [rbp - 0x50]
mov edx, ebx
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1401081eb
cmp word [rbp - 0x50], 0x2e
jne 0x1401081eb
mov dword [rsp + 0x64], 0x40
mov dword [rsp + 0x60], 0x20
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [rbp - 0x50]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea rax, [rsp + 0x64]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
mov rdx, r15
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [rsp + 0x70], 1
jne 0x1401081e0
mov rdx, qword [str.Notepad_file]
lea rcx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1401081e0
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x180
mov edx, r12d
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc ebx
cmp ebx, r14d
jl 0x140108101
lea r15, [0x140228ad0]
mov ebx, 0xa
mov r13d, 0xfa1
nop dword [rax + rax]
mov qword [rsp + 0x20], r15
xor r9d, r9d
mov r8d, 0x180
mov edx, r13d
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
add r15, 0x3cc
sub rbx, 1
jne 0x140108210
mov edx, 0xfa4
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_EnableWindow]
mov edx, 0xfa7
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [0x1402be238]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x1402aba20], ecx
jg 0x1401083ae
mov rax, qword [0x1402aba18]
mov rcx, qword [rdi + 0x18]
cmp byte [rax + 0x333f9], 0
jne 0x140108311
mov edx, r13d
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_EnableWindow]
mov edx, 0xfa2
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_EnableWindow]
mov edx, r12d
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_EnableWindow]
mov edx, 0xfa9
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_EnableWindow]
mov edx, 0xfaa
jmp 0x14010806f
mov edx, 0xfa8
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
mov qword [rsp + 0x20], rsi
mov edx, 0xfa6
mov r9d, reloc.COMCTL32.dll_InitCommonControls
mov r8d, 0xc5
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
jmp 0x14010836a
mov edx, 0x19c
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_LoadIconW]
mov r9, rax
xor r8d, r8d
xor edx, edx
mov rcx, qword [r15 + 0x20]
call qword [sym.imp.USER32.dll_DrawIcon]
mov eax, 1
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.14017f700
mov rbx, qword [rsp + 0x198]
add rsp, 0x150
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov qword [0x1402aba18], rax
lea rcx, [0x1402aba20]
call fcn.14017fbbc
jmp 0x140108293
lea rcx, [0x1402aba20]
call fcn.14017fc1c
cmp dword [0x1402aba20], 0xffffffff
jne 0x140108293
mov ecx, 0x33400
call fcn.14017f5a8
mov qword [rsp + 0x68], rax
test rax, rax
je 0x1401083e5
mov rcx, rax
call fcn.1400d0c00
jmp 0x140108396
mov rax, rsi
jmp 0x140108396