joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140025ed4
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x1402161a8]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x14002687c
Capabilities:
Create thread

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
lea rax, [r11 + 0x18]
mov r9, rdx
mov r8, rcx
mov qword [r11 - 0x10], rax
xor edi, edi
mov edx, 0x1000
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbp, rax
test rax, rax
je 0x140026942
lea rcx, [0x140219880]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140218ef8]
jmp 0x140026906
lea rsi, [rbx + 0x10]
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140026903
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rbx]
lea rcx, [0x140218ef8]
mov rdx, rsi
call fcn.14004d3dc
jmp 0x140026906
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1400268d3
mov rdx, qword [0x140216170]
lea rcx, [0x140218ef8]
mov rdi, rdx
inc rdx
mov qword [0x140216170], rdx
lea edx, [rbx + 0x20]
call fcn.14004d424
lea rcx, [0x140219880]
mov qword [rax], rbp
mov qword [rax + 8], rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
mov rax, rdi
add rsp, 0x30
pop rdi
ret

Function at 0x140026a64
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140026700
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140219880]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140218ef8]
jmp 0x140026aa0
cmp qword [rbx + 0x18], rdi
je 0x140026aa7
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140026a97
jmp 0x140026ac1
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x140218ef8]
call fcn.14004d3dc
lea rcx, [0x140219880]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14002a33c
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x14002a3b3
movsxd rdx, ecx
lea rcx, [0x14002a298]
call qword [sym.imp.USER32.DLL_EnumWindows]
mov rbx, qword [0x140219128]
test rbx, rbx
je 0x14002a426
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x14002a3a9
cmp byte [rbx + 0x20], 0
je 0x14002a3a9
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 0x14002a36f
jmp 0x14002a426
mov rbx, qword [0x140219128]
test rbx, rbx
je 0x14002a426
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x14002a41e
cmp byte [rbx + 0x21], 0
je 0x14002a3e2
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x14002a40e
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, [0x140219128]
call fcn.14004d3dc
mov rbx, rdi
test rdi, rdi
jne 0x14002a3bf
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14002af10
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x140219148], 0
jne 0x14002af35
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140219148], 1
mov dword [0x14021914c], eax
mov rcx, qword [0x140218780]
xor edx, edx
mov r8d, 0x90
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x14021914c]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, eax
mov ecx, ebx
add rsp, 0x20
pop rbx
jmp 0x14002b0f0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp dword [0x140219148], 0
mov ebx, ecx
jne 0x14002b114
call fcn.14002af10
mov ecx, dword [0x14021914c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x14002b13c
call fcn.14002af10
mov ecx, dword [0x14021914c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
lea rdx, [rdi + 8]
mov r8d, 0x11
nop word [rax + rax]
imul eax, ebx, 0x53a9b4fb
mov ecx, 1
mov ebx, 1
sub ecx, eax
lea rdx, [rdx + 4]
mov dword [rdx + 0x40], ecx
imul eax, ecx, 0x53a9b4fb
sub ebx, eax
mov dword [rdx - 4], ebx
dec r8
jne 0x14002b150
lea esi, [r8 + 0x1f]
mov dword [rdi], r8d
mov dword [rdi + 4], 0xa
lea ebp, [rsi - 0xf]
nop word [rax + rax]
movsxd r11, dword [rdi]
movsxd rbx, dword [rdi + 4]
mov r10d, dword [rdi + rbx*4 + 8]
mov r9d, dword [rdi + r11*4 + 8]
mov eax, dword [rdi + r11*4 + 0x4c]
ror r9d, 5
lea rcx, [rdi + r11*4]
lea r8, [rdi + r11*4]
ror eax, 0xd
add r9d, r10d
add eax, dword [rdi + rbx*4 + 0x4c]
dec r11d
mov dword [r8 + 0x4c], r9d
cmovs r11d, ebp
dec ebx
mov dword [rcx + 8], eax
cmovs ebx, ebp
mov dword [rdi], r11d
mov dword [rdi + 4], ebx
dec rsi
jne 0x14002b190
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14002b0f0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x140219148], 0
jne 0x14002af35
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140219148], 1
mov dword [0x14021914c], eax
mov rcx, qword [0x140218780]
xor edx, edx
mov r8d, 0x90
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x14021914c]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, eax
mov ecx, ebx
add rsp, 0x20
pop rbx
jmp 0x14002b0f0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp dword [0x140219148], 0
mov ebx, ecx
jne 0x14002b114
call fcn.14002af10
mov ecx, dword [0x14021914c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x14002b13c
call fcn.14002af10
mov ecx, dword [0x14021914c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
lea rdx, [rdi + 8]
mov r8d, 0x11
nop word [rax + rax]
imul eax, ebx, 0x53a9b4fb
mov ecx, 1
mov ebx, 1
sub ecx, eax
lea rdx, [rdx + 4]
mov dword [rdx + 0x40], ecx
imul eax, ecx, 0x53a9b4fb
sub ebx, eax
mov dword [rdx - 4], ebx
dec r8
jne 0x14002b150
lea esi, [r8 + 0x1f]
mov dword [rdi], r8d
mov dword [rdi + 4], 0xa
lea ebp, [rsi - 0xf]
nop word [rax + rax]
movsxd r11, dword [rdi]
movsxd rbx, dword [rdi + 4]
mov r10d, dword [rdi + rbx*4 + 8]
mov r9d, dword [rdi + r11*4 + 8]
mov eax, dword [rdi + r11*4 + 0x4c]
ror r9d, 5
lea rcx, [rdi + r11*4]
lea r8, [rdi + r11*4]
ror eax, 0xd
add r9d, r10d
add eax, dword [rdi + rbx*4 + 0x4c]
dec r11d
mov dword [r8 + 0x4c], r9d
cmovs r11d, ebp
dec ebx
mov dword [rcx + 8], eax
cmovs ebx, ebp
mov dword [rdi], r11d
mov dword [rdi + 4], ebx
dec rsi
jne 0x14002b190
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14002b1f0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x140219148], 0
mov rbx, rcx
jne 0x14002b207
call fcn.14002af10
mov ecx, dword [0x14021914c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r9, rax
test rax, rax
jne 0x14002b22f
call fcn.14002af10
mov ecx, dword [0x14021914c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r9, rax
movsxd r8, dword [r9]
movsxd rdx, dword [r9 + 4]
mov eax, 0x10
mov r10d, dword [r9 + r8*4 + 0x4c]
mov r11d, dword [r9 + r8*4 + 8]
ror r10d, 0xd
add r10d, dword [r9 + rdx*4 + 0x4c]
ror r11d, 5
add r11d, dword [r9 + rdx*4 + 8]
mov dword [r9 + r8*4 + 8], r10d
mov dword [r9 + r8*4 + 0x4c], r11d
dec r8d
mov ecx, r11d
cmovs r8d, eax
dec edx
cmovs edx, eax
mov dword [r9], r8d
mov dword [r9 + 4], edx
inc rbx
je 0x14002b2a8
mov edx, r10d
mov r8, rbx
mov eax, ebx
shr r8, 0x20
imul rax, rdx
shr rax, 0x20
imul rcx, r8
imul rdx, r8
shr rcx, 0x20
add rax, rcx
add rax, rdx
add rsp, 0x20
pop rbx
ret
mov eax, r10d
shl rax, 0x20
and rax, rcx
add rsp, 0x20
pop rbx
ret
Function at 0x14002de38
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
lea edi, [rbx + 1]
mov ecx, edi
call qword [sym.imp.USER32.DLL_GetKeyState]
mov esi, 0x8000
lea ecx, [rdi + 1]
test si, ax
cmovne ebx, edi
call qword [sym.imp.USER32.DLL_GetKeyState]
test si, ax
je 0x14002de70
or ebx, 2
mov ecx, 4
call qword [sym.imp.USER32.DLL_GetKeyState]
test si, ax
je 0x14002de83
or ebx, 4
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14002e4dc
Capabilities:
Capture screenshot

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov rbx, rcx
mov rcx, qword [rcx]
mov rdi, rdx
lea rdx, [rbp - 0x10]
xor r13d, r13d
mov r12d, r13d
call qword [sym.imp.USER32.DLL_GetClientRect]
test rdi, rdi
jne 0x14002e529
mov rcx, qword [rbx]
call qword [sym.imp.USER32.DLL_GetDC]
lea r12d, [r13 + 1]
mov rdi, rax
test byte [rbx + 0x28], 8
je 0x14002e64e
call qword [sym.imp.USER32.DLL_GetFocus]
cmp qword [rbx], rax
jne 0x14002e64e
mov r15d, dword [rbp - 8]
mov r14d, dword [rbp - 4]
sub r15d, dword [rbp - 0x10]
sub r14d, dword [rbp - 0xc]
test r15d, r15d
jle 0x14002e6a0
test r14d, r14d
jle 0x14002e6a0
mov rcx, rdi
call qword [sym.imp.GDI32.DLL_CreateCompatibleDC]
mov rsi, rax
test rax, rax
je 0x14002e6a0
mov r8d, r14d
mov edx, r15d
mov rcx, rdi
call qword [sym.imp.GDI32.DLL_CreateCompatibleBitmap]
mov r13, rax
test rax, rax
je 0x14002e643
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.GDI32.DLL_SelectObject]
mov r9, qword [rbx + 0x20]
xor eax, eax
test r9, r9
je 0x14002e5d8
mov dword [rsp + 0x48], 4
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], eax
xor r8d, r8d
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.DLL_DrawStateW]
jmp 0x14002e5f0
xor ecx, ecx
call qword [sym.imp.GDI32.DLL_GetStockObject]
lea rdx, [rbp - 0x10]
mov rcx, rsi
mov r8, rax
call qword [sym.imp.USER32.DLL_FillRect]
add dword [rbp - 0x10], 2
add dword [rbp - 0xc], 2
sub dword [rbp - 8], 2
sub dword [rbp - 4], 2
lea rdx, [rbp - 0x10]
mov rcx, rsi
call qword [sym.imp.USER32.DLL_DrawFocusRect]
mov dword [rsp + 0x40], 0xcc0020
and dword [rsp + 0x38], 0
and dword [rsp + 0x30], 0
mov r9d, r15d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], r14d
call qword [sym.imp.GDI32.DLL_BitBlt]
mov rcx, r13
call qword [sym.imp.GDI32.DLL_DeleteObject]
mov rcx, rsi
call qword [sym.imp.GDI32.DLL_DeleteDC]
jmp 0x14002e6a0
mov r9, qword [rbx + 0x20]
test r9, r9
je 0x14002e688
mov dword [rsp + 0x48], 4
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x30], r13d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
call qword [sym.imp.USER32.DLL_DrawStateW]
jmp 0x14002e6a0
xor ecx, ecx
call qword [sym.imp.GDI32.DLL_GetStockObject]
lea rdx, [rbp - 0x10]
mov rcx, rdi
mov r8, rax
call qword [sym.imp.USER32.DLL_FillRect]
test r12d, r12d
je 0x14002e6b1
mov rcx, qword [rbx]
mov rdx, rdi
call qword [sym.imp.USER32.DLL_ReleaseDC]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x14002e6d0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r14d, r9d
mov r15d, r8d
mov r12, rdx
mov rdi, rcx
xor ebp, ebp
call qword [sym.imp.USER32.DLL_GetMessagePos]
mov rcx, qword [rdi]
lea edx, [rbp - 0xc]
mov ebx, eax
call qword [sym.imp.USER32.DLL_GetWindowLongPtrW]
mov rcx, qword [rdi]
mov r13, rax
call fcn.140030494
mov rcx, rax
call fcn.140030ddc
mov rcx, qword [0x140219320]
mov qword [rsp + 0x30], rax
call fcn.14004cc28
movsx ecx, bx
mov dword [rsp + 0x70], ecx
shr ebx, 0x10
lea rdx, [rsp + 0x70]
movsx ecx, bx
mov rsi, rax
mov dword [rsp + 0x74], ecx
mov rcx, qword [rdi]
call qword [sym.imp.USER32.DLL_ScreenToClient]
lea ecx, [rbp + 0x10]
call qword [sym.imp.USER32.DLL_GetKeyState]
mov ebx, 0x8000
test bx, ax
lea eax, [rbp + 1]
lea ecx, [rax + 0x11]
cmovne ebp, eax
call qword [sym.imp.USER32.DLL_GetKeyState]
test bx, ax
je 0x14002e77c
or ebp, 2
mov ecx, 0x11
call qword [sym.imp.USER32.DLL_GetKeyState]
test bx, ax
je 0x14002e78f
or ebp, 4
mov eax, dword [rsp + 0x70]
mov dword [rsi], eax
mov eax, dword [rsp + 0x74]
mov dword [rsi + 4], eax
call fcn.14002de38
mov r8, qword [rsp + 0x30]
mov dword [rsi + 8], eax
movzx eax, word [rsp + 0x90]
mov r9, r12
mov dword [rsi + 0x18], eax
lea rax, [0x14002e800]
mov rdx, r13
mov qword [rsp + 0x28], rax
mov ecx, 0x332c
mov dword [rsi + 0xc], r15d
mov qword [rsp + 0x20], rsi
mov dword [rsi + 0x10], ebp
mov dword [rsi + 0x14], r14d
call fcn.140035598
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x14002fa08
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, edx
mov rdx, rcx
mov rcx, qword [0x1402199e0]
call fcn.14004c908
xor ebp, ebp
mov rsi, rax
test rax, rax
je 0x14002fa88
mov rcx, qword [rax + 8]
mov rax, qword [rcx + 0x28]
test rax, rax
je 0x14002fa4d
mov edx, ebx
mov rcx, rsi
call rax
jmp 0x14002fa88
mov rcx, qword [rsi]
call qword [sym.imp.USER32.DLL_GetWindowTextLengthW]
mov edx, ebx
mov ecx, eax
mov edi, eax
call fcn.14004da40
lea r8d, [rdi + 1]
mov word [rax], bp
mov rcx, qword [rsi]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.USER32.DLL_GetWindowTextW]
mov rcx, rbx
call sub.msvcrt.dll_wcslen
sub edi, eax
mov ecx, edi
call fcn.14004db80
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14003097c
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x90
xor edx, edx
mov ebx, ecx
lea rcx, [rsp + 0x50]
lea r8d, [rdx + 0x40]
call sub.msvcrt.dll_memset
cmp ebx, 6
jne 0x1400309ad
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x24]
jmp 0x140030a0b
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x40
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x140030a09
test ebx, ebx
je 0x140030a02
dec ebx
je 0x1400309fb
dec ebx
je 0x1400309f4
dec ebx
je 0x1400309ea
dec ebx
je 0x1400309e3
dec ebx
jne 0x140030a09
mov rax, qword [rsp + 0x70]
jmp 0x140030a0b
mov rax, qword [rsp + 0x68]
jmp 0x140030a0b
mov rax, qword [rsp + 0x80]
jmp 0x140030a0b
mov rax, qword [rsp + 0x78]
jmp 0x140030a0b
mov rax, qword [rsp + 0x60]
jmp 0x140030a0b
mov rax, qword [rsp + 0x58]
jmp 0x140030a0b
xor eax, eax
add rsp, 0x90
pop rbx
ret
Function at 0x140030a78
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 - 0x288]
sub rsp, 0x380
lea rcx, [rbp + 0x40]
mov ebx, 0xc8
xor r14d, r14d
xor edi, edi
mov dword [rbp + 0x40], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x140030c3f
mov eax, dword [rbp + 0x50]
dec eax
je 0x140030c1d
dec eax
jne 0x140030c3f
lea r8d, [rbx + 0x54]
lea rcx, [rsp + 0x20]
xor edx, edx
xor esi, esi
call sub.msvcrt.dll_memset
lea rcx, str.ntdll.dll
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140030b21
lea rdx, str.RtlGetVersion
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140030b21
lea rcx, [rsp + 0x20]
call rax
xor ecx, ecx
test eax, eax
sete cl
jmp 0x140030b23
xor ecx, ecx
test ecx, ecx
je 0x140030b3e
mov r14d, dword [rsp + 0x24]
mov edi, dword [rsp + 0x28]
mov eax, 1
cmp byte [rbp + 0x3a], al
jne 0x140030b6e
mov esi, eax
jmp 0x140030b6e
lea rcx, [rbp + 0x160]
mov dword [rbp + 0x160], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x140030b6e
mov r14d, dword [rbp + 0x44]
mov edi, dword [rbp + 0x48]
mov eax, 1
cmp byte [rbp + 0x27a], al
cmove esi, eax
sub r14d, 3
je 0x140030c16
dec r14d
je 0x140030c0f
dec r14d
je 0x140030be9
dec r14d
je 0x140030ba5
cmp r14d, 4
jne 0x140030c3f
test edi, edi
jne 0x140030c3f
lea ebx, [rdi + 0x6e]
jmp 0x140030c3f
test edi, edi
je 0x140030bdd
dec edi
je 0x140030bd1
dec edi
je 0x140030bc5
dec edi
jne 0x140030c3f
neg esi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x69
jmp 0x140030c3f
neg esi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x5f
jmp 0x140030c3f
neg esi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x55
jmp 0x140030c3f
neg esi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x4b
jmp 0x140030c3f
test edi, edi
je 0x140030c08
dec edi
je 0x140030c01
dec edi
jne 0x140030c3f
neg esi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x41
jmp 0x140030c3f
mov ebx, 0x3c
jmp 0x140030c3f
mov ebx, 0x32
jmp 0x140030c3f
mov ebx, 0x14
jmp 0x140030c3f
mov ebx, 5
jmp 0x140030c3f
mov eax, dword [rbp + 0x48]
test eax, eax
je 0x140030c3a
cmp eax, 0xa
je 0x140030c33
cmp eax, 0x5a
jne 0x140030c3f
lea ebx, [rax - 0x32]
jmp 0x140030c3f
mov ebx, 0x1e
jmp 0x140030c3f
mov ebx, 0xa
lea r11, [rsp + 0x380]
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 0x140032a30
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
call qword [sym.imp.USER32.DLL_GetFocus]
mov rbx, rax
test rax, rax
je 0x140032afc
mov ecx, 9
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
jns 0x140032afc
mov ecx, 0x11
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x140032afc
mov ecx, 0x10
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x140032afc
mov ecx, 0x12
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x140032afc
lea rdx, [rsp + 0x20]
mov r8d, 0x10
mov rcx, rbx
call qword [sym.imp.USER32.DLL_GetClassNameW]
lea rdx, str.RichE
lea rcx, [rsp + 0x20]
mov r8d, 5
call sub.msvcrt.dll_wcsncmp
test eax, eax
je 0x140032add
lea rdx, str.RICHE
lea rcx, [rsp + 0x20]
mov r8d, 4
call sub.msvcrt.dll_wcsncmp
test eax, eax
jne 0x140032afc
xor r9d, r9d
xor r8d, r8d
mov edx, 0x44e
mov rcx, rbx
call qword [sym.imp.USER32.DLL_SendMessageW]
bt rax, 0xb
jae 0x140032ba6
test rdi, rdi
je 0x140032b3b
mov ecx, 0x11
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x140032b2e
mov ecx, 0x10
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
js 0x140032b2e
mov ecx, 0x12
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, al
jns 0x140032b3b
mov edx, 1
mov rcx, rdi
call fcn.140032bb4
test rbx, rbx
je 0x140032b55
lea rdx, str.PB_Hotkey
mov rcx, rbx
call qword [sym.imp.USER32.DLL_GetPropW]
test rax, rax
jne 0x140032ba6
lea rdx, str.PB_WindowID
mov rcx, rdi
call qword [sym.imp.USER32.DLL_GetPropW]
mov rbx, rax
test rax, rax
je 0x140032ba6
lea rdx, [rsp + 0x58]
mov rcx, rdi
call qword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x140032ba6
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x58], eax
jne 0x140032ba6
mov rcx, qword [0x140219a20]
lea rdx, [rbx - 1]
call fcn.14004c908
test rax, rax
je 0x140032ba6
mov rax, qword [rax + 0x10]
jmp 0x140032ba8
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140032ea0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rax, qword [0x140219668]
xor r13d, r13d
mov rsi, r8
mov r15, rdx
mov rdi, rcx
mov r14d, r13d
test rax, rax
jne 0x140032ef2
lea r8, [fcn.140033014]
lea edx, [rax + 0x10]
mov ecx, 0x260
call fcn.14004ca30
mov qword [0x140219668], rax
mov rdx, rdi
mov rcx, rax
call fcn.14004c968
mov rbx, rax
test rax, rax
je 0x140032ff3
test r15, r15
lea rbp, [0x14008f8c0]
cmovne rbp, r15
test rsi, rsi
je 0x140032f22
cmp word [rsi], r13w
jne 0x140032f29
lea rsi, [0x14008fba8]
mov rcx, rbp
call sub.msvcrt.dll_wcslen
mov rcx, rsi
mov r12, rax
call sub.msvcrt.dll_wcslen
mov rcx, qword [0x140218780]
add eax, 2
xor edx, edx
add eax, r12d
movsxd r8, eax
add r8, r8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15, rax
test rax, rax
je 0x140032fdc
mov rdx, rbp
mov rcx, rax
call sub.msvcrt.dll_wcscpy
test r12d, r12d
je 0x140032f89
movsxd rax, r12d
cmp word [rbp + rax*2 - 2], 0x5c
je 0x140032f89
lea rdx, [0x14008fbb0]
mov rcx, r15
call sub.msvcrt.dll_wcscat
mov rdx, rsi
mov rcx, r15
call sub.msvcrt.dll_wcscat
lea rdx, [rbx + 0xc]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
je 0x140032fb0
mov dword [rbx + 8], r13d
jmp 0x140032fc2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x140032fc5
mov dword [rbx + 8], 1
mov r14, rbx
mov rcx, qword [0x140218780]
mov r8, r15
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test r14, r14
jne 0x140032ff3
mov rcx, qword [0x140219668]
cmp rdi, 0xffffffffffffffff
cmove rdi, rbx
mov rdx, rdi
call fcn.14004c89c
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rax, r14
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret