joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001f9d0
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x2a0
mov rax, qword [0x140086e08]
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, [0x140068120]
lea rcx, [rsp + 0x20]
call fcn.140013308
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 0x14001fa50
lfence
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [0x140063a18]
cmp rdi, rbp
je 0x14001fa85
mov rax, qword [rbx]
cmp dword [rax - 0x10], 0
jle 0x14001fa85
lea rdx, [rsp + 0x6c]
mov rcx, qword [rbx]
call fcn.1400400ec
test eax, eax
je 0x14001fb03
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14001fa5e
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 0x14001fab7
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140063a18]
nop
mov rdx, qword [rbx]
sub rdx, 0x18
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, ebp
test eax, eax
jg 0x14001fade
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140063a18]
xor eax, eax
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.14002a660
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 0x14001fb2b
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140063a18]
nop
mov rdx, qword [rbx]
sub rdx, 0x18
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, ebp
test eax, eax
jg 0x14001fb52
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140063a18]
mov eax, 1
jmp 0x14001fae0
Function at 0x140020bf0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140020c15
xor eax, eax
jmp 0x140020d12
cmp qword [rcx + 0x68], 0
je 0x140020c29
lfence
call fcn.140020d30
jmp 0x140020d12
mov rax, qword [rcx + 0x38]
mov rbp, rdi
mov rdx, qword [rax]
test rdx, rdx
je 0x140020c40
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140020c42
xor ecx, ecx
movsxd rax, ecx
mov rbx, rdi
test ecx, ecx
je 0x140020c77
cmp rax, rdi
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.14002ee00
mov rax, qword [rsi + 0x50]
add r14, rbx
sub rbp, rbx
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 0x140020d09
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140020cb2
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 0x140020ce7
mov r9, qword [rsi + 0x80]
mov r8, r15
mov edx, 1
mov rcx, r14
call fcn.1400406fc
sub rbp, rax
add r14, rax
mov rbx, rbp
cmp rax, r15
jne 0x140020d09
cmp rbp, r15
ja 0x140020cbd
test rbx, rbx
je 0x140020d09
mov r9, qword [rsi + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, r14
call fcn.1400406fc
mov rbp, rbx
sub rbp, rax
sub rdi, rbp
mov rax, rdi
lfence
mov rbx, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140021a34
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 [0x140086e08]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov rsi, rdx
mov rbx, rcx
cmp qword [rcx + 0x78], 0
je 0x140021c44
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.14000a4f8
test eax, eax
jne 0x140021c31
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x70]
call fcn.14002de80
mov dword [rsp + 0x58], 0x104
lea r9, [rsp + 0x58]
lea r8, [rbp - 0x70]
lea rdx, str.ProfileCMDLineArgs
lea rcx, [rsp + 0x40]
call fcn.140028598
mov edi, eax
test eax, eax
jne 0x140021c0e
lea rdx, [0x140066a54]
lea rcx, [rbp - 0x70]
call fcn.14003fff0
test eax, eax
je 0x140021c0e
mov rcx, qword [rbx + 0x78]
test rcx, rcx
je 0x140021c66
mov rax, qword [rcx]
lea r8d, [rdi + 1]
lea rdx, [rbp - 0x70]
mov rax, qword [rax + 0x398]
call qword [0x140063a18]
mov ebx, eax
and qword [rsp + 0x58], 0
lea rcx, [rsp + 0x60]
call fcn.1400434cc
lea r8, [rsp + 0x60]
lea edx, [rdi + 0x1a]
lea rcx, [rsp + 0x68]
call fcn.1400442ec
lea r8, [0x140068c38]
lea rdx, str.C:IntelLogsIntelProfileLog.txt
lea rcx, [rsp + 0x58]
call fcn.140040444
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140021bd1
lea r8, [rsp + 0x68]
lea rdx, [0x140068c64]
call fcn.140029164
lea rdx, str._s__n
mov rcx, qword [rsp + 0x58]
test ebx, ebx
lea r8, str.Profile_Apply_operation_is_SUCCEESS
je 0x140021bbd
lea r8, str.Profile_Apply_operation_is_FAILED
call fcn.1400186b0
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140021bd1
call fcn.1400408e4
mov r9d, 0xf003f
lea r8, str.SoftwareIntelDisplayigfxcuiHotKeys
mov rdx, 0xffffffff80000001
lea rcx, [rsp + 0x40]
call fcn.14000e28c
mov edi, eax
test eax, eax
jne 0x140021c0e
lea rdx, str.ProfileCMDLineArgs
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
jmp 0x140021c13
mov rbx, qword [rsp + 0x40]
test rsi, rsi
je 0x140021c1f
test edi, edi
sete al
mov byte [rsi], al
test rbx, rbx
je 0x140021c36
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
jmp 0x140021c36
mov rbx, qword [rsp + 0x40]
test rbx, rbx
je 0x140021c44
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.14002a660
mov rbx, qword [rsp + 0x2e0]
add rsp, 0x2b0
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004003
call fcn.14002ace0
int3
Function at 0x140023708
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 [0x140086e08]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rbx, qword [0x14008fe10]
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 0x1400238aa
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400238aa
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x1400238aa
movzx esi, word [rbx]
cmp r12w, si
je 0x1400238aa
movzx eax, word [rbx + 2]
mov ecx, 0x403
mov r14d, dword [rbx + 4]
add rbx, 8
cmp cx, ax
jne 0x14002382e
xor edx, edx
lea rcx, [rbp + 0x88]
mov r8d, 0x100
call fcn.14002de80
lea rax, [rbp + 0x88]
mov r8d, 3
mov rdx, rbx
mov qword [rbp + 0x80], rax
lea rcx, [rbp + 0x80]
call fcn.140024be8
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 0x14002389f
call fcn.140033268
jmp 0x14002389f
mov ecx, 0x1234
cmp cx, ax
jne 0x14002389f
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.140024be8
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rbp + 0x50], rcx
cmp rcx, rax
je 0x140023879
call fcn.140033268
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 0x140023791
mov eax, edi
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.14002a660
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 0x140023f38
Capabilities:
Get keyboard layout
Identify system language via api

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x120
mov rax, qword [0x140086e08]
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 0x140023f9d
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx ecx, ax
mov eax, ebx
cmp cx, word [rsp + rax*8 + 0x20]
jne 0x140023f92
mov rbx, qword [rsp + rax*8 + 0x20]
inc rax
cmp rax, 0x1e
jl 0x140023f86
jmp 0x140023fb5
mov rcx, rbx
cmp di, word [rsp + rcx*8 + 0x20]
jne 0x140023fac
mov rbx, qword [rsp + rcx*8 + 0x20]
inc rcx
cmp rcx, 0x1e
jl 0x140023fa0
mov rax, rbx
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.14002a660
mov rbx, qword [rsp + 0x130]
add rsp, 0x120
pop rdi
ret
Function at 0x14002461c
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 [0x140086e08]
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 0x140024705
mov edx, r15d
mov rcx, rbp
call qword [sym.imp.USER32.dll_ActivateKeyboardLayout]
xor ebx, ebx
lea rsi, [0x1400862a0]
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call fcn.14002de80
mov eax, ebx
mov rcx, r14
imul rdx, rax, 0x2c
lea rax, [0x1400862a4]
add rdx, rax
call fcn.1400400ec
test eax, eax
je 0x140024703
mov eax, dword [rsi]
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], eax
call fcn.140022564
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.1400400ec
test eax, eax
je 0x140024703
add ebx, r15d
add rsi, 0x2c
cmp ebx, 0x42
jl 0x14002466c
jmp 0x140024705
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.14002a660
mov rbx, qword [rsp + 0x280]
add rsp, 0x250
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x140024744
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.14002a5f0
sub rsp, rax
mov rax, qword [0x140086e08]
xor rax, rsp
mov qword [rbp + 0x1010], rax
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x8c8
xor ebx, ebx
call fcn.14002de80
xor edx, edx
lea rcx, [rbp + 0x810]
mov r8d, 0x800
call fcn.14002de80
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.140033a50
lea r8, [0x140068b60]
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.1400339cc
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 0x14002484c
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, [0x140067c80]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140024843
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.14002a660
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 0x1400249a4
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 [0x140086e08]
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.1400240a0
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 0x140024a40
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 0x140024a72
test rdi, rdi
je 0x140024a7a
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 0x140024a7a
cmp dword [rbp - 0x18], ebx
setne bl
jmp 0x140024a84
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.14002a660
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x50
pop rbp
ret
Function at 0x140025360
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
call fcn.140025550
mov ebp, 1
cmp eax, ebp
jne 0x140025389
mov eax, ebp
jmp 0x1400254d3
xor edi, edi
call fcn.14000c200
mov rcx, rax
test rax, rax
je 0x1400254e8
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [0x140063a18]
add rax, 0x18
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x30]
call fcn.14000b7a0
nop
mov ecx, 0x400
call fcn.14002a6c0
mov rsi, rax
test rax, rax
je 0x1400254a8
mov r8d, 0x200
mov rdx, rax
lea rcx, str._LOCALAPPDATA_
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rcx, rsi
call fcn.140033d04
mov r8d, eax
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.140010c34
mov rbx, qword [rsp + 0x30]
cmp dword [rbx - 0x10], edi
jle 0x14002549e
lea rbx, [0x140067c80]
mov rcx, rbx
call fcn.140033d04
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.1400148a4
lea rcx, str.Packages
call fcn.140033d04
mov r8d, eax
lea rdx, str.Packages
lea rcx, [rsp + 0x30]
call fcn.1400148a4
mov rcx, rbx
call fcn.140033d04
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.1400148a4
lea rcx, str.AppUp.IntelGraphicsControlPanel_8j3eq9eme6ctt
call fcn.140033d04
mov r8d, eax
lea rdx, str.AppUp.IntelGraphicsControlPanel_8j3eq9eme6ctt
lea rcx, [rsp + 0x30]
call fcn.1400148a4
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002549e
test al, 0x10
cmovne edi, ebp
mov rcx, rsi
call fcn.140029c24
jmp 0x1400254ad
mov rbx, qword [rsp + 0x30]
lea rdx, [rbx - 0x18]
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x1400254d1
lfence
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [0x140063a18]
mov eax, edi
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov ecx, 0x80004005
call fcn.1400099c0
int3

Function at 0x140025550
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rsi
sub rsp, 0x260
mov rax, qword [0x140086e08]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor edx, edx
xor ecx, ecx
xor ebx, ebx
call fcn.14001cbec
mov rsi, rax
test rax, rax
jne 0x14002558a
lea ebx, [rax + 1]
jmp 0x14002560b
xor edx, edx
mov dword [rsp + 0x34], 1
mov r8d, 0x208
mov dword [rsp + 0x30], 0x104
lea rcx, [rsp + 0x40]
call fcn.14002de80
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 0x140025602
lea rdx, str.3.0.0.0
lea rcx, [rsp + 0x40]
call fcn.14003fff0
test eax, eax
jne 0x1400255fd
call fcn.140024744
cmp eax, 0x3fab
jae 0x140025602
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.14002a660
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rsi
ret
Function at 0x140028598
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140086e08]
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 0x140028613
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 1
ja 0x14002860e
mov ecx, dword [rsp + 0x30]
test rbx, rbx
je 0x14002862b
test ecx, ecx
je 0x140028628
test cl, 1
jne 0x14002860e
mov eax, ecx
shr rax, 1
cmp word [rbx + rax*2 - 2], si
je 0x14002862b
mov eax, 0xd
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14002a660
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 0x140028613

Function at 0x140028634
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x830
mov rax, qword [0x140086e08]
xor rax, rsp
mov qword [rsp + 0x820], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x800
call fcn.14002de80
mov ebx, 0x400
lea rcx, [rsp + 0x20]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, str.User32.dll
mov edx, ebx
lea rcx, [rsp + 0x20]
call fcn.1400339cc
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x1400286d1
lea rdx, str.RegisterSuspendResumeNotification
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400286c8
mov rcx, qword [rdi + 8]
xor edx, edx
call qword [0x140063a18]
mov qword [rdi + 0x80], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rsp + 0x820]
xor rcx, rsp
call fcn.14002a660
mov rbx, qword [rsp + 0x848]
add rsp, 0x830
pop rdi
ret

Function at 0x140028a98
Capabilities:
Create thread

Disassembly:
sub rsp, 0x48
mov rax, qword [0x140086e08]
xor rax, rsp
mov qword [rsp + 0x38], rax
and dword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r8, [0x140025660]
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 0x140028ae1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14002a660
add rsp, 0x48
ret
Function at 0x140028c84
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x140086e08]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
mov rcx, qword [rcx + 0x78]
test rcx, rcx
je 0x140028dba
and dword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rax, qword [rcx]
xor r8d, r8d
mov rax, qword [rax + 0x448]
call qword [0x140063a18]
test eax, eax
js 0x140028dba
cmp dword [rsp + 0x30], 0
je 0x140028dba
and dword [rsp + 0x34], 0
mov rcx, qword [rbx + 0x78]
test rcx, rcx
je 0x140028e0d
mov rax, qword [rcx]
lea rdx, [rsp + 0x34]
mov rax, qword [rax + 0x4d0]
call qword [0x140063a18]
test eax, eax
js 0x140028dba
cmp dword [rsp + 0x34], 1
jne 0x140028dba
lea r9, str.GlobalSmartFrameOperation
mov byte [0x14008e86d], 1
xor r8d, r8d
mov byte [0x140086290], 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 [0x14008f070], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x14008f078], rax
and qword [rbx + 0xa98], 0
mov rax, qword [0x14008f070]
mov rcx, qword [0x14008f078]
test rax, rax
je 0x140028dcd
test rcx, rcx
je 0x140028dcd
lea rax, [rbx + 0xaa0]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [0x1400289c0]
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.14002890c
lea rdx, str.SmartFrame_monitor_started_successfully
mov rcx, rbx
call fcn.140028980
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14002a660
add rsp, 0x40
pop rbx
ret
mov byte [0x140086290], 1
test rax, rax
je 0x140028df1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [0x14008f070], 0
mov rcx, qword [0x14008f078]
test rcx, rcx
je 0x140028e04
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [0x14008f078], 0
lea rdx, str.SmartFrame_failed_to_start
jmp 0x140028db2
mov ecx, 0x80004003
call fcn.14002ace0
int3

Function at 0x14002905c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x830
mov rax, qword [0x140086e08]
xor rax, rsp
mov qword [rsp + 0x820], rax
cmp qword [rcx + 0x80], 0
mov rbx, rcx
je 0x1400290fd
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x800
call fcn.14002de80
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.1400339cc
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
test rax, rax
je 0x1400290fd
lea rdx, str.UnregisterSuspendResumeNotification
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400290f4
mov rcx, qword [rbx + 0x80]
call qword [0x140063a18]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rsp + 0x820]
xor rcx, rsp
call fcn.14002a660
mov rbx, qword [rsp + 0x848]
add rsp, 0x830
pop rdi
ret