Function at 0x14000c4b0
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x660]
sub rsp, 0x760
mov rax, qword [0x140011008]
xor rax, rsp
mov qword [rbp + 0x650], rax
mov rax, qword [0x140003bf0]
mov rsi, rcx
mov r14, rdx
mov qword [rbp - 0x30], rax
mov rax, qword [0x140003bf8]
lea rcx, [rbp + 0x14]
mov qword [rbp - 0x28], rax
mov rax, qword [0x140003c00]
xor edx, edx
mov qword [rbp - 0x20], rax
mov rax, qword [0x140003c08]
mov r8d, 0x1c4
mov qword [rbp - 0x18], rax
mov rax, qword [0x140003c10]
mov qword [rbp - 0x10], rax
mov rax, qword [0x140003c18]
mov qword [rbp - 8], rax
mov rax, qword [0x140003c20]
mov qword [rbp], rax
mov rax, qword [0x140003c28]
mov qword [rbp + 8], rax
mov eax, dword [0x140003c30]
mov dword [rbp + 0x10], eax
call sub.msvcrt.dll_memset
mov r12d, Ordinal_519
lea rcx, [rbp + 0x442]
xor edi, edi
mov r8d, r12d
xor edx, edx
mov word [rbp + 0x440], di
call sub.msvcrt.dll_memset
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r15d, 0x104
lea r8, [rbp + 0x440]
mov rdx, rbx
mov rcx, rax
mov r9d, r15d
call qword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameW]
test eax, eax
je 0x14000c8bc
lea r8, [rbp + 0x440]
lea rcx, [rbp - 0x30]
mov edx, r15d
call fcn.140004148
mov ebx, eax
test eax, eax
js 0x14000c8c4
lea rcx, [rbp + 0x232]
mov r8d, r12d
xor edx, edx
mov word [rbp + 0x230], di
call sub.msvcrt.dll_memset
lea r8, [rbp + 0x230]
lea rcx, [rbp - 0x30]
mov r9d, r15d
mov edx, r15d
call fcn.14000ca34
mov ebx, eax
test eax, eax
js 0x14000c8c4
lea rax, [rsp + 0x50]
lea r12, [0x140001280]
mov r15d, 0xf003f
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
lea rdx, [0x140003670]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov r9, r12
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
jne 0x14000c8c8
lea ebx, [rdi + 0x27]
lea rdx, [rbp + 0x1e0]
mov rcx, rsi
mov r8d, ebx
call qword [sym.imp.ole32.dll_StringFromGUID2]
lea rdx, [rbp - 0x80]
mov r8d, ebx
mov rcx, r14
call qword [sym.imp.ole32.dll_StringFromGUID2]
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
lea rdx, [rbp + 0x1e0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov r9, r12
xor r8d, r8d
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
jne 0x14000c806
mov rcx, qword [rsp + 0x58]
lea rax, [rbp - 0x80]
lea r9d, [rdi + 1]
lea rdx, [0x140003c38]
xor r8d, r8d
mov dword [rsp + 0x28], 0x4e
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
jne 0x14000c7fb
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
lea r9, [0x140003c48]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
lea rdx, [0x140003c68]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
xor r8d, r8d
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
jne 0x14000c7fb
mov rcx, qword [rsp + 0x60]
lea rdx, [0x140003c88]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
or rsi, 0xffffffffffffffff
lea rcx, [rbp + 0x230]
mov rax, rsi
inc rax
cmp word [rcx + rax*2], di
jne 0x14000c75d
mov rcx, qword [rsp + 0x60]
lea eax, [rax*2 + 2]
mov r14d, 2
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x230]
lea rdx, [0x140001218]
mov r9d, r14d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
jne 0x14000c7dc
lea rax, [rbp - 0x30]
inc rsi
cmp word [rax + rsi*2], di
jne 0x14000c7a5
mov rcx, qword [rsp + 0x60]
lea eax, [rsi*2 + 2]
lea rdx, [0x140003ca8]
mov dword [rsp + 0x28], eax
lea rax, [rbp - 0x30]
mov r9d, r14d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x14000c7fb
mov rcx, qword [rsp + 0x58]
lea rdx, [rbp - 0x30]
call fcn.1400045bc
mov ebx, eax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x14000c8c8
lea rax, [rsp + 0x50]
lea rdx, [0x140003c38]
mov r9, r12
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov rcx, 0xffffffff80000000
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
jne 0x14000c8c8
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x50]
lea rdx, [rbp - 0x80]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov r9, r12
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
xor r8d, r8d
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
jne 0x14000c8af
mov rcx, qword [rsp + 0x58]
call fcn.1400044dc
mov rcx, qword [rsp + 0x58]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000c8c4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
je 0x14000c8d6
movzx edi, bx
or edi, 0x80070000
test ebx, ebx
cmovle edi, ebx
mov eax, edi
mov rcx, qword [rbp + 0x650]
xor rcx, rsp
call fcn.14000faa0
lea r11, [rsp + 0x760]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret