joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002a418
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x1400a1df8]
xor rax, rsp
mov qword [rbp - 8], rax
and qword [rbp - 0x10], 0
lea rdx, [rbp - 0x30]
call fcn.1400272d0
nop
lea r8, [0x14007ce60]
mov rdx, rax
lea rcx, [rbp - 0x38]
call fcn.1400133b8
nop
lea r8, [0x1400a5fd8]
mov rdx, rax
lea rcx, [rbp - 0x10]
call fcn.140018fc8
nop
mov rdx, qword [rbp - 0x38]
add rdx, 0xffffffffffffffe8
or esi, 0xffffffff
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x14002a49b
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140078a80]
nop
mov rdx, qword [rbp - 0x30]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x14002a4c3
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140078a80]
and qword [rbp - 0x18], 0
lea r8, [0x14007d018]
mov rdx, qword [rbp - 0x10]
lea rcx, [rbp - 0x18]
call fcn.140053cf0
cmp qword [rbp - 0x18], 0
je 0x14002a5ad
call fcn.14000c2f0
mov rcx, rax
test rax, rax
je 0x14002a5fa
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [0x140078a80]
add rax, 0x18
mov qword [rbp - 0x40], rax
xor ecx, ecx
call fcn.1400583d8
mov qword [rbp - 0x28], rax
lea r8, str._Y__m__d__H:_M:_S
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x28]
call fcn.14001b7a0
nop
mov rdx, rax
lea rcx, [rbp - 0x40]
call fcn.140013330
nop
mov rdx, qword [rbp - 0x20]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x14002a562
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140078a80]
mov rbx, qword [rbp - 0x40]
movsxd r8, dword [rbx - 0x10]
mov r9, qword [rbp - 0x18]
mov edx, 2
mov rcx, rbx
call fcn.140054b78
mov rcx, qword [rbp - 0x18]
call fcn.140054154
nop
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x14002a5a9
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140078a80]
xor ebx, ebx
jmp 0x14002a5b2
mov ebx, 1
mov rdx, qword [rbp - 0x10]
add rdx, 0xffffffffffffffe8
mov ecx, esi
lock xadd dword [rdx + 0x10], ecx
add ecx, esi
test ecx, ecx
jg 0x14002a5da
lfence
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [0x140078a80]
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140037490
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
mov ecx, 0x80004005
call fcn.140009b24
int3
Function at 0x14002bb84
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x2a0
mov rax, qword [0x1400a1df8]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rbx, r8
mov rsi, rdx
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], rbx
lea r8, str..
lea rcx, [rsp + 0x20]
call fcn.1400133b8
lea rdx, [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
or rbp, 0xffffffffffffffff
mov ecx, ebp
lock xadd dword [rdx + 0x10], ecx
add ecx, ebp
test ecx, ecx
jg 0x14002bc04
lfence
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [0x140078a80]
cmp rdi, rbp
je 0x14002bc39
mov rax, qword [rbx]
cmp dword [rax - 0x10], 0
jle 0x14002bc39
lea rdx, [rsp + 0x6c]
mov rcx, qword [rbx]
call fcn.1400539f8
test eax, eax
je 0x14002bcb7
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14002bc12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
mov rdx, qword [rsi]
sub rdx, 0x18
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, ebp
test eax, eax
jg 0x14002bc6b
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140078a80]
nop
mov rdx, qword [rbx]
sub rdx, 0x18
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, ebp
test eax, eax
jg 0x14002bc92
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140078a80]
xor eax, eax
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.140037490
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x2a0
pop rdi
pop rsi
pop rbp
ret
mov rdx, qword [rsi]
sub rdx, 0x18
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, ebp
test eax, eax
jg 0x14002bcdf
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140078a80]
nop
mov rdx, qword [rbx]
sub rdx, 0x18
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, ebp
test eax, eax
jg 0x14002bd06
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140078a80]
mov eax, 1
jmp 0x14002bc94
Function at 0x14002ce00
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x1400a1df8]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rdi, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x14002ce34
xor eax, eax
jmp 0x14002cf44
cmp qword [rcx + 0x68], 0
je 0x14002ce48
lfence
call fcn.14002cf70
jmp 0x14002cf44
mov rax, qword [rcx + 0x38]
mov rbp, rdi
mov qword [rsp + 0x20], rdi
mov rdx, qword [rax]
test rdx, rdx
je 0x14002ce64
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14002ce66
xor ecx, ecx
movsxd rax, ecx
mov rbx, rdi
test ecx, ecx
je 0x14002cea0
cmp rax, rdi
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.14003c3f0
mov rax, qword [rsi + 0x50]
sub rbp, rbx
add r14, rbx
mov qword [rsp + 0x20], rbp
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
mov rbx, rbp
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14002cf39
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14002cedb
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov r15d, 0xfff
cmp rbx, r15
jbe 0x14002cf15
mov r9, qword [rsi + 0x80]
mov r8, r15
mov edx, 1
mov rcx, r14
call fcn.140054008
sub rbp, rax
add r14, rax
mov qword [rsp + 0x20], rbp
mov rbx, rbp
cmp rax, r15
jne 0x14002cf39
cmp rbp, r15
ja 0x14002cee6
test rbx, rbx
je 0x14002cf39
mov r9, qword [rsi + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, r14
call fcn.140054008
sub rbx, rax
mov qword [rsp + 0x20], rbx
lfence
sub rdi, qword [rsp + 0x20]
mov rax, rdi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140037490
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002df50
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x1400a1df8]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov rsi, rdx
mov rbx, rcx
cmp qword [rcx + 0x78], 0
je 0x14002e160
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rax
and qword [rsp + 0x40], rax
and dword [rsp + 0x48], eax
and qword [rsp + 0x50], rax
and dword [rsp + 0x58], eax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0xf003f
and dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, str.SoftwareIntelDisplayigfxcuiHotKeys
mov rdx, 0xffffffff80000001
lea rcx, [rsp + 0x40]
call fcn.14000a5c0
test eax, eax
jne 0x14002e14d
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x70]
call fcn.14003b440
mov dword [rsp + 0x58], 0x104
lea r9, [rsp + 0x58]
lea r8, [rbp - 0x70]
lea rdx, str.ProfileCMDLineArgs
lea rcx, [rsp + 0x40]
call fcn.14003492c
mov edi, eax
test eax, eax
jne 0x14002e12a
lea rdx, [0x14007bb24]
lea rcx, [rbp - 0x70]
call fcn.1400538fc
test eax, eax
je 0x14002e12a
mov rcx, qword [rbx + 0x78]
test rcx, rcx
je 0x14002e182
mov rax, qword [rcx]
lea r8d, [rdi + 1]
lea rdx, [rbp - 0x70]
mov rax, qword [rax + 0x398]
call qword [0x140078a80]
mov ebx, eax
and qword [rsp + 0x58], 0
lea rcx, [rsp + 0x60]
call fcn.1400583d8
lea r8, [rsp + 0x60]
lea edx, [rdi + 0x1a]
lea rcx, [rsp + 0x68]
call fcn.140059014
lea r8, [0x14007e858]
lea rdx, str.C:IntelLogsIntelProfileLog.txt
lea rcx, [rsp + 0x58]
call fcn.140053d50
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14002e0ed
lea r8, [rsp + 0x68]
lea rdx, [0x14007e884]
call fcn.1400354e4
lea rdx, str._s__n
mov rcx, qword [rsp + 0x58]
test ebx, ebx
lea r8, str.Profile_Apply_operation_is_SUCCEESS
je 0x14002e0d9
lea r8, str.Profile_Apply_operation_is_FAILED
call fcn.14001db68
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14002e0ed
call fcn.140054154
mov r9d, 0xf003f
lea r8, str.SoftwareIntelDisplayigfxcuiHotKeys
mov rdx, 0xffffffff80000001
lea rcx, [rsp + 0x40]
call fcn.14000e39c
mov edi, eax
test eax, eax
jne 0x14002e12a
lea rdx, str.ProfileCMDLineArgs
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
jmp 0x14002e12f
mov rbx, qword [rsp + 0x40]
test rsi, rsi
je 0x14002e13b
test edi, edi
sete al
mov byte [rsi], al
test rbx, rbx
je 0x14002e152
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
jmp 0x14002e152
mov rbx, qword [rsp + 0x40]
test rbx, rbx
je 0x14002e160
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.140037490
mov rbx, qword [rsp + 0x2e0]
add rsp, 0x2b0
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004003
call fcn.140037b00
int3
Function at 0x14002fb88
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x1400a1df8]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rbx, qword [0x1400aaf30]
mov r15, rcx
mov rcx, rbx
movzx edx, dx
mov r8d, 0xf0
mov edi, 1
call qword [sym.imp.KERNEL32.dll_FindResourceW]
xor r12d, r12d
test rax, rax
je 0x14002fd2a
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14002fd2a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14002fd2a
movzx esi, word [rbx]
cmp r12w, si
je 0x14002fd2a
movzx eax, word [rbx + 2]
mov ecx, 0x403
mov r14d, dword [rbx + 4]
add rbx, 8
cmp cx, ax
jne 0x14002fcae
xor edx, edx
lea rcx, [rbp + 0x88]
mov r8d, 0x100
call fcn.14003b440
lea rax, [rbp + 0x88]
mov r8d, 3
mov rdx, rbx
mov qword [rbp + 0x80], rax
lea rcx, [rbp + 0x80]
call fcn.1400310bc
mov rax, qword [rbp + 0x80]
mov edx, esi
mov rcx, qword [r15 + 8]
xor r9d, r9d
mov r8d, 0x143
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov rcx, qword [rbp + 0x80]
cmp rax, 0xffffffffffffffff
lea rax, [rbp + 0x88]
cmove edi, r12d
cmp rcx, rax
je 0x14002fd1f
call fcn.1400478e8
jmp 0x14002fd1f
mov ecx, 0x1234
cmp cx, ax
jne 0x14002fd1f
or qword [rbp + 0x48], 0xffffffffffffffff
lea rax, [rsp + 0x38]
mov r8d, 3
mov qword [rsp + 0x30], rax
mov rdx, rbx
mov dword [rbp + 0x40], 1
lea rcx, [rsp + 0x30]
call fcn.1400310bc
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rbp + 0x50], rcx
cmp rcx, rax
je 0x14002fcf9
call fcn.1400478e8
mov rcx, qword [r15 + 8]
lea rax, [rbp + 0x40]
mov edx, esi
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x40b
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
cmp rax, 0xffffffffffffffff
cmove edi, r12d
add rbx, r14
test edi, edi
jne 0x14002fc11
mov eax, edi
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.140037490
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret

Function at 0x1400303d8
Capabilities:
Get keyboard layout
Identify system language via api

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x120
mov rax, qword [0x1400a1df8]
xor rax, rsp
mov qword [rsp + 0x110], rax
xor ebx, ebx
lea rdx, [rsp + 0x20]
lea ecx, [rbx + 0x1e]
call qword [sym.imp.USER32.dll_GetKeyboardLayoutList]
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx edi, ax
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
cmp di, ax
jne 0x14003043d
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx ecx, ax
mov eax, ebx
cmp cx, word [rsp + rax*8 + 0x20]
jne 0x140030432
mov rbx, qword [rsp + rax*8 + 0x20]
inc rax
cmp rax, 0x1e
jl 0x140030426
jmp 0x140030455
mov rcx, rbx
cmp di, word [rsp + rcx*8 + 0x20]
jne 0x14003044c
mov rbx, qword [rsp + rcx*8 + 0x20]
inc rcx
cmp rcx, 0x1e
jl 0x140030440
mov rax, rbx
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.140037490
mov rbx, qword [rsp + 0x130]
add rsp, 0x120
pop rdi
ret
Function at 0x140030ae8
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x250
mov rax, qword [0x1400a1df8]
xor rax, rsp
mov qword [rsp + 0x240], rax
or edi, 0xffffffff
mov r14, r8
mov rbp, rdx
lea r15d, [rdi + 2]
test rdx, rdx
je 0x140030bd2
mov edx, r15d
mov rcx, rbp
call qword [sym.imp.USER32.dll_ActivateKeyboardLayout]
xor ebx, ebx
lea rsi, [0x1400a1290]
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call fcn.14003b440
movsxd rax, ebx
mov rcx, r14
imul rdx, rax, 0x2c
lea rax, [0x1400a1294]
add rdx, rax
call fcn.1400539f8
test eax, eax
je 0x140030bd0
mov eax, dword [rsi]
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], eax
call fcn.14002e9f4
mov ecx, dword [rsp + 0x20]
mov r8, rbp
xor edx, edx
call qword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov edx, 0x1000001
mov r8d, 0x104
mov ecx, eax
lea eax, [rbx - 0xf]
shl ecx, 0x10
cmp eax, 3
cmova edx, r15d
or ecx, edx
lea rdx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetKeyNameTextW]
lea rdx, [rsp + 0x30]
mov rcx, r14
call fcn.1400539f8
test eax, eax
je 0x140030bd0
add ebx, r15d
add rsi, 0x2c
cmp ebx, 0x42
jl 0x140030b38
jmp 0x140030bd2
mov edi, ebx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
mov rcx, rax
mov edx, r15d
call qword [sym.imp.USER32.dll_ActivateKeyboardLayout]
mov eax, edi
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140037490
mov rbx, qword [rsp + 0x280]
add rsp, 0x250
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x140030c10
Capabilities:
Get common file path
Get file version info

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x1028]
mov eax, 0x1120
call fcn.140037420
sub rsp, rax
mov rax, qword [0x1400a1df8]
xor rax, rsp
mov qword [rbp + 0x1010], rax
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x8c8
xor ebx, ebx
call fcn.14003b440
xor edx, edx
lea rcx, [rbp + 0x810]
mov r8d, 0x800
call fcn.14003b440
mov edx, 0x400
lea rcx, [rbp + 0x810]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edi, 0x464
lea r8, [rbp + 0x810]
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.140047ecc
lea r8, [0x14007e780]
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.140047e4c
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x40]
lea ecx, [rbx + 3]
call sub.VERSION.dll_GetFileVersionInfoSizeExW
mov edx, eax
lea ecx, [rbx + 0x40]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
je 0x140030d18
mov r9d, esi
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea ecx, [rbx + 3]
call sub.VERSION.dll_GetFileVersionInfoExW
lea r9, [rsp + 0x3c]
mov rcx, rdi
lea r8, [rsp + 0x30]
lea rdx, [0x14007ce60]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140030d0f
mov rax, qword [rsp + 0x30]
movzx ebx, word [rax + 0x16]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, ebx
mov rcx, qword [rbp + 0x1010]
xor rcx, rsp
call fcn.140037490
lea r11, [rsp + 0x1120]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140030e78
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x1400a1df8]
xor rax, rsp
mov qword [rbp - 8], rax
xor ebx, ebx
lea rdx, str.SoftwareIntelDisplayigfxcuiigfxtrayTrayIcon
xor ecx, ecx
mov qword [rbp - 0x20], rbx
call fcn.140030540
mov rdi, rax
mov dword [rbp - 0x18], ebx
lea eax, [rbx + 4]
mov r9d, 0xf003f
mov dword [rbp - 0x14], eax
lea rdx, str.SoftwareIntelDisplayigfxcuiigfxtrayTrayIcon
mov dword [rbp - 0x10], eax
xor r8d, r8d
lea rax, [rbp - 0x20]
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x140030f14
lea rax, [rbp - 0x14]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x10]
lea rax, [rbp - 0x18]
lea rdx, str.ShowTrayIcon
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140030f46
test rdi, rdi
je 0x140030f4e
lea rax, [rbp - 0x14]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x10]
lea rax, [rbp - 0x18]
mov rcx, rdi
lea rdx, str.ShowTrayIcon
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140030f4e
cmp dword [rbp - 0x18], ebx
setne bl
jmp 0x140030f58
mov eax, 1
mov dword [rbp - 0x18], eax
mov ebx, eax
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140037490
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x50
pop rbp
ret

Function at 0x140031884
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rsi
sub rsp, 0x260
mov rax, qword [0x1400a1df8]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor edx, edx
xor ecx, ecx
xor ebx, ebx
call fcn.140027b84
mov rsi, rax
test rax, rax
jne 0x1400318be
lea ebx, [rax + 1]
jmp 0x14003193f
xor edx, edx
mov dword [rsp + 0x34], 1
mov r8d, 0x208
mov dword [rsp + 0x30], 0x104
lea rcx, [rsp + 0x40]
call fcn.14003b440
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x40]
mov rcx, rsi
lea rdx, str.Version
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140031936
lea rdx, str.3.0.0.0
lea rcx, [rsp + 0x40]
call fcn.1400538fc
test eax, eax
jne 0x140031931
call fcn.140030c10
cmp eax, 0x3fab
jae 0x140031936
mov ebx, 1
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140037490
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rsi
ret
Function at 0x14003492c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1400a1df8]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov eax, dword [r9]
mov rbx, r8
add eax, eax
mov rdi, r9
mov dword [rsp + 0x30], eax
xor esi, esi
mov dword [r9], esi
lea rax, [r11 - 0x28]
mov rcx, qword [rcx]
lea r9, [r11 - 0x24]
mov qword [r11 - 0x30], rax
xor r8d, r8d
mov qword [r11 - 0x38], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400349a7
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 1
ja 0x1400349a2
mov ecx, dword [rsp + 0x30]
test rbx, rbx
je 0x1400349bf
test ecx, ecx
je 0x1400349bc
test cl, 1
jne 0x1400349a2
mov eax, ecx
shr rax, 1
cmp word [rbx + rax*2 - 2], si
je 0x1400349bf
mov eax, ILFindLastID
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140037490
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
mov word [rbx], si
shr ecx, 1
mov dword [rdi], ecx
xor eax, eax
jmp 0x1400349a7

Function at 0x1400349c8
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x830
mov rax, qword [0x1400a1df8]
xor rax, rsp
mov qword [rsp + 0x820], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x800
call fcn.14003b440
mov edx, 0x400
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, str.User32.dll
mov edx, 0x400
lea rcx, [rsp + 0x20]
call fcn.140047e4c
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x140034a56
lea rdx, str.RegisterSuspendResumeNotification
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140034a56
mov rcx, qword [rbx + 8]
xor edx, edx
call qword [0x140078a80]
mov qword [rbx + 0x80], rax
mov rcx, qword [rsp + 0x820]
xor rcx, rsp
call fcn.140037490
add rsp, 0x830
pop rbx
ret

Function at 0x140034e08
Capabilities:
Create thread

Disassembly:
sub rsp, 0x48
mov rax, qword [0x1400a1df8]
xor rax, rsp
mov qword [rsp + 0x38], rax
and dword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r8, [0x140031990]
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x140034e51
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140037490
add rsp, 0x48
ret
Function at 0x140034ff8
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1400a1df8]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
mov rcx, qword [rcx + 0x78]
test rcx, rcx
je 0x14003516e
and dword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rax, qword [rcx]
xor r8d, r8d
mov rax, qword [rax + 0x448]
call qword [0x140078a80]
test eax, eax
js 0x14003516e
cmp dword [rsp + 0x30], 0
je 0x14003516e
and dword [rsp + 0x34], 0
mov rcx, qword [rbx + 0x78]
test rcx, rcx
je 0x140035181
mov rax, qword [rcx]
lea rdx, [rsp + 0x34]
mov rax, qword [rax + 0x4d0]
call qword [0x140078a80]
test eax, eax
js 0x14003516e
cmp dword [rsp + 0x34], 1
jne 0x14003516e
lea r9, str.GlobalSmartFrameOperation
mov byte [0x1400a9985], 1
xor r8d, r8d
mov byte [0x1400a1280], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
lea r9, str.LocalExitSmartFrameThread
xor r8d, r8d
xor edx, edx
mov qword [0x1400aa190], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x1400aa198], rax
and qword [rbx + 0xa98], 0
mov rax, qword [0x1400aa190]
mov rcx, qword [0x1400aa198]
test rax, rax
je 0x140035128
test rcx, rcx
je 0x140035128
lea rax, [rbx + 0xaa0]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [0x140034d30]
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rbx
mov qword [rbx + 0xa98], rax
call fcn.140034c7c
lea rdx, str.SmartFrame_monitor_started_successfully
jmp 0x140035166
mov byte [0x1400a1280], 1
test rax, rax
je 0x14003514c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [0x1400aa190], 0
mov rcx, qword [0x1400aa198]
test rcx, rcx
je 0x14003515f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [0x1400aa198], 0
lea rdx, str.SmartFrame_failed_to_start
mov rcx, rbx
call fcn.140034cf0
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140037490
add rsp, 0x40
pop rbx
ret
mov ecx, 0x80004003
call fcn.140037b00
int3

Function at 0x1400353dc
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x830
mov rax, qword [0x1400a1df8]
xor rax, rsp
mov qword [rsp + 0x820], rax
cmp qword [rcx + 0x80], 0
mov rbx, rcx
je 0x14003547d
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x800
call fcn.14003b440
mov edi, 0x400
lea rcx, [rsp + 0x20]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, str.User32.dll
mov edx, edi
lea rcx, [rsp + 0x20]
call fcn.140047e4c
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
test rax, rax
je 0x14003547d
lea rdx, str.UnregisterSuspendResumeNotification
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140035474
mov rcx, qword [rbx + 0x80]
call qword [0x140078a80]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rsp + 0x820]
xor rcx, rsp
call fcn.140037490
mov rbx, qword [rsp + 0x848]
add rsp, 0x830
pop rdi
ret