joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140054a00
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 [0x1402f1c80], rdi
jne 0x140054c43
lea rcx, str.UxTheme.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x1402f1c80], rax
test rax, rax
je 0x140054c43
lea rdx, str.OpenThemeData
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1402f1c80]
lea rdx, str.CloseThemeData
mov qword [0x1402f1c08], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1402f1c80]
lea rdx, str.GetThemeBackgroundContentRect
mov qword [0x1402f1c10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1402f1c80]
lea rdx, str.DrawThemeParentBackground
mov qword [0x1402f1c18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1402f1c80]
lea rdx, str.DrawThemeBackground
mov qword [0x1402f1c20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1402f1c80]
lea rdx, str.DrawThemeText
mov qword [0x1402f1c28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1402f1c80]
lea rdx, str.IsThemeActive
mov qword [0x1402f1c30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1402f1c80]
lea rdx, str.GetThemeColor
mov qword [0x1402f1c38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1402f1c80]
lea rdx, str.GetThemeSysColor
mov qword [0x1402f1c40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1402f1c80]
lea rdx, str.IsThemePartDefined
mov qword [0x1402f1c48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1402f1c80]
lea rdx, str.IsThemeBackgroundPartiallyTransparent
mov qword [0x1402f1c50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1402f1c80]
lea rdx, str.IsThemeDialogTextureEnabled
mov qword [0x1402f1c58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1402f1c80]
lea rdx, str.GetThemeTextMetrics
mov qword [0x1402f1c60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1402f1c80]
lea rdx, str.GetThemeFont
mov qword [0x1402f1c68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x1402f1c08], rdi
mov qword [0x1402f1c70], rax
je 0x140054c35
cmp qword [0x1402f1c10], rdi
je 0x140054c35
cmp qword [0x1402f1c18], rdi
je 0x140054c35
cmp qword [0x1402f1c20], rdi
je 0x140054c35
cmp qword [0x1402f1c28], rdi
je 0x140054c35
cmp qword [0x1402f1c30], rdi
je 0x140054c35
cmp qword [0x1402f1c38], rdi
je 0x140054c35
cmp qword [0x1402f1c40], rdi
je 0x140054c35
cmp qword [0x1402f1c48], rdi
je 0x140054c35
cmp qword [0x1402f1c50], rdi
je 0x140054c35
cmp qword [0x1402f1c58], rdi
je 0x140054c35
cmp qword [0x1402f1c60], rdi
je 0x140054c35
cmp qword [0x1402f1c68], rdi
je 0x140054c35
test rax, rax
je 0x140054c35
mov dword [0x1402f1c78], 1
jmp 0x140054c43
mov rcx, rbx
call fcn.140054950
mov dword [0x1402f1c78], edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140055eec
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 0x140055f71
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 0x140055f8d
cmp dword [rbp + 0x10], 4
jne 0x140055f8d
cmp dword [rbp + 0x18], 4
jne 0x140055f8d
mov eax, dword [rbp + 0x20]
and al, 3
cmp al, 2
jne 0x140055f8d
mov eax, 1
jmp 0x140055f8f
xor eax, eax
add rsp, 0x30
pop rbp
ret

Function at 0x1400560b0
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x1402ee230]
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 0x1400560f9
cmp dword [rsp + 0x24], 6
jb 0x1400560f9
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.1401bea40
add rsp, 0x150
pop rbx
ret

Function at 0x140056324
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 0x140056381
mov rcx, qword [rsp + 0x50]
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x50]
test eax, eax
jne 0x14005637b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x140056383
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x14005638c
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 0x140056414
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 0x14005640e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x140056416
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140056424
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 0x1400564af
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 0x1400564a9
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x1400564b1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add rsp, 0x50
pop rbx
ret

Function at 0x1400564b8
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 0x140056547
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 0x140056541
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x140056549
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add rsp, 0x50
pop rbx
ret

Function at 0x140056550
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 0x1400565eb
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 0x1400565e0
cmp dword [rsp + 0x48], 0x2c
jne 0x1400565e0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x1400565ed
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x1400565f4
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 0x140056674
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 0x1400566fa
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 0x1400567a4
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 0x1400567f7
cmp dword [rsp + 0x40], ebx
setne bl
mov al, bl
add rsp, 0x30
pop rbx
ret

Function at 0x14005684c
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 0x1400568d2
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 0x1400568e0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
call fcn.14005684c
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 0x14005692c
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 0x1400569f4
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 0x140056a48
cmp dword [rsp + 0x40], 1
sete bl
mov al, bl
add rsp, 0x30
pop rbx
ret

Function at 0x140056b60
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 [0x1402ee230]
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.1401bf180
lea rcx, [rsp + 0x20]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, [0x140223c10]
lea rcx, [rsp + 0x20]
mov edx, 0x104
call fcn.1401c013c
lea rcx, [rsp + 0x20]
mov r8, rbx
mov edx, 0x104
call fcn.1401c013c
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.1401bea40
mov rbx, qword [rsp + 0x258]
add rsp, 0x240
pop rdi
ret
Function at 0x140056c08
Capabilities:
Query or enumerate registry value

Disassembly:
test r9, r9
je 0x140056d69
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 0x140056d3a
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 0x140056d29
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x60]
call fcn.1400562b8
test eax, eax
je 0x140056d17
xor esi, esi
test ebx, ebx
je 0x140056d08
mov ecx, esi
lea rdx, [rsp + 0x50]
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
shl rcx, 4
add rcx, r14
call fcn.1401bf3f0
test eax, eax
je 0x140056d17
inc esi
cmp esi, ebx
jb 0x140056ce5
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 0x140056d30
cmp eax, 0x103
je 0x140056d3a
cmp r12d, 0xc
jl 0x140056c8e
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.1401bea40
add rsp, 0x490
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140056c11
Capabilities:
Query or enumerate registry value

Disassembly:
test r9, r9
je 0x140056d69
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 0x140056d3a
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 0x140056d29
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x60]
call fcn.1400562b8
test eax, eax
je 0x140056d17
xor esi, esi
test ebx, ebx
je 0x140056d08
mov ecx, esi
lea rdx, [rsp + 0x50]
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
shl rcx, 4
add rcx, r14
call fcn.1401bf3f0
test eax, eax
je 0x140056d17
inc esi
cmp esi, ebx
jb 0x140056ce5
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 0x140056d30
cmp eax, 0x103
je 0x140056d3a
cmp r12d, 0xc
jl 0x140056c8e
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.1401bea40
add rsp, 0x490
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140057070
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 0x140057153
call fcn.14005c010
mov rbp, qword [rax + 0x18]
call fcn.14005c010
cmp rbp, qword [rax + 0x10]
je 0x140057153
lea edx, [rdi + 5]
movzx r9d, r12w
mov rcx, rbp
cmp rbx, rdx
jne 0x14005713f
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 0x14005713b
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbp, rax
test rax, rax
je 0x14005713b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r11, rax
test rax, rax
je 0x140057132
and esi, 0xf
jle 0x14005712b
mov ecx, esi
movzx eax, word [r11]
add eax, edi
sub rcx, rdi
cdqe
lea r11, [r11 + rax*2]
jne 0x14005711a
cmp word [r11], bx
cmovne ebx, edi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov edi, ebx
jmp 0x140057153
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 0x1400575a8
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 0x140057621
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 0x140057621
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 0x140057645
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 0x140057663
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 0x140057968
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 0x1400579e0
mov r9d, 0x400
cmp bp, r9w
je 0x140057a3e
lea edx, [rbx + 6]
mov r8d, r12d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
je 0x140057a3e
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
je 0x140057a3e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rax
test rax, rax
je 0x140057a35
and esi, 0xf
jle 0x140057a1d
mov ecx, esi
movzx eax, word [rdx]
add eax, r14d
sub rcx, r14
cdqe
lea rdx, [rdx + rax*2]
jne 0x140057a0c
cmp word [rdx], bx
je 0x140057a35
movzx r8d, word [rdx]
mov rcx, r13
add rdx, 2
call fcn.140002168
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 0x140057b34
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 0x140057b5e
lea eax, [rbx + 1]
jmp 0x140057c1e
mov rcx, 0xffffffffffffffff
mov eax, reloc.OLEAUT32.dll_SafeArrayGetDim
mul qword [rdx + 8]
cmovo rax, rcx
mov rcx, rax
call fcn.14005a6b4
mov rsi, rax
test rax, rax
je 0x140057c1e
mov rcx, qword [rdi]
mov rax, qword [rcx]
cmp rax, rcx
je 0x140057ba8
mov rcx, rsi
movups xmm0, xmmword [rax + 0x10]
movdqu xmmword [rcx], xmm0
mov rax, qword [rax]
add rcx, 0x10
cmp rax, qword [rdi]
jne 0x140057b94
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 0x140057c14
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 0x140057c14
lea ebx, [rax + 1]
mov rcx, rsi
call fcn.14005a6ac
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret