joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140168120
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x140208770]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.14015d8e4
xor ebx, ebx
cmp qword [0x140215568], rbx
mov rdi, rax
jne 0x140168233
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x14016830a
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14016830a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, [0x1401cb7d8]
mov rcx, rsi
mov qword [0x140215568], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, [0x1401cb7c0]
mov rcx, rsi
mov qword [0x140215570], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x140215578], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x140215588], rax
test rax, rax
je 0x14016822a
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x140215580], rax
jmp 0x14016823a
mov rax, qword [0x140215580]
jmp 0x140168241
mov rax, qword [0x140215580]
mov r11, qword [0x140215588]
cmp rax, rdi
je 0x1401682a8
cmp r11, rdi
je 0x1401682a8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x140215588]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x1401682a8
test rax, rax
je 0x1401682a8
call rsi
test rax, rax
je 0x1401682a2
lea rcx, [rsp + 0x30]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1401682a2
test byte [rsp + 0x40], 1
jne 0x1401682a8
bts ebp, 0x15
jmp 0x1401682e8
mov rcx, qword [0x140215570]
cmp rcx, rdi
je 0x1401682e8
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1401682e8
call rax
mov rbx, rax
test rax, rax
je 0x1401682e8
mov rcx, qword [0x140215578]
cmp rcx, rdi
je 0x1401682e8
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1401682e8
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140215568]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14016830a
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x14016830c
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401553a0
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140001b68
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001bb2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001bb2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001bb2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001bb2
cmp dword [rcx + 0x84], 0xe
jbe 0x140001bb2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001bb4
xor al, al
add rsp, 0x28
ret
Function at 0x14001836c
Capabilities:
Acquire debug privileges

Disassembly:
push rbp
push r15
xor rax, rax
push rax
push rax
push rax
push rax
push rax
push rax
sub rsp, 0x28
mov dword [0x1400a8001], 0x5a
mov dword [0x1400a8001], 0x5b
mov byte [rsp + 0x28], 0
mov dword [0x1400a8001], 0x5d
lea rax, [rsp + 0x30]
mov rax, rax
push rax
push 0x28
sub rsp, 0x20
call sub.KERNEL32.dll_GetCurrentProcess
add rsp, 0x20
mov rax, rax
push rax
pop rcx
pop rdx
pop r8
call sub.ADVAPI32.DLL_OpenProcessToken
and rax, rax
je 0x1400184f7
mov dword [0x1400a8001], 0x5e
lea rax, [rsp + 0x38]
mov dword [0x1400a8001], 0x60
lea rax, [rsp + 0x38]
mov rax, rax
push rax
movabs rax, str.SeDebugPrivilege
push rax
push 0
pop rcx
pop rdx
pop r8
call sub.ADVAPI32.DLL_LookupPrivilegeValueA
and rax, rax
je 0x1400184d9
mov dword [0x1400a8001], 0x61
lea rax, [rsp + 0x40]
mov dword [0x1400a8001], 0x64
lea rbp, [rsp + 0x40]
mov dword [rbp], 1
mov dword [0x1400a8001], 0x65
lea rbp, [rsp + 0x38]
movsxd rax, dword [rbp]
push rax
lea rbp, [rsp + 0x48]
push rbp
pop rbp
pop rax
mov dword [rbp + 4], eax
mov dword [0x1400a8001], 0x66
lea rbp, [rsp + 0x38]
movsxd rax, dword [rbp + 4]
push rax
lea rbp, [rsp + 0x48]
push rbp
pop rbp
pop rax
mov dword [rbp + 8], eax
mov dword [0x1400a8001], 0x67
push rbp
pop rbp
mov dword [rbp + 0xc], 2
mov dword [0x1400a8001], 0x69
lea rax, [rsp + 0x50]
mov rax, rax
push rax
lea rax, [rsp + 0x50]
mov rax, rax
push rax
push 4
lea rax, [rsp + 0x58]
mov rax, rax
push rax
push 0
push qword [rsp + 0x58]
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call sub.ADVAPI32.DLL_AdjustTokenPrivileges
add rsp, 0x30
mov rax, rax
push rax
pop rax
mov byte [rsp + 0x28], al
mov dword [0x1400a8001], 0x6a
mov dword [0x1400a8001], 0x6b
push qword [rsp + 0x30]
pop rcx
call sub.KERNEL32.dll_CloseHandle
mov dword [0x1400a8001], 0x6c
mov dword [0x1400a8001], 0x6d
movsx rax, byte [rsp + 0x28]
movsx rax, al
jmp 0x140018524
add rsp, 0x58
pop r15
pop rbp
ret

Function at 0x14001933e
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rcx
push r15
xor rax, rax
push rax
sub rsp, 0x28
mov dword [0x1400a8001], 0x100002b
mov dword [0x1400a8001], 0x100002c
push qword [rsp + 0x40]
pop rcx
call sub.USER32.DLL_GetAsyncKeyState
mov r15, rax
and r15, 0x8000
and r15, r15
je 0x14001938d
mov dword [0x1400a8001], 0x100002d
mov rax, 1
jmp 0x1400193a4
mov dword [0x1400a8001], 0x100002e
mov dword [0x1400a8001], 0x100002f
xor rax, rax
add rsp, 0x30
pop r15
ret

Function at 0x14001f358
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, dword [0x1400f1e44]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x14001f3b2
mov r8, qword [0x1400a819f]
mov rcx, qword [0x1400f0ff4]
lea edx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1400f1e44]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, rbx
call fcn.14001e174
lea rcx, [0x14001f330]
mov rdx, rbx
call fcn.14001f62c
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x14001f3bc
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400f1e44], eax
add rsp, 0x28
jmp fcn.14001f358
Function at 0x1400212ec
Capabilities:
Get file size
Read file on windows

Disassembly:
xor r8d, r8d
jmp 0x1400212f4
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rbx, rdx
xor edi, edi
mov r14d, r8d
mov qword [rax - 0x28], rdi
mov r15, rcx
mov dword [rax - 0x30], 0x80
lea r8d, [rdi + 1]
xor r9d, r9d
mov edx, 0x80000000
mov rcx, rbx
mov dword [rax - 0x38], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140021431
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
movsxd rsi, eax
test r14b, 1
je 0x1400213d2
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.140021f94
mov rsi, rax
test rax, rax
je 0x140021428
mov rcx, qword [0x1400f1f30]
mov rdx, r15
call fcn.140039ac8
mov r15d, 0x10000
mov rcx, rsi
mov dword [rax + 0x28], r15d
mov r14, rax
call fcn.140021f5c
mov rcx, rsi
mov rbx, rax
call fcn.140021f34
mov r8d, r15d
mov edx, ebx
mov rcx, rax
call fcn.140021c6c
mov qword [r14], rax
test rax, rax
je 0x1400213c8
mov qword [r14 + 0x20], rsi
mov rdi, r14
jmp 0x140021428
mov rcx, rsi
call fcn.140021f2c
jmp 0x140021428
mov rcx, qword [0x1400f0ff4]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x140021428
lea r9, [rsp + 0x78]
mov r8d, esi
mov rdx, rax
mov rcx, rbp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r8d, esi
mov rdx, rbx
mov rcx, r15
call fcn.1400217e8
mov rcx, qword [0x1400f0ff4]
mov r8, rbx
xor edx, edx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rax, rdi
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x1400212f4
Capabilities:
Get file size
Read file on windows

Disassembly:
xor r8d, r8d
jmp 0x1400212f4
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rbx, rdx
xor edi, edi
mov r14d, r8d
mov qword [rax - 0x28], rdi
mov r15, rcx
mov dword [rax - 0x30], 0x80
lea r8d, [rdi + 1]
xor r9d, r9d
mov edx, 0x80000000
mov rcx, rbx
mov dword [rax - 0x38], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140021431
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
movsxd rsi, eax
test r14b, 1
je 0x1400213d2
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.140021f94
mov rsi, rax
test rax, rax
je 0x140021428
mov rcx, qword [0x1400f1f30]
mov rdx, r15
call fcn.140039ac8
mov r15d, 0x10000
mov rcx, rsi
mov dword [rax + 0x28], r15d
mov r14, rax
call fcn.140021f5c
mov rcx, rsi
mov rbx, rax
call fcn.140021f34
mov r8d, r15d
mov edx, ebx
mov rcx, rax
call fcn.140021c6c
mov qword [r14], rax
test rax, rax
je 0x1400213c8
mov qword [r14 + 0x20], rsi
mov rdi, r14
jmp 0x140021428
mov rcx, rsi
call fcn.140021f2c
jmp 0x140021428
mov rcx, qword [0x1400f0ff4]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x140021428
lea r9, [rsp + 0x78]
mov r8d, esi
mov rdx, rax
mov rcx, rbp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r8d, esi
mov rdx, rbx
mov rcx, r15
call fcn.1400217e8
mov rcx, qword [0x1400f0ff4]
mov r8, rbx
xor edx, edx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rax, rdi
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x140021508
Capabilities:
Create thread

Disassembly:
or r8d, 0xffffffff
xor edx, edx
jmp 0x140021508
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov r12d, edx
mov r15, rcx
mov rdx, rcx
mov rcx, qword [0x1400f1f30]
mov esi, r8d
xor r14d, r14d
call fcn.140039a9c
mov rbx, rax
test rax, rax
je 0x1400216ed
mov rcx, qword [rax]
mov qword [rsp + 0x30], rcx
cmp qword [rax + 0x20], r14
je 0x1400215ee
mov rcx, r15
call fcn.140021cf4
jmp 0x14002156c
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [rbx + 0x2d], r14b
jne 0x140021561
mov rcx, qword [rbx + 0x20]
call fcn.140021f8c
mov edi, 1
xor edx, edx
mov rcx, rbx
mov dword [rbx + 0x30], r12d
mov byte [rbx + 0x2c], dil
call fcn.140021450
lea rax, [rsp + 0x88]
lea r8, [0x140021708]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], r14d
mov r9, rbx
mov edx, 0x2000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x1400215c9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xffffffff
je 0x1400215d8
mov edx, esi
mov rcx, r15
call fcn.140021dfc
mov rcx, qword [rbx]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x68]
mov rcx, qword [rbx]
mov r9d, edi
jmp 0x140021699
mov edi, 1
mov ebp, r14d
test dil, r12b
cmovne ebp, edi
test r12b, 2
je 0x1400216a6
mov rcx, rax
call fcn.140021bc8
lea rcx, [rbx + 8]
lea edx, [rdi + 0x1f]
call fcn.14003a460
mov rcx, qword [0x1400f2088]
mov rdx, qword [rsp + 0x30]
mov r9, qword [rcx]
lea r8, [rsp + 0x30]
mov r14, rax
call qword [r9 + 0x28]
test eax, eax
jne 0x1400216ed
mov rcx, qword [rsp + 0x30]
mov byte [r14 + 9], bpl
mov byte [r14 + 8], dil
mov qword [r14], rcx
mov rcx, qword [rsp + 0x30]
mov edx, dword [rbx + 0x14]
mov rax, qword [rcx]
call qword [rax + 0x88]
mov rcx, qword [rsp + 0x30]
mov edx, dword [rbx + 0x10]
mov rax, qword [rcx]
call qword [rax + pe_nt_image_headers64]
cmp esi, 0xffffffff
je 0x140021683
mov r8, r14
mov edx, esi
mov rcx, r15
call fcn.140021e04
jmp 0x140021691
mov rcx, qword [rsp + 0x30]
mov edx, dword [rbx + 0x18]
mov rax, qword [rcx]
call qword [rax + 0x78]
mov rcx, qword [rsp + 0x30]
mov r9d, ebp
mov rax, qword [rcx]
xor r8d, r8d
xor edx, edx
call qword [rax + 0x60]
jmp 0x1400216ed
mov rax, qword [rcx]
call qword [rax + 0x90]
mov rcx, qword [rsp + 0x30]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x68]
cmp esi, 0xffffffff
je 0x1400216cb
mov edx, esi
mov rcx, r15
call fcn.140021dfc
mov rcx, qword [rsp + 0x30]
mov r9d, ebp
xor r8d, r8d
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x60]
test eax, eax
jne 0x1400216ed
mov r14, rdi
mov byte [rbx + 0x2c], dil
mov byte [rbx + 0x2e], bpl
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rax, r14
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x14002288c
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x140022903
movsxd rdx, ecx
lea rcx, [0x1400227e8]
call qword [sym.imp.USER32.DLL_EnumWindows]
mov rbx, qword [0x1400f1f70]
test rbx, rbx
je 0x140022976
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x1400228f9
cmp byte [rbx + 0x20], 0
je 0x1400228f9
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea rdx, [r9 - 2]
xor r8d, r8d
call qword [sym.imp.USER32.DLL_SetWindowPos]
mov rbx, rdi
test rdi, rdi
jne 0x1400228bf
jmp 0x140022976
mov rbx, qword [0x1400f1f70]
test rbx, rbx
je 0x140022976
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x14002296e
cmp byte [rbx + 0x21], 0
je 0x140022932
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x14002295e
mov rcx, qword [rbx + 0x18]
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
or rdx, 0xffffffffffffffff
call qword [sym.imp.USER32.DLL_SetWindowPos]
lea rdx, [rbx + 0x10]
lea rcx, [0x1400f1f70]
call fcn.14003a4a4
mov rbx, rdi
test rdi, rdi
jne 0x14002290f
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x140022a38
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [0x1400f3050]
call fcn.140039a1c
xor ebx, ebx
or esi, 0xffffffff
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dl, byte [rax]
test dl, dl
je 0x140022b1a
mov rcx, qword [rsp + 0x30]
mov r11b, 0x20
lea r9d, [rbx + 1]
mov r10b, 0x22
cmp dl, r11b
jne 0x140022a90
add rax, r9
cmp byte [rax], r11b
je 0x140022a88
mov dl, byte [rax]
mov r8d, r9d
cmp dl, r10b
jne 0x140022ac1
add rax, r9
mov rbx, rax
mov cl, byte [rax]
test cl, cl
je 0x140022af4
cmp cl, r10b
je 0x140022ab4
add rax, r9
mov cl, byte [rax]
test cl, cl
jne 0x140022aa6
cmp byte [rax], 0
je 0x140022af4
mov rcx, rax
add rax, r9
jmp 0x140022afc
test dl, dl
je 0x140022af9
mov rbx, rax
cmp dl, r11b
je 0x140022ab4
add rax, r9
cmp byte [rax], r10b
jne 0x140022aec
add rax, r9
mov cl, byte [rax]
test cl, cl
je 0x140022af4
cmp cl, r10b
je 0x140022aec
add rax, r9
mov cl, byte [rax]
test cl, cl
jne 0x140022ade
mov dl, byte [rax]
test dl, dl
jne 0x140022ac8
jmp 0x140022ab4
mov rcx, rax
jmp 0x140022afc
xor r8d, r8d
cmp dword [r14], esi
jne 0x140022b06
test rdi, rdi
jne 0x140022b24
test r8d, r8d
je 0x140022b0e
add esi, r9d
mov dl, byte [rax]
xor ebx, ebx
test dl, dl
jne 0x140022a83
test rdi, rdi
jne 0x140022b35
movsxd rax, esi
jmp 0x140022b38
test rbx, rbx
je 0x140022b35
sub ecx, ebx
mov rax, rbx
mov dword [rdi], ecx
add dword [r14], r9d
jmp 0x140022b38
and dword [rdi], 0
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140022b50
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x1400f3050]
call fcn.140039a1c
xor ecx, ecx
add rsp, 0x28
jmp fcn.140022a38
Function at 0x140026b84
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ebx, edx
mov rdx, rcx
mov rcx, qword [0x1400f3200]
call fcn.140039a9c
mov rsi, rax
test rax, rax
je 0x140026bfd
mov rcx, qword [rax + 8]
mov rax, qword [rcx + 0x28]
test rax, rax
je 0x140026bc2
mov edx, ebx
mov rcx, rsi
call rax
jmp 0x140026bfd
mov rcx, qword [rsi]
call qword [sym.imp.USER32.DLL_GetWindowTextLengthA]
mov edx, ebx
mov ecx, eax
mov edi, eax
call fcn.14003a8c0
lea r8d, [rdi + 1]
mov byte [rax], 0
mov rcx, qword [rsi]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.USER32.DLL_GetWindowTextA]
mov rcx, rbx
call sub.msvcrt.dll_strlen
sub edi, eax
mov ecx, edi
call fcn.14003a970
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14002c200
Capabilities:
Check os version

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x188]
sub rsp, 0x280
lea rcx, [rsp + 0x20]
mov ebx, 0xc8
xor r14d, r14d
xor edi, edi
mov dword [rsp + 0x20], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x14002c3cb
mov eax, dword [rsp + 0x30]
dec eax
je 0x14002c3a8
dec eax
jne 0x14002c3cb
lea r8d, [rbx + 0x54]
lea rcx, [rbp - 0x40]
xor edx, edx
xor esi, esi
call sub.msvcrt.dll_memset
lea rcx, [0x140099c50]
mov dword [rbp - 0x40], 0x11c
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002c2a9
lea rdx, str.RtlGetVersion
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14002c2a9
lea rcx, [rbp - 0x40]
call rax
xor ecx, ecx
test eax, eax
sete cl
jmp 0x14002c2ab
xor ecx, ecx
test ecx, ecx
je 0x14002c2c7
mov r14d, dword [rbp - 0x3c]
mov edi, dword [rbp - 0x38]
mov eax, 1
cmp byte [rbp + 0xda], al
jne 0x14002c2f9
mov esi, eax
jmp 0x14002c2f9
lea rcx, [rbp + 0xe0]
mov dword [rbp + 0xe0], 0x9c
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x14002c2f9
mov r14d, dword [rsp + 0x24]
mov edi, dword [rsp + 0x28]
mov eax, 1
cmp byte [rbp + 0x17a], al
cmove esi, eax
sub r14d, 3
je 0x14002c3a1
dec r14d
je 0x14002c39a
dec r14d
je 0x14002c374
dec r14d
je 0x14002c330
cmp r14d, 4
jne 0x14002c3cb
test edi, edi
jne 0x14002c3cb
lea ebx, [rdi + 0x6e]
jmp 0x14002c3cb
test edi, edi
je 0x14002c368
dec edi
je 0x14002c35c
dec edi
je 0x14002c350
dec edi
jne 0x14002c3cb
neg esi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x69
jmp 0x14002c3cb
neg esi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x5f
jmp 0x14002c3cb
neg esi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x55
jmp 0x14002c3cb
neg esi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x4b
jmp 0x14002c3cb
test edi, edi
je 0x14002c393
dec edi
je 0x14002c38c
dec edi
jne 0x14002c3cb
neg esi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x41
jmp 0x14002c3cb
mov ebx, 0x3c
jmp 0x14002c3cb
mov ebx, 0x32
jmp 0x14002c3cb
mov ebx, 0x14
jmp 0x14002c3cb
mov ebx, 5
jmp 0x14002c3cb
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x14002c3c6
cmp eax, 0xa
je 0x14002c3bf
cmp eax, 0x5a
jne 0x14002c3cb
lea ebx, [rax - 0x32]
jmp 0x14002c3cb
mov ebx, 0x1e
jmp 0x14002c3cb
mov ebx, 0xa
lea r11, [rsp + 0x280]
movsxd rax, ebx
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14002d964
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call qword [sym.imp.USER32.DLL_GetFocus]
mov rbx, rax
test rax, rax
je 0x14002da0d
mov ecx, 9
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
jns 0x14002da0d
mov ecx, 0x11
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x14002da0d
mov ecx, 0x10
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x14002da0d
mov ecx, 0x12
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x14002da0d
lea rdx, [rsp + 0x40]
mov r8d, 5
mov rcx, rbx
call qword [sym.imp.USER32.DLL_GetClassNameA]
lea rdx, str.Rich
lea rcx, [rsp + 0x40]
mov r8d, 4
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x14002da0d
xor r9d, r9d
xor r8d, r8d
mov edx, 0x44e
mov rcx, rbx
call qword [sym.imp.USER32.DLL_SendMessageA]
bt rax, 0xb
jae 0x14002dab7
test rdi, rdi
je 0x14002da4c
mov ecx, 0x11
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x14002da3f
mov ecx, 0x10
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x14002da3f
mov ecx, 0x12
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
jns 0x14002da4c
mov edx, 1
mov rcx, rdi
call fcn.14002dac4
test rbx, rbx
je 0x14002da66
lea rdx, str.PB_Hotkey
mov rcx, rbx
call qword [sym.imp.USER32.DLL_GetPropA]
test rax, rax
jne 0x14002dab7
lea rdx, str.PB_WindowID
mov rcx, rdi
call qword [sym.imp.USER32.DLL_GetPropA]
mov rbx, rax
test rax, rax
je 0x14002dab7
lea rdx, [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x14002dab7
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x38], eax
jne 0x14002dab7
mov rcx, qword [0x1400f3240]
lea rdx, [rbx - 1]
call fcn.140039a9c
test rax, rax
je 0x14002dab7
mov rax, qword [rax + 0x10]
jmp 0x14002dab9
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14002dc84
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edx, ecx
mov edi, 0x104
mov ecx, edi
call fcn.14003a8c0
mov ecx, edi
mov rdx, rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
movsxd rbx, eax
test eax, eax
je 0x14002dcc3
cmp byte [rbx + rsi - 1], 0x5c
je 0x14002dcc3
mov byte [rbx + rsi], 0x5c
inc ebx
sub edi, ebx
mov ecx, edi
call fcn.14003a970
movsxd rax, ebx
mov rbx, qword [rsp + 0x30]
mov byte [rax + rsi], 0
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret