joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140038cb4
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
test r8d, r8d
jne 0x140038cc6
xor eax, eax
jmp 0x140038ce3
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x50]
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140038ce9
mov eax, dword [rsp + 0x50]
add rsp, 0x30
pop rbx
ret
lea rcx, [rbx + 0x18]
call fcn.140008794
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov rdx, rbx
call fcn.14003989c
int3

Function at 0x140038e00
Capabilities:
Write file on windows

Disassembly:
test r8d, r8d
je 0x140038e3e
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov rdi, rcx
mov ebx, r8d
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140038e3f
cmp dword [rsp + 0x50], ebx
jne 0x140038e5c
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
lea rcx, [rdi + 0x18]
call fcn.140008794
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov rdx, rbx
call fcn.14003989c
int3
lea rcx, [rdi + 0x18]
call fcn.140008794
or edx, 0xffffffff
mov r8, rax
lea ecx, [rdx + 0xe]
call fcn.1400393f8
int3
Function at 0x140039d70
Capabilities:
Get file attributes
Get file size

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov rax, qword [0x140273940]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rbx, rdx
mov rdi, rcx
mov rcx, rbx
xor edx, edx
mov r8d, 0x230
call fcn.1401d7c40
mov r8, qword [rdi + 0x18]
lea rcx, [rbx + 0x24]
or r9, 0xffffffffffffffff
mov edx, 0x104
call fcn.1401b84c4
xor esi, esi
test eax, eax
je 0x140039dd6
cmp eax, 0xc
je 0x140039f61
cmp eax, 0x50
jne 0x140039f67
mov rcx, qword [rdi + 8]
cmp rcx, qword [0x1401e84b0]
je 0x140039f39
lea r9, [rbp - 0x11]
lea r8, [rbp - 0x19]
lea rdx, [rbp - 0x21]
call qword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x140039f5d
mov rcx, qword [rdi + 8]
lea rdx, [rbp - 9]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140039f5d
mov rax, qword [rbp - 9]
mov qword [rbx + 0x18], rax
mov rcx, qword [rdi + 0x18]
cmp dword [rcx - 0x10], esi
je 0x140039e55
cmp qword [rdi + 0x20], rsi
je 0x140039e4a
mov rdx, rcx
lea r9, [rbp + 0xf]
mov rcx, qword [rdi + 0x20]
xor r8d, r8d
call fcn.140039a64
neg eax
sbb eax, eax
and eax, dword [rbp + 0xf]
jmp 0x140039e50
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140039e57
mov eax, esi
mov rcx, rbx
mov dword [rbx + 0x20], eax
lea rcx, [rbp - 0x21]
lea rdx, [rbp - 0x29]
call qword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x140039e9a
lea rdx, [rbp - 1]
lea rcx, [rbp - 0x29]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x140039e9a
or r8d, 0xffffffff
lea rdx, [rbp - 0x21]
lea rcx, [rbp - 0x29]
call fcn.1400398c4
mov rcx, qword [rax]
mov qword [rbx], rcx
jmp 0x140039e9d
mov qword [rbx], rsi
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x140039ec1
lea rdx, [rbp - 1]
lea rcx, [rbp - 0x29]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
jne 0x140039ecd
lea rax, [rbx + 0x10]
mov rdi, rax
mov qword [rax], rsi
jmp 0x140039ee8
or r8d, 0xffffffff
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x29]
lea rdi, [rbx + 0x10]
call fcn.1400398c4
mov rcx, qword [rax]
mov qword [rdi], rcx
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x11]
call qword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x140039f0c
lea rdx, [rbp - 1]
lea rcx, [rbp - 0x29]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
jne 0x140039f11
mov rax, rsi
jmp 0x140039f25
or r8d, 0xffffffff
lea rdx, [rbp - 0x11]
lea rcx, [rbp - 0x29]
call fcn.1400398c4
mov rax, qword [rax]
mov qword [rbx + 8], rax
cmp qword [rbx], rsi
jne 0x140039f31
mov qword [rbx], rax
cmp qword [rdi], rsi
jne 0x140039f39
mov qword [rdi], rax
mov eax, 1
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1401aaad0
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
xor eax, eax
jmp 0x140039f3e
call fcn.140010698
int3
call fcn.140010674
int3
Function at 0x14003ad08
Capabilities:
Set thread local storage value

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 rsi, rdx
mov r13, r8
mov edx, 1
mov r15, rcx
mov r12d, edx
mov r14d, edx
lea rdi, [rsi + 0x18]
cmp dword [rsi + 0x10], edx
jle 0x14003ada1
lea ebx, [rdx + 7]
lea ebp, [rdx + 0xf]
test r13, r13
je 0x14003ad66
mov rax, qword [r15 + 0x10]
cmp qword [rax + rbp + 8], r13
je 0x14003ad66
mov rax, qword [rdi]
cmp qword [rbx + rax], 0
je 0x14003ad8b
xor r12d, r12d
jmp 0x14003ad8b
mov rax, qword [rdi]
mov rcx, qword [rbx + rax]
test rcx, rcx
je 0x14003ad83
mov rax, qword [rcx]
mov rax, qword [rax]
call qword [case.0x14014d4e5.0]
mov edx, 1
mov rax, qword [rdi]
and qword [rbx + rax], 0
add r14d, edx
add rbp, 0x10
add rbx, 8
cmp r14d, dword [rsi + 0x10]
jl 0x14003ad47
test r12d, r12d
je 0x14003ade9
lea rcx, [r15 + 0x28]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [r15 + 0x18]
mov rdx, rsi
call fcn.14003b0bc
lea rcx, [r15 + 0x28]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rax, qword [rsi]
mov edx, 1
mov rcx, rsi
mov rax, qword [rax]
call qword [case.0x14014d4e5.0]
mov ecx, dword [r15]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14003d404
Capabilities:
Identify system language via api

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x140273940]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov edi, ecx
xor esi, esi
mov rcx, qword [0x14027dc10]
mov r12, r9
mov r15, r8
mov r14, rdx
test rcx, rcx
jne 0x14003d474
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003d49b
lea rdx, str.GetThreadPreferredUILanguages
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x14027dc10], rax
jmp 0x14003d47d
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rbx, rax
test rbx, rbx
je 0x14003d49b
mov r9, r12
mov r8, r15
mov rdx, r14
mov ecx, edi
mov rax, rbx
call qword [case.0x14014d4e5.0]
jmp 0x14003d5dd
mov dword [r14], esi
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx esi, ax
mov r8d, 7
mov ecx, esi
lea rdx, [rbp - 0x20]
call fcn.14003da20
lea rcx, [rbp - 0x20]
call fcn.1401b7c08
mov edx, dword [r12]
lea r8, [rbp - 0x20]
mov rcx, r15
lea rdi, [rax + 1]
call fcn.1401b845c
inc dword [r14]
lea rdx, [rbp - 0x20]
and esi, 0x3ff
mov r8d, 7
mov ecx, esi
call fcn.14003da20
lea rcx, [rbp - 0x20]
call fcn.1401b7c08
mov edx, dword [r12]
lea rcx, [r15 + rdi*2]
sub rdx, rdi
lea r8, [rbp - 0x20]
lea rbx, [rax + 1]
call fcn.1401b845c
inc dword [r14]
add rdi, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx esi, ax
mov r8d, 7
mov ecx, esi
lea rdx, [rbp - 0x20]
call fcn.14003da20
lea rcx, [rbp - 0x20]
call fcn.1401b7c08
mov edx, dword [r12]
lea rcx, [r15 + rdi*2]
sub rdx, rdi
lea r8, [rbp - 0x20]
lea rbx, [rax + 1]
call fcn.1401b845c
inc dword [r14]
lea rdx, [rbp - 0x20]
and esi, 0x3ff
mov r8d, 7
mov ecx, esi
add rdi, rbx
call fcn.14003da20
lea rcx, [rbp - 0x20]
call fcn.1401b7c08
mov edx, dword [r12]
lea rcx, [r15 + rdi*2]
sub rdx, rdi
lea r8, [rbp - 0x20]
lea rbx, [rax + 1]
call fcn.1401b845c
inc dword [r14]
lea rdx, [rbp - 0x20]
mov r8d, 7
mov ecx, 0x800
add rdi, rbx
call fcn.14003da20
lea rcx, [rbp - 0x20]
call fcn.1401b7c08
mov edx, dword [r12]
lea rcx, [r15 + rdi*2]
sub rdx, rdi
lea r8, [rbp - 0x20]
mov rbx, rax
call fcn.1401b845c
inc dword [r14]
lea rcx, [rdi + rbx]
xor eax, eax
mov word [r15 + rcx*2 + 2], ax
mov eax, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1401aaad0
add rsp, 0x50
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14003dd48
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x230
mov rax, qword [0x140273940]
xor rax, rsp
mov qword [rsp + 0x220], rax
xor ebp, ebp
mov rbx, rdx
mov rdi, rcx
test rcx, rcx
je 0x14003de03
test rdx, rdx
je 0x14003de03
mov rcx, rdx
call fcn.1401b7c08
xor edx, edx
mov word [rsp + 0x20], bp
mov r8d, 0x1fe
lea rcx, [rsp + 0x22]
mov rsi, rax
call fcn.1401d7c40
mov r8d, 0x100
cmp rsi, r8
ja 0x14003ddd4
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, esi
jne 0x14003ddd4
mov rdx, rbx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x14003dde0
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.1401aaad0
mov rbx, qword [rsp + 0x260]
add rsp, 0x230
pop rdi
pop rsi
pop rbp
ret
call fcn.140010674
int3

Function at 0x14003f10c
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, rdx
mov rcx, qword [rdx]
cmp dword [rcx - 0x10], 0
je 0x14003f13e
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14003f13e
lea rcx, [rdi + 0x120]
mov rdx, rbx
call fcn.1400fcc1c
mov rbx, qword [rsp + 0x30]
mov eax, 1
add rsp, 0x20
pop rdi
ret

Function at 0x14003f150
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x14003f176
mov r8, rdx
mov rdx, qword [rbx]
call fcn.14002d67c
jmp 0x14003f1e2
cmp byte [0x14027dcc8], 0
jne 0x14003f1ba
lea rcx, [0x1401e5cb8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003f1aa
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14027dcc0], rax
jmp 0x14003f1b1
mov rax, qword [0x14027dcc0]
mov byte [0x14027dcc8], 1
jmp 0x14003f1c1
mov rax, qword [0x14027dcc0]
mov rdx, rdi
mov rcx, qword [rbx]
test rax, rax
je 0x14003f1db
xor r9d, r9d
mov r8d, dword [rbx + 8]
call qword [case.0x14014d4e5.0]
jmp 0x14003f1e2
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
nop
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400418bc
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x78
mov rdi, rcx
mov esi, 1
mov rax, qword [rcx + 0x20]
neg rax
sbb rdx, rdx
mov qword [rbp + 0x30], rdx
cmp qword [rcx + 0x20], 0
je 0x1400419aa
xor esi, esi
and qword [rbp - 0x28], rsi
and dword [rbp - 0x20], esi
and qword [rbp - 0x18], rsi
mov rax, qword [rcx]
lea rdx, [rbp + 0x40]
mov rax, qword [rax + 0x40]
call qword [case.0x14014d4e5.0]
nop
mov rbx, qword [rax]
call fcn.14002e76c
xor edx, edx
mov rcx, qword [rax + 8]
call fcn.140024ed4
nop
and qword [rbp + 0x38], rsi
lea rcx, [rbp + 0x28]
mov qword [rsp + 0x40], rcx
lea rcx, [rbp + 0x38]
mov qword [rsp + 0x38], rcx
and qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x2001f
and dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ecx, eax
test eax, eax
jne 0x140041966
mov rax, qword [rbp + 0x38]
mov qword [rbp - 0x28], rax
and dword [rbp - 0x20], ecx
mov eax, ecx
neg eax
sbb ebx, ebx
and ebx, ecx
mov rdx, qword [rbp + 0x40]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140041993
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14014d4e5.0]
test ebx, ebx
je 0x140041a96
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x1400419aa
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
add rsp, 0x78
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1400298a0
mov rcx, rax
test rax, rax
je 0x140041ac5
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x14014d4e5.0]
add rax, 0x18
mov qword [rbp + 0x28], rax
call fcn.1400298a0
mov rcx, rax
test rax, rax
je 0x140041aba
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x14014d4e5.0]
add rax, 0x18
mov qword [rbp + 0x38], rax
lea rcx, [rdi + 8]
lea r9, [rbp + 0x38]
lea r8, [rbp + 0x28]
lea rdx, [rbp + 0x30]
call fcn.14003f808
mov rbx, qword [rbp + 0x38]
test rbx, rbx
je 0x140041a4f
mov rcx, rbx
call fcn.1401b7c08
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140041a71
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14014d4e5.0]
nop
mov rdx, qword [rbp + 0x28]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140041a96
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14014d4e5.0]
cmp qword [rbp + 0x30], 0
jne 0x1400419b5
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x140041ab0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x1400419ac
mov ecx, 0x80004005
call fcn.140002660
nop
mov ecx, 0x80004005
call fcn.140002660
int3
Function at 0x1400548b8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, r8
mov rdi, rdx
mov rbp, rcx
test r8, r8
jne 0x1400548e3
call fcn.14002e76c
mov rbx, qword [rax + 0x18]
lea r8, [0x1401ed0f0]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x14005493c
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14005493c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
je 0x14005493c
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, rsi
mov rcx, rbp
mov r8d, eax
call fcn.140054954
jmp 0x14005493e
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14006915c
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x140273940]
xor rax, rsp
mov qword [rbp - 8], rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recvfrom
call qword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
test ax, ax
js 0x140069233
mov rdi, qword [rsi + 0x248]
test rdi, rdi
jne 0x1400691c9
mov rcx, qword [rsi + 0x130]
call fcn.140032124
mov rdx, rax
lea rcx, vtable.CGlobalUtils.0
call fcn.1400581a4
mov rdi, rax
test rax, rax
je 0x14006922c
lea rcx, [rbp - 0x28]
mov qword [rbp - 0x28], rbx
call qword [sym.imp.USER32.dll_GetCursorPos]
xorps xmm0, xmm0
lea rcx, [rbp - 0x18]
movups xmmword [rbp - 0x18], xmm0
call qword [sym.imp.USER32.dll_SetRectEmpty]
mov r8, qword [rbp - 0x28]
lea rax, [rbp - 0x20]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x18]
lea rax, [rbp - 0x30]
mov dword [rbp - 0x30], ebx
mov rdx, rsi
mov qword [rsp + 0x20], rax
mov rcx, rdi
mov qword [rbp - 0x20], rbx
call fcn.140075368
lea rcx, [rbp - 0x18]
call qword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x14006922c
cmp dword [rbp - 0x30], ebx
setne bl
mov eax, ebx
jmp 0x140069235
mov eax, 1
jmp 0x140069235
xor eax, eax
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1401aaad0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x1400a4330
Capabilities:
Check for unmoving mouse cursor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov rax, qword [0x140273940]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor r15d, r15d
mov esi, r8d
mov r14, rdx
mov rbx, rcx
mov edi, 0xfffffffd
mov dword [rcx + 0xd4], r15d
cmp dword [rcx + 0xc8], r15d
je 0x1400a43d0
test r8d, r8d
jne 0x1400a43d0
cmp dword [rcx + 0xcc], r15d
jne 0x1400a43d0
mov eax, dword [rcx + 0x24]
dec eax
cmp eax, edi
ja 0x1400a43c6
lea rcx, [rbp - 0x20]
mov qword [rbp - 0x20], r15
call qword [sym.imp.USER32.dll_GetCursorPos]
mov rcx, qword [r14 + 0x40]
lea rdx, [rbp - 0x20]
call qword [sym.imp.USER32.dll_ScreenToClient]
mov rdx, qword [rbp - 0x20]
lea rcx, [rbx + 0x108]
call qword [sym.imp.USER32.dll_PtInRect]
mov dword [rbx + 0xd4], eax
test eax, eax
je 0x1400a459c
jmp 0x1400a43d0
mov dword [rcx + 0xd4], 1
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x1e0]
call qword [case.0x14014d4e5.0]
test eax, eax
je 0x1400a4420
test esi, esi
jne 0x1400a4420
lea rcx, [rbp - 0x20]
mov qword [rbp - 0x20], r15
call qword [sym.imp.USER32.dll_GetCursorPos]
mov rcx, qword [r14 + 0x40]
lea rdx, [rbp - 0x20]
call qword [sym.imp.USER32.dll_ScreenToClient]
mov rdx, qword [rbp - 0x20]
lea rcx, [rbx + 0x118]
call qword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x1400a459c
cmp dword [rbx + 0xd4], r15d
jne 0x1400a4448
mov eax, dword [rbx + 0x24]
dec eax
cmp eax, edi
ja 0x1400a4448
cmp dword [rbx + 0xc8], r15d
jne 0x1400a4448
cmp dword [rbx + 0xe0], r15d
je 0x1400a459c
mov rdx, qword [rbx + 0x80]
lea rcx, str.CMFCMenuBar
call fcn.14003b2a4
mov rdi, rax
mov rax, qword [rbx + 0xc0]
test rax, rax
je 0x1400a4498
mov dword [rax + 0x1f0], r15d
mov rcx, qword [rbx + 0xc0]
mov rax, qword [rcx]
mov rax, qword [rax + 0xc0]
call qword [case.0x14014d4e5.0]
mov qword [rbx + 0xc0], r15
test rdi, rdi
je 0x1400a44ea
xor edx, edx
jmp 0x1400a44e2
mov rdx, qword [rbx + 0x80]
lea rcx, str.CMFCPopupMenuBar
call fcn.14003b2a4
test esi, esi
je 0x1400a4557
test rax, rax
je 0x1400a4557
cmp dword [0x14027dd9c], r15d
jne 0x1400a4557
mov r8d, 1
mov rdx, rbx
mov rcx, rax
call fcn.1400a1910
test rdi, rdi
je 0x1400a44ea
mov rdx, rbx
mov rcx, rdi
call fcn.1400646e8
cmp qword [rbx + 0x80], r15
je 0x1400a4532
movups xmm0, xmmword [rbx + 0x68]
movdqu xmmword [rbp - 0x20], xmm0
call fcn.140053c88
lea rcx, [rbp - 0x20]
mov edx, dword [rax + 0xcc]
mov r8d, edx
call qword [sym.imp.USER32.dll_InflateRect]
mov rcx, qword [rbx + 0x80]
lea rdx, [rbp - 0x20]
mov r9d, 0x401
xor r8d, r8d
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_RedrawWindow]
mov eax, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1401aaad0
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
test rdi, rdi
je 0x1400a457e
xor edx, edx
mov rcx, rdi
call fcn.14005c6c0
mov rcx, rax
test rax, rax
je 0x1400a457e
mov rax, qword [rax]
mov rax, qword [rax + 0xb0]
call qword [case.0x14014d4e5.0]
mov rax, qword [rbx]
mov rdx, r14
mov rcx, rbx
mov rax, qword [rax + 0x198]
call qword [case.0x14014d4e5.0]
test eax, eax
jne 0x1400a44da
xor eax, eax
jmp 0x1400a4537
Function at 0x1400bec04
Capabilities:
Log keystrokes via polling

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 r14
sub rsp, 0x20
cmp dword [rdx + 8], 0x100
mov rbp, rdx
mov rbx, rcx
jne 0x1400becf4
xor edx, edx
call fcn.14005c6c0
mov rcx, rbx
test rax, rax
je 0x1400bec4c
mov rdx, rbp
call fcn.140106554
jmp 0x1400becff
call fcn.14005c6b8
cmp dword [rbx + 0x1394], 0
mov esi, eax
je 0x1400bec62
sub esi, dword [rbx + 0x1388]
mov r14d, dword [rbx + 0x1138]
test r14d, r14d
js 0x1400becf4
cmp r14d, esi
jge 0x1400becf4
mov edi, dword [rbp + 0x10]
cmp edi, 9
jne 0x1400bec95
lea ecx, [rdi + 7]
call qword [sym.imp.USER32.dll_GetKeyState]
movzx edi, al
btc edi, 7
shr edi, 6
or edi, 0x25
mov rcx, rbx
call fcn.14002eb8c
bt eax, 0x16
jae 0x1400becb5
cmp edi, 0x25
je 0x1400bed37
cmp edi, 0x27
je 0x1400bed8d
sub edi, 0xd
je 0x1400bedd3
sub edi, 0xe
je 0x1400beda1
sub edi, 0xa
je 0x1400bed8d
sub edi, 2
je 0x1400bed37
mov rcx, rbx
cmp edi, 1
je 0x1400bed1a
mov rax, qword [rbx]
mov edx, dword [rbp + 0x10]
mov rax, qword [rax + 0x728]
call qword [case.0x14014d4e5.0]
test eax, eax
jne 0x1400bed30
mov rdx, rbp
mov rcx, rbx
call fcn.1400628f0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov edx, dword [rbx + 0x1138]
call fcn.14005c468
mov rdx, rax
mov rcx, rbx
call fcn.14005ba84
mov eax, 1
jmp 0x1400becff
inc dword [rbx + 0x1138]
cmp dword [rbx + 0x1138], esi
jl 0x1400bed4c
and dword [rbx + 0x1138], 0
mov edx, r14d
mov rcx, rbx
call fcn.14005cfa0
mov edx, dword [rbx + 0x1138]
mov rcx, rbx
call fcn.14005cfa0
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rax, qword [rbx]
mov rcx, rbx
mov edx, dword [rbx + 0x1138]
mov rax, qword [rax + 0x4b8]
call qword [case.0x14014d4e5.0]
jmp 0x1400becf4
sub dword [rbx + 0x1138], 1
jns 0x1400bed4c
lea eax, [rsi - 1]
mov dword [rbx + 0x1138], eax
jmp 0x1400bed4c
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x6c0]
call qword [case.0x14014d4e5.0]
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x6c8]
call qword [case.0x14014d4e5.0]
and dword [0x14027f8b4], 0
jmp 0x1400becf4
mov edx, dword [rbx + 0x1138]
mov rcx, rbx
call fcn.14005c468
mov rdx, rax
mov rcx, rbx
call fcn.14005ba84
test eax, eax
jne 0x1400bed30
mov edx, dword [rbx + 0x1138]
mov rcx, rbx
call fcn.14005c468
mov rdx, rax
mov rcx, rbx
call fcn.140062b84
jmp 0x1400bed30