Function at 0x1400431c0
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 [0x140063020]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r14, qword [0x14008a700]
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, str.._ndis
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [r14 + 0x10], rax
cmp rax, 0xffffffffffffffff
je 0x140043609
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 0x140043609
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, [0x140058c70]
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 0x140043338
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 0x1400433a4
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 0x140043395
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 0x14004339a
mov esi, 1
mov rcx, qword [rbp - 0x79]
call qword [sym.imp.ntdll.dll_ZwClose]
test bl, bl
je 0x140043609
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov eax, eax
mov qword [rbp - 0x59], rax
mov dword [rbp - 0x69], 0x60004
lea rax, [0x140058c78]
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 0x14004344e
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 0x1400434b2
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 0x1400434a8
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 0x140043609
mov rbx, qword [r14 + 0x18]
xor r8d, r8d
lea edx, [r8 + 0x63]
mov rcx, r14
call fcn.140043650
cmp qword [r14 + 0x18], rbx
jne 0x140043605
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 0x140043601
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 0x140043565
cmp eax, 0x80000005
jne 0x14004356e
mov r15d, dword [rbp - 0x19]
test r15d, r15d
jne 0x140043583
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.ntdll.dll_ZwClose]
mov qword [r14 + 0x18], rdi
mov al, 1
jmp 0x14004360b
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 0x1400435ee
cmp r15d, dword [rbp - 0x79]
jne 0x1400435ee
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 0x14004360b
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 0x14004360b
xor al, al
movabs rcx, 0xff00ff00ff00ff00
xor r12, rcx
mov qword [r13], r12
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.14004f500
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