Function at 0x14004b920
Capabilities:
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 - 0x1f]
sub rsp, 0xa8
mov dword [rcx + 0x20], edx
xor edi, edi
movzx edx, word [0x1400ab4c0]
mov r15, rcx
movzx eax, byte [0x1400ab4c2]
lea rcx, [rbp - 0x49]
movsd xmm0, qword [0x1400ab4b8]
xor al, 0x3a
movsd qword [rbp - 0x49], xmm0
lea r8d, [rdi + 3]
xor byte [rbp - 0x48], 0x31
xor r9d, r9d
xor byte [rbp - 0x47], 0x32
xor byte [rbp - 0x46], 0x33
xor byte [rbp - 0x45], 0x34
xor byte [rbp - 0x44], 0x35
xor byte [rbp - 0x43], 0x36
xor byte [rbp - 0x42], 0x37
mov word [rbp - 0x41], dx
xor dl, 0x38
xor byte [rbp - 0x40], 0x39
mov byte [rbp - 0x41], dl
mov edx, 0xc0000000
mov qword [rsp + 0x30], rdi
movaps xmmword [rsp + 0x90], xmm6
mov dword [rsp + 0x28], edi
mov byte [rbp - 0x49], 0x5c
mov byte [rbp - 0x3f], al
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [r15 + 0x10], rax
cmp rax, 0xffffffffffffffff
je 0x14004bd62
lea edx, [rdi + 0x20]
xor ecx, ecx
lea r9d, [rdi + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [r15 + 8], rax
lea rsi, [r15 + 8]
test rax, rax
je 0x14004bd62
mov dword [rbp - 0x49], 0x80006
lea rax, str.RegistryMachineSOFTWAREucflash
mov qword [rbp - 0x31], rax
lea r8, [rbp - 0x29]
mov dword [rbp - 0x39], 0x460044
lea rax, [0x1400ab518]
movaps xmm6, xmmword [rbp - 0x39]
lea rcx, [rbp + 0x67]
mov qword [rbp - 0x41], rax
lea r14d, [rdi + 8]
movaps xmm0, xmmword [rbp - 0x49]
lea rax, [rbp - 0x39]
movdqa xmmword [rbp - 0x49], xmm0
mov edx, 0xf003f
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x39], xmm6
movdqu xmmword [rbp - 9], xmm0
xor bl, bl
mov dword [rbp - 0x29], Ordinal_50
mov qword [rbp - 0x21], rdi
mov dword [rbp - 0x11], 0x240
mov qword [rbp - 0x19], rax
call qword [sym.imp.ntdll.dll_ZwOpenKey]
lea r12d, [rdi + 1]
test eax, eax
js 0x14004ba9e
mov rcx, qword [rbp + 0x67]
lea r9d, [rdi + 0xb]
mov dword [rsp + 0x28], r14d
lea rdx, [rbp - 0x49]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ntdll.dll_ZwSetValueKey]
mov rcx, qword [rbp + 0x67]
mov ebx, eax
call qword [sym.imp.ntdll.dll_ZwClose]
shr ebx, 0x1f
xor bl, r12b
jmp 0x14004bafe
mov qword [rsp + 0x30], rdi
lea rax, [rbp - 0x39]
mov dword [rsp + 0x28], edi
lea r8, [rbp - 0x29]
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov edx, 0xf003f
lea rcx, [rbp + 0x67]
call qword [sym.imp.ntdll.dll_ZwCreateKey]
test eax, eax
js 0x14004baf4
mov rcx, qword [rbp + 0x67]
lea rdx, [rbp - 0x49]
mov dword [rsp + 0x28], r14d
mov r9d, ntohl
xor r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ntdll.dll_ZwSetValueKey]
test eax, eax
movzx ebx, bl
cmovns ebx, r12d
mov rcx, qword [rbp + 0x67]
call qword [sym.imp.ntdll.dll_ZwClose]
test bl, bl
je 0x14004bd62
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rbp - 0x39], 0x60004
lea r8, [rbp - 0x29]
mov eax, eax
lea rcx, [rbp + 0x67]
mov qword [rbp + 0x7f], rax
mov edx, 0xf003f
lea rax, [0x1400ab520]
mov dword [rbp - 0x29], Ordinal_50
mov qword [rbp - 0x31], rax
xor bl, bl
movaps xmm0, xmmword [rbp - 0x39]
lea rax, [rbp - 0x39]
movdqa xmmword [rbp - 0x49], xmm0
xorps xmm0, xmm0
movdqu xmmword [rbp - 9], xmm0
mov qword [rbp - 0x21], rdi
movdqa xmmword [rbp - 0x39], xmm6
mov dword [rbp - 0x11], 0x240
mov qword [rbp - 0x19], rax
call qword [sym.imp.ntdll.dll_ZwOpenKey]
test eax, eax
js 0x14004bba6
mov rcx, qword [rbp + 0x67]
lea rax, [rbp + 0x7f]
mov dword [rsp + 0x28], r14d
lea rdx, [rbp - 0x49]
mov r9d, ntohl
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ntdll.dll_ZwSetValueKey]
mov rcx, qword [rbp + 0x67]
mov ebx, eax
call qword [sym.imp.ntdll.dll_ZwClose]
shr ebx, 0x1f
xor bl, r12b
jmp 0x14004bc0a
mov qword [rsp + 0x30], rdi
lea rax, [rbp - 0x39]
mov dword [rsp + 0x28], edi
lea r8, [rbp - 0x29]
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov edx, 0xf003f
lea rcx, [rbp + 0x67]
call qword [sym.imp.ntdll.dll_ZwCreateKey]
test eax, eax
js 0x14004bc00
mov rcx, qword [rbp + 0x67]
lea rax, [rbp + 0x7f]
mov dword [rsp + 0x28], r14d
lea rdx, [rbp - 0x49]
mov r9d, ntohl
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ntdll.dll_ZwSetValueKey]
test eax, eax
movzx ebx, bl
cmovns ebx, r12d
mov rcx, qword [rbp + 0x67]
call qword [sym.imp.ntdll.dll_ZwClose]
test bl, bl
je 0x14004bd62
mov rbx, qword [r15 + 0x18]
xor r8d, r8d
mov edx, 0x2327
mov rcx, r15
call fcn.14004c5c0
cmp qword [r15 + 0x18], rbx
jne 0x14004bd5c
mov dword [rbp - 0x39], 0xa0008
lea rax, str.xxxx
mov qword [rbp - 0x31], rax
lea r8, [rbp - 0x29]
movaps xmm0, xmmword [rbp - 0x39]
lea rax, [rbp - 0x49]
movdqa xmmword [rbp - 0x39], xmm0
lea rcx, [rbp + 0x77]
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x49], xmm6
mov edx, 0xf003f
mov dword [rbp - 0x29], Ordinal_50
movdqu xmmword [rbp - 9], xmm0
mov qword [rbp - 0x21], rdi
mov dword [rbp - 0x11], 0x240
mov qword [rbp - 0x19], rax
call qword [sym.imp.ntdll.dll_ZwOpenKey]
test eax, eax
js 0x14004bd58
mov rcx, qword [rbp + 0x77]
lea rax, [rbp + 0x6f]
mov qword [rsp + 0x28], rax
lea rdx, [rbp - 0x39]
xor r9d, r9d
mov dword [rsp + 0x20], edi
mov r8d, r12d
call qword [sym.imp.ntdll.dll_ZwQueryValueKey]
cmp eax, 0xc0000023
je 0x14004bcbc
cmp eax, 0x80000005
jne 0x14004bcc5
mov r14d, dword [rbp + 0x6f]
test r14d, r14d
jne 0x14004bcdc
mov rcx, qword [rbp + 0x77]
call qword [sym.imp.ntdll.dll_ZwClose]
movzx eax, r12b
mov qword [r15 + 0x18], rdi
jmp 0x14004bd64
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, r14
xor edx, edx
mov rcx, rax
mov rsi, rax
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rbp + 0x77]
lea rax, [rbp + 0x67]
mov qword [rsp + 0x28], rax
lea rdx, [rbp - 0x39]
mov r9, rsi
mov dword [rsp + 0x20], r14d
mov r8d, r12d
call qword [sym.imp.ntdll.dll_ZwQueryValueKey]
test eax, eax
js 0x14004bd45
cmp r14d, dword [rbp + 0x67]
jne 0x14004bd45
mov rcx, qword [rbp + 0x77]
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, r12b
mov qword [r15 + 0x18], rdi
jmp 0x14004bd64
mov rcx, qword [rbp + 0x77]
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 [r15 + 0x18], rdi
movzx eax, r12b
jmp 0x14004bd64
xor al, al
movaps xmm6, xmmword [rsp + 0x90]
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret