Function at 0x140047c70
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x100
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x14006d040]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r14, qword [0x140093a68]
xorps xmm0, xmm0
movups xmmword [rbp - 9], xmm0
lea r13, [rbp + 0x5f]
movabs rax, 0xff00ff00ff00ff00
mov qword [rbp - 1], rax
mov qword [rbp + 7], r13
mov r12, qword [r13]
xor r12, rax
mov qword [rbp - 9], r12
xor edi, edi
mov qword [r13], rdi
mov dword [r14 + 0x20], edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [rdi + 3]
lea rcx, [0x140063288]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [r14 + 0x10], rax
cmp rax, 0xffffffffffffffff
je 0x1400480b9
lea edx, [rdi + 0x20]
xor ecx, ecx
lea r9d, [rdi + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea rsi, [r14 + 8]
mov qword [rsi], rax
test rax, rax
je 0x1400480b9
mov dword [rbp - 0x69], 0x40003e
lea rax, str.RegistryMachineSOFTWARE_ndis
mov qword [rbp - 0x61], rax
mov dword [rbp - 0x59], 0x80006
lea r15d, [rdi + 8]
lea rax, [0x1400632e0]
mov qword [rbp - 0x51], rax
movaps xmm0, xmmword [rbp - 0x59]
movdqa xmmword [rsp + 0x40], xmm0
movaps xmm6, xmmword [rbp - 0x69]
movdqa xmmword [rbp - 0x69], xmm6
xor bl, bl
mov dword [rbp - 0x49], 0x30
mov qword [rbp - 0x41], rdi
mov dword [rbp - 0x31], 0x240
lea rax, [rbp - 0x69]
mov qword [rbp - 0x39], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x29], xmm0
lea r8, [rbp - 0x49]
mov edx, 0xf003f
lea rcx, [rbp - 0x79]
call qword [sym.imp.ntdll.dll_ZwOpenKey]
test eax, eax
js 0x140047de8
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rsi
lea r9d, [rdi + 0xb]
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, qword [rbp - 0x79]
call qword [sym.imp.ntdll.dll_ZwSetValueKey]
mov ebx, eax
mov rcx, qword [rbp - 0x79]
call qword [sym.imp.ntdll.dll_ZwClose]
shr ebx, 0x1f
xor bl, 1
lea esi, [rdi + 1]
jmp 0x140047e54
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
lea rax, [rbp - 0x69]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rbp - 0x49]
mov edx, 0xf003f
lea rcx, [rbp - 0x79]
call qword [sym.imp.ntdll.dll_ZwCreateKey]
test eax, eax
js 0x140047e45
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rsi
mov r9d, 0xb
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, qword [rbp - 0x79]
call qword [sym.imp.ntdll.dll_ZwSetValueKey]
movzx ebx, bl
test eax, eax
mov esi, 1
cmovns ebx, esi
jmp 0x140047e4a
mov esi, 1
mov rcx, qword [rbp - 0x79]
call qword [sym.imp.ntdll.dll_ZwClose]
test bl, bl
je 0x1400480b9
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov eax, eax
mov qword [rbp - 0x59], rax
mov dword [rbp - 0x69], 0x60004
lea rax, [0x1400632e8]
mov qword [rbp - 0x61], rax
movaps xmm0, xmmword [rbp - 0x69]
movdqa xmmword [rbp - 0x69], xmm0
movdqa xmmword [rsp + 0x40], xmm6
xor bl, bl
mov dword [rbp - 0x49], 0x30
mov qword [rbp - 0x41], rdi
mov dword [rbp - 0x31], 0x240
lea rax, [rsp + 0x40]
mov qword [rbp - 0x39], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x29], xmm0
lea r8, [rbp - 0x49]
mov edx, 0xf003f
lea rcx, [rbp - 0x79]
call qword [sym.imp.ntdll.dll_ZwOpenKey]
test eax, eax
js 0x140047efe
mov dword [rsp + 0x28], r15d
lea rax, [rbp - 0x59]
mov qword [rsp + 0x20], rax
mov r9d, 0xb
xor r8d, r8d
lea rdx, [rbp - 0x69]
mov rcx, qword [rbp - 0x79]
call qword [sym.imp.ntdll.dll_ZwSetValueKey]
mov ebx, eax
mov rcx, qword [rbp - 0x79]
call qword [sym.imp.ntdll.dll_ZwClose]
shr ebx, 0x1f
xor bl, 1
jmp 0x140047f62
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rbp - 0x49]
mov edx, 0xf003f
lea rcx, [rbp - 0x79]
call qword [sym.imp.ntdll.dll_ZwCreateKey]
test eax, eax
js 0x140047f58
mov dword [rsp + 0x28], r15d
lea rax, [rbp - 0x59]
mov qword [rsp + 0x20], rax
mov r9d, 0xb
xor r8d, r8d
lea rdx, [rbp - 0x69]
mov rcx, qword [rbp - 0x79]
call qword [sym.imp.ntdll.dll_ZwSetValueKey]
movzx ebx, bl
test eax, eax
cmovns ebx, esi
mov rcx, qword [rbp - 0x79]
call qword [sym.imp.ntdll.dll_ZwClose]
test bl, bl
je 0x1400480b9
mov rbx, qword [r14 + 0x18]
xor r8d, r8d
lea edx, [r8 + 0x63]
mov rcx, r14
call fcn.140048100
cmp qword [r14 + 0x18], rbx
jne 0x1400480b5
mov dword [rbp - 0x69], 0xa0008
lea rax, str.xxxx
mov qword [rbp - 0x61], rax
movaps xmm0, xmmword [rbp - 0x69]
movdqa xmmword [rsp + 0x40], xmm0
movdqa xmmword [rbp - 9], xmm6
mov dword [rbp - 0x49], 0x30
mov qword [rbp - 0x41], rdi
mov dword [rbp - 0x31], 0x240
lea rax, [rbp - 9]
mov qword [rbp - 0x39], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x29], xmm0
lea r8, [rbp - 0x49]
mov edx, 0xf003f
lea rcx, [rbp - 0x69]
call qword [sym.imp.ntdll.dll_ZwOpenKey]
test eax, eax
js 0x1400480b1
lea rax, [rbp - 0x19]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
xor r9d, r9d
mov r8d, esi
lea rdx, [rsp + 0x40]
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.ntdll.dll_ZwQueryValueKey]
cmp eax, 0xc0000023
je 0x140048015
cmp eax, 0x80000005
jne 0x14004801e
mov r15d, dword [rbp - 0x19]
test r15d, r15d
jne 0x140048033
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.ntdll.dll_ZwClose]
mov qword [r14 + 0x18], rdi
mov al, 1
jmp 0x1400480bb
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
mov r8, r15
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
lea rax, [rbp - 0x79]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
mov r9, rsi
mov r8d, 1
lea rdx, [rsp + 0x40]
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.ntdll.dll_ZwQueryValueKey]
test eax, eax
js 0x14004809e
cmp r15d, dword [rbp - 0x79]
jne 0x14004809e
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.ntdll.dll_ZwClose]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [rsi + 8]
mov rdi, qword [rax + rsi]
mov qword [r14 + 0x18], rdi
mov al, 1
jmp 0x1400480bb
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.ntdll.dll_ZwClose]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [r14 + 0x18], rdi
mov al, 1
jmp 0x1400480bb
xor al, al
movabs rcx, 0xff00ff00ff00ff00
xor r12, rcx
mov qword [r13], r12
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140059aa0
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret