joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140056be9
Capabilities:
Query or enumerate registry value

Disassembly:
test r9, r9
je 0x140056d41
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x1402ee230]
xor rax, rsp
mov qword [rbp + 0x380], rax
movsxd rbx, dword [r9]
mov r14, rcx
mov r10, r8
mov rax, rdx
lea rcx, [rsp + 0x48]
mov r13, r9
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, rax
mov r9d, 1
mov rdx, r10
mov dword [rsp + 0x40], 0x104
mov dword [rsp + 0x44], 0x208
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140056d12
mov rdi, rbx
xor r12d, r12d
shl rdi, 4
add rdi, r14
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x44]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x60]
lea r8, [rbp + 0x170]
mov qword [rsp + 0x30], rax
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov edx, r12d
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x140056d01
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x60]
call fcn.140056290
test eax, eax
je 0x140056cef
xor esi, esi
test ebx, ebx
je 0x140056ce0
mov ecx, esi
lea rdx, [rsp + 0x50]
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
shl rcx, 4
add rcx, r14
call fcn.1401bf360
test eax, eax
je 0x140056cef
inc esi
cmp esi, ebx
jb 0x140056cbd
movups xmm0, xmmword [rsp + 0x50]
inc ebx
movdqu xmmword [rdi], xmm0
add rdi, 0x10
mov eax, 0x208
inc r12d
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x44], eax
jmp 0x140056d08
cmp eax, 0x103
je 0x140056d12
cmp r12d, 0xc
jl 0x140056c66
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [r13], ebx
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.1401be9b0
add rsp, 0x490
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140057048
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x20
mov rbx, rdx
mov esi, ecx
mov edi, 1
call qword [sym.imp.KERNEL32.dll_GetThreadLocale]
mov ecx, 0x3ff
mov r12d, eax
and ax, cx
cmp ax, 9
je 0x14005712b
call fcn.14005bf80
mov rbp, qword [rax + 0x18]
call fcn.14005bf80
cmp rbp, qword [rax + 0x10]
je 0x14005712b
lea edx, [rdi + 5]
movzx r9d, r12w
mov rcx, rbp
cmp rbx, rdx
jne 0x140057117
mov eax, esi
xor ebx, ebx
shr eax, 4
add ax, di
movzx r8d, ax
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
je 0x140057113
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbp, rax
test rax, rax
je 0x140057113
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r11, rax
test rax, rax
je 0x14005710a
and esi, 0xf
jle 0x140057103
mov ecx, esi
movzx eax, word [r11]
add eax, edi
sub rcx, rdi
cdqe
lea r11, [r11 + rax*2]
jne 0x1400570f2
cmp word [r11], bx
cmovne ebx, edi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov edi, ebx
jmp 0x14005712b
movzx r8d, si
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
neg rax
sbb ecx, ecx
and edi, ecx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret

Function at 0x14005751c
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rsi, rdx
mov rdx, qword [rdx]
lea rax, [rsp + 0x30]
mov rdi, r8
mov dword [rsp + 0x78], r9d
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140057595
mov rdx, qword [rdi]
mov rcx, qword [rsp + 0x30]
mov eax, 4
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
lea r9, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140057595
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rsi]
mov ebx, dword [rsp + 0x78]
sub rdx, 0x18
or esi, 0xffffffff
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x1400575b9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rdi]
mov ecx, esi
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ecx
add ecx, esi
test ecx, ecx
jg 0x1400575d7
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, ebx
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400578dc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x20
mov r13, r8
mov esi, edx
mov rdi, rcx
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetThreadLocale]
lea r14d, [rbx + 1]
mov ebp, eax
mov eax, esi
lea edx, [rbx + 6]
shr eax, 4
movzx r9d, bp
mov rcx, rdi
add ax, r14w
movzx r12d, ax
mov r8d, r12d
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
jne 0x140057954
mov r9d, 0x400
cmp bp, r9w
je 0x1400579b2
lea edx, [rbx + 6]
mov r8d, r12d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
je 0x1400579b2
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
je 0x1400579b2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rax
test rax, rax
je 0x1400579a9
and esi, 0xf
jle 0x140057991
mov ecx, esi
movzx eax, word [rdx]
add eax, r14d
sub rcx, r14
cdqe
lea rdx, [rdx + rax*2]
jne 0x140057980
cmp word [rdx], bx
je 0x1400579a9
movzx r8d, word [rdx]
mov rcx, r13
add rdx, 2
call fcn.140002104
mov bl, r14b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov al, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
pop r13
pop r12
ret

Function at 0x140057aa8
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
xor ebx, ebx
mov rdi, rdx
mov rbp, rcx
cmp qword [rdx + 8], rbx
jne 0x140057ad2
lea eax, [rbx + 1]
jmp 0x140057b92
mov rcx, 0xffffffffffffffff
mov eax, reloc.OLEAUT32.dll_SafeArrayGetDim
mul qword [rdx + 8]
cmovo rax, rcx
mov rcx, rax
call fcn.14005a624
mov rsi, rax
test rax, rax
je 0x140057b92
mov rcx, qword [rdi]
mov rax, qword [rcx]
cmp rax, rcx
je 0x140057b1c
mov rcx, rsi
movups xmm0, xmmword [rax + 0x10]
movdqu xmmword [rcx], xmm0
mov rax, qword [rax]
add rcx, 0x10
cmp rax, qword [rdi]
jne 0x140057b08
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x68]
lea rdx, str.SOFTWARENVIDIA_CorporationNVControlPanel2Client
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140057b88
mov rax, qword [rdi + 8]
mov rcx, qword [rsp + 0x68]
mov r9d, 3
shl eax, 4
xor r8d, r8d
mov rdx, rbp
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140057b88
lea ebx, [rax + 1]
mov rcx, rsi
call fcn.14005a61c
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x140057ba8
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
mov rbp, rsp
sub rsp, 0x30
xor edi, edi
mov rsi, rdx
mov r12, rcx
cmp qword [rdx + 8], rdi
je 0x140057bed
mov rax, qword [rdx]
mov rcx, qword [rax]
mov qword [rax], rax
mov rax, qword [rdx]
mov qword [rax + 8], rax
mov qword [rdx + 8], rdi
cmp rcx, qword [rdx]
je 0x140057bed
mov rbx, qword [rcx]
call fcn.14005a61c
mov rcx, rbx
cmp rbx, qword [rsi]
jne 0x140057bdd
lea rax, [rbp + 0x48]
lea rdx, str.SOFTWARENVIDIA_CorporationNVControlPanel2Client
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov dword [rbp + 0x38], edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140057d0c
mov rcx, qword [rbp + 0x48]
lea rax, [rbp + 0x38]
lea r9, [rbp + 0x40]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, r12
mov qword [rsp + 0x20], rdi
mov dword [rbp + 0x40], 3
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140057d0c
cmp dword [rbp + 0x38], edi
je 0x140057d0c
mov ecx, dword [rbp + 0x38]
call fcn.14005a624
mov rcx, qword [rbp + 0x48]
lea r9, [rbp + 0x40]
mov rbx, rax
lea rax, [rbp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, r12
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140057d04
cmp dword [rbp + 0x38], 0x10
jb 0x140057ce8
mov r12, qword [rsi]
mov r9d, edi
mov rcx, rsi
mov r8, qword [r12 + 8]
shl r9, 4
mov rdx, r12
add r9, rbx
call fcn.140006868
mov rdx, qword [rsi + 8]
movabs rcx, 0xffffffffffffffe
sub rcx, rdx
cmp rcx, 1
jb 0x140057cf7
lea rcx, [rdx + 1]
inc edi
mov qword [rsi + 8], rcx
mov qword [r12 + 8], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rax
mov eax, dword [rbp + 0x38]
lea ecx, [rdi + 1]
shl rcx, 4
cmp rcx, rax
jbe 0x140057c8f
mov rcx, rbx
call fcn.14005a61c
mov eax, 1
jmp 0x140057d0e
lea rcx, [0x140222910]
call fcn.1401e332c
int3
mov rcx, rbx
call fcn.14005a61c
xor eax, eax
add rsp, 0x30
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x140058544
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x1402ee230]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rcx
xor edi, edi
lea rcx, [rsp + 0x42]
mov dword [rsp + 0x30], edi
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x40], di
call fcn.1401bf0f0
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x30]
lea r8, str.InstalledDisplayServers
lea rdx, str.SOFTWARENVIDIA_CorporationGlobalNVTweak
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x34], 0x208
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x1400585d6
lea rdx, [rsp + 0x40]
cmp dword [rsp + 0x34], edi
ja 0x1400585dd
lea rdx, [0x140221918]
mov rcx, rbx
call fcn.140002c98
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1401be9b0
mov rbx, qword [rsp + 0x278]
add rsp, 0x260
pop rdi
ret
Function at 0x140058744
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x188]
sub rsp, 0x280
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1402ee230]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rdi, rcx
mov qword [rsp + 0x50], rcx
xor esi, esi
mov dword [rsp + 0x40], esi
mov word [rsp + 0x60], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x62]
call fcn.1401bf0f0
lea ebx, [rsi + 1]
mov dword [rsp + 0x3c], ebx
mov dword [rsp + 0x38], 0x208
lea rdx, [0x140221918]
mov rcx, rdi
call fcn.140002c98
mov dword [rsp + 0x40], ebx
call fcn.14005e1bc
mov rcx, rax
mov eax, esi
test rcx, rcx
setne al
test eax, eax
jne 0x1400587e2
mov ecx, 0x80004005
call fcn.140001000
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
lea rcx, str.SOFTWARENVIDIA_CorporationGlobal
call fcn.1401be2f4
mov r8d, eax
lea rdx, str.SOFTWARENVIDIA_CorporationGlobal
lea rcx, [rsp + 0x30]
call fcn.140002104
lea rcx, str.Optimus
call fcn.1401be2f4
mov r8d, eax
lea rdx, str.Optimus
lea rcx, [rsp + 0x30]
call fcn.14001baac
lea r11, [rsp + 0x38]
mov qword [rsp + 0x28], r11
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x3c]
lea r8, str.NvUpdtPath
mov rbx, qword [rsp + 0x30]
mov rdx, rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x1400588d5
cmp dword [rsp + 0x38], esi
jbe 0x1400588d5
lea rbx, [0x14022e9e0]
mov rcx, rbx
call fcn.1401be2f4
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140002104
lea rcx, [rsp + 0x60]
call fcn.1401be2f4
mov r8d, eax
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.14001baac
mov rcx, rbx
call fcn.1401be2f4
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.14001baac
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140002378
mov rbx, qword [rsp + 0x30]
lea rdx, [rbx - 0x18]
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x1400588f1
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov rax, rdi
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1401be9b0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140058920
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x178]
sub rsp, 0x270
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1402ee230]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov rdi, rcx
xor esi, esi
mov dword [rsp + 0x3c], esi
mov word [rsp + 0x50], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x52]
call fcn.1401bf0f0
mov dword [rsp + 0x3c], 1
mov dword [rsp + 0x38], 0x208
call fcn.14005e1bc
mov rcx, rax
mov eax, esi
test rcx, rcx
setne al
test eax, eax
jne 0x1400589a7
mov ecx, 0x80004005
call fcn.140001000
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
call fcn.140055fcc
test eax, eax
je 0x1400589f4
lea rcx, str.SOFTWARENVIDIA_Corporation
call fcn.1401be2f4
mov r8d, eax
lea rdx, str.SOFTWARENVIDIA_Corporation
lea rcx, [rsp + 0x30]
call fcn.140002104
lea rcx, str.NvTray
call fcn.1401be2f4
lea rdx, str.NvTray
jmp 0x140058a27
lea rcx, str.SOFTWARENVIDIA_CorporationGlobal
call fcn.1401be2f4
mov r8d, eax
lea rdx, str.SOFTWARENVIDIA_CorporationGlobal
lea rcx, [rsp + 0x30]
call fcn.140002104
lea rcx, str.MediaCenterTray
call fcn.1401be2f4
lea rdx, str.MediaCenterTray
mov r8d, eax
lea rcx, [rsp + 0x30]
call fcn.14001baac
lea rcx, str.0_nvupdt.dll
call fcn.1401be2f4
mov r8d, eax
lea rdx, str.0_nvupdt.dll
lea rcx, [rsp + 0x30]
call fcn.14001baac
lea r11, [rsp + 0x38]
mov qword [rsp + 0x28], r11
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x3c]
lea r8, str.FullPath
mov rbx, qword [rsp + 0x30]
mov rdx, rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x140058b22
cmp dword [rsp + 0x38], esi
jbe 0x140058b22
lea rbx, [0x14022e9e0]
mov rcx, rbx
call fcn.1401be2f4
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140002104
lea rcx, [rsp + 0x50]
call fcn.1401be2f4
mov r8d, eax
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.14001baac
mov rcx, rbx
call fcn.1401be2f4
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.14001baac
mov rbx, qword [rsp + 0x30]
lea rcx, [rbx - 0x18]
call fcn.140001a60
add rax, 0x18
mov qword [rdi], rax
or ecx, 0xffffffff
lock xadd dword [rbx - 8], ecx
dec ecx
test ecx, ecx
jg 0x140058b4d
mov rcx, qword [rbx - 0x18]
mov r8, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
jmp 0x140058b4d
lea rdx, [0x140221918]
mov rcx, rdi
call fcn.140002c98
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140058b4d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, rdi
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.1401be9b0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140058b78
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x270
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rax, qword [0x1402ee230]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rcx
xor edi, edi
mov dword [rsp + 0x30], edi
mov word [rsp + 0x50], di
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x52]
call fcn.1401bf0f0
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x34], 0x208
lea rdx, str.SOFTWARENVIDIA_CorporationNVIDIA_Update_Core
lea rcx, [rsp + 0x38]
call fcn.140002c98
nop
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140002c98
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140058c41
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov rax, rbx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1401be9b0
mov rbx, qword [rsp + 0x288]
add rsp, 0x270
pop rdi
ret
Function at 0x140058f8c
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x388]
sub rsp, 0x480
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rdi
mov rax, qword [0x1402ee230]
xor rax, rsp
mov qword [rbp + 0x370], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x50], rcx
and dword [rsp + 0x34], 0
call fcn.14005e1bc
mov rcx, rax
xor eax, eax
test rcx, rcx
setne al
test eax, eax
jne 0x140058fef
mov ecx, 0x80004005
call fcn.140001000
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx], rax
mov dword [rsp + 0x34], 1
lea rdx, [0x1402238b8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140059132
and dword [rsp + 0x30], eax
lea r8, str.SOFTWAREWow6432NodeAGEIA_Technologies
mov edx, 0x104
lea rcx, [rbp + 0x160]
call fcn.1401bf720
lea r11, [rsp + 0x40]
mov qword [rsp + 0x20], r11
mov r9d, 1
xor r8d, r8d
lea rdx, [rbp + 0x160]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140059198
mov eax, 4
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x3c], eax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x3c]
xor r8d, r8d
lea rdx, str.PhysX_Version
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140059125
mov eax, 0x431bde83
mov r10d, dword [rsp + 0x30]
mul r10d
mov r8d, edx
shr r8d, 0x12
mov eax, r8d
imul eax, eax, 0xf4240
mov ecx, r10d
sub ecx, eax
mov r11d, 0xd1b71759
mov eax, r11d
mul ecx
mov r9d, edx
shr r9d, 0xd
mov eax, r11d
mul r10d
shr edx, 0xd
imul edx, edx, 0x2710
mov ecx, r10d
sub ecx, edx
mov r11d, 0x51eb851f
mov eax, r11d
mul ecx
mov ecx, edx
shr ecx, 5
mov eax, r11d
mul r10d
shr edx, 5
imul edx, edx, 0x64
sub r10d, edx
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], ecx
lea rdx, str._02d._02d._02d_02d
mov rcx, rbx
call fcn.1400023f8
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140059198
lea rdx, [0x140223fa0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140059198
mov edx, 0x8b3
mov r8d, 0x100
lea rcx, [rsp + 0x60]
call fcn.1400580fc
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.140002c98
nop
mov rdx, rax
mov rcx, rbx
call fcn.140002378
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140059198
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov rax, rbx
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.1401be9b0
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x1400591c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x398]
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
mov rax, qword [0x1402ee230]
xor rax, rsp
mov qword [rbp + 0x380], rax
xor ebx, ebx
mov edi, ebx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 1]
xor r8d, r8d
lea rdx, str.SOFTWARENVIDIA_CorporationGlobalRunOpenGLOn
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400592d8
mov esi, ebx
lea rdx, str.ShowContextMenu
lea rcx, [rsp + 0x48]
call fcn.140002c98
nop
mov dword [rsp + 0x44], 0x104
mov dword [rsp + 0x40], 0x104
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x170]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x44]
lea r8, [rsp + 0x60]
mov edx, esi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov r12d, eax
test eax, eax
jne 0x1400592a4
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
call fcn.1401bf934
test eax, eax
je 0x1400592a4
inc edi
inc esi
test r12d, r12d
je 0x140059241
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x1400592d8
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
cmp edi, 1
setg al
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.1401be9b0
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r12, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret