joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001260
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp - 8], rax
mov edi, 0x11
mov ebx, 0x70
nop word [rax + rax]
mov ecx, 0x75
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1400012c3
cmp byte [0x14000566c], 0
sete byte [0x14000566c]
call fcn.140001000
mov ecx, 0x75
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x1400012b3
mov ecx, 2
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x140001290
cmp byte [0x14000566c], 0
je 0x140001290
xorps xmm0, xmm0
lea rdx, [rbp - 0x30]
movups xmmword [rbp - 0x30], xmm0
xor eax, eax
mov dword [rbp - 0x30], 1
mov r8d, 0x28
mov word [rbp - 0x28], di
mov ecx, 1
mov qword [rbp - 0x10], rax
movups xmmword [rbp - 0x20], xmm0
call qword [sym.imp.USER32.dll_SendInput]
xorps xmm0, xmm0
lea rdx, [rbp - 0x30]
movups xmmword [rbp - 0x30], xmm0
xor eax, eax
mov dword [rbp - 0x30], 1
mov r8d, 0x28
mov word [rbp - 0x28], bx
mov ecx, 1
mov qword [rbp - 0x10], rax
movups xmmword [rbp - 0x20], xmm0
call qword [sym.imp.USER32.dll_SendInput]
xorps xmm0, xmm0
lea rdx, [rbp - 0x30]
movups xmmword [rbp - 0x30], xmm0
xor eax, eax
mov dword [rbp - 0x30], 1
mov r8d, 0x28
mov word [rbp - 0x28], di
mov ecx, 1
mov dword [rbp - 0x24], 2
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rax
call qword [sym.imp.USER32.dll_SendInput]
xorps xmm0, xmm0
lea rdx, [rbp - 0x30]
movups xmmword [rbp - 0x30], xmm0
xor eax, eax
mov dword [rbp - 0x30], 1
mov r8d, 0x28
mov word [rbp - 0x28], bx
mov ecx, 1
mov dword [rbp - 0x24], 2
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rax
call qword [sym.imp.USER32.dll_SendInput]
nop
mov ecx, 2
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x1400013b0
xorps xmm0, xmm0
lea rdx, [rbp - 0x30]
movups xmmword [rbp - 0x30], xmm0
xor eax, eax
mov dword [rbp - 0x30], 1
mov r8d, 0x28
mov word [rbp - 0x28], bx
mov ecx, 1
mov qword [rbp - 0x10], rax
movups xmmword [rbp - 0x20], xmm0
call qword [sym.imp.USER32.dll_SendInput]
xorps xmm0, xmm0
lea rdx, [rbp - 0x30]
movups xmmword [rbp - 0x30], xmm0
xor eax, eax
mov dword [rbp - 0x30], 1
mov r8d, 0x28
mov word [rbp - 0x28], bx
mov ecx, 1
mov dword [rbp - 0x24], 2
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rax
call qword [sym.imp.USER32.dll_SendInput]
jmp 0x140001290

Function at 0x140001f78
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001fc2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001fc2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001fc2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001fc2
cmp dword [rcx + 0x84], 0xe
jbe 0x140001fc2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001fc4
xor al, al
add rsp, 0x28
ret
Function at 0x189a058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x189a1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x189a089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x189a06f
add dl, dl
jne 0x189a096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x189a0f6
xor eax, eax
add dl, dl
jne 0x189a0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x189a1ad
add dl, dl
jne 0x189a0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x189a0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x189a0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x189a0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x189a0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x189a07e
mov eax, 1
add dl, dl
jne 0x189a106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x189a113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x189a0fb
sub eax, ebx
mov ebx, 1
jne 0x189a14c
mov ecx, 1
add dl, dl
jne 0x189a12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x189a13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x189a123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x189a07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x189a168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x189a175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x189a15d
cmp eax, 0x7d00
jae 0x189a19b
cmp eax, 0x500
jb 0x189a196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x189a07e
cmp eax, 0x7f
ja 0x189a19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x189a07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x189a1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x189a07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001ca8
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rdi, rcx
mov r8d, 0x800
lea rcx, str.SHCore.dll
call fcn.140001b90
xor r14d, r14d
mov rbx, rax
test rax, rax
je 0x140001d0c
lea rdx, str.SetProcessDpiAwareness
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140001cfb
lea ecx, [r14 + 2]
call qword [0x14000b538]
jmp 0x140001d01
call qword [sym.imp.USER32.dll_SetProcessDPIAware]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x140001d12
call qword [sym.imp.USER32.dll_SetProcessDPIAware]
xor r8d, r8d
lea rdx, reloc.AppVIsvSubsystems64.dll_Ordinal_1
lea rcx, [0x140010a78]
call qword [sym.imp.gdiplus.dll_GdiplusStartup]
mov qword [0x140010da0], rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rcx, str.WM_CHECK_VER
call qword [sym.imp.USER32.dll_RegisterWindowMessageW]
mov dword [0x140010a88], eax
mov esi, r14d
or rbx, 0xffffffffffffffff
lea rax, [rsp + 0x70]
mov qword [rsp + 0x70], r14
mov r9, rbx
mov qword [rsp + 0x20], rax
mov r8b, 1
xor edx, edx
call fcn.140006078
mov rdi, qword [rsp + 0x70]
mov bpl, al
test al, al
je 0x140001d7d
cmp rdi, rbx
jne 0x140001d8f
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 5
jl 0x140001d50
test bpl, bpl
je 0x140001e56
cmp rdi, rbx
je 0x140001e56
test rdi, rdi
je 0x140001dfc
mov edx, dword [0x140010a88]
test edx, edx
je 0x140001e0c
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageW]
cmp rax, 0xf
je 0x140001e0c
xor r8d, r8d
mov qword [rsp + 0x30], 0x8642
lea rax, str._tsr_exit
mov dword [rsp + 0x38], 0x14
lea r9, [rsp + 0x30]
mov qword [rsp + 0x40], rax
mov rcx, rdi
lea edx, [r8 + 0x4a]
call qword [sym.imp.USER32.dll_SendMessageW]
test rax, rax
je 0x140001e56
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
call fcn.14000227c
jmp 0x140001e58
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x30], 0x8642
inc rbx
cmp word [rax + rbx*2], r14w
jne 0x140001e1b
xor r8d, r8d
mov qword [rsp + 0x40], rax
lea ecx, [rbx*2 + 2]
mov dword [rsp + 0x38], ecx
lea r9, [rsp + 0x30]
mov rcx, rdi
lea edx, [r8 + 0x4a]
call qword [sym.imp.USER32.dll_SendMessageW]
test rax, rax
je 0x140001e56
mov eax, 1
jmp 0x140001e58
xor eax, eax
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140002488
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x150
mov rax, qword [0x140010008]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov eax, dword [0x140010b40]
xor ebx, ebx
mov rsi, rcx
test eax, eax
jne 0x140002532
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x110
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x24], 6
jbe 0x140002518
mov dword [0x140010b40], 1
xor eax, eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140008c20
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
jne 0x140002527
cmp dword [rsp + 0x28], 1
sbb eax, eax
neg eax
inc eax
jmp 0x14000252c
mov eax, 2
mov dword [0x140010b40], eax
cmp eax, 2
jne 0x1400024f1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
test rdi, rdi
je 0x140002563
mov rcx, rsi
mov rax, rdi
call qword [0x14000b538]
mov ebx, eax
cmp eax, 1
ja 0x14000256e
mov dword [0], 1
mov eax, ebx
jmp 0x1400024f3

Function at 0x140002740
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x40
mov edi, r9d
lea rax, [r11 - 0x10]
mov rbx, r8
mov qword [r11 - 0x28], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400027c6
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea rax, [rsp + 0x34]
mov dword [rsp + 0x50], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x1400027c6
cmp dword [rsp + 0x30], 4
mov eax, dword [rsp + 0x34]
je 0x1400027c8
mov eax, edi
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x1400027e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x40
mov rbx, r9
lea rax, [r11 - 0x10]
mov rdi, r8
mov qword [r11 - 0x28], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor esi, esi
test eax, eax
je 0x140002822
xor al, al
jmp 0x14000286e
movsxd rcx, dword [rsp + 0x70]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, rdi
lea eax, [rcx*2 - 2]
mov word [rbx + rcx*2 - 2], si
mov rcx, qword [rsp + 0x38]
mov dword [rsp + 0x50], eax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
sete al
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140002880
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov dword [r11 + 0x20], r9d
mov qword [r11 + 8], rcx
push rbx
sub rsp, 0x60
lea rax, [r11 + 8]
mov rbx, r8
mov qword [r11 - 0x28], rax
xor r9d, r9d
lea rax, [r11 - 0x18]
xor r8d, r8d
mov qword [r11 - 0x30], rax
mov rcx, 0xffffffff80000001
and qword [r11 - 0x38], 0
mov dword [rsp + 0x28], 0x20006
and dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400028fe
mov rcx, qword [rsp + 0x50]
lea r9d, [rax + 4]
lea rax, [rsp + 0x88]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x60
pop rbx
ret

Function at 0x140002904
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
push rdi
sub rsp, 0x50
lea rax, [r11 + 0x18]
xor edi, edi
mov qword [r11 - 0x18], rax
lea rdx, str.SoftwareMicrosoftOffice16.0OneNoteOptionsOutlookAndWeb
lea rax, [r11 + 0x10]
mov rbx, r9
mov qword [r11 - 0x20], rax
xor r9d, r9d
mov qword [r11 - 0x28], rdi
xor r8d, r8d
mov dword [rsp + 0x28], 0x20006
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14000299e
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], di
jne 0x14000295f
mov rcx, qword [rsp + 0x68]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, str.ScreenClippingsID
mov r9d, 1
mov qword [rsp + 0x20], rbx
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x1400029ac
Capabilities:
Inspect load icon resource
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov rax, qword [0x140010008]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
test cl, cl
jne 0x140002a6a
call fcn.140002bd4
test al, al
jne 0x140002a6a
lea rax, [rsp + 0x70]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftOffice16.0OneNoteOptionsOther
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140002a6a
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x64]
lea rax, [rsp + 0x68]
mov dword [rsp + 0x60], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.RunSystemTrayApp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x70]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140002a6a
cmp dword [rsp + 0x64], 4
jne 0x140002a6a
cmp dword [rsp + 0x68], ebx
je 0x140002bb0
call fcn.140003c10
cmp qword [0x140010af8], 0
je 0x140002bb0
lea rcx, str.WM_ONENOTE_SYSTRAY
call qword [sym.imp.USER32.dll_RegisterWindowMessageW]
lea rcx, str.WM_ONENOTE_SYSTRAY_EXIT
mov dword [0x140010a4c], eax
call qword [sym.imp.USER32.dll_RegisterWindowMessageW]
lea rcx, str.TaskbarCreated
mov dword [0x140010d98], eax
call qword [sym.imp.USER32.dll_RegisterWindowMessageW]
mov ecx, eax
mov dword [0x140010b48], eax
mov edx, 1
call qword [sym.imp.USER32.dll_ChangeWindowMessageFilter]
mov ebx, 0x50
lea rcx, [rbp - 0x80]
mov r8d, ebx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [0x140010da0]
lea rax, [0x140003490]
mov dword [rbp - 0x80], ebx
mov edx, 1
lea rbx, str.OneNoteM
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x68], rcx
mov qword [rbp - 0x40], rbx
call qword [sym.imp.USER32.dll_LoadIconW]
and qword [rbp - 0x38], 0
lea rcx, [rbp - 0x80]
mov qword [rbp - 0x60], rax
call qword [sym.imp.USER32.dll_RegisterClassExW]
mov rcx, qword [0x140010af8]
lea r8, [rbp - 0x30]
mov r9d, 0xff
mov edx, 0x2711
call qword [sym.imp.USER32.dll_LoadStringW]
and qword [rsp + 0x58], 0
lea r8, [rbp - 0x30]
mov rax, qword [0x140010da0]
mov r9d, 0x80000000
mov qword [rsp + 0x50], rax
mov rdx, rbx
and qword [rsp + 0x48], 0
mov ecx, 0x8000080
and qword [rsp + 0x40], 0
and dword [rsp + 0x38], 0
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
call qword [sym.imp.USER32.dll_CreateWindowExW]
test rax, rax
je 0x140002bb0
and qword [rsp + 0x20], 0
mov r9, rax
xor r8d, r8d
mov qword [0x140010d90], rax
mov dl, 1
call fcn.140006078
xor edx, edx
lea rcx, [0x14000be28]
call qword [sym.imp.KERNEL32.dll_RegisterApplicationRestart]
mov al, 1
jmp 0x140002bb2
xor al, al
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.140008c20
mov rbx, qword [rsp + 0x2f0]
add rsp, 0x2e0
pop rbp
ret
Function at 0x140002bd4
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x58]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwarePoliciesMicrosoftOffice16.0OneNoteOptionsOther
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140002c5c
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x48]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x40], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.RunSystemTrayApp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x58]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140002c5c
cmp dword [rsp + 0x48], 4
jne 0x140002c5c
cmp dword [rsp + 0x50], ebx
setne al
jmp 0x140002c5e
xor al, al
add rsp, 0x30
pop rbx
ret
Function at 0x140003a38
Capabilities:
Capture screenshot
Set registry value

Disassembly:
push rbx
sub rsp, 0x50
mov edx, ecx
mov ebx, ecx
sub edx, 1
je 0x140003b7c
sub edx, 1
je 0x140003b73
sub edx, 1
je 0x140003b4d
sub edx, 1
je 0x140003b44
sub edx, 6
je 0x140003b1c
sub edx, 0x3df
je 0x140003a8b
sub edx, 1
je 0x140003a8b
cmp edx, 1
je 0x140003a8b
add rsp, 0x50
pop rbx
jmp fcn.14000270c
lea rax, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rdx, str.SoftwareMicrosoftOffice16.0OneNoteOptionsOther
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov rcx, 0xffffffff80000001
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20006
and dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140003b0f
mov rcx, qword [rsp + 0x70]
lea eax, [rbx - 0x3e8]
mov dword [rsp + 0x60], eax
lea rdx, str.SystemTrayAppDefaultBehavior
mov r9d, 4
lea rax, [rsp + 0x60]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
call fcn.1400033e0
add rsp, 0x50
pop rbx
ret
call fcn.140002bd4
test al, al
jne 0x140003b8a
mov edx, dword [0x140010d98]
xor r9d, r9d
mov rcx, qword [0x140010d90]
xor r8d, r8d
add rsp, 0x50
pop rbx
jmp qword [sym.imp.USER32.dll_PostMessageW]
lea rcx, str._memoryWindow
jmp 0x140003b83
mov byte [0x140010d9c], 0
mov byte [0x140010da9], 0
mov byte [0x140010b47], 0
mov byte [0x140010b18], 0
add rsp, 0x50
pop rbx
jmp fcn.140003ec8
lea rcx, [0x14000babc]
jmp 0x140003b83
lea rcx, str._sidenote
xor edx, edx
call fcn.140002d0c
add rsp, 0x50
pop rbx
ret
Function at 0x1400046e0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rcx, qword [0x140010d90]
mov rbp, qword [0x140010b70]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
setne bl
test eax, eax
je 0x140004760
mov ecx, 8
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rdi, rax
test rax, rax
je 0x140004760
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rsi, rax
mov rcx, rdi
test rax, rax
je 0x14000475a
call qword [sym.imp.KERNEL32.dll_GlobalSize]
mov r8, rbp
mov rcx, rsi
mov rdx, rax
call fcn.1400045c4
mov rcx, rdi
mov sil, al
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x140004763
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor sil, sil
test bl, bl
je 0x14000476d
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rbx, qword [rsp + 0x30]
mov al, sil
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140004bec
Capabilities:
Capture screenshot
Open clipboard
Write clipboard data

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x50
mov edi, dword [0x140010a58]
xor ecx, ecx
mov ebx, dword [0x140010a5c]
sub edi, dword [0x140010a50]
sub ebx, dword [0x140010a54]
call qword [sym.imp.USER32.dll_GetDC]
mov rcx, rax
mov r15, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov r8d, ebx
mov edx, edi
mov rcx, r15
mov rsi, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov rdx, rax
mov rcx, rsi
mov rbp, rax
call qword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [0x140010a54]
mov r9d, edi
mov dword [rsp + 0x40], 0xcc0020
xor r8d, r8d
mov dword [rsp + 0x38], ecx
xor edx, edx
mov ecx, dword [0x140010a50]
mov r12, rax
mov dword [rsp + 0x30], ecx
mov rcx, qword [0x140010b20]
mov qword [rsp + 0x28], rcx
mov rcx, rsi
mov dword [rsp + 0x20], ebx
call qword [sym.imp.GDI32.dll_BitBlt]
mov rcx, qword [0x140010b30]
xor dil, dil
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140004d32
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov edx, 4
lea ecx, [rdx - 2]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea rcx, str.OneNote_Screen_Clipping_Flag
mov rbx, rax
call qword [sym.imp.USER32.dll_RegisterClipboardFormatW]
mov r14d, eax
test rbx, rbx
je 0x140004d0b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
movzx ecx, r14w
mov rdx, rbx
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
jne 0x140004d08
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x140004d0b
mov dil, 1
mov rdx, rbp
mov ecx, 2
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
jne 0x140004d29
mov rcx, rbp
call qword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x140004d2c
mov dil, 1
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, rsi
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rdx, r15
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
lea r11, [rsp + 0x50]
mov al, dil
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x140006078
Capabilities:
Check mutex on windows
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rdi, qword [rsp + 0x70]
xor ebx, ebx
mov rbp, r9
mov r14b, r8b
mov r15b, dl
test rdi, rdi
je 0x1400060a8
mov qword [rdi], rbx
cmp qword [0x140010a90], rbx
jne 0x1400060b8
xor al, al
jmp 0x14000613f
lea r8, str.OneNoteM:AppShared
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rsi, rax
test rax, rax
je 0x14000613d
mov edx, 0x1f4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14000612b
mov rcx, qword [0x140010a90]
lea edx, [rax + 6]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rax
test rax, rax
je 0x14000612b
test rdi, rdi
je 0x140006111
mov rax, qword [rax]
mov qword [rdi], rax
test r15b, r15b
jne 0x140006120
test r14b, r14b
je 0x140006123
cmp qword [rcx], rbx
jne 0x140006123
mov qword [rcx], rbp
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov bl, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret

Function at 0x140006158
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
lea r8, str.Microsoft_Office_OneNote16:ONAppSharedFile
xor ebx, ebx
xor edx, edx
lea ecx, [rbx + 4]
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov rdi, rax
test rax, rax
je 0x1400061c6
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
lea edx, [rbx + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
test rax, rax
je 0x1400061bd
movups xmm0, xmmword [rax]
mov rcx, rax
mov bl, 1
movsd xmm1, qword [rax + 0x10]
movups xmmword [rsi], xmm0
movsd qword [rsi + 0x10], xmm1
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x48]
mov al, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret