joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140055374
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
cmp qword [0x1402f2cc0], rdi
jne 0x1400555b7
lea rcx, str.UxTheme.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x1402f2cc0], rax
test rax, rax
je 0x1400555b7
lea rdx, str.OpenThemeData
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1402f2cc0]
lea rdx, str.CloseThemeData
mov qword [0x1402f2c48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1402f2cc0]
lea rdx, str.GetThemeBackgroundContentRect
mov qword [0x1402f2c50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1402f2cc0]
lea rdx, str.DrawThemeParentBackground
mov qword [0x1402f2c58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1402f2cc0]
lea rdx, str.DrawThemeBackground
mov qword [0x1402f2c60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1402f2cc0]
lea rdx, str.DrawThemeText
mov qword [0x1402f2c68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1402f2cc0]
lea rdx, str.IsThemeActive
mov qword [0x1402f2c70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1402f2cc0]
lea rdx, str.GetThemeColor
mov qword [0x1402f2c78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1402f2cc0]
lea rdx, str.GetThemeSysColor
mov qword [0x1402f2c80], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1402f2cc0]
lea rdx, str.IsThemePartDefined
mov qword [0x1402f2c88], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1402f2cc0]
lea rdx, str.IsThemeBackgroundPartiallyTransparent
mov qword [0x1402f2c90], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1402f2cc0]
lea rdx, str.IsThemeDialogTextureEnabled
mov qword [0x1402f2c98], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1402f2cc0]
lea rdx, str.GetThemeTextMetrics
mov qword [0x1402f2ca0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1402f2cc0]
lea rdx, str.GetThemeFont
mov qword [0x1402f2ca8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x1402f2c48], rdi
mov qword [0x1402f2cb0], rax
je 0x1400555a9
cmp qword [0x1402f2c50], rdi
je 0x1400555a9
cmp qword [0x1402f2c58], rdi
je 0x1400555a9
cmp qword [0x1402f2c60], rdi
je 0x1400555a9
cmp qword [0x1402f2c68], rdi
je 0x1400555a9
cmp qword [0x1402f2c70], rdi
je 0x1400555a9
cmp qword [0x1402f2c78], rdi
je 0x1400555a9
cmp qword [0x1402f2c80], rdi
je 0x1400555a9
cmp qword [0x1402f2c88], rdi
je 0x1400555a9
cmp qword [0x1402f2c90], rdi
je 0x1400555a9
cmp qword [0x1402f2c98], rdi
je 0x1400555a9
cmp qword [0x1402f2ca0], rdi
je 0x1400555a9
cmp qword [0x1402f2ca8], rdi
je 0x1400555a9
test rax, rax
je 0x1400555a9
mov dword [0x1402f2cb8], 1
jmp 0x1400555b7
mov rcx, rbx
call fcn.1400552c4
mov dword [0x1402f2cb8], edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140056894
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
and dword [rbp + 0x20], 0
lea rax, [rbp + 0x18]
lea r9, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x20]
lea r8, str.ContextUIPolicy
lea rdx, str.SOFTWARENVIDIA_CorporationGlobalNvCplApiPolicies
mov rcx, 0xffffffff80000001
mov dword [rbp + 0x10], 4
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x18], 4
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x140056919
lea rax, [rbp + 0x18]
lea r9, [rbp + 0x10]
lea r8, str.ContextUIPolicy
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x20]
lea rdx, str.SOFTWARENVIDIA_CorporationGlobalNvCplApiPolicies
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x140056935
cmp dword [rbp + 0x10], 4
jne 0x140056935
cmp dword [rbp + 0x18], 4
jne 0x140056935
mov eax, dword [rbp + 0x20]
and al, 3
cmp al, 2
jne 0x140056935
mov eax, 1
jmp 0x140056937
xor eax, eax
add rsp, 0x30
pop rbp
ret

Function at 0x140056a58
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x1402ef1f8]
xor rax, rsp
mov qword [rsp + 0x140], rax
lea rcx, [rsp + 0x20]
xor ebx, ebx
mov dword [rsp + 0x20], VarUI4FromDisp
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x30], 2
jne 0x140056aa1
cmp dword [rsp + 0x24], 6
jb 0x140056aa1
cmp dword [rsp + 0x28], 2
lea eax, [rbx + 1]
cmovae ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1401be840
add rsp, 0x150
pop rbx
ret

Function at 0x140056ccc
Capabilities:
Delete registry value

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov rax, rdx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rcx
lea rdx, str.SOFTWARENVIDIA_CorporationNVControlPanel2Client
mov r9d, 0xf003f
mov rcx, rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140056d29
mov rcx, qword [rsp + 0x50]
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x50]
test eax, eax
jne 0x140056d23
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x140056d2b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x140056d34
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
mov rax, r8
lea rcx, [rsp + 0x38]
mov rbx, rdx
mov qword [rsp + 0x20], rcx
lea rdx, str.SOFTWARENVIDIA_CorporationNVControlPanel2Client
mov rcx, rax
mov r9d, 1
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140056dbc
mov eax, 4
lea rcx, [rsp + 0x68]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x38]
xor r8d, r8d
mov rdx, rdi
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
test eax, eax
jne 0x140056db6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x140056dbe
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140056dcc
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x10], edx
mov r11, rsp
push rbx
sub rsp, 0x50
and qword [r11 - 0x18], 0
mov rbx, rcx
lea rcx, [r11 + 0x20]
mov qword [r11 - 0x20], rcx
and qword [r11 - 0x28], 0
mov rax, r8
lea rdx, str.SOFTWARENVIDIA_CorporationNVControlPanel2Client
mov rcx, rax
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], 3
and dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140056e57
mov rcx, qword [rsp + 0x78]
lea r9d, [rax + 4]
lea rax, [rsp + 0x68]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x78]
test eax, eax
jne 0x140056e51
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x140056e59
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add rsp, 0x50
pop rbx
ret

Function at 0x140056e60
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x50
and qword [r11 - 0x18], 0
and qword [r11 + 0x10], 0
lea rax, [r11 + 0x10]
mov qword [r11 - 0x20], rax
and qword [r11 - 0x28], 0
mov rbx, rcx
lea rdx, str.SOFTWARENVIDIA_CorporationNVControlPanel2Client
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x28], 3
and dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140056eef
mov rcx, qword [rsp + 0x68]
lea r9d, [rax + 3]
lea rdx, str.WindowPlacement
xor r8d, r8d
mov dword [rsp + 0x28], 0x2c
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x68]
test eax, eax
jne 0x140056ee9
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x140056ef1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add rsp, 0x50
pop rbx
ret

Function at 0x140056ef8
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
and qword [rsp + 0x58], 0
lea rax, [rsp + 0x58]
mov rbx, rcx
lea rdx, str.SOFTWARENVIDIA_CorporationNVControlPanel2Client
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140056f93
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x48]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rdx, str.WindowPlacement
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x48], 0x2c
mov dword [rsp + 0x50], 3
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140056f88
cmp dword [rsp + 0x48], 0x2c
jne 0x140056f88
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x140056f95
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x140056f9c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
add rsp, 0x28
ret
Function at 0x14005701c
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x30
and dword [rsp + 0x40], 0
lea rax, [r11 + 0x18]
mov edi, 4
mov qword [r11 - 0x10], rax
lea rax, [r11 + 8]
lea r9, [r11 + 0x10]
lea r8, str.ShowContextMenu
lea rdx, str.SOFTWARENVIDIA_CorporationGlobalCoProcManager
mov rcx, 0xffffffff80000001
mov qword [r11 - 0x18], rax
mov dword [rsp + 0x48], edi
mov dword [rsp + 0x50], edi
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x1400570a2
and dword [rsp + 0x40], 0
lea rax, [rsp + 0x40]
lea r8, str.ShowContextMenu
lea rdx, str.SOFTWARENVIDIA_CorporationGlobalCoProcManager
mov r9d, edi
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x48], edi
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHLWAPI.dll_SHSetValueW]
cmp dword [rsp + 0x40], 0
setne al
add rsp, 0x30
pop rdi
ret

Function at 0x14005714c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x30
xor ebx, ebx
lea r9, [r11 + 0x18]
lea r8, str.ShowContextMenu
lea eax, [rbx + 4]
lea rdx, str.SOFTWARENVIDIA_CorporationGlobalRunOpenGLOn
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x48], eax
lea rax, [r11 + 0x10]
mov qword [r11 - 0x10], rax
lea rax, [r11 + 8]
mov dword [rsp + 0x40], ebx
mov qword [r11 - 0x18], rax
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x14005719f
cmp dword [rsp + 0x40], ebx
setne bl
mov al, bl
add rsp, 0x30
pop rbx
ret

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

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x30
and dword [rsp + 0x40], 0
lea rax, [r11 + 0x18]
mov edi, 4
mov qword [r11 - 0x10], rax
lea rax, [r11 + 8]
lea r9, [r11 + 0x10]
lea r8, str.ShowTrayIcon
lea rdx, str.SOFTWARENVIDIA_CorporationGlobalCoProcManager
mov rcx, 0xffffffff80000001
mov qword [r11 - 0x18], rax
mov dword [rsp + 0x48], edi
mov dword [rsp + 0x50], edi
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x14005727a
and dword [rsp + 0x40], 0
lea rax, [rsp + 0x40]
lea r8, str.ShowTrayIcon
lea rdx, str.SOFTWARENVIDIA_CorporationGlobalCoProcManager
mov r9d, edi
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x48], edi
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHLWAPI.dll_SHSetValueW]
cmp dword [rsp + 0x40], 0
setne al
add rsp, 0x30
pop rdi
ret

Function at 0x140057288
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
call fcn.1400571f4
xor ecx, ecx
mov r9d, 4
test al, al
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], r9d
sete cl
lea r8, str.ShowTrayIcon
lea rdx, str.SOFTWARENVIDIA_CorporationGlobalCoProcManager
mov dword [rsp + 0x40], ecx
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHLWAPI.dll_SHSetValueW]
add rsp, 0x38
ret
Function at 0x1400572d4
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
movzx eax, cl
mov r9d, 4
lea r8, str.StartOnLogin
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], r9d
lea rdx, str.SOFTWARENVIDIA_CorporationNvTray
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHLWAPI.dll_SHSetValueW]
add rsp, 0x38
ret

Function at 0x14005739c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x30
xor ebx, ebx
lea r9, [r11 + 0x18]
lea r8, str.VideoEditingMode
lea eax, [rbx + 4]
lea rdx, str.SOFTWARENVIDIA_CorporationGlobal
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x48], eax
lea rax, [r11 + 0x10]
mov qword [r11 - 0x10], rax
lea rax, [r11 + 8]
mov dword [rsp + 0x40], ebx
mov qword [r11 - 0x18], rax
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
js 0x1400573f0
cmp dword [rsp + 0x40], 1
sete bl
mov al, bl
add rsp, 0x30
pop rbx
ret

Function at 0x140057508
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x1402ef1f8]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
lea rcx, [rsp + 0x24]
xor edi, edi
xor edx, edx
mov r8d, 0x204
mov dword [rsp + 0x20], edi
call fcn.1401bfd60
lea rcx, [rsp + 0x20]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, [0x140225068]
lea rcx, [rsp + 0x20]
mov edx, 0x104
call fcn.1401c0d1c
lea rcx, [rsp + 0x20]
mov r8, rbx
mov edx, 0x104
call fcn.1401c0d1c
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne dil
mov eax, edi
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1401be840
mov rbx, qword [rsp + 0x258]
add rsp, 0x240
pop rdi
ret
Function at 0x1400575b0
Capabilities:
Query or enumerate registry value

Disassembly:
test r9, r9
je 0x140057711
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x1402ef1f8]
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 0x1400576e2
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 0x1400576d1
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x60]
call fcn.140056c60
test eax, eax
je 0x1400576bf
xor esi, esi
test ebx, ebx
je 0x1400576b0
mov ecx, esi
lea rdx, [rsp + 0x50]
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
shl rcx, 4
add rcx, r14
call fcn.1401bffd0
test eax, eax
je 0x1400576bf
inc esi
cmp esi, ebx
jb 0x14005768d
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 0x1400576d8
cmp eax, 0x103
je 0x1400576e2
cmp r12d, 0xc
jl 0x140057636
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.1401be840
add rsp, 0x490
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1400575b9
Capabilities:
Query or enumerate registry value

Disassembly:
test r9, r9
je 0x140057711
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x1402ef1f8]
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 0x1400576e2
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 0x1400576d1
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x60]
call fcn.140056c60
test eax, eax
je 0x1400576bf
xor esi, esi
test ebx, ebx
je 0x1400576b0
mov ecx, esi
lea rdx, [rsp + 0x50]
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
shl rcx, 4
add rcx, r14
call fcn.1401bffd0
test eax, eax
je 0x1400576bf
inc esi
cmp esi, ebx
jb 0x14005768d
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 0x1400576d8
cmp eax, 0x103
je 0x1400576e2
cmp r12d, 0xc
jl 0x140057636
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.1401be840
add rsp, 0x490
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140057a18
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 0x140057afb
call fcn.1400678dc
mov rbp, qword [rax + 0x18]
call fcn.1400678dc
cmp rbp, qword [rax + 0x10]
je 0x140057afb
lea edx, [rdi + 5]
movzx r9d, r12w
mov rcx, rbp
cmp rbx, rdx
jne 0x140057ae7
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 0x140057ae3
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbp, rax
test rax, rax
je 0x140057ae3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r11, rax
test rax, rax
je 0x140057ada
and esi, 0xf
jle 0x140057ad3
mov ecx, esi
movzx eax, word [r11]
add eax, edi
sub rcx, rdi
cdqe
lea r11, [r11 + rax*2]
jne 0x140057ac2
cmp word [r11], bx
cmovne ebx, edi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov edi, ebx
jmp 0x140057afb
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 0x140057f50
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 0x140057fc9
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 0x140057fc9
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 0x140057fed
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 0x14005800b
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 0x140058418
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 0x140058490
mov r9d, 0x400
cmp bp, r9w
je 0x1400584ee
lea edx, [rbx + 6]
mov r8d, r12d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
je 0x1400584ee
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
je 0x1400584ee
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rax
test rax, rax
je 0x1400584e5
and esi, 0xf
jle 0x1400584cd
mov ecx, esi
movzx eax, word [rdx]
add eax, r14d
sub rcx, r14
cdqe
lea rdx, [rdx + rax*2]
jne 0x1400584bc
cmp word [rdx], bx
je 0x1400584e5
movzx r8d, word [rdx]
mov rcx, r13
add rdx, 2
call fcn.1400025d0
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 0x1400585e4
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 0x14005860e
lea eax, [rbx + 1]
jmp 0x1400586ce
mov rcx, 0xffffffffffffffff
mov eax, reloc.OLEAUT32.dll_SafeArrayGetDim
mul qword [rdx + 8]
cmovo rax, rcx
mov rcx, rax
call fcn.14005b2f4
mov rsi, rax
test rax, rax
je 0x1400586ce
mov rcx, qword [rdi]
mov rax, qword [rcx]
cmp rax, rcx
je 0x140058658
mov rcx, rsi
movups xmm0, xmmword [rax + 0x10]
movdqu xmmword [rcx], xmm0
mov rax, qword [rax]
add rcx, 0x10
cmp rax, qword [rdi]
jne 0x140058644
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 0x1400586c4
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 0x1400586c4
lea ebx, [rax + 1]
mov rcx, rsi
call fcn.14005b2ec
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret