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

Disassembly:
push rbp
push rdi
mov rbp, rsp
sub rsp, 0x78
lea rax, [rbp + 0x20]
mov dword [rbp + 0x18], 8
xor edi, edi
mov qword [rsp + 0x20], rax
mov r9d, keybd_event
mov qword [rbp - 0x28], rdi
xor r8d, r8d
lea rdx, str.SoftwareOpenVPN_GUI
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140011d37
mov rcx, qword [rbp + 0x20]
lea rax, [rbp + 0x18]
mov qword [rsp + 0x30], rax
lea r9d, [rdi + 8]
lea rax, [rbp - 0x28]
xor edx, edx
mov qword [rsp + 0x28], rax
lea r8, str.version
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov rcx, qword [rbp - 0x28]
test eax, eax
cmovne rcx, rdi
mov qword [rbp - 0x28], rcx
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rbp - 0x28]
cmp rax, qword [0x140023510]
mov qword [rsp + 0x70], rbx
je 0x140011f50
test ax, ax
jne 0x140011edd
lea rdx, str.SoftwareOpenVPN_GUI
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
lea rax, [rbp + 0x30]
mov r9d, keybd_event
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareNilingsOpenVPN_GUI
mov rcx, 0xffffffff80000001
mov ebx, edi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140011edd
mov qword [rsp + 0x40], rdi
lea rax, [rbp - 0x20]
mov qword [rsp + 0x38], rax
lea rdx, str.SoftwareOpenVPN_GUI
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x140011e00
lea rdx, str.SoftwareOpenVPN_GUI
mov ecx, 0x647
call fcn.140003f10
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x78
pop rdi
pop rbp
ret
mov rcx, qword [rbp - 0x20]
lea rax, [rbp - 0x18]
mov qword [rsp + 0x40], rdi
lea rdx, str.proxy
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], rdi
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140011f61
mov rcx, qword [rbp + 0x30]
lea rax, [rbp + 0x18]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x20]
lea rax, [rbp + 0x28]
mov dword [rbp + 0x18], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.ui_language
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [rbp + 0x20], 4
jne 0x140011e8d
test eax, eax
jne 0x140011e8d
mov r8d, dword [rbp + 0x28]
lea rdx, str.ui_language
mov rcx, qword [rbp - 0x20]
call fcn.140011c50
mov r8, qword [rbp - 0x18]
xor edx, edx
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCopyTreeW]
test eax, eax
jne 0x140011eb7
mov rcx, qword [rbp - 0x18]
lea rdx, str.ui_language
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ebx, 1
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x140011f75
mov qword [rsp + 0x40], rdi
lea rax, [rbp + 0x18]
mov qword [rsp + 0x38], rax
lea rdx, str.SoftwareOpenVPN_GUI
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], SetDlgItemTextA
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140011f50
lea rcx, [0x140023510]
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x20], rcx
lea r9d, [rax + 3]
mov rcx, qword [rbp + 0x18]
lea rdx, str.version
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov rbx, qword [rsp + 0x70]
add rsp, 0x78
pop rdi
pop rbp
ret
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x70]
xor eax, eax
add rsp, 0x78
pop rdi
pop rbp
ret