joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140115f20
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.14011fa60
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 0x140116053
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x250], rdi
call fcn.140062bd0
cmp qword [rax + 0x18], 8
jb 0x140115f9b
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 0x140115fc7
mov rcx, qword [rsp + 0x20]
call fcn.14011f898
test edi, edi
je 0x14011602f
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 0x14011600f
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 0x140116021
call sub.NETAPI32.dll_NetApiBufferFree
test edi, edi
je 0x14011602f
mov rcx, qword [rsp + 0x278]
jmp 0x140116041
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 0x140116053
call sub.NETAPI32.dll_NetApiBufferFree
mov eax, ebx
add rsp, 0x258
pop rsi
pop rbx
ret

Function at 0x1401160a0
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 0x14011612a
lea rdx, [rsp + 0x20]
mov rcx, rax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x140116121
cmp dword [rsp + 0x28], edi
je 0x14011610c
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1401160f3
jmp 0x140116121
lea r8, [rsp + 0x4c]
mov rdx, rbp
mov rcx, r14
call fcn.140121234
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 0x140117b90
Capabilities:
Get graphical window text

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x430
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rdi, rdx
mov rbx, rcx
xor esi, esi
mov dword [rsp + 0x20], esi
mov eax, dword [0x1402dfc28]
test al, 1
jne 0x140117c07
or eax, 1
mov dword [0x1402dfc28], eax
mov qword [0x1402dfc20], 7
mov qword [0x1402dfc18], rsi
mov word [0x1402dfc08], si
xor r8d, r8d
lea rdx, [0x140165848]
lea rcx, [0x1402dfc08]
call fcn.14000d340
lea rcx, [0x140163b30]
call fcn.140120af0
nop
mov r8d, 0x200
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [rsp + 0x30], 0
jne 0x140117c28
mov r8, rsi
jmp 0x140117c3c
lea rax, [rsp + 0x30]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x140117c31
lea rdx, [rsp + 0x30]
lea rcx, [0x1402dfc08]
call fcn.14000d340
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rsi
mov word [rbx], si
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [0x1402dfc08]
mov rcx, rbx
call fcn.14000d1f0
mov rax, rbx
lea r11, [rsp + 0x430]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x140117fb0
Capabilities:
Compare security identifiers

Disassembly:
mov rax, rsp
sub rsp, 0x468
cmp dword [0x1402dfb94], 0
jne 0x1401180de
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 0x1401180d6
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 0x1401180c8
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 0x1401180c8
cmp dword [rsp + 0x60], ebx
jbe 0x1401180b0
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 0x1401180a6
inc ebx
cmp ebx, dword [rsp + 0x60]
jb 0x140118080
jmp 0x1401180b0
mov dword [0x1402dfb98], 1
mov rcx, qword [rsp + 0x480]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [0x1402dfb94], 1
mov rcx, qword [rsp + 0x488]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x460]
mov eax, dword [0x1402dfb98]
add rsp, 0x468
ret
Function at 0x140118910
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x40
mov esi, edx
mov rbx, rcx
test rcx, rcx
jne 0x140118932
lea eax, [rcx + 1]
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rsi
ret
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x58], rdi
mov dword [rsp + 0x50], 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 + 0x50]
xor edx, edx
mov ecx, 0x100001
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x140118a01
mov edx, esi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140118a01
test byte [0x1402d741c], 2
je 0x1401189ae
lea r8, str.Did_not_close_within_the_TimeOut__d_ms__lets_terminate_it_
lea rcx, str.KillWindowsProcessTimeOut
mov r9d, esi
mov edx, 2
call fcn.14011a490
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x140118a01
mov eax, dword [rsp + 0x50]
lea r8, str.Cannot_kill_hWnd_0x_x___d__with_process_Id_0x_x__d_
lea rcx, str.KillWindowsProcessTimeOut
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], eax
mov r9, rbx
xor edx, edx
mov qword [rsp + 0x20], rbx
call fcn.14011a490
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x58]
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rsi
ret
mov rdi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov eax, 1
add rsp, 0x40
pop rsi
ret
Function at 0x140119ff0
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 0x14011a010
xor edx, edx
lea rcx, [rsp + 0xe0]
lea r8d, [rdx + 0x68]
call fcn.14011fa60
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 0x14011a11e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2e4
jne 0x14011a10b
lea r8d, [rdi + 0x70]
lea rcx, [rsp + 0x50]
xor edx, edx
call fcn.14011fa60
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 0x14011ab60
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x440
xor edi, edi
mov rsi, r8
mov rbp, rdx
mov dword [rsp + 0x468], edi
cmp rdx, 0xffffffff80000002
jne 0x14011aba0
lea rdx, str.RegistryEx.cpp
lea rcx, str.hStartKey___HKEY_LOCAL_MACHINE
mov r8d, 0x267
call fcn.14000cb10
test rsi, rsi
je 0x14011acaa
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rsi + rax*2], di
jne 0x14011abb0
test rax, rax
je 0x14011acaa
lea rax, [rsp + 0x470]
mov r9d, 0x10008
xor r8d, r8d
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14011acaa
mov qword [rsp + 0x478], rbx
nop dword [rax]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x470]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
lea r9, [rsp + 0x468]
lea r8, [rsp + 0x40]
xor edx, edx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x468], 0x200
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
cmp eax, 0x103
je 0x14011ac73
test eax, eax
jne 0x14011ac81
mov rdx, qword [rsp + 0x470]
mov rcx, qword [rsp + 0x460]
lea r8, [rsp + 0x40]
call fcn.14011ab60
mov ebx, 0x3f2
test eax, eax
cmovne ebx, edi
test ebx, ebx
je 0x14011ac00
jmp 0x14011ac81
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
mov rcx, qword [rsp + 0x470]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov rbx, qword [rsp + 0x478]
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 0x14011ad20
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
cmp qword [rcx + 0x10], 0xffffffff80000002
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
jne 0x14011ad61
cmp dword [rcx + 0x18], 0
jne 0x14011ad61
lea rdx, str.RegistryEx.cpp
lea rcx, str.m_hKey___HKEY_LOCAL_MACHINE__m_bWriteHKLM
mov r8d, 0x2e9
call fcn.14000cb10
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14011adee
test rsi, rsi
je 0x14011adee
xor ebx, ebx
mov qword [rsp + 0x78], rcx
test rdi, rdi
je 0x14011adbc
lea rax, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x78]
mov rdx, rdi
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14011adee
mov rcx, qword [rsp + 0x78]
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
test rdi, rdi
je 0x14011add7
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
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
xor eax, eax
add rsp, 0x50
pop rdi
ret

Function at 0x14011ae00
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x10], 0
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
je 0x14011ae24
test rdx, rdx
jne 0x14011ae3d
lea rdx, str.RegistryEx.cpp
lea rcx, str.m_hKey__pszSubKeyNameBuf
mov r8d, 0x2d3
call fcn.14000cb10
mov edx, dword [rbx + 0x20]
mov rcx, qword [rbx + 0x10]
mov r9d, esi
lea eax, [rdx + 1]
mov r8, rdi
mov dword [rbx + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x20
pop rdi
ret
Function at 0x14011ae70
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x40
cmp qword [rcx + 0x10], 0
mov rbx, qword [rsp + 0x98]
mov r14, qword [rsp + 0x88]
mov r15, qword [rsp + 0x80]
mov rdi, r9
mov r12d, r8d
mov rbp, rdx
mov rsi, rcx
je 0x14011aed2
test rdx, rdx
je 0x14011aed2
test r9, r9
je 0x14011aed2
test r15, r15
je 0x14011aed2
test r14, r14
je 0x14011aed2
test rbx, rbx
jne 0x14011aeeb
lea rdx, str.RegistryEx.cpp
lea rcx, str.m_hKey__pszValueNameBuf__pdwValueNameLen__pdwValueType__pDataBuf__pdwDataLen
mov r8d, 0x2b6
call fcn.14000cb10
mov eax, dword [rsp + 0x90]
mov dword [rdi], r12d
mov qword [rsp + 0x38], rbx
mov dword [rbx], eax
mov edx, dword [rsi + 0x20]
mov rcx, qword [rsi + 0x10]
lea eax, [rdx + 1]
mov qword [rsp + 0x30], r14
xor ebx, ebx
mov r9, rdi
mov r8, rbp
mov qword [rsp + 0x28], r15
mov dword [rsi + 0x20], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
test eax, eax
sete bl
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r15
pop r14
pop r12
ret

Function at 0x14011af50
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rdi
push r12
push r14
push r15
sub rsp, 0x30
mov r14, r9
mov rdi, r8
mov r12, rdx
mov rbp, rcx
cmp r8, qword [rsp + 0x80]
jne 0x14011af90
lea rdx, str.RegistryEx.cpp
lea rcx, str.pvValue___pvDefaultValue
mov r8d, 0x183
call fcn.14000cb10
xor ebx, ebx
mov r15d, ebx
test r12, r12
je 0x14011b07a
test rdi, rdi
je 0x14011b07a
test r14, r14
je 0x14011b07a
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x14011b046
mov rbp, qword [rsp + 0x88]
mov r15d, dword [r14]
mov qword [rsp + 0x70], rcx
test rbp, rbp
je 0x14011aff7
lea rax, [rsp + 0x70]
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14011b046
mov rcx, qword [rsp + 0x70]
lea r9, [rsp + 0x68]
xor r8d, r8d
mov rdx, r12
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r14d, eax
test rbp, rbp
je 0x14011b025
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test r14d, r14d
jne 0x14011b046
cmp dword [rsp + 0x68], 3
sete bl
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
cmp qword [rsp + 0x80], rbx
je 0x14011b07a
mov rdx, qword [rsp + 0x80]
mov r8d, r15d
mov rcx, rdi
call fcn.14011fd00
mov eax, 1
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x14011b090
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], r8
push rbx
push rbp
push rsi
push r14
sub rsp, 0x48
xor ebx, ebx
mov r14, r9
mov rbp, rdx
mov esi, ebx
test r9, r9
je 0x14011b0b0
mov esi, dword [r9]
test rdx, rdx
je 0x14011b28c
cmp qword [rsp + 0x80], rbx
je 0x14011b28c
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x40], rdi
test rcx, rcx
je 0x14011b12f
mov rdi, qword [rsp + 0x90]
mov qword [rsp + 0x30], rcx
test rdi, rdi
je 0x14011b17a
lea rax, [rsp + 0x30]
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14011b17a
test byte [0x1402d741c], 4
je 0x14011b12f
lea r8, str.Couldnt_open_subkey:__s_n
lea rcx, str.CRegistryEx::GetDWORD
mov r9, rdi
mov edx, 3
call fcn.14011a490
test r14, r14
je 0x14011b27b
test byte [0x1402d741c], 4
je 0x14011b15c
lea r8, str.Returning_default_value:_0x_08X_n
lea rcx, str.CRegistryEx::GetDWORD
mov r9d, esi
mov edx, 3
call fcn.14011a490
mov rax, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x40]
mov dword [rax], esi
mov eax, 1
add rsp, 0x48
pop r14
pop rsi
pop rbp
pop rbx
ret
test byte [0x1402d741c], 4
je 0x14011b19e
lea r8, str.Opened_subkey:__s_n
lea rcx, str.CRegistryEx::GetDWORD
mov r9, rdi
mov edx, 3
call fcn.14011a490
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x88]
lea r9, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x80]
xor r8d, r8d
mov rdx, rbp
mov dword [rsp + 0x88], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebp, eax
test rdi, rdi
je 0x14011b1eb
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebp, ebp
je 0x14011b21c
test byte [0x1402d741c], 4
je 0x14011b12f
lea r8, str.Error_querying_value:__d_n
lea rcx, str.CRegistryEx::GetDWORD
mov r9d, ebp
mov edx, 3
call fcn.14011a490
jmp 0x14011b12f
test byte [0x1402d741c], 4
je 0x14011b24d
mov eax, dword [rsp + 0x78]
lea r9, [rsp + 0x80]
lea r8, str.Read_0x_08X_successfully._Type_d._n
lea rcx, str.CRegistryEx::GetDWORD
mov edx, 3
mov dword [rsp + 0x20], eax
call fcn.14011a490
mov eax, dword [rsp + 0x78]
cmp eax, 4
je 0x14011b265
cmp eax, 3
jne 0x14011b26a
cmp dword [rsp + 0x88], 4
jne 0x14011b26a
mov ebx, 1
mov eax, ebx
mov rdi, qword [rsp + 0x40]
add rsp, 0x48
pop r14
pop rsi
pop rbp
pop rbx
ret
xor eax, eax
mov rdi, qword [rsp + 0x40]
add rsp, 0x48
pop r14
pop rsi
pop rbp
pop rbx
ret
xor eax, eax
add rsp, 0x48
pop r14
pop rsi
pop rbp
pop rbx
ret
Function at 0x14011b2a0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x30
mov rbx, qword [rsp + 0x80]
mov r12, r9
mov rsi, r8
mov r15, rdx
mov rdi, rcx
cmp r8, rbx
jne 0x14011b2e8
lea rdx, str.RegistryEx.cpp
lea rcx, str.pszValue___pszDefaultValue
mov r8d, 0x126
call fcn.14000cb10
xor ebp, ebp
mov r13d, ebp
test r15, r15
je 0x14011b480
test rsi, rsi
je 0x14011b480
test r12, r12
je 0x14011b480
mov rcx, qword [rdi + 0x10]
or rdi, 0xffffffffffffffff
mov qword [rsp + 0x60], r14
test rcx, rcx
je 0x14011b435
mov r14, qword [rsp + 0x88]
mov r13d, dword [r12]
mov qword [rsp + 0x68], rcx
test r14, r14
je 0x14011b35d
lea rax, [rsp + 0x68]
mov r9d, 0x20019
xor r8d, r8d
mov rdx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14011b435
mov rcx, qword [rsp + 0x68]
lea r9, [rsp + 0x80]
xor r8d, r8d
mov rdx, r15
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r15d, eax
test r14, r14
je 0x14011b38e
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [rsp + 0x80]
cmp ecx, 2
jne 0x14011b400
mov eax, 2
mul r13
cmovo rax, rdi
mov rcx, rax
call fcn.14011e9a4
mov r14, rax
test rax, rax
je 0x14011b3f9
mov r8d, r13d
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rdx, rsi
mov rcx, r14
sub rdx, r14
nop
movzx eax, word [rcx]
lea rcx, [rcx + 2]
mov word [rdx + rcx - 2], ax
test ax, ax
jne 0x14011b3d0
mov rax, rdi
inc rax
cmp word [rsi + rax*2], bp
jne 0x14011b3e4
mov rcx, r14
mov dword [r12], eax
call fcn.140120c5c
mov ecx, dword [rsp + 0x80]
test r15d, r15d
jne 0x14011b435
lea eax, [rcx - 1]
cmp eax, 1
jbe 0x14011b412
cmp ecx, 7
jne 0x14011b417
mov ebp, 1
mov eax, ebp
mov r14, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret
test rbx, rbx
je 0x14011b47c
nop word [rax + rax]
cmp word [rbx + rdi*2 + 2], bp
lea rdi, [rdi + 1]
jne 0x14011b440
lea ecx, [rdi*2 + 2]
cmp ecx, r13d
ja 0x14011b47c
sub rsi, rbx
nop word [rax + rax]
movzx eax, word [rbx]
lea rbx, [rbx + 2]
mov word [rsi + rbx - 2], ax
test ax, ax
jne 0x14011b460
mov dword [r12], ecx
mov eax, 1
jmp 0x14011b419
xor eax, eax
jmp 0x14011b419
xor eax, eax
jmp 0x14011b41e
Function at 0x14011b7d0
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 0x14011b8b3
test rdx, rdx
je 0x14011b8b3
test r9, r9
je 0x14011b8b3
mov qword [r11 + 0x10], rbx
xor ebx, ebx
mov qword [r11 - 0x18], rcx
cmp qword [rsp + 0x98], rbx
je 0x14011b874
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 0x14011b86f
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 0x14011b8aa
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
sete bl
mov eax, ebx
jmp 0x14011b857
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 0x14011c550
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.14011fa60
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 0x14011c630
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 0x14011c623
cmp qword [rbx + 0x18], 0
je 0x14011c623
cmp qword [rbx + 0x20], 0
je 0x14011c623
cmp qword [rbx + 0x28], 0
je 0x14011c623
test rax, rax
jne 0x14011c630
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14011c6f0
add rsp, 0x20
pop rbx
ret