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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x1401dd340]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov dword [rcx + 0x20], edx
xor edi, edi
mov qword [rsp + 0x30], rdi
mov r14, rcx
mov dword [rsp + 0x28], edi
lea rcx, str..PEAuth
xor r9d, r9d
mov dword [rsp + 0x20], 3
mov edx, 0xc0000000
mov r8d, 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [r14 + 0x10], rax
cmp rax, 0xffffffffffffffff
je 0x14004e577
mov edx, 0x20
xor ecx, ecx
mov r9d, 4
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [r14 + 8], rax
lea r15, [r14 + 8]
test rax, rax
je 0x14004e577
mov dword [rbp - 0x39], 0x460044
lea rax, str.RegistryMachineSOFTWAREucflash
mov qword [rbp - 0x31], rax
lea r8, [rbp - 0x19]
movaps xmm6, xmmword [rbp - 0x39]
lea rax, [0x140085b98]
mov qword [rbp - 0x21], rax
lea rcx, [rbp - 0x49]
mov dword [rbp - 0x29], 0x60004
lea rax, [rbp - 0x39]
movaps xmm0, xmmword [rbp - 0x29]
mov edx, 0xf003f
movdqa xmmword [rbp - 0x69], xmm0
xor bl, bl
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x39], xmm6
movdqu xmmword [rbp + 7], xmm0
mov dword [rbp - 0x19], 0x30
mov qword [rbp - 0x11], rdi
mov dword [rbp - 1], 0x240
mov qword [rbp - 9], rax
call qword [sym.imp.ntdll.dll_ZwOpenKey]
mov r13d, 1
test eax, eax
js 0x14004e2b1
mov rcx, qword [rbp - 0x49]
lea rdx, [rbp - 0x69]
mov esi, 8
mov r9d, 0xb
mov dword [rsp + 0x28], esi
xor r8d, r8d
mov qword [rsp + 0x20], r15
call qword [sym.imp.ntdll.dll_ZwSetValueKey]
mov rcx, qword [rbp - 0x49]
mov ebx, eax
call qword [sym.imp.ntdll.dll_ZwClose]
shr ebx, 0x1f
xor bl, r13b
jmp 0x14004e315
mov qword [rsp + 0x30], rdi
lea rax, [rbp - 0x39]
mov dword [rsp + 0x28], edi
lea r8, [rbp - 0x19]
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov edx, 0xf003f
lea rcx, [rbp - 0x49]
call qword [sym.imp.ntdll.dll_ZwCreateKey]
mov esi, 8
test eax, eax
js 0x14004e30b
mov rcx, qword [rbp - 0x49]
lea rdx, [rbp - 0x69]
mov dword [rsp + 0x28], esi
mov r9d, 0xb
xor r8d, r8d
mov qword [rsp + 0x20], r15
call qword [sym.imp.ntdll.dll_ZwSetValueKey]
test eax, eax
movzx ebx, bl
cmovns ebx, r13d
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.ntdll.dll_ZwClose]
test bl, bl
je 0x14004e577
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rbp - 0x39], 0x40002
lea r8, [rbp - 0x19]
mov eax, eax
lea rcx, [rbp - 0x49]
mov qword [rbp - 0x29], rax
mov edx, 0xf003f
lea rax, [0x140085ba0]
movdqa xmmword [rbp - 0x69], xmm6
mov qword [rbp - 0x31], rax
xor bl, bl
movaps xmm0, xmmword [rbp - 0x39]
lea rax, [rbp - 0x69]
movdqa xmmword [rbp - 0x39], xmm0
xorps xmm0, xmm0
movdqu xmmword [rbp + 7], xmm0
mov dword [rbp - 0x19], 0x30
mov qword [rbp - 0x11], rdi
mov dword [rbp - 1], 0x240
mov qword [rbp - 9], rax
call qword [sym.imp.ntdll.dll_ZwOpenKey]
test eax, eax
js 0x14004e3bc
mov rcx, qword [rbp - 0x49]
lea rax, [rbp - 0x29]
mov dword [rsp + 0x28], esi
lea rdx, [rbp - 0x39]
mov r9d, 0xb
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ntdll.dll_ZwSetValueKey]
mov rcx, qword [rbp - 0x49]
mov ebx, eax
call qword [sym.imp.ntdll.dll_ZwClose]
shr ebx, 0x1f
xor bl, r13b
jmp 0x14004e41f
mov qword [rsp + 0x30], rdi
lea rax, [rbp - 0x69]
mov dword [rsp + 0x28], edi
lea r8, [rbp - 0x19]
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov edx, 0xf003f
lea rcx, [rbp - 0x49]
call qword [sym.imp.ntdll.dll_ZwCreateKey]
test eax, eax
js 0x14004e415
mov rcx, qword [rbp - 0x49]
lea rax, [rbp - 0x29]
mov dword [rsp + 0x28], esi
lea rdx, [rbp - 0x39]
mov r9d, 0xb
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ntdll.dll_ZwSetValueKey]
test eax, eax
movzx ebx, bl
cmovns ebx, r13d
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.ntdll.dll_ZwClose]
test bl, bl
je 0x14004e577
mov rbx, qword [r14 + 0x18]
xor r8d, r8d
mov edx, 0x63
mov rcx, r14
call fcn.14004ed60
cmp qword [r14 + 0x18], rbx
jne 0x14004e571
lea rax, [0x140085ba8]
mov dword [rbp - 0x39], 0x80006
mov qword [rbp - 0x31], rax
lea r8, [rbp - 0x19]
movaps xmm0, xmmword [rbp - 0x39]
lea rax, [rbp - 0x59]
movdqa xmmword [rbp - 0x69], xmm0
lea rcx, [rbp - 0x39]
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x59], xmm6
mov edx, 0xf003f
mov dword [rbp - 0x19], 0x30
movdqu xmmword [rbp + 7], xmm0
mov qword [rbp - 0x11], rdi
mov dword [rbp - 1], 0x240
mov qword [rbp - 9], rax
call qword [sym.imp.ntdll.dll_ZwOpenKey]
test eax, eax
js 0x14004e56d
mov rcx, qword [rbp - 0x39]
lea rax, [rbp + 0x17]
mov qword [rsp + 0x28], rax
lea rdx, [rbp - 0x69]
xor r9d, r9d
mov dword [rsp + 0x20], edi
mov r8d, r13d
call qword [sym.imp.ntdll.dll_ZwQueryValueKey]
cmp eax, 0xc0000023
je 0x14004e4d1
cmp eax, 0x80000005
jne 0x14004e4da
mov r15d, dword [rbp + 0x17]
test r15d, r15d
jne 0x14004e4f1
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.ntdll.dll_ZwClose]
movzx eax, r13b
mov qword [r14 + 0x18], rdi
jmp 0x14004e579
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, r15
xor edx, edx
mov rcx, rax
mov rsi, rax
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rbp - 0x39]
lea rax, [rbp - 0x49]
mov qword [rsp + 0x28], rax
lea rdx, [rbp - 0x69]
mov r9, rsi
mov dword [rsp + 0x20], r15d
mov r8d, r13d
call qword [sym.imp.ntdll.dll_ZwQueryValueKey]
test eax, eax
js 0x14004e55a
cmp r15d, dword [rbp - 0x49]
jne 0x14004e55a
mov rcx, qword [rbp - 0x39]
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]
movzx eax, r13b
mov qword [r14 + 0x18], rdi
jmp 0x14004e579
mov rcx, qword [rbp - 0x39]
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
movzx eax, r13b
jmp 0x14004e579
xor al, al
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.14005c760
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret