joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400daf20
Capabilities:
Create shortcut via ishelllink

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x290
mov rbx, rcx
xor r15d, r15d
xor ecx, ecx
mov r14, r9
mov ebp, r8d
mov rsi, rdx
mov edi, r15d
call qword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x1400db13c
lea rax, [rsp + 0x30]
lea r9, [0x140140408]
lea r8d, [r15 + 1]
lea rcx, [0x140140478]
xor edx, edx
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x20], rax
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1400db136
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x38], r15
lea r8, [rsp + 0x38]
mov rax, qword [rcx]
lea rdx, [0x140140468]
call qword [rax]
test eax, eax
js 0x1400db12b
mov rcx, qword [rsp + 0x38]
xor r8d, r8d
mov rdx, rbx
mov rax, qword [rcx]
call qword [rax + 0x28]
test eax, eax
js 0x1400db120
mov rax, qword [rsp + 0x30]
mov rbx, qword [rax]
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov rcx, qword [rsp + 0x30]
mov rdx, rax
cmp dword [rsp + 0x2f0], r15d
je 0x1400db0a1
lea r8d, [r15 + 4]
call qword [rbx + 0x98]
test eax, eax
jne 0x1400db120
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x40]
mov r8d, ebp
mov rax, qword [rcx]
mov rdx, rsi
mov dword [rsp + 0x20], r15d
call qword [rax + 0x18]
test eax, eax
jne 0x1400db02b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [rax + 1]
mov rcx, qword [rsp + 0x30]
mov ebx, dword [rsp + 0x2d0]
mov rdx, r14
mov rax, qword [rcx]
mov r8d, ebx
call qword [rax + 0x40]
test eax, eax
je 0x1400db04f
test ebx, ebx
jle 0x1400db04f
mov word [r14], r15w
mov rcx, qword [rsp + 0x30]
mov ebx, dword [rsp + 0x2e0]
mov rsi, qword [rsp + 0x2d8]
mov rax, qword [rcx]
mov r8d, ebx
mov rdx, rsi
call qword [rax + 0x50]
test eax, eax
je 0x1400db07b
test ebx, ebx
jle 0x1400db07b
mov word [rsi], r15w
mov rcx, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x2e8]
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + 0x70]
test eax, eax
je 0x1400db120
mov dword [rbx], 5
jmp 0x1400db120
mov r8d, 0x39
call qword [rbx + 0x98]
test eax, eax
js 0x1400db120
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x40]
mov r8d, ebp
mov rax, qword [rcx]
mov rdx, rsi
mov dword [rsp + 0x20], r15d
call qword [rax + 0x18]
test eax, eax
jne 0x1400db0dc
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [rax + 1]
mov rcx, qword [rsp + 0x30]
mov r8d, dword [rsp + 0x2d0]
mov rdx, r14
mov rax, qword [rcx]
call qword [rax + 0x40]
mov rcx, qword [rsp + 0x30]
mov r8d, dword [rsp + 0x2e0]
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x2d8]
call qword [rax + 0x50]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x2e8]
mov rax, qword [rcx]
call qword [rax + 0x70]
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
lea r11, [rsp + 0x290]
mov eax, edi
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x1400db970
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rax
xor edx, edx
mov rsi, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, 1
mov edx, eax
mov ecx, ebp
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetForegroundWindow]
test rdi, rdi
je 0x1400db9cd
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetFocus]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r8d, r8d
mov ecx, ebp
mov edx, eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rax, rsi
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400dba00
Capabilities:
Get common file path

Disassembly:
push rdi
sub rsp, 0x240
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x250], rbx
mov rbx, rcx
xor edi, edi
mov dword [rsp + 0x20], edi
mov eax, dword [0x14026fc58]
test al, 1
jne 0x1400dba72
or eax, 1
mov dword [0x14026fc58], eax
mov qword [0x14026fc50], 7
mov qword [0x14026fc48], rdi
mov word [0x14026fc38], di
xor r8d, r8d
lea rdx, [0x1401226e8]
lea rcx, [0x14026fc38]
call fcn.1400079e0
lea rcx, [0x1401202d0]
call fcn.1400e50d0
nop
cmp dword [0x14026fc34], 0
jne 0x1400dbad6
mov r9d, 1
lea r8d, [r9 + 0x22]
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp word [rsp + 0x30], 0
jne 0x1400dba9f
mov r8, rdi
jmp 0x1400dbabb
lea rax, [rsp + 0x30]
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1400dbab0
lea rdx, [rsp + 0x30]
lea rcx, [0x14026fc38]
call fcn.1400079e0
mov dword [0x14026fc34], 1
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rdi
mov word [rbx], di
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [0x14026fc38]
mov rcx, rbx
call fcn.140007890
mov rax, rbx
mov rbx, qword [rsp + 0x250]
add rsp, 0x240
pop rdi
ret
Function at 0x1400dbb10
Capabilities:
Get session user name

Disassembly:
push rbx
push rsi
sub rsp, 0x258
mov rsi, rcx
mov dword [rcx], 1
lea rcx, [rsp + 0x42]
xor ebx, ebx
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x40], bx
call fcn.1400e4040
lea rdx, [rsp + 0x270]
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x270], 0x104
mov qword [rsp + 0x278], rbx
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x1400dbc43
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x250], rdi
call fcn.140051a60
cmp qword [rax + 0x18], 8
jb 0x1400dbb8b
mov rax, qword [rax]
lea r9, [rsp + 0x278]
mov r8d, 1
mov rdx, rax
xor ecx, ecx
call sub.NETAPI32.dll_NetUserGetInfo
cmp qword [rsp + 0x38], 8
mov edi, eax
jb 0x1400dbbb7
mov rcx, qword [rsp + 0x20]
call fcn.1400e3e78
test edi, edi
je 0x1400dbc1f
lea r8, [rsp + 0x280]
mov edx, 1
xor ecx, ecx
mov qword [rsp + 0x280], rbx
call sub.NETAPI32.dll_NetWkstaUserGetInfo
mov edi, eax
test eax, eax
jne 0x1400dbbff
mov rcx, qword [rsp + 0x280]
lea r9, [rsp + 0x278]
lea r8d, [rax + 1]
mov rdx, qword [rcx]
mov rcx, qword [rcx + 0x18]
call sub.NETAPI32.dll_NetUserGetInfo
mov edi, eax
mov rcx, qword [rsp + 0x280]
test rcx, rcx
je 0x1400dbc11
call sub.NETAPI32.dll_NetApiBufferFree
test edi, edi
je 0x1400dbc1f
mov rcx, qword [rsp + 0x278]
jmp 0x1400dbc31
mov rcx, qword [rsp + 0x278]
mov ebx, 1
mov eax, dword [rcx + 0x14]
mov dword [rsi], eax
mov rdi, qword [rsp + 0x250]
test rcx, rcx
je 0x1400dbc43
call sub.NETAPI32.dll_NetApiBufferFree
mov eax, ebx
add rsp, 0x258
pop rsi
pop rbx
ret

Function at 0x1400dbc90
Capabilities:
Enumerate processes

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, 0x260
mov edi, ecx
mov r14, rdx
xor esi, esi
lea ecx, [rsi + 2]
xor edx, edx
mov ebp, r8d
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [rsp + 0x20], 0x238
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400dbd1a
lea rdx, [rsp + 0x20]
mov rcx, rax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x1400dbd11
cmp dword [rsp + 0x28], edi
je 0x1400dbcfc
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1400dbce3
jmp 0x1400dbd11
lea r8, [rsp + 0x4c]
mov rdx, rbp
mov rcx, r14
call fcn.1400e57d4
mov esi, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x260]
mov eax, esi
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x1400dd960
Capabilities:
Compare security identifiers

Disassembly:
mov rax, rsp
sub rsp, 0x468
cmp dword [0x14026fc2c], 0
jne 0x1400dda8e
mov qword [rax - 8], rbx
xor ebx, ebx
mov word [rax + 0x14], 0x500
mov qword [rax + 0x20], rbx
mov qword [rax + 0x18], rbx
mov dword [rax + 0x10], ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x488]
lea edx, [rbx + 8]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400dda86
mov rcx, qword [rsp + 0x488]
lea rax, [rsp + 0x470]
lea r8, [rsp + 0x60]
lea edx, [rbx + 2]
mov r9d, 0x400
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x1400dda78
lea rax, [rsp + 0x480]
lea r8d, [rbx + 0x20]
lea rcx, [rsp + 0x478]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
mov r9d, 0x220
mov dl, 2
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1400dda78
cmp dword [rsp + 0x60], ebx
jbe 0x1400dda60
nop word [rax + rax]
mov rcx, qword [rsp + 0x480]
mov edx, ebx
add rdx, rdx
mov rdx, qword [rsp + rdx*8 + 0x68]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x1400dda56
inc ebx
cmp ebx, dword [rsp + 0x60]
jb 0x1400dda30
jmp 0x1400dda60
mov dword [0x14026fc30], 1
mov rcx, qword [rsp + 0x480]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [0x14026fc2c], 1
mov rcx, qword [rsp + 0x488]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x460]
mov eax, dword [0x14026fc30]
add rsp, 0x468
ret

Function at 0x1400ddd10
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov edi, edx
mov rbx, rcx
test rcx, rcx
je 0x1400ddd98
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], 0
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x10]
mov rcx, rbx
call qword [sym.imp.USER32.dll_PostMessageW]
mov r8d, dword [rsp + 0x30]
xor edx, edx
mov ecx, 0x100001
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x1400ddd98
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1400ddd98
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x1400ddd98
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov eax, 1
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400df110
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x360
lea r9, [rsp + 0x150]
mov rdi, r8
mov ebx, edx
sub r9, rcx
nop dword [rax]
movzx eax, word [rcx]
lea rcx, [rcx + 2]
mov word [r9 + rcx - 2], ax
test ax, ax
jne 0x1400df130
xor edx, edx
lea rcx, [rsp + 0xe0]
lea r8d, [rdx + 0x68]
call fcn.1400e4040
test rdi, rdi
lea rax, [rsp + 0xc0]
cmovne rax, rdi
xor edi, edi
lea rdx, [rsp + 0x150]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xe0]
xor r9d, r9d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
xor r8d, r8d
xor ecx, ecx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0xe0], 0x68
mov word [rsp + 0x120], bx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1400df23e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2e4
jne 0x1400df22b
lea r8d, [rdi + 0x70]
lea rcx, [rsp + 0x50]
xor edx, edx
call fcn.1400e4040
lea rax, str.runas
lea rcx, [rsp + 0x50]
xorps xmm0, xmm0
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x150]
mov qword [rsp + 0x50], 0x70
movdqa xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x58], rdi
mov dword [rsp + 0x80], ebx
mov qword [rsp + 0x68], rax
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov rbx, qword [rsp + 0x370]
add rsp, 0x360
pop rdi
ret
xor eax, eax
mov rbx, qword [rsp + 0x370]
add rsp, 0x360
pop rdi
ret
mov eax, 1
mov rbx, qword [rsp + 0x370]
add rsp, 0x360
pop rdi
ret

Function at 0x1400df630
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
sub rsp, 0x440
xor edi, edi
mov rsi, r8
mov r10, rdx
mov rbp, rcx
mov dword [rsp + 0x470], edi
test r8, r8
je 0x1400df75a
or rax, 0xffffffffffffffff
nop
inc rax
cmp word [r8 + rax*2], di
jne 0x1400df660
test rax, rax
je 0x1400df75a
lea rax, [rsp + 0x478]
mov r9d, 0x10008
xor r8d, r8d
mov rdx, rsi
mov rcx, r10
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400df75a
mov qword [rsp + 0x460], rbx
nop word [rax + rax]
mov rcx, qword [rsp + 0x478]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
lea r9, [rsp + 0x470]
lea r8, [rsp + 0x40]
xor edx, edx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x470], 0x200
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
cmp eax, 0x103
je 0x1400df71e
test eax, eax
jne 0x1400df731
mov rdx, qword [rsp + 0x478]
lea r8, [rsp + 0x40]
mov rcx, rbp
call fcn.1400df630
mov ebx, 0x3f2
test eax, eax
cmovne ebx, edi
test ebx, ebx
je 0x1400df6b0
jmp 0x1400df731
mov rcx, qword [rsp + 0x468]
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
mov rcx, qword [rsp + 0x478]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov rbx, qword [rsp + 0x460]
sete dil
mov eax, edi
add rsp, 0x440
pop rdi
pop rsi
pop rbp
ret
xor eax, eax
add rsp, 0x440
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400df7d0
Capabilities:
Delete registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x50
mov rcx, qword [rcx + 0x10]
mov rdi, r8
mov rsi, rdx
test rcx, rcx
je 0x1400df883
test rdx, rdx
je 0x1400df883
mov qword [r11 + 0x10], rbx
xor ebx, ebx
mov qword [r11 + 0x20], rcx
test r8, r8
je 0x1400df851
lea rax, [r11 + 8]
xor r9d, r9d
xor r8d, r8d
mov qword [r11 - 0x18], rax
lea rax, [r11 + 0x20]
mov rdx, rdi
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x28], rbx
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1400df84c
xor eax, eax
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
mov rcx, qword [rsp + 0x78]
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
test rdi, rdi
je 0x1400df86c
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
sete bl
mov eax, ebx
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
xor eax, eax
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x1400df890
Capabilities:
Query or enumerate registry key

Disassembly:
sub rsp, 0x28
mov r10, rdx
mov edx, dword [rcx + 0x20]
mov r9d, r8d
lea eax, [rdx + 1]
mov r8, r10
mov dword [rcx + 0x20], eax
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x28
ret

Function at 0x1400df8c0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x40
mov eax, dword [rsp + 0x80]
mov dword [r9], r8d
mov r8, qword [rsp + 0x88]
mov dword [r8], eax
mov qword [rsp + 0x38], r8
mov r10, rdx
mov edx, dword [rcx + 0x20]
xor ebx, ebx
mov r8, r10
lea eax, [rdx + 1]
mov dword [rcx + 0x20], eax
mov rax, qword [rsp + 0x78]
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x40
pop rbx
ret
Function at 0x1400df930
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
xor ebx, ebx
mov rdi, r9
mov rsi, r8
mov r15, rdx
mov r14d, ebx
test rdx, rdx
je 0x1400dfa12
test r8, r8
je 0x1400dfa12
test r9, r9
je 0x1400dfa12
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x1400df9f3
mov r14d, dword [r9]
mov qword [rsp + 0x30], rcx
cmp qword [rsp + 0x88], rbx
je 0x1400df9b1
mov rdx, qword [rsp + 0x88]
lea rax, [rsp + 0x30]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400df9f3
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x68]
xor r8d, r8d
mov rdx, r15
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp qword [rsp + 0x88], rbx
je 0x1400df9e3
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x1400df9f3
cmp dword [rsp + 0x68], 3
sete bl
mov eax, ebx
jmp 0x1400dfa14
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x1400dfa12
mov r8d, r14d
mov rcx, rsi
call fcn.1400e42e0
mov eax, 1
jmp 0x1400dfa14
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret

Function at 0x1400dfa30
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
xor ebx, ebx
mov rdi, r9
mov rsi, r8
mov r15, rdx
mov r14d, ebx
test r9, r9
je 0x1400dfa59
mov r14d, dword [r9]
test rdx, rdx
je 0x1400dfb23
test r8, r8
je 0x1400dfb23
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x1400dfb14
mov qword [rsp + 0x30], rcx
cmp qword [rsp + 0x80], rbx
je 0x1400dfab1
mov rdx, qword [rsp + 0x80]
lea rax, [rsp + 0x30]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400dfb14
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x78]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, r15
mov dword [rsp + 0x68], 4
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r15d, eax
cmp qword [rsp + 0x80], rbx
je 0x1400dfaf1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test r15d, r15d
jne 0x1400dfb14
mov eax, dword [rsp + 0x78]
cmp eax, 4
je 0x1400dfb0b
cmp eax, 3
jne 0x1400dfb10
cmp dword [rsp + 0x68], 4
jne 0x1400dfb10
mov ebx, 1
mov eax, ebx
jmp 0x1400dfb25
test rdi, rdi
je 0x1400dfb23
mov dword [rsi], r14d
mov eax, 1
jmp 0x1400dfb25
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x1400dfb40
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
xor esi, esi
mov r14, r9
mov rdi, r8
mov r15, rdx
mov r12d, esi
test rdx, rdx
je 0x1400dfcef
test r8, r8
je 0x1400dfcef
test r9, r9
je 0x1400dfcef
mov rcx, qword [rcx + 0x10]
mov qword [r11 + 8], rbx
or rbx, 0xffffffffffffffff
mov qword [r11 + 0x18], rbp
test rcx, rcx
je 0x1400dfc9f
mov rbp, qword [rsp + 0x98]
mov r12d, dword [r9]
mov qword [r11 - 0x38], rcx
test rbp, rbp
je 0x1400dfbcc
lea rax, [r11 - 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rbp
mov qword [r11 - 0x48], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400dfc9f
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x78]
xor r8d, r8d
mov rdx, r15
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r15d, eax
test rbp, rbp
je 0x1400dfbfa
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [rsp + 0x78]
cmp ecx, 2
jne 0x1400dfc6c
mov eax, 2
mul r12
cmovo rax, rbx
mov rcx, rax
call fcn.1400e2f98
mov rbp, rax
test rax, rax
je 0x1400dfc68
mov r8d, r12d
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rdx, rdi
mov rcx, rbp
sub rdx, rbp
nop word [rax + rax]
movzx eax, word [rcx]
lea rcx, [rcx + 2]
mov word [rdx + rcx - 2], ax
test ax, ax
jne 0x1400dfc40
mov rax, rbx
inc rax
cmp word [rdi + rax*2], si
jne 0x1400dfc54
mov rcx, rbp
mov dword [r14], eax
call fcn.1400e3e78
mov ecx, dword [rsp + 0x78]
test r15d, r15d
jne 0x1400dfc9f
lea eax, [rcx - 1]
cmp eax, 1
jbe 0x1400dfc7e
cmp ecx, 7
jne 0x1400dfc83
mov esi, 1
mov eax, esi
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x1400dfceb
nop dword [rax]
cmp word [rcx + rbx*2 + 2], si
lea rbx, [rbx + 1]
jne 0x1400dfcb0
lea edx, [rbx*2 + 2]
cmp edx, r12d
ja 0x1400dfceb
sub rdi, rcx
nop word [rax + rax]
movzx eax, word [rcx]
lea rcx, [rcx + 2]
mov word [rdi + rcx - 2], ax
test ax, ax
jne 0x1400dfcd0
mov dword [r14], edx
mov eax, 1
jmp 0x1400dfc85
xor eax, eax
jmp 0x1400dfc85
xor eax, eax
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1400dffc0
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push r14
sub rsp, 0x60
mov rcx, qword [rcx + 0x10]
mov rsi, r9
mov r14d, r8d
mov rbp, rdx
test rcx, rcx
je 0x1400e00a3
test rdx, rdx
je 0x1400e00a3
test r9, r9
je 0x1400e00a3
mov qword [r11 + 0x10], rbx
xor ebx, ebx
mov qword [r11 - 0x18], rcx
cmp qword [rsp + 0x98], rbx
je 0x1400e0064
mov rdx, qword [rsp + 0x98]
lea rax, [r11 + 8]
xor r9d, r9d
mov qword [r11 - 0x28], rax
lea rax, [r11 - 0x18]
xor r8d, r8d
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x38], rbx
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1400e005f
xor eax, eax
mov rbx, qword [rsp + 0x78]
lea r11, [rsp + 0x60]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
mov rcx, qword [rsp + 0x50]
mov eax, dword [rsp + 0x90]
mov r9d, r14d
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rdx, rbp
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
cmp qword [rsp + 0x98], rbx
je 0x1400e009a
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
sete bl
mov eax, ebx
jmp 0x1400e0047
lea r11, [rsp + 0x60]
xor eax, eax
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x1400e0f00
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor edx, edx
mov r8d, 0x840
add rcx, 0x38
call fcn.1400e4040
xor eax, eax
lea rcx, str.DXVA2.DLL
mov qword [rbx + 0x878], rax
mov qword [rbx + 0x880], rax
mov dword [rbx + 0x888], eax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rbx + 8], rax
test rax, rax
je 0x1400e0fe0
lea rdx, str.GetNumberOfPhysicalMonitorsFromHMONITOR
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.GetPhysicalMonitorsFromHMONITOR
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.DestroyPhysicalMonitors
mov qword [rbx + 0x18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.GetMonitorBrightness
mov qword [rbx + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.SetMonitorBrightness
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [rbx + 0x10], 0
mov qword [rbx + 0x30], rax
je 0x1400e0fd3
cmp qword [rbx + 0x18], 0
je 0x1400e0fd3
cmp qword [rbx + 0x20], 0
je 0x1400e0fd3
cmp qword [rbx + 0x28], 0
je 0x1400e0fd3
test rax, rax
jne 0x1400e0fe0
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400e0dc0
add rsp, 0x20
pop rbx
ret