Function at 0x140074cf0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x460
mov rax, qword [0x14013d0a8]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov r8d, dword [0x140143e58]
mov rdi, rcx
mov rax, qword gs:[0x58]
mov rsi, rdx
mov ecx, reloc.OLEAUT32.dll_SafeArrayLock
mov rax, qword [rax + r8*8]
mov r8d, dword [rcx + rax]
cmp dword [0x140142bc0], r8d
jg 0x14007521b
lea rcx, [0x140142bb8]
mov qword [rsp + 0x490], rbx
call fcn.1400b0850
test eax, eax
jne 0x140074df4
lea rdx, str._unknown_
lea rcx, [0x140142bb8]
call fcn.1400b01a0
xor ebx, ebx
mov qword [rsp + 0x40], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x40]
lea edx, [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140074df4
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
mov r9d, 0x400
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x50]
lea edx, [rbx + 1]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x140074de9
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], rbx
call sub.ADVAPI32.dll_ConvertSidToStringSidW
test eax, eax
je 0x140074de9
mov rdx, qword [rsp + 0x30]
lea rcx, [0x140142bb8]
call fcn.1400b01a0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp word [0x140142bc8], 0
mov ebp, 4
jne 0x140074ea8
lea rax, [rsp + 0x40]
xor r8d, r8d
lea r9d, [rbp - 3]
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMSelect
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140074e88
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rdx, str.Current
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0xffffffff
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x38], ebp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r9d, dword [rsp + 0x30]
cmp r9d, 0xffffffff
je 0x140074e88
lea r8, str._03d
mov edx, ebp
lea rcx, [0x140142bc8]
call fcn.14006bcc0
cmp word [0x140142bc8], 0
jne 0x140074ea8
lea r8, [0x140107824]
mov rdx, rbp
lea rcx, [0x140142bc8]
call fcn.1400ce79c
cmp word [rsi], 0xa
jbe 0x1400751f8
mov r8d, 0xa
lea rdx, [0x140107828]
mov rcx, rdi
call fcn.1400cef68
test eax, eax
jne 0x1400751f8
cmp word [rsi], 0x11
jb 0x14007505d
lea r8d, [rax + 7]
lea rdx, str.MACHINE
lea rcx, [rdi + 0x14]
call fcn.1400cef68
test eax, eax
jne 0x14007505d
cmp word [rsi], 0x44
jb 0x140074f46
lea r8d, [rax + 0x33]
lea rdx, str.SYSTEMCURRENTCONTROLSETHARDWARE_PROFILESCURRENT
lea rcx, [rdi + 0x22]
call fcn.1400cef68
test eax, eax
jne 0x140074f46
movabs rax, 0x430043004b0048
lea rdx, [rdi + 0x88]
mov qword [rdi], rax
lea rcx, [rdi + 8]
movzx r8d, word [rsi]
lea r8, [r8*2 - 0x88]
call fcn.1400b9c80
mov eax, 0xffc0
jmp 0x1400751f5
cmp word [rsi], 0x22
jb 0x140074f96
mov r8d, SafeArrayLock
lea rdx, str.SOFTWARECLASSES
lea rcx, [rdi + 0x22]
call fcn.1400cef68
test eax, eax
jne 0x140074f96
movabs rax, 0x520043004b0048
lea rdx, [rdi + 0x44]
mov qword [rdi], rax
lea rcx, [rdi + 8]
movzx r8d, word [rsi]
lea r8, [r8*2 - 0x44]
call fcn.1400b9c80
mov eax, 0xffe2
jmp 0x1400751f5
cmp word [rsi], 0x26
jb 0x14007502d
mov r8d, SafeArrayLock
lea rdx, str.SYSTEMControlSet
lea rcx, [rdi + 0x22]
call fcn.1400cef68
test eax, eax
jne 0x14007502d
lea rcx, [rdi + 0x46]
lea r8d, [rax + 3]
lea rdx, [0x140142bc8]
call fcn.1400cf5b8
test eax, eax
jne 0x14007502d
movups xmm0, xmmword [str.HKLMSystemCurrentControlSet]
lea rdx, [rdi + 0x4c]
lea rcx, [rdi + 0x3a]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [0x140107918]
movups xmmword [rdi + 0x10], xmm1
movups xmm0, xmmword [0x140107928]
movups xmmword [rdi + 0x20], xmm0
movsd xmm1, qword [0x140107938]
movsd qword [rdi + 0x30], xmm1
movzx eax, word [0x140107940]
mov word [rdi + 0x38], ax
movzx r8d, word [rsi]
lea r8, [r8*2 - 0x4c]
call fcn.1400b9c80
mov eax, 0xfff7
jmp 0x1400751f5
movabs rax, 0x4d004c004b0048
lea rcx, [rdi + 8]
mov qword [rdi], rax
lea rdx, [rdi + 0x22]
movzx r8d, word [rsi]
lea r8, [r8*2 - 0x22]
call fcn.1400b9c80
mov eax, 0xfff3
jmp 0x1400751f5
cmp word [rsi], 0xe
jb 0x1400751f8
mov r8, rbp
lea rdx, str.USER
lea rcx, [rdi + 0x14]
call fcn.1400cef68
test eax, eax
jne 0x1400751f8
lea rcx, [0x140142bb8]
call fcn.1400b0850
mov ecx, eax
movzx eax, word [rsi]
add rcx, 0xf
cmp rax, rcx
jb 0x1400751c4
cmp word [rdi + 0x1c], 0x5c
jne 0x1400751c4
lea rcx, [0x140142bb8]
call fcn.1400b0850
lea rcx, [0x140142bb8]
mov ebx, eax
call fcn.1400b0200
lea rcx, [rdi + 0x1e]
mov r8d, ebx
mov rdx, rax
call fcn.1400cef68
test eax, eax
jne 0x1400751c4
lea rcx, [0x140142bb8]
call fcn.1400b0850
mov edx, eax
movzx eax, word [rsi]
add rdx, 0x17
cmp rax, rdx
jb 0x140075186
lea rcx, [0x140142bb8]
call fcn.1400b0850
mov eax, eax
lea rdx, str._CLASSES
add rax, 0xf
mov r8d, 8
lea rcx, [rdi + rax*2]
call fcn.1400cef68
test eax, eax
jne 0x140075186
lea rcx, [0x140142bb8]
call fcn.1400b0850
movups xmm0, xmmword [str.HKCUSoftwareClasses]
mov ebx, eax
lea rcx, [rdi + 0x2a]
add rbx, 0x17
movups xmmword [rdi], xmm0
movups xmm1, xmmword [0x140107980]
lea rdx, [rdi + rbx*2]
movups xmmword [rdi + 0x10], xmm1
movsd xmm0, qword [0x140107990]
movsd qword [rdi + 0x20], xmm0
movzx eax, word [reloc.WS2_32.dll_WSAStartup]
mov word [rdi + 0x28], ax
movzx r8d, word [rsi]
sub r8, rbx
add r8, r8
call fcn.1400b9c80
mov eax, SafeArrayUnaccessData
sub ax, bx
jmp 0x1400751f5
lea rcx, [0x140142bb8]
call fcn.1400b0850
mov ebx, eax
lea rcx, [rdi + 8]
movabs rax, 0x550043004b0048
add rbx, 0xf
mov qword [rdi], rax
movzx r8d, word [rsi]
sub r8, rbx
add r8, r8
lea rdx, [rdi + rbx*2]
call fcn.1400b9c80
sub bp, bx
add word [rsi], bp
jmp 0x1400751f8
mov eax, dword [0x1400ffdf0]
lea rdx, [rdi + 0x1c]
mov dword [rdi], eax
lea rcx, [rdi + 6]
movzx eax, word [0x1400ffdf4]
mov word [rdi + 4], ax
movzx r8d, word [rsi]
lea r8, [r8*2 - 0x1c]
call fcn.1400b9c80
mov eax, 0xfff5
add word [rsi], ax
mov rbx, qword [rsp + 0x490]
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.1400b5660
add rsp, 0x460
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x140142bc0]
call fcn.1400b5b50
cmp dword [0x140142bc0], 0xffffffff
jne 0x140074d3d
lea rcx, [0x1400ed530]
call fcn.1400b59b0
lea rcx, [0x140142bc0]
call fcn.1400b5af0
jmp 0x140074d3d