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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2630]
mov eax, 0x2730
call fcn.140064980
sub rsp, rax
mov rax, qword [0x1400c24b8]
xor rax, rsp
mov qword [rbp + 0x2620], rax
mov eax, 2
mov r13d, r9d
cmp r9d, eax
mov r14d, r8d
mov r12, rdx
mov r15, rcx
cmova r13d, eax
lea rcx, [rbp + 0x2000]
xor esi, esi
xor edx, edx
mov r8d, 0x208
mov word [rsp + 0x40], si
mov qword [rbp + 0x1fc0], rsi
mov word [rbp + 0x148], si
mov word [rbp + 0x350], si
mov qword [rbp + 0x1fc8], rsi
mov word [rbp + 0x558], si
mov word [rbp + 0x760], si
mov qword [rbp + 0x1fd0], rsi
mov word [rbp + 0x968], si
mov word [rbp + 0xb70], si
mov qword [rbp + 0x1fd8], rsi
mov word [rbp + 0xd78], si
mov word [rbp + 0xf80], si
mov qword [rbp + 0x1fe0], rsi
mov word [rbp + 0x1188], si
mov word [rbp + 0x1390], si
mov qword [rbp + 0x1fe8], rsi
mov word [rbp + 0x1598], si
mov word [rbp + 0x17a0], si
mov qword [rbp + 0x1ff0], rsi
mov word [rbp + 0x19a8], si
mov word [rbp + 0x1bb0], si
mov qword [rbp + 0x1ff8], rsi
mov word [rbp + 0x1db8], si
call fcn.140067170
mov edi, esi
test r14d, r14d
je 0x14004b0b0
lea rbx, [rbp + 0x2228]
lea rax, [rsp + 0x40]
sub rbx, rax
lea rsi, [rsp + 0x40]
nop dword [rax]
mov r9d, edi
lea r8, str.TranscodedImageCache__03d
mov edx, 0x208
lea rcx, [rbp + 0x2000]
call fcn.140004da0
xor edx, edx
lea rcx, [rbp + 0x2210]
mov r8d, 0x410
call fcn.140067170
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x410
mov qword [rsp + 0x28], rax
lea rdx, [rbp + 0x2000]
lea rax, [rbp + 0x2210]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14004b16b
mov edx, 0x104
mov rcx, rsi
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x14004b085
movzx eax, word [rbx + rcx]
test ax, ax
je 0x14004b085
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x14004b063
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
xor ecx, ecx
inc edi
add rsi, 0x208
sub rbx, 0x208
mov word [rax], cx
cmp edi, r14d
jb 0x14004aff0
xor esi, esi
call fcn.14000d400
mov r14d, eax
mov ebx, esi
test eax, eax
jle 0x14004b13f
mov edi, 0x2080
mov ecx, ebx
call fcn.14000d770
sub eax, 1
js 0x14004b12d
mov rcx, qword [r15]
lea r9, [rsp + 0x40]
add rcx, rsi
cdqe
imul rdx, rax, 0x208
mov r8d, 0x104
sub rdx, rcx
add r9, rdx
lea rax, [r8 + 0x7ffffefa]
test rax, rax
je 0x14004b116
movzx eax, word [r9 + rcx]
test ax, ax
je 0x14004b116
mov word [rcx], ax
add rcx, 2
sub r8, 1
jne 0x14004b0f3
test r8, r8
lea rax, [rcx - 2]
cmovne rax, rcx
xor ecx, ecx
mov word [rax], cx
mov rax, qword [r15]
mov dword [rdi + rax], r13d
inc ebx
add rdi, 4
add rsi, 0x208
cmp ebx, r14d
jl 0x14004b0c7
mov al, 1
mov rcx, qword [rbp + 0x2620]
xor rcx, rsp
call fcn.140064920
mov rbx, qword [rsp + 0x2780]
add rsp, 0x2730
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
xor al, al
jmp 0x14004b141
Function at 0x14004c700
Capabilities:
Set file attributes
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x1400c24b8]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov r15, r8
mov r12, rdx
mov ebx, 0x20
lea r8, [rsp + 0x48]
mov edx, ebx
mov r14, rcx
call qword [sym.imp.GDI32.dll_GetObjectW]
movzx eax, word [rsp + 0x58]
mov edi, 1
movzx ecx, word [rsp + 0x5a]
imul ecx, eax
cmp cx, di
jne 0x14004c912
movzx ebx, di
movzx ebp, bx
mov rdx, rdi
mov ecx, ebp
shl rdx, cl
lea rdx, [rdx*4 + 0x28]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
mov dword [rax], 0x28
mov eax, dword [rsp + 0x4c]
mov dword [rsi + 4], eax
mov eax, dword [rsp + 0x50]
mov dword [rsi + 8], eax
movzx eax, word [rsp + 0x58]
mov word [rsi + 0xc], ax
movzx eax, word [rsp + 0x5a]
mov word [rsi + 0xe], ax
cmp bx, 0x18
jae 0x14004c7b3
mov ecx, ebp
shl edi, cl
mov dword [rsi + 0x20], edi
imul ebp, dword [rsi + 4]
xor r13d, r13d
xor ecx, ecx
mov dword [rsi + 0x10], r13d
mov dword [rsi + 0x24], r13d
lea eax, [rbp + 0x1f]
and eax, 0xffffffe0
cdq
and edx, 7
add edx, eax
sar edx, 3
imul edx, dword [rsi + 8]
mov dword [rsi + 0x14], edx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
movzx r9d, word [rsi + 8]
xor r8d, r8d
mov dword [rsp + 0x30], r13d
mov rdx, r14
mov qword [rsp + 0x28], rsi
mov rcx, r12
mov rdi, rax
mov qword [rsp + 0x20], rax
call qword [sym.imp.GDI32.dll_GetDIBits]
mov edx, 0x80
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov qword [rsp + 0x30], r13
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x20], 2
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CreateFileW]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r13
mov rbx, rax
mov eax, 0x4d42
mov word [rsp + 0x68], ax
mov edx, dword [rsi + 0x20]
lea r8d, [rdx*4 + 0xe]
mov edx, dword [rsi + 0x14]
add r8d, dword [rsi]
add edx, r8d
mov dword [rsp + 0x6e], r13d
mov dword [rsp + 0x6a], edx
lea r8d, [r13 + 0xe]
mov ecx, dword [rsi + 0x20]
lea rdx, [rsp + 0x68]
lea ecx, [rcx*4 + 0xe]
add ecx, dword [rsi]
mov dword [rsp + 0x72], ecx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8d, dword [rsi + 0x20]
lea r9, [rsp + 0x40]
mov rdx, rsi
mov qword [rsp + 0x20], r13
mov rcx, rbx
lea r8d, [r8*4 + 0x28]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8d, dword [rsi + 0x14]
lea r9, [rsp + 0x40]
mov rdx, rdi
mov qword [rsp + 0x20], r13
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140064920
mov rbx, qword [rsp + 0xd8]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
cmp cx, 4
ja 0x14004c922
mov ebx, 4
jmp 0x14004c75f
cmp cx, 8
ja 0x14004c932
mov ebx, 8
jmp 0x14004c75f
cmp cx, 0x10
ja 0x14004c942
mov ebx, 0x10
jmp 0x14004c75f
cmp cx, 0x18
ja 0x14004c75f
mov ebp, 0x18
movzx ebx, bp
lea edx, [rbp + 0x10]
jmp 0x14004c772
Function at 0x14004ccb0
Capabilities:
Create thread
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x40
mov eax, dword [0x1400c46a8]
lea rdx, [rsp + 0x30]
test eax, eax
mov ecx, 0xffffff
mov r8d, 0xf003f
cmove eax, ecx
xor ebx, ebx
lea rcx, str.SoftwareNVIDIA_CorporationGlobal_nView
mov qword [rsp + 0x30], rbx
mov dword [0x1400c46a8], eax
call fcn.14004fc60
test eax, eax
jne 0x14004cdc8
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x68]
mov r9d, 0xf003f
mov qword [rsp + 0x68], rbx
lea rdx, str.Tweak
call fcn.14004fc40
test eax, eax
jne 0x14004cdbd
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x60]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SwitchIDColor
mov dword [rsp + 0x58], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14004cd6e
mov eax, dword [rsp + 0x50]
test eax, eax
mov ecx, dword [0x1400c46a8]
cmovne ecx, eax
mov dword [0x1400c46a8], ecx
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x60]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SwitchIDBackGround
mov dword [rsp + 0x58], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x68]
mov dword [0x1400c46ac], eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [0x1400c47c0], rbx
jne 0x14004cdff
lea rax, [0x1400c47bc]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea r8, [0x14004b980]
mov edx, 0x7d00
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1400c47c0], rax
lea rdx, str.NVIDIA_nView_Desktop_Manager
lea rcx, str.NVDeskSwitchID
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
jne 0x14004ce43
cmp ebx, 0x64
jae 0x14004ce43
mov ecx, 0xa
inc ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, str.NVIDIA_nView_Desktop_Manager
lea rcx, str.NVDeskSwitchID
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
je 0x14004ce18
call fcn.14004cf70
add rsp, 0x40
pop rbx
ret

Function at 0x14004cf10
Capabilities:
Create thread
Enumerate gui resources

Disassembly:
sub rsp, 0x38
cmp qword [0x1400c47c0], 0
je 0x14004cf2d
xor edx, edx
lea rcx, [0x14004ce80]
call qword [sym.imp.USER32.dll_EnumWindows]
lea rax, [0x1400c47bc]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea r8, [0x14004b980]
mov edx, 0x7d00
mov dword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1400c47c0], rax
add rsp, 0x38
jmp fcn.14004cf70
Function at 0x14004cfe0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub rsp, 0x28
cmp dword [0x1400c47b8], 0
jne 0x14004d01e
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x1400c46b0]
xor r9d, r9d
xor edx, edx
mov dword [0x1400c47b4], eax
lea r8d, [r9 + 0x64]
call qword [sym.imp.USER32.dll_SetTimer]
mov dword [0x1400c47b8], 1
add rsp, 0x28
ret
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1400c47b4], eax
xor edi, edi
lea rbx, [0x1400c46b0]
nop dword [rax]
mov rcx, qword [rbx]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x14004d070
mov rcx, qword [rbx]
call qword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x14004d065
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
inc edi
add rbx, 8
cmp edi, 0x20
jb 0x14004d040
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
ret
Function at 0x14004d840
Capabilities:
Change the wallpaper

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x2240]
mov eax, 0x2340
call fcn.140064980
sub rsp, rax
mov rax, qword [0x1400c24b8]
xor rax, rsp
mov qword [rbp + 0x2230], rax
mov rbx, rcx
xor edi, edi
cmp byte [rcx + 0x3b40], dil
je 0x14004966b
mov word [rbp + 0x170], di
mov qword [rbp + 0x21f0], rdi
mov word [rbp + 0x378], di
mov word [rbp + 0x580], di
mov qword [rbp + 0x21f8], rdi
mov word [rbp + 0x788], di
mov word [rbp + 0x990], di
mov qword [rbp + 0x2200], rdi
mov word [rbp + 0xb98], di
mov word [rbp + 0xda0], di
mov qword [rbp + 0x2208], rdi
mov word [rbp + 0xfa8], di
mov word [rbp + 0x11b0], di
mov qword [rbp + 0x2210], rdi
mov word [rbp + 0x13b8], di
mov word [rbp + 0x15c0], di
mov qword [rbp + 0x2218], rdi
mov word [rbp + 0x17c8], di
mov word [rbp + 0x19d0], di
mov qword [rbp + 0x2220], rdi
mov word [rbp + 0x1bd8], di
mov word [rbp + 0x1de0], di
mov qword [rbp + 0x2228], rdi
mov word [rbp + 0x1fe8], di
lea r8, [rbp + 0x170]
mov edx, dword [rcx]
lea rcx, [rsp + 0x50]
call fcn.1400492b0
lea rcx, [rsp + 0x50]
call fcn.14004a9d0
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], di
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x50]
call fcn.140049dc0
test al, al
je 0x140049647
lea r8, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae r8, qword [rsp + 0x28]
lea rcx, [rbx + 0x20]
mov edx, 0x208
call fcn.140004cd0
mov dword [rbx + 0x434], 1
mov byte [rbx + 0x3b41], 0
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x14004966b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
call fcn.14000c080
mov qword [rsp + 0x20], rdi
lea r8, [rsp + 0x20]
lea rdx, str.Control_PanelDesktop
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x140049739
lea r9d, [rax + 4]
lea rdx, str.TileWallpaper
mov rcx, qword [rsp + 0x20]
cmp dword [rbx + 0x434], 1
jne 0x1400496c5
lea r8, [0x14009a55c]
call fcn.140050060
mov r9d, 4
lea r8, [0x14009a560]
jmp 0x140049705
lea r8, [0x14009a560]
call fcn.140050060
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x28], xmm0
mov dword [rsp + 0x38], eax
mov r9d, dword [rbx + 0x434]
lea r8, [0x1400af010]
lea edx, [rax + 0x14]
lea rcx, [rsp + 0x28]
call fcn.140004d50
mov r9d, 0x14
lea r8, [rsp + 0x28]
lea rdx, str.WallpaperStyle
mov rcx, qword [rsp + 0x20]
call fcn.140050060
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140049726
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r8, [rbx + 0x20]
xor edx, edx
lea ecx, [rdx + 0x14]
lea r9d, [rdx + 3]
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
mov al, 1
mov rcx, qword [rbp + 0x2230]
xor rcx, rsp
call fcn.140064920
lea r11, [rsp + 0x2340]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
mov rax, qword [0x1400ca5a8]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x14004d85c
add rcx, qword [0x1400ca5a0]
jmp 0x1400494f0
ret
Function at 0x14004e210
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
mov esi, edi
test rcx, rcx
je 0x14004e2ef
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebp, eax
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rbx + rdx*2], si
jne 0x14004e247
lea ecx, [rax + 1]
add rdx, rcx
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x14004e2f2
mov edx, ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r8d, eax
lea ecx, [r8 - 1]
cmp word [rsi + rcx*2], 0x5c
je 0x14004e296
mov eax, 0x5c
mov word [rsi + r8*2], ax
inc r8d
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rbx + rax*2], di
jne 0x14004e2a0
test rax, rax
je 0x14004e2ef
mov rdx, rdi
nop dword [rax]
nop word [rax + rax]
movzx eax, word [rbx + rdx*2]
lea ecx, [rdi + r8]
inc edi
mov word [rsi + rcx*2], ax
mov edx, edi
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x14004e2e0
cmp rdx, rax
jb 0x14004e2c0
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14004e310
Capabilities:
Query environment variable

Disassembly:
push rbx
push rbp
push rsi
push r12
push r14
sub rsp, 0x40
mov rax, qword [0x1400c24b8]
xor rax, rsp
mov qword [rsp + 0x38], rax
movdqa xmm0, xmmword [0x14009aac0]
xor r12d, r12d
mov ebx, r12d
mov rsi, rcx
cmp dword [0x1400c4880], ebx
mov r14d, r12d
mov ebp, r12d
movdqu xmmword [rsp + 0x20], xmm0
jne 0x14004e3cd
mov r8b, 3
lea edx, [r12 + 2]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
lea edx, [r12 + 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
lea edx, [r12 + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
lea edx, [r12 + 0x23]
mov dword [0x1400c4880], 0x11c
mov r8, rax
mov dword [0x1400c4884], 6
lea rcx, [0x1400c4880]
mov dword [0x1400c4888], 1
mov word [0x1400c4994], r12w
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
mov ecx, r12d
test eax, eax
sete cl
mov dword [0x1400c13d8], ecx
jmp 0x14004e3d3
mov ecx, dword [0x1400c13d8]
test ecx, ecx
je 0x14004e3e1
mov eax, 1
jmp 0x14004e572
test rsi, rsi
je 0x14004e55e
xor r9d, r9d
mov qword [rsp + 0x78], rdi
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov edi, eax
test eax, eax
je 0x14004e559
mov edx, edi
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r14, rax
test rax, rax
je 0x14004e559
xor r9d, r9d
mov r8, rax
mov edx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp edi, eax
jbe 0x14004e559
mov rsi, r12
mov rdi, 0xffffffffffffffff
nop dword [rax]
mov ecx, dword [rsp + rsi*4 + 0x20]
lea rdx, [0x140093fc8]
call fcn.14004e000
mov rbx, rax
test rax, rax
je 0x14004e559
mov r8, rdi
nop
inc r8
cmp word [rax + r8*2], r12w
jne 0x14004e470
mov rdx, rbx
mov rcx, r14
call fcn.140073f2c
test eax, eax
mov ebp, r12d
sete bpl
test eax, eax
je 0x14004e559
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
inc rsi
cmp rsi, 4
jl 0x14004e450
mov rbx, r12
cmp ebp, 1
je 0x14004e559
movups xmm0, xmmword [str.WinSxS_]
movzx eax, word [0x14009aa98]
lea rcx, str._SystemRoot_
xor r8d, r8d
mov word [rsp + 0x30], ax
xor edx, edx
movups xmmword [rsp + 0x20], xmm0
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
test eax, eax
je 0x14004e559
lea rdx, [rsi + 0x12]
mov qword [rsp + 0x80], r15
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x14004e551
mov r8d, esi
lea rcx, str._SystemRoot_
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp esi, eax
jne 0x14004e551
lea r8, [rsp + 0x20]
mov rcx, rbx
lea rdx, [rsi + 0x12]
call fcn.140042390
nop dword [rax + rax]
inc rdi
cmp word [rbx + rdi*2], r12w
jne 0x14004e530
mov r8, rdi
mov rdx, rbx
mov rcx, r14
call fcn.140073f2c
test eax, eax
mov ebp, r12d
sete bpl
mov r15, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x78]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebp
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140064920
add rsp, 0x40
pop r14
pop r12
pop rsi
pop rbp
pop rbx
ret
Function at 0x14004efc0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp byte [rcx + 0x4005], 0
mov rdi, rdx
mov rbx, rcx
je 0x14004efe2
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbx + 0x4030]
test rcx, rcx
je 0x14004f009
mov r8, rdi
lea rdx, [0x1400944f0]
call fcn.14004f750
mov rcx, qword [rbx + 0x4030]
call fcn.140073250
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14004f5e0
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x50
xor r14d, r14d
mov ebp, 1
mov rsi, r8
movzx ebx, r14w
sub edx, ebp
je 0x14004f621
sub edx, ebp
je 0x14004f61a
cmp edx, ebp
jne 0x14004f624
lea ebx, [rbp + 3]
jmp 0x14004f624
mov ebx, 2
jmp 0x14004f624
movzx ebx, bp
lea rdx, str.nview
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rdi, rax
test rax, rax
je 0x14004f66f
mov qword [rsp + 0x40], r14
xor r8d, r8d
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov dword [rsp + 0x30], r14d
movzx edx, bx
mov word [rsp + 0x28], bp
mov rcx, rax
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret

Function at 0x14004f800
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rdi
sub rsp, 0x38
cmp byte [0x1400c49ec], 0
mov rbx, 0xffffffff80000001
lea rdi, [rbx + 1]
jne 0x14004f95c
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rsi
xor esi, esi
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
mov qword [rsp + 0x68], rsi
xor r8d, r8d
lea rdx, str.SoftwareNVIDIA_CorporationGlobal_nView
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14004f90c
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x60]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x58], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.UseHKLM
mov dword [rsp + 0x50], esi
mov dword [rsp + 0x60], esi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14004f8a7
cmp dword [rsp + 0x50], esi
je 0x14004f8a7
mov byte [0x1400c49ed], 1
jmp 0x14004f8b0
cmp byte [0x1400c49ed], sil
je 0x14004f8fc
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x60]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x58], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.HKLMIsWritable
mov dword [rsp + 0x50], esi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x68], rsi
jmp 0x14004f90c
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14004f950
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [0x1400c49ed], sil
je 0x14004f950
lea rax, [rsp + 0x68]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareNVIDIA_CorporationGlobal_nView
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14004f949
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14004f950
mov byte [0x1400c49ed], sil
mov rsi, qword [rsp + 0x30]
mov byte [0x1400c49ec], 1
cmp byte [0x1400c49ed], 0
cmovne rbx, rdi
mov rax, rbx
add rsp, 0x38
pop rdi
pop rbx
ret
Function at 0x14004fac0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
call fcn.14004f800
mov qword [rsp + 0x50], rax
cmp rax, 0xffffffff80000001
jne 0x14004fb22
lea rdx, [rsp + 0x50]
mov ecx, 0xf003f
call qword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14004fb43
lea rcx, [rsp + 0x58]
mov r9d, 0xf003f
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x14004fb62
mov rcx, qword [rsp + 0x58]
mov rdx, rdi
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov rcx, qword [rsp + 0x58]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14004fd00
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov dword [rsp + 0x58], 4
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], 0
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [rsp + 0x50]
add rsp, 0x38
ret

Function at 0x14004fd40
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov dword [rsp + 0x58], 4
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete al
add rsp, 0x38
ret

Function at 0x14004fd80
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x48
lea rax, [rsp + 0x60]
mov dword [rsp + 0x60], 8
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x30], 0
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x68], 0xb
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rax, qword [rsp + 0x30]
add rsp, 0x48
ret

Function at 0x14004fdd0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov dword [rsp + 0x58], 8
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete al
add rsp, 0x38
ret