joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401ffafc
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x58]
mov dword [rsp + 0x58], 0x2c
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov qword [rsp + 0x20], r8
mov ebx, 0x80040203
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
xor ecx, ecx
test eax, eax
cmove ebx, ecx
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x1401ffc3c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x140387a48]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor edx, edx
mov rsi, r8
mov rbx, rcx
mov edi, 0x80004005
lea rcx, [rsp + 0x40]
lea r8d, [rdx + 0x40]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], Shell_MergeMenus
mov qword [rsp + 0x28], rax
lea rdx, str.MUI_Std
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
xor ecx, ecx
test eax, eax
jne 0x1401ffcd0
mov word [rsp + 0x62], cx
lea edx, [rcx + 0x12]
mov rcx, rsi
lea r8, [rsp + 0x40]
call fcn.1401fd62c
mov edi, eax
mov eax, edi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400a15a0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1401ffe70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x130
mov rax, qword [0x140387a48]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov eax, r8d
mov r14d, 1
shr eax, 4
mov rbp, r9
add ax, r14w
mov esi, r8d
movzx r8d, ax
mov r9d, 0x400
lea edx, [r14 + 5]
mov rbx, rcx
mov edi, 0x80004005
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FindResourceExW]
nop dword [rax + rax]
xor r15d, r15d
test rax, rax
je 0x1401fff94
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadResource]
nop dword [rax + rax]
test rax, rax
je 0x1401fff94
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LockResource]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x1401fff94
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x100
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
and esi, 0xf
jbe 0x1401fff38
mov ecx, esi
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
sub rcx, r14
jne 0x1401fff28
movzx esi, word [rbx]
mov r14d, DAD_DragLeave
cmp si, r14w
jae 0x1401fff94
lea r8, [rbx + 2]
mov edx, r14d
lea rcx, [rsp + 0x20]
call fcn.1401fd62c
mov edi, eax
mov eax, 0x80000000
lea ecx, [rdi + rax]
test eax, ecx
jne 0x1401fff6e
cmp edi, 0x8007007a
jne 0x1401fff94
mov rax, rsi
add rax, rax
cmp rax, 0x100
jae 0x1401fffbe
lea r8, [rsp + 0x20]
mov word [rsp + rax + 0x20], r15w
mov rdx, r14
mov rcx, rbp
call fcn.1401fd62c
mov edi, eax
mov eax, edi
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.1400a15a0
mov rbx, qword [rsp + 0x168]
add rsp, 0x130
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.1400a1708
int3
Function at 0x140200630
Capabilities:
Persist via winlogon helper dll registry key
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], r9
mov dword [r11 + 0x18], r8d
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x38
mov r14, qword [rbp + 0x88]
lea rax, [rbp + 0x38]
mov edi, 0x20019
mov qword [r11 - 0x48], rax
mov rsi, 0xffffffff80000002
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionWinlogon
mov r9d, edi
xor r8d, r8d
and dword [r14], 0
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14020078c
lea rax, [rbp + 0x40]
mov r9d, edi
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionWinlogonAlternateShells
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14020077c
mov rax, qword [rbp + 0x80]
lea rdx, str.Shell
mov rdi, qword [rbp + 0x68]
xor r8d, r8d
mov r15, qword [rbp + 0x70]
mov r9, rdi
mov ecx, dword [rax]
lea rax, [rbp + 0x48]
mov dword [rbp + 0x48], ecx
mov dword [rbp + 0x60], ecx
mov rcx, qword [rbp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14020076c
mov rsi, qword [rbp + 0x78]
lea rax, [rbp + 0x60]
mov rcx, qword [rbp + 0x40]
lea r9, [rbp + 0x50]
mov qword [rsp + 0x28], rax
lea rdx, str.DefaultShell
xor r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14020076c
mov eax, dword [rbp + 0x50]
cmp dword [rdi], eax
jne 0x14020076c
mov eax, dword [rbp + 0x48]
cmp eax, dword [rbp + 0x60]
jne 0x14020076c
mov r8d, eax
mov rdx, rsi
mov rcx, r15
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
test eax, eax
jne 0x14020076c
mov dword [r14], 1
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
add rsp, 0x38
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1402007a4
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x140387a48]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor ebx, ebx
mov r12, r9
mov esi, ebx
mov edi, ebx
mov r15, r8
mov r14, rdx
mov rbp, rcx
mov rcx, qword [rbp + 8]
lea rax, [rsp + 0x44]
mov qword [rsp + 0x38], rbx
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rbx
lea r8, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov edx, edi
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x40], 7
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumValueW]
nop dword [rax + rax]
test eax, eax
jne 0x14020083f
lea rcx, [rsp + 0x48]
call sub.api_ms_win_crt_private_l1_1_0.dll__o__wtoi
cmp eax, esi
jle 0x14020084d
lea r9, [rsp + 0x48]
mov esi, eax
lea rcx, [rsp + 0x58]
call fcn.1400ed384
test eax, eax
jns 0x14020084d
mov ebx, 0x10a
jmp 0x14020088b
cmp eax, 0x103
je 0x140200859
cmp eax, 0xea
jne 0x140200882
inc edi
cmp edi, 0xffffffff
jae 0x14020088b
jmp 0x1402007d4
test esi, esi
je 0x140200886
mov rcx, qword [rbp + 8]
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x28], r12
mov r9, r14
xor r8d, r8d
mov qword [rsp + 0x20], r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ebx, eax
jmp 0x14020088b
mov ebx, 0x103
mov eax, ebx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400a15a0
add rsp, 0x70
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140202184
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor esi, esi
lea rbx, str.SoftwareMicrosoftInternet_ExplorerTypedURLs
lea rax, reloc.OLEAUT32.dll_VariantInit
cmp rax, rbx
sbb rdi, rdi
not rdi
and edi, 8
mov rdx, qword [rbx]
mov rcx, 0xffffffff80000001
call qword [sym.imp.api_ms_win_shcore_registry_l1_1_0.dll_SHDeleteKeyW]
nop dword [rax + rax]
inc rsi
lea rbx, [rbx + 8]
cmp rsi, rdi
jne 0x1402021af
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140203af0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x280
mov rax, qword [0x140387a48]
xor rax, rsp
mov qword [rsp + 0x270], rax
and dword [rsp + 0x38], 0
lea rax, [rsp + 0x40]
and qword [rsp + 0x30], 0
lea rdx, str.OpenWithLauncher
and qword [r9], 0
lea rcx, str.SoftwareMicrosoftWindowsCurrentVersionOpenWith
and dword [rsp + 0x28], 0
mov rdi, r9
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x40], 0x208
mov ebx, 0x80004005
call qword [sym.imp.api_ms_win_core_registryuserspecific_l1_1_0.dll_SHRegGetUSValueW]
nop dword [rax + rax]
test eax, eax
jne 0x140203bab
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHCORE.dll_Ordinal_200]
nop dword [rax + rax]
test eax, eax
je 0x140203bab
xor edx, edx
mov qword [rsp + 0x28], rdi
lea rax, [0x14033ca50]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9d, [rdx + 2]
lea r8d, [rdx + 4]
call qword [sym.imp.SHELL32.dll_Ordinal_866]
nop dword [rax + rax]
mov ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400a15a0
mov rbx, qword [rsp + 0x290]
add rsp, 0x280
pop rdi
ret
Function at 0x140207ea4
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x38
test ecx, ecx
je 0x140207f93
sub ecx, 1
je 0x140207f73
sub ecx, 1
je 0x140207f6a
sub ecx, 1
je 0x140207f61
cmp ecx, 1
jne 0x140207fd2
and qword [rsp + 0x58], 0
lea rcx, [rsp + 0x58]
call fcn.14000a6a4
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [0x14033d370]
xor edx, edx
lea r8d, [rdx + 0x17]
lea rcx, [0x140349228]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoCreateInstance]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x38]
test eax, eax
jns 0x140207f1e
mov edx, 0x25
jmp 0x140207f45
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
lea rdx, str.mshelp:__help__idhome
mov rax, qword [rax + 0x18]
call qword [case.0x14006b68f.0]
mov rcx, qword [rsp + 0x38]
test eax, eax
jns 0x140207f55
mov edx, PathIsExe
mov r9d, eax
lea r8, str.pcshell_shellexplorerhelperslaunchhelpers.cpp
call fcn.14009cb2c
nop
lea rcx, [rsp + 0x58]
call fcn.14000a6a4
jmp 0x140207fd2
lea r8, str.ms_settings:personalization_start
jmp 0x140207fb1
lea r8, str.ms_settings:dateandtime
jmp 0x140207fb1
test dl, dl
je 0x140207f8a
lea rdx, [0x140345ac8]
mov rcx, r8
call fcn.140204518
test eax, eax
jne 0x140207fd2
lea r8, str.ms_settings:notifications
jmp 0x140207fb1
test dl, dl
je 0x140207faa
lea rdx, [0x140345ac8]
mov rcx, r8
call fcn.140204518
test eax, eax
jne 0x140207fd2
lea r8, str.ms_settings:taskbar
mov dword [rsp + 0x28], 1
and qword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
nop dword [rax + rax]
add rsp, 0x38
ret
Function at 0x1402080a0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rbx, r9
mov r13, r8
mov rsi, rdx
mov r14, rcx
movups xmm0, xmmword [r8]
movaps xmmword [rsp + 0x20], xmm0
movabs rdx, 0xcbf29ce484222325
psrldq xmm0, 8
movq rax, xmm0
lea r8, [rax + rax]
xor ecx, ecx
test r8, r8
je 0x140208110
mov r9, qword [rsp + 0x20]
movzx eax, byte [r9 + rcx]
xor rdx, rax
movabs r10, 0x100000001b3
imul rdx, r10
inc rcx
cmp rcx, r8
jb 0x1402080f2
mov r11, qword [r14 + 0x30]
and r11, rdx
mov r15, r11
add r15, r15
mov r12, qword [r14 + 0x18]
lea rax, [r14 + 8]
mov qword [rsp + 0x80], rax
mov rdi, qword [rax]
cmp rdi, qword [r12 + r15*8]
je 0x14020817c
mov rdi, qword [r12 + r15*8 + 8]
mov rdi, qword [rdi]
cmp rdi, qword [r12 + r15*8]
je 0x14020817c
mov rdi, qword [rdi + 8]
lea r8, [rdi + 0x10]
mov rdx, r13
call fcn.140208384
test al, al
jne 0x14020813e
mov r8, rbx
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
call fcn.140208980
mov qword [rsi], rdi
mov byte [rsi + 8], 0
mov rax, rsi
jmp 0x14020821a
mov rax, qword [rbx]
cmp rdi, rax
je 0x1402081b1
mov rcx, qword [rbx + 8]
mov qword [rcx], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rdi
mov rcx, qword [rdi + 8]
mov qword [rcx], rbx
mov rdx, qword [rdi + 8]
mov rcx, qword [rax + 8]
mov qword [rdi + 8], rcx
mov rcx, qword [rbx + 8]
mov qword [rax + 8], rcx
mov qword [rbx + 8], rdx
mov rax, qword [r14 + 0x18]
mov rdx, qword [rax + r15*8]
mov rcx, r11
add rcx, rcx
cmp rdx, qword [r14 + 8]
jne 0x1402081d4
mov qword [rax + rcx*8], rbx
mov rax, qword [r14 + 0x18]
mov qword [rax + r15*8 + 8], rbx
jmp 0x140208207
shl r11, 4
add r11, rax
cmp rdx, rdi
jne 0x1402081e5
mov qword [r11], rbx
jmp 0x140208207
mov rax, qword [r11 + 8]
mov rcx, qword [rax]
mov qword [r11 + 8], rcx
cmp rcx, rbx
je 0x140208207
mov rdx, qword [r14 + 0x18]
mov rax, qword [rdx + r15*8 + 8]
mov rcx, qword [rax + 8]
mov qword [rdx + r15*8 + 8], rcx
mov rcx, r14
call fcn.1400056a8
nop
mov qword [rsi], rbx
mov byte [rsi + 8], 1
mov rax, rsi
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x14020ca28
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x48
mov eax, dword [0x140388a58]
cmp eax, 0xffffffff
jne 0x14020cadc
lea rax, [r11 + 0x10]
mov dword [rsp + 0x58], 4
mov qword [r11 - 0x18], rax
lea r8, str.SharedPCMode
lea rax, [r11 + 8]
mov r9d, 0x20010010
mov qword [r11 - 0x20], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionSharedPC
and qword [r11 - 0x28], 0
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x60], 4
mov qword [rsp + 0x30], rax
lea r8, str.DoNotCacheSharedPCMode
lea rax, [rsp + 0x68]
mov r9d, 0x20010010
mov qword [rsp + 0x28], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionSharedPC
and qword [rsp + 0x20], 0
mov rcx, 0xffffffff80000001
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
cmp dword [rsp + 0x68], 0
mov eax, dword [rsp + 0x50]
jne 0x14020cadc
mov dword [0x140388a58], eax
add rsp, 0x48
ret

Function at 0x140211564
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov edx, reloc.OLEAUT32.dll_SafeArrayGetElement
lea ecx, [rdx + 0x28]
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x1402115e4
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThreadId]
nop dword [rax + rax]
mov ecx, eax
call qword [0x1403ad558]
nop dword [rax + rax]
and dword [rbx + 0x10], 0
lea rcx, [0x140211610]
xor r9d, r9d
mov qword [rbx], rax
mov r8d, 0x2000
mov qword [rbx + 8], rdi
mov rdx, rbx
call qword [sym.imp.api_ms_win_shcore_thread_l1_1_0.dll_SHCreateThread]
nop dword [rax + rax]
test eax, eax
jne 0x1402115f8
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.USER32.dll_EndTask]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1402120b4
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rbp, rdx
xor edx, edx
mov r8d, 0xf0001
xor ecx, ecx
call qword [0x1403ad568]
nop dword [rax + rax]
xor ebx, ebx
test rax, rax
je 0x14021215c
mov rcx, rax
call qword [0x1403ad550]
nop dword [rax + rax]
mov edx, edi
lea ecx, [rbx + 0x40]
mov esi, edi
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x14021215c
mov r8d, esi
mov rdx, rbp
mov rcx, rax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
xor r9d, r9d
lea rcx, [0x14020d280]
mov r8d, 0x2008
mov rdx, rdi
call qword [sym.imp.api_ms_win_shcore_thread_l1_1_0.dll_SHCreateThread]
nop dword [rax + rax]
test eax, eax
je 0x14021214d
mov ebx, 1
jmp 0x14021215c
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
mov rbp, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1402126c8
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov qword [rax + 8], rcx
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0x90
xor edi, edi
mov dword [rbp - 0x19], Ordinal_109
xorps xmm0, xmm0
mov dword [rbp - 0x15], 0x4100000
lea eax, [r8 - 1]
mov qword [rbp - 0x11], rdi
movsxd rcx, eax
mov rbx, rdx
mov qword [rbp - 9], rcx
lea rdx, [rbp + 0x67]
mov qword [rbp + 0x27], rcx
xor ecx, ecx
mov qword [rbp - 1], rdi
mov qword [rbp + 7], rdi
mov qword [rbp + 0xf], 0xa
movdqa xmmword [rbp + 0x17], xmm0
mov qword [rbp + 0x2f], rdi
mov qword [rbp + 0x37], rdi
movups xmmword [rbp + 0x3f], xmm0
mov qword [rbp + 0x67], rdi
call qword [sym.imp.api_ms_win_core_sidebyside_l1_1_0.dll_ActivateActCtx]
nop dword [rax + rax]
lea ecx, [rdi + 0x10]
call qword [sym.imp.USER32.dll_GetKeyState]
nop dword [rax + rax]
test ax, ax
jns 0x14021275c
bts dword [rbp - 0x15], 0x1c
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
nop dword [rax + rax]
test ax, ax
jns 0x140212777
bts dword [rbp - 0x15], 0x1e
mov rax, qword [rbx]
lea rdx, [rbp - 0x19]
mov rcx, rbx
mov rax, qword [rax + 0x20]
call qword [case.0x14006b68f.0]
mov rdx, qword [rbp + 0x67]
mov ebx, eax
test rdx, rdx
je 0x1402127a4
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_sidebyside_l1_1_0.dll_DeactivateActCtx]
nop dword [rax + rax]
lea r11, [rsp + 0x90]
mov eax, ebx
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x140212ff8
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov r15, rdx
mov rbp, rcx
mov rcx, qword [rcx + 0xc0]
mov r14d, r8d
mov edx, dword [rcx + 0x58]
and edx, 4
or edx, 0x432
shr edx, 1
call fcn.1401b3c4c
mov ecx, 0x30
call fcn.140036464
xor ebx, ebx
mov qword [rsp + 0x40], rax
mov rdi, rax
test rax, rax
je 0x140213055
mov qword [rax], rbx
mov qword [rax + 0x28], rbx
jmp 0x140213058
mov rdi, rbx
test rdi, rdi
je 0x14021311e
mov rdx, rdi
mov rcx, rbp
call fcn.140210d08
mov rdx, qword [rbp + 0xc0]
mov esi, eax
test byte [rdx + 0x58], 4
je 0x14021309a
mov rdx, qword [rdx + 0x160]
test rdx, rdx
je 0x14021309a
lea r8, [rdi + 0x28]
call fcn.140211398
test al, al
mov ecx, 0x80004005
cmovne esi, ecx
test esi, esi
js 0x1402130f3
mov rax, qword [0x140389688]
xor r9d, r9d
mov qword [rdi + 8], rax
mov r8d, 0x2001
mov rax, qword [0x140389690]
mov rdx, rdi
mov qword [rdi + 0x10], rax
mov dword [rdi + 0x18], r14d
mov rax, qword [rbp + 0xc0]
mov ecx, dword [rax + 0x58]
mov dword [rdi + 0x1c], ecx
lea rcx, [0x14020e060]
mov qword [rdi + 0x20], r15
call qword [sym.imp.api_ms_win_shcore_thread_l1_1_0.dll_SHCreateThread]
nop dword [rax + rax]
test eax, eax
je 0x1402130f3
mov ebx, 1
jmp 0x14021311e
cmp qword [rdi], rbx
je 0x14021310d
mov rcx, qword [rdi]
lea rdx, [0x1401befe0]
xor r8d, r8d
call fcn.1400627a4
mov qword [rdi], rbx
lea rcx, [rdi + 0x28]
call fcn.14000f8d8
mov rcx, rdi
call fcn.14020a49c
mov rbp, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x14022f540
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ebx, edx
mov rdi, rcx
mov rcx, qword [rcx + 0x48]
mov esi, 1
lea edx, [rsi - 0x15]
call qword [0x1403ad690]
nop dword [rax + rax]
mov edx, dword [rdi + reloc.SHELL32.dll_SHChangeNotification_Lock]
mov ecx, ebx
mov r9d, eax
mov eax, dword [rdi + 0x2ac]
neg eax
sbb r8d, r8d
xor eax, eax
and r8d, 2
and r9d, 0x400000
setne al
or r8d, eax
call fcn.140215948
cmp eax, 0x24
jg 0x14022f65a
je 0x14022f653
cmp eax, 9
je 0x14022f63a
cmp eax, 0xd
je 0x14022f5e8
cmp eax, 0xf
jle 0x14022f683
cmp eax, 0x12
jle 0x14022f68d
cmp eax, 0x1b
je 0x14022f6a2
cmp eax, 0x20
je 0x14022f5e8
cmp eax, 0x23
jne 0x14022f683
lea edx, [rsi + 2]
jmp 0x14022f6b4
mov r8d, dword [rdi + 0x23c]
lea rbx, [rdi + 0x10]
mov eax, 0x55555556
mov rcx, rbx
imul r8d
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
sub r8d, eax
cmp r8d, esi
jne 0x14022f624
call fcn.14022a3c0
mov edx, eax
mov rcx, rbx
call fcn.14022aa10
jmp 0x14022f6bc
call fcn.14022a3c0
mov edx, eax
lea rcx, [rbx - 0x10]
call fcn.1402326d0
lea rcx, [rbx - 0x10]
jmp 0x14022f6a5
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call qword [sym.imp.USER32.dll_GetKeyState]
nop dword [rax + rax]
movzx edx, ax
shr edx, 0xf
jmp 0x14022f6b4
mov edx, 2
jmp 0x14022f6b4
cmp eax, 0x26
jle 0x14022f6b2
cmp eax, 0x27
je 0x14022f6ae
cmp eax, 0x28
je 0x14022f691
cmp eax, 0x5d
je 0x14022f68d
cmp eax, 0x9f
jle 0x14022f683
cmp eax, 0xa5
jle 0x14022f68d
cmp eax, 0xff
je 0x14022f68d
mov rcx, rdi
call fcn.14022e498
jmp 0x14022f6bc
xor esi, esi
jmp 0x14022f6bc
mov edx, 4
mov rcx, rdi
call fcn.140230db8
test eax, eax
jns 0x14022f6bc
mov rcx, rdi
mov edx, esi
call fcn.14005badc
jmp 0x14022f6bc
xor edx, edx
jmp 0x14022f6b4
mov edx, esi
mov rcx, rdi
call fcn.140230db8
mov rbx, qword [rsp + 0x30]
mov eax, esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140231864
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
cmp qword [0x140389e28], rbx
jne 0x1402318e8
mov r8, qword [0x140389668]
lea rdx, [0x140232de0]
xor r9d, r9d
lea ecx, [rbx + 0xd]
call qword [0x1403ad658]
nop dword [rax + rax]
lea ecx, [rbx + 0x5b]
mov qword [0x140389e28], rax
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
nop dword [rax + rax]
test ax, ax
js 0x1402318e8
lea ecx, [rbx + 0x5c]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
nop dword [rax + rax]
test ax, ax
js 0x1402318e8
call fcn.1402331e8
mov rcx, qword [0x140389e28]
test rcx, rcx
je 0x1402318e8
call qword [0x1403ad770]
nop dword [rax + rax]
mov qword [0x140389e28], rbx
add rsp, 0x20
pop rbx
ret