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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x138]
sub rsp, 0x238
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rbp + 0x120], rax
xor r13d, r13d
mov word [rbp - 0x5c], 0x100
lea rax, [rsp + 0x60]
mov qword [rsp + 0x78], r13
mov qword [rsp + 0x50], rax
mov r12, r9
mov dword [rsp + 0x48], r13d
mov r15, r8
mov dword [rsp + 0x40], r13d
mov r14, rdx
mov dword [rsp + 0x38], r13d
mov rsi, rcx
mov dword [rsp + 0x30], r13d
lea rcx, [rbp - 0x60]
mov ebx, r13d
mov dword [rsp + 0x28], r13d
xor r9d, r9d
mov dword [rsp + 0x20], r13d
xor r8d, r8d
mov qword [rbp - 0x80], r13
mov dl, 1
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], r13
mov edi, r13d
mov qword [rsp + 0x70], r13
mov dword [rbp - 0x60], ebx
mov dword [rbp - 0x58], ebx
mov word [rbp - 0x54], 0x500
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x18003a8d5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.AllocateAndInitializeSid_Error__u_n
call fcn.18003c7c0
xor eax, eax
jmp 0x18003abd6
xor edx, edx
lea rcx, [rbp - 0x40]
lea r8d, [rdx + 0x60]
call fcn.180113150
mov rax, qword [rsp + 0x60]
lea rcx, [rbp - 0x58]
mov qword [rbp - 0x18], rax
mov r9d, 0x220
lea rax, [rsp + 0x68]
mov dword [rbp - 0x40], 0x20019
mov qword [rsp + 0x50], rax
mov r8d, 0x20
mov dword [rsp + 0x48], r13d
mov dl, 2
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
mov qword [rbp - 0x3c], 2
mov dword [rbp - 0x24], r13d
mov dword [rbp - 0x20], 5
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x18003a964
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.AllocateAndInitializeSid_Error__u_n
call fcn.18003c7c0
jmp 0x18003ab77
mov rax, qword [rsp + 0x68]
lea r9, [rsp + 0x70]
xor r8d, r8d
mov dword [rbp - 0x10], 0xf003f
lea rdx, [rbp - 0x40]
mov qword [rbp - 0xc], 2
mov dword [rbp + 0xc], r13d
mov dword [rbp + 0x10], 2
lea ecx, [r8 + 2]
mov qword [rbp + 0x18], rax
call qword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
je 0x18003a9ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.SetEntriesInAcl_Error__u_n
call fcn.18003c7c0
jmp 0x18003ab77
mov edx, 0x28
lea ecx, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
jne 0x18003a9e9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.LocalAlloc_Error__u_n
call fcn.18003c7c0
jmp 0x18003ab77
mov edx, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x18003aa14
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.InitializeSecurityDescriptor_Error__u_n
call fcn.18003c7c0
jmp 0x18003ab77
mov r8, qword [rsp + 0x70]
xor r9d, r9d
mov rcx, rdi
lea edx, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x18003aa46
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.SetSecurityDescriptorDacl_Error__u_n
call fcn.18003c7c0
jmp 0x18003ab77
lea rax, [rsp + 0x78]
mov dword [rbp - 0x78], 0x18
mov r9d, 0x20119
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rbp - 0x70], rdi
mov rdx, r14
mov dword [rbp - 0x68], r13d
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x18003ab77
xor edx, edx
lea rcx, [rbp + 0x20]
mov r8d, 0x100
call fcn.180113150
mov rcx, qword [rsp + 0x78]
lea rax, [rbp - 0x50]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x4c]
lea rax, [rbp + 0x20]
mov dword [rbp - 0x50], 0x100
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x18003ab77
mov qword [rsp + 0x40], r13
lea rax, [rbp - 0x80]
mov qword [rsp + 0x38], rax
xor r9d, r9d
lea rax, [rbp - 0x78]
xor r8d, r8d
mov qword [rsp + 0x30], rax
mov rdx, r12
mov dword [rsp + 0x28], 0x20106
mov rcx, r15
mov dword [rsp + 0x20], r13d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x18003ab07
mov ebx, 5
jmp 0x18003ab77
mov eax, dword [rbp - 0x50]
lea rdx, [0x180154cbc]
mov r9d, dword [rbp - 0x4c]
xor r8d, r8d
mov rcx, qword [rbp - 0x80]
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
je 0x18003ab3c
mov ebx, 5
jmp 0x18003ab77
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.RegDeleteKeyEx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, r14
mov rcx, rsi
test rax, rax
je 0x18003ab71
xor r9d, r9d
mov r8d, 0x2011f
call rax
jmp 0x18003ab77
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x18003ab87
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x18003ab97
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x18003aba7
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x18003abb5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x18003abc5
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x18003abd4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.18010faf0
add rsp, 0x238
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret