joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140057af8
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 0x140057bdb
call fcn.1400693b4
mov rbp, qword [rax + 0x18]
call fcn.1400693b4
cmp rbp, qword [rax + 0x10]
je 0x140057bdb
lea edx, [rdi + 5]
movzx r9d, r12w
mov rcx, rbp
cmp rbx, rdx
jne 0x140057bc7
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 0x140057bc3
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbp, rax
test rax, rax
je 0x140057bc3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r11, rax
test rax, rax
je 0x140057bba
and esi, 0xf
jle 0x140057bb3
mov ecx, esi
movzx eax, word [r11]
add eax, edi
sub rcx, rdi
cdqe
lea r11, [r11 + rax*2]
jne 0x140057ba2
cmp word [r11], bx
cmovne ebx, edi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov edi, ebx
jmp 0x140057bdb
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 0x140058164
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 0x1400581dd
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 0x1400581dd
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 0x140058201
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 0x14005821f
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 0x14005862c
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 0x1400586a4
mov r9d, 0x400
cmp bp, r9w
je 0x140058702
lea edx, [rbx + 6]
mov r8d, r12d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
je 0x140058702
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
je 0x140058702
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rax
test rax, rax
je 0x1400586f9
and esi, 0xf
jle 0x1400586e1
mov ecx, esi
movzx eax, word [rdx]
add eax, r14d
sub rcx, r14
cdqe
lea rdx, [rdx + rax*2]
jne 0x1400586d0
cmp word [rdx], bx
je 0x1400586f9
movzx r8d, word [rdx]
mov rcx, r13
add rdx, 2
call fcn.1400024f0
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 0x1400587f8
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 0x140058822
lea eax, [rbx + 1]
jmp 0x1400588e2
mov rcx, 0xffffffffffffffff
mov eax, reloc.OLEAUT32.dll_SafeArrayGetDim
mul qword [rdx + 8]
cmovo rax, rcx
mov rcx, rax
call fcn.14005ce84
mov rsi, rax
test rax, rax
je 0x1400588e2
mov rcx, qword [rdi]
mov rax, qword [rcx]
cmp rax, rcx
je 0x14005886c
mov rcx, rsi
movups xmm0, xmmword [rax + 0x10]
movdqu xmmword [rcx], xmm0
mov rax, qword [rax]
add rcx, 0x10
cmp rax, qword [rdi]
jne 0x140058858
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 0x1400588d8
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 0x1400588d8
lea ebx, [rax + 1]
mov rcx, rsi
call fcn.14005ce7c
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 0x1400588f8
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 0x14005893d
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 0x14005893d
mov rbx, qword [rcx]
call fcn.14005ce7c
mov rcx, rbx
cmp rbx, qword [rsi]
jne 0x14005892d
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 0x140058a5c
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 0x140058a5c
cmp dword [rbp + 0x38], edi
je 0x140058a5c
mov ecx, dword [rbp + 0x38]
call fcn.14005ce84
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 0x140058a54
cmp dword [rbp + 0x38], 0x10
jb 0x140058a38
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.140006e40
mov rdx, qword [rsi + 8]
movabs rcx, 0xffffffffffffffe
sub rcx, rdx
cmp rcx, 1
jb 0x140058a47
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 0x1400589df
mov rcx, rbx
call fcn.14005ce7c
mov eax, 1
jmp 0x140058a5e
lea rcx, [0x140225d20]
call fcn.1401e5c9c
int3
mov rcx, rbx
call fcn.14005ce7c
xor eax, eax
add rsp, 0x30
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140058ef4
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x168]
sub rsp, 0x260
mov rax, qword [0x1402f2208]
xor rax, rsp
mov qword [rbp + 0x150], rax
lea rcx, [rsp + 0x52]
xor edi, edi
xor edx, edx
mov r8d, 0x1fe
mov word [rsp + 0x50], di
call fcn.1401c1930
lea rax, [rsp + 0x38]
lea esi, [rdi + 1]
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov r9d, esi
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x30], 0x100
mov ebx, edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x38]
lea r11, [rsp + 0x30]
lea rax, [rsp + 0x50]
lea rdx, [0x1402273e0]
mov qword [rsp + 0x28], r11
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.Windows
lea rcx, [rsp + 0x40]
call fcn.140003294
lea rdx, [0x140232e80]
lea rcx, [rsp + 0x50]
call fcn.1401c6c10
mov rdx, qword [rsp + 0x40]
mov rcx, rax
call fcn.1401c2174
test eax, eax
jne 0x140059002
lea rdx, [0x140232e80]
xor ecx, ecx
call fcn.1401c6c10
lea rdx, [0x140229e98]
mov rcx, rax
call fcn.1401c6c10
mov rcx, rax
call fcn.1401c6c04
cmp eax, 0xa
cmovge ebx, esi
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140059023
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, ebx
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.1401c0410
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x140059428
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x1402f2208]
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.1401c1930
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 0x1400594ba
lea rdx, [rsp + 0x40]
cmp dword [rsp + 0x34], edi
ja 0x1400594c1
lea rdx, [0x140224d18]
mov rcx, rbx
call fcn.140003294
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1401c0410
mov rbx, qword [rsp + 0x278]
add rsp, 0x260
pop rdi
ret
Function at 0x140059628
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 [0x1402f2208]
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.1401c1930
lea ebx, [rsi + 1]
mov dword [rsp + 0x3c], ebx
mov dword [rsp + 0x38], 0x208
lea rdx, [0x140224d18]
mov rcx, rdi
call fcn.140003294
mov dword [rsp + 0x40], ebx
call fcn.14006b574
mov rcx, rax
mov eax, esi
test rcx, rcx
setne al
test eax, eax
jne 0x1400596c6
mov ecx, 0x80004005
call fcn.14000137c
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
lea rcx, str.SOFTWARENVIDIA_CorporationGlobal
call fcn.1401c0bf0
mov r8d, eax
lea rdx, str.SOFTWARENVIDIA_CorporationGlobal
lea rcx, [rsp + 0x30]
call fcn.1400024f0
lea rcx, str.Optimus
call fcn.1401c0bf0
mov r8d, eax
lea rdx, str.Optimus
lea rcx, [rsp + 0x30]
call fcn.14001c548
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 0x1400597b9
cmp dword [rsp + 0x38], esi
jbe 0x1400597b9
lea rbx, [0x140232000]
mov rcx, rbx
call fcn.1401c0bf0
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.1400024f0
lea rcx, [rsp + 0x60]
call fcn.1401c0bf0
mov r8d, eax
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.14001c548
mov rcx, rbx
call fcn.1401c0bf0
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.14001c548
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400027d0
mov rbx, qword [rsp + 0x30]
lea rdx, [rbx - 0x18]
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x1400597d5
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.1401c0410
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 0x140059804
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 [0x1402f2208]
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.1401c1930
mov dword [rsp + 0x3c], 1
mov dword [rsp + 0x38], 0x208
call fcn.14006b574
mov rcx, rax
mov eax, esi
test rcx, rcx
setne al
test eax, eax
jne 0x14005988b
mov ecx, 0x80004005
call fcn.14000137c
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
call fcn.140056888
test eax, eax
je 0x1400598d8
lea rcx, str.SOFTWARENVIDIA_Corporation
call fcn.1401c0bf0
mov r8d, eax
lea rdx, str.SOFTWARENVIDIA_Corporation
lea rcx, [rsp + 0x30]
call fcn.1400024f0
lea rcx, str.NvTray
call fcn.1401c0bf0
lea rdx, str.NvTray
jmp 0x14005990b
lea rcx, str.SOFTWARENVIDIA_CorporationGlobal
call fcn.1401c0bf0
mov r8d, eax
lea rdx, str.SOFTWARENVIDIA_CorporationGlobal
lea rcx, [rsp + 0x30]
call fcn.1400024f0
lea rcx, str.MediaCenterTray
call fcn.1401c0bf0
lea rdx, str.MediaCenterTray
mov r8d, eax
lea rcx, [rsp + 0x30]
call fcn.14001c548
lea rcx, str.0_nvupdt.dll
call fcn.1401c0bf0
mov r8d, eax
lea rdx, str.0_nvupdt.dll
lea rcx, [rsp + 0x30]
call fcn.14001c548
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 0x140059a06
cmp dword [rsp + 0x38], esi
jbe 0x140059a06
lea rbx, [0x140232000]
mov rcx, rbx
call fcn.1401c0bf0
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.1400024f0
lea rcx, [rsp + 0x50]
call fcn.1401c0bf0
mov r8d, eax
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.14001c548
mov rcx, rbx
call fcn.1401c0bf0
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.14001c548
mov rbx, qword [rsp + 0x30]
lea rcx, [rbx - 0x18]
call fcn.140001ddc
add rax, 0x18
mov qword [rdi], rax
or ecx, 0xffffffff
lock xadd dword [rbx - 8], ecx
dec ecx
test ecx, ecx
jg 0x140059a31
mov rcx, qword [rbx - 0x18]
mov r8, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
jmp 0x140059a31
lea rdx, [0x140224d18]
mov rcx, rdi
call fcn.140003294
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140059a31
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.1401c0410
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 0x140059a5c
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 [0x1402f2208]
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.1401c1930
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x34], 0x208
lea rdx, str.SOFTWARENVIDIA_CorporationNVIDIA_Update_Core
lea rcx, [rsp + 0x38]
call fcn.140003294
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.140003294
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140059b25
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.1401c0410
mov rbx, qword [rsp + 0x288]
add rsp, 0x270
pop rdi
ret
Function at 0x140059c14
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 [0x1402f2208]
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.14006b574
mov rcx, rax
xor eax, eax
test rcx, rcx
setne al
test eax, eax
jne 0x140059c77
mov ecx, 0x80004005
call fcn.14000137c
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx], rax
mov dword [rsp + 0x34], 1
lea rdx, [0x140226cc8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140059dba
and dword [rsp + 0x30], eax
lea r8, str.SOFTWAREWow6432NodeAGEIA_Technologies
mov edx, 0x104
lea rcx, [rbp + 0x160]
call fcn.1401c1f60
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 0x140059e20
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 0x140059dad
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.140002978
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140059e20
lea rdx, [0x1402273e0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140059e20
mov edx, 0x8b3
mov r8d, 0x100
lea rcx, [rsp + 0x60]
call fcn.140058e4c
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.140003294
nop
mov rdx, rax
mov rcx, rbx
call fcn.1400027d0
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140059e20
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.1401c0410
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140059e48
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 [0x1402f2208]
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 0x140059f60
mov esi, ebx
lea rdx, str.ShowContextMenu
lea rcx, [rsp + 0x48]
call fcn.140003294
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 0x140059f2c
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
call fcn.1401c2174
test eax, eax
je 0x140059f2c
inc edi
inc esi
test r12d, r12d
je 0x140059ec9
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 0x140059f60
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.1401c0410
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