joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140021ea4
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 [0x140088e00]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov rsi, rdx
mov rbx, rcx
cmp qword [rcx + 0x78], 0
je 0x1400220b4
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.14000a568
test eax, eax
jne 0x1400220a1
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x70]
call fcn.14002e400
mov dword [rsp + 0x58], 0x104
lea r9, [rsp + 0x58]
lea r8, [rbp - 0x70]
lea rdx, str.ProfileCMDLineArgs
lea rcx, [rsp + 0x40]
call fcn.140028a94
mov edi, eax
test eax, eax
jne 0x14002207e
lea rdx, [0x140067a94]
lea rcx, [rbp - 0x70]
call fcn.1400406fc
test eax, eax
je 0x14002207e
mov rcx, qword [rbx + 0x78]
test rcx, rcx
je 0x1400220d6
mov rax, qword [rcx]
lea r8d, [rdi + 1]
lea rdx, [rbp - 0x70]
mov rax, qword [rax + 0x398]
call qword [0x140064a18]
mov ebx, eax
and qword [rsp + 0x58], 0
lea rcx, [rsp + 0x60]
call fcn.140043c0c
lea r8, [rsp + 0x60]
lea edx, [rdi + 0x1a]
lea rcx, [rsp + 0x68]
call fcn.140044a40
lea r8, [0x140069cc8]
lea rdx, str.C:IntelLogsIntelProfileLog.txt
lea rcx, [rsp + 0x58]
call fcn.140040b5c
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140022041
lea r8, [rsp + 0x68]
lea rdx, [0x140069cf4]
call fcn.140029674
lea rdx, str._s__n
mov rcx, qword [rsp + 0x58]
test ebx, ebx
lea r8, str.Profile_Apply_operation_is_SUCCEESS
je 0x14002202d
lea r8, str.Profile_Apply_operation_is_FAILED
call fcn.140018820
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140022041
call fcn.140041000
mov r9d, 0xf003f
lea r8, str.SoftwareIntelDisplayigfxcuiHotKeys
mov rdx, 0xffffffff80000001
lea rcx, [rsp + 0x40]
call fcn.14000e2ec
mov edi, eax
test eax, eax
jne 0x14002207e
lea rdx, str.ProfileCMDLineArgs
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
jmp 0x140022083
mov rbx, qword [rsp + 0x40]
test rsi, rsi
je 0x14002208f
test edi, edi
sete al
mov byte [rsi], al
test rbx, rbx
je 0x1400220a6
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
jmp 0x1400220a6
mov rbx, qword [rsp + 0x40]
test rbx, rbx
je 0x1400220b4
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.14002ab60
mov rbx, qword [rsp + 0x2e0]
add rsp, 0x2b0
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004003
call fcn.14002b1f0
int3
Function at 0x140023bb0
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 [0x140088e00]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rbx, qword [0x140091e00]
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 0x140023d52
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140023d52
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140023d52
movzx esi, word [rbx]
cmp r12w, si
je 0x140023d52
movzx eax, word [rbx + 2]
mov ecx, 0x403
mov r14d, dword [rbx + 4]
add rbx, 8
cmp cx, ax
jne 0x140023cd6
xor edx, edx
lea rcx, [rbp + 0x88]
mov r8d, 0x100
call fcn.14002e400
lea rax, [rbp + 0x88]
mov r8d, 3
mov rdx, rbx
mov qword [rbp + 0x80], rax
lea rcx, [rbp + 0x80]
call fcn.140025090
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 0x140023d47
call fcn.140033a18
jmp 0x140023d47
mov ecx, 0x1234
cmp cx, ax
jne 0x140023d47
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.140025090
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rbp + 0x50], rcx
cmp rcx, rax
je 0x140023d21
call fcn.140033a18
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 0x140023c39
mov eax, edi
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.14002ab60
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 0x1400243e8
Capabilities:
Get keyboard layout
Identify system language via api

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x120
mov rax, qword [0x140088e00]
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 0x14002444d
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx ecx, ax
mov eax, ebx
cmp cx, word [rsp + rax*8 + 0x20]
jne 0x140024442
mov rbx, qword [rsp + rax*8 + 0x20]
inc rax
cmp rax, 0x1e
jl 0x140024436
jmp 0x140024465
mov rcx, rbx
cmp di, word [rsp + rcx*8 + 0x20]
jne 0x14002445c
mov rbx, qword [rsp + rcx*8 + 0x20]
inc rcx
cmp rcx, 0x1e
jl 0x140024450
mov rax, rbx
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.14002ab60
mov rbx, qword [rsp + 0x130]
add rsp, 0x120
pop rdi
ret
Function at 0x140024ac8
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 [0x140088e00]
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 0x140024bb2
mov edx, r15d
mov rcx, rbp
call qword [sym.imp.USER32.dll_ActivateKeyboardLayout]
xor ebx, ebx
lea rsi, [0x1400882a0]
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call fcn.14002e400
movsxd rax, ebx
mov rcx, r14
imul rdx, rax, 0x2c
lea rax, [0x1400882a4]
add rdx, rax
call fcn.1400407f8
test eax, eax
je 0x140024bb0
mov eax, dword [rsi]
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], eax
call fcn.140022a0c
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.1400407f8
test eax, eax
je 0x140024bb0
add ebx, r15d
add rsi, 0x2c
cmp ebx, 0x42
jl 0x140024b18
jmp 0x140024bb2
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.14002ab60
mov rbx, qword [rsp + 0x280]
add rsp, 0x250
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x140024bf0
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.14002ab00
sub rsp, rax
mov rax, qword [0x140088e00]
xor rax, rsp
mov qword [rbp + 0x1010], rax
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x8c8
xor ebx, ebx
call fcn.14002e400
xor edx, edx
lea rcx, [rbp + 0x810]
mov r8d, 0x800
call fcn.14002e400
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.140034200
lea r8, [0x140069be8]
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.140034188
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 0x140024cf8
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, [0x140068cd4]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140024cef
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.14002ab60
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 0x140024e50
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 [0x140088e00]
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.14002454c
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 0x140024eec
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 0x140024f1e
test rdi, rdi
je 0x140024f26
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 0x140024f26
cmp dword [rbp - 0x18], ebx
setne bl
jmp 0x140024f30
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.14002ab60
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x50
pop rbp
ret
Function at 0x140025808
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.1400259f8
mov ebp, 1
cmp eax, ebp
jne 0x140025831
mov eax, ebp
jmp 0x14002597b
xor edi, edi
call fcn.14000c274
mov rcx, rax
test rax, rax
je 0x140025990
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [0x140064a18]
add rax, 0x18
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x30]
call fcn.14000b810
nop
mov ecx, 0x400
call fcn.14002abbc
mov rsi, rax
test rax, rax
je 0x140025950
mov r8d, 0x200
mov rdx, rax
lea rcx, str._LOCALAPPDATA_
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rcx, rsi
call fcn.1400344b4
mov r8d, eax
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.140010c98
mov rbx, qword [rsp + 0x30]
cmp dword [rbx - 0x10], edi
jle 0x140025946
lea rbx, [0x140068cd4]
mov rcx, rbx
call fcn.1400344b4
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.1400148b4
lea rcx, str.Packages
call fcn.1400344b4
mov r8d, eax
lea rdx, str.Packages
lea rcx, [rsp + 0x30]
call fcn.1400148b4
mov rcx, rbx
call fcn.1400344b4
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.1400148b4
lea rcx, str.AppUp.IntelGraphicsControlPanel_8j3eq9eme6ctt
call fcn.1400344b4
mov r8d, eax
lea rdx, str.AppUp.IntelGraphicsControlPanel_8j3eq9eme6ctt
lea rcx, [rsp + 0x30]
call fcn.1400148b4
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140025946
test al, 0x10
cmovne edi, ebp
mov rcx, rsi
call fcn.14002a134
jmp 0x140025955
mov rbx, qword [rsp + 0x30]
lea rdx, [rbx - 0x18]
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x140025979
lfence
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [0x140064a18]
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.140009a24
int3

Function at 0x1400259f8
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rsi
sub rsp, 0x260
mov rax, qword [0x140088e00]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor edx, edx
xor ecx, ecx
xor ebx, ebx
call fcn.14001cf14
mov rsi, rax
test rax, rax
jne 0x140025a32
lea ebx, [rax + 1]
jmp 0x140025ab3
xor edx, edx
mov dword [rsp + 0x34], 1
mov r8d, 0x208
mov dword [rsp + 0x30], 0x104
lea rcx, [rsp + 0x40]
call fcn.14002e400
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 0x140025aaa
lea rdx, str.3.0.0.0
lea rcx, [rsp + 0x40]
call fcn.1400406fc
test eax, eax
jne 0x140025aa5
call fcn.140024bf0
cmp eax, 0x3fab
jae 0x140025aaa
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.14002ab60
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rsi
ret
Function at 0x140028a94
Capabilities:
Query or enumerate registry value

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

Function at 0x140028b30
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x830
mov rax, qword [0x140088e00]
xor rax, rsp
mov qword [rsp + 0x820], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x800
call fcn.14002e400
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.140034188
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x140028bcd
lea rdx, str.RegisterSuspendResumeNotification
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140028bc4
mov rcx, qword [rdi + 8]
xor edx, edx
call qword [0x140064a18]
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.14002ab60
mov rbx, qword [rsp + 0x848]
add rsp, 0x830
pop rdi
ret

Function at 0x140028f88
Capabilities:
Create thread

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

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x140088e00]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
mov rcx, qword [rcx + 0x78]
test rcx, rcx
je 0x1400292be
and dword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rax, qword [rcx]
xor r8d, r8d
mov rax, qword [rax + 0x448]
call qword [0x140064a18]
test eax, eax
js 0x1400292be
cmp dword [rsp + 0x30], 0
je 0x1400292be
and dword [rsp + 0x34], 0
mov rcx, qword [rbx + 0x78]
test rcx, rcx
je 0x140029311
mov rax, qword [rcx]
lea rdx, [rsp + 0x34]
mov rax, qword [rax + 0x4d0]
call qword [0x140064a18]
test eax, eax
js 0x1400292be
cmp dword [rsp + 0x34], 1
jne 0x1400292be
lea r9, str.GlobalSmartFrameOperation
mov byte [0x140090855], 1
xor r8d, r8d
mov byte [0x140088290], 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 [0x140091060], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x140091068], rax
and qword [rbx + 0xa98], 0
mov rax, qword [0x140091060]
mov rcx, qword [0x140091068]
test rax, rax
je 0x1400292d1
test rcx, rcx
je 0x1400292d1
lea rax, [rbx + 0xaa0]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [0x140028eb0]
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.140028e08
lea rdx, str.SmartFrame_monitor_started_successfully
mov rcx, rbx
call fcn.140028e7c
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14002ab60
add rsp, 0x40
pop rbx
ret
mov byte [0x140088290], 1
test rax, rax
je 0x1400292f5
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [0x140091060], 0
mov rcx, qword [0x140091068]
test rcx, rcx
je 0x140029308
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [0x140091068], 0
lea rdx, str.SmartFrame_failed_to_start
jmp 0x1400292b6
mov ecx, 0x80004003
call fcn.14002b1f0
int3

Function at 0x14002956c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x830
mov rax, qword [0x140088e00]
xor rax, rsp
mov qword [rsp + 0x820], rax
cmp qword [rcx + 0x80], 0
mov rdi, rcx
je 0x14002960d
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x800
call fcn.14002e400
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.140034188
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x14002960d
lea rdx, str.UnregisterSuspendResumeNotification
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140029604
mov rcx, qword [rdi + 0x80]
call qword [0x140064a18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rsp + 0x820]
xor rcx, rsp
call fcn.14002ab60
mov rbx, qword [rsp + 0x848]
add rsp, 0x830
pop rdi
ret
Function at 0x1400296b8
Capabilities:
Create directory
Query environment variable
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0x30
mov rsi, rdx
mov rbx, rcx
and dword [rsp + 0x20], 0
xor eax, eax
mov qword [rcx], rax
call fcn.14000c274
mov rcx, rax
test rax, rax
je 0x140029847
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [0x140064a18]
add rax, 0x18
mov qword [rbx], rax
mov rcx, rbx
call fcn.14000b810
nop
mov dword [rsp + 0x20], 1
mov ecx, 0x400
call fcn.14002abbc
mov rdi, rax
test rax, rax
je 0x140029815
mov r8d, 0x200
mov rdx, rax
lea rcx, str._LOCALAPPDATA_
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rcx, rdi
call fcn.1400344b4
mov r8d, eax
mov rdx, rdi
mov rcx, rbx
call fcn.140010c98
mov rax, qword [rbx]
cmp dword [rax - 0x10], 0
jle 0x14002980c
lea rcx, [0x140068cd4]
call fcn.1400344b4
mov r8d, eax
lea rdx, [0x140068cd4]
mov rcx, rbx
call fcn.1400148b4
lea rcx, str.Intel
call fcn.1400344b4
mov r8d, eax
lea rdx, str.Intel
mov rcx, rbx
call fcn.1400148b4
xor edx, edx
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov r8, rsi
lea rdx, [0x140068cd4]
lea rcx, [rsp + 0x60]
call fcn.140013434
nop
mov rdx, qword [rax]
mov r8d, dword [rdx - 0x10]
mov rcx, rbx
call fcn.1400148b4
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400297f3
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140064a18]
xor edx, edx
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, 6
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rdi
call fcn.14002a134
nop
mov rdx, qword [rsi]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14002983c
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140064a18]
mov rax, rbx
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80004005
call fcn.140009a24
int3

Function at 0x14002ae58
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002aea2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002aea2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002aea2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002aea2
cmp dword [rcx + 0x84], 0xe
jbe 0x14002aea2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14002aea4
xor al, al
add rsp, 0x28
ret
Function at 0x1400417e4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14002ab00
sub rsp, rax
mov rax, qword [0x140088e00]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14004d2d8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140041833
mov rax, rbp
jmp 0x14004193b
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x93220]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140050588
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x93220]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140041937
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140041937
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140050588
test rax, rax
js 0x140041937
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140041937
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140041929
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140041929
cmp byte [rcx], 0xd
jne 0x14004190f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14004191e
cmp byte [rcx + 1], 0xa
jne 0x14004191e
inc rcx
jmp 0x14004191e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x89450]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400418f1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14004193b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14002ab60
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret