joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002b4e0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x140015eda
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x140015ebd
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x140015ea8

Function at 0x140035838
Capabilities:
Parse pe header

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

Function at 0x14003bc88
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14003bb1b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003bb1b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003bb1b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003bb1b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003bb1b
cmp dword [rcx + 0x84], 0xe
jbe 0x14003bb1b
cmp dword [rcx + 0xf8], 0
je 0x14003bb1b
mov ecx, ebx
call fcn.14003bbbc
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14003b9ac
cmp dword [rbp + 0x20], 0
je 0x14003bb68
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14003bb70
int3
xor r8d, r8d
xor edx, edx
jmp 0x14003bab4
Function at 0x14000129c
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, rcx
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rsi, rax
cmp rdi, rax
jne 0x140047d6c
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
xor ebx, ebx
test rax, rax
jne 0x140047d85
xor edx, edx
lea rcx, str.Shell_TrayWnd
call qword [sym.imp.USER32.dll_FindWindowW]
mov rsi, rax
mov rcx, rdi
call qword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x140047da0
mov edx, 9
mov rcx, rdi
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x140047eca
xor edx, edx
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor edx, edx
mov rcx, rdi
mov r14d, eax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, 1
mov ecx, r14d
mov r8d, esi
mov edx, eax
mov r15d, eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov r8d, esi
mov edx, ebp
mov ecx, r14d
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov r8d, esi
mov edx, r15d
mov ecx, ebp
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x140047e98
lea esi, [rax + 0x12]
xor edx, edx
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor r9d, r9d
xor r8d, r8d
mov edx, eax
mov cl, sil
call qword [sym.imp.USER32.dll_keybd_event]
xor edx, edx
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor r9d, r9d
lea r8d, [rsi - 0x10]
mov edx, eax
mov cl, sil
call qword [sym.imp.USER32.dll_keybd_event]
xor edx, edx
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor r9d, r9d
xor r8d, r8d
mov edx, eax
mov cl, sil
call qword [sym.imp.USER32.dll_keybd_event]
xor edx, edx
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor r9d, r9d
lea r8d, [rsi - 0x10]
mov edx, eax
mov cl, sil
call qword [sym.imp.USER32.dll_keybd_event]
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
je 0x140047e9d
lea ebx, [rsi - 0xe]
jmp 0x140047e9d
mov ebx, 3
xor r8d, r8d
mov edx, r15d
mov ecx, r14d
call qword [sym.imp.USER32.dll_AttachThreadInput]
xor r8d, r8d
mov edx, ebp
mov ecx, r14d
call qword [sym.imp.USER32.dll_AttachThreadInput]
xor r8d, r8d
mov edx, r15d
mov ecx, ebp
call qword [sym.imp.USER32.dll_AttachThreadInput]
jmp 0x140047ecf
mov ebx, 2
mov eax, ebx
jmp 0x1400012ce
Function at 0x140001324
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x40
xor ebx, ebx
mov esi, r9d
mov rbp, r8
test r8, r8
je 0x1400013e4
mov rdi, qword [rsp + 0x70]
test rdi, rdi
je 0x1400013e4
lea rax, [r11 - 0x18]
mov word [rdi], bx
lea r9d, [rbx + 1]
mov qword [r11 - 0x28], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400013e4
mov rcx, qword [rsp + 0x30]
lea eax, [rsi + rsi]
mov dword [rsp + 0x60], eax
xor r9d, r9d
lea rax, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rbp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400013b9
mov eax, dword [rsp + 0x60]
shr eax, 1
mov ecx, eax
mov dword [rsp + 0x60], eax
cmp eax, esi
jae 0x1400013db
mov eax, ecx
mov word [rdi + rcx*2], bx
mov bl, 1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
lea eax, [rsi - 1]
mov word [rdi + rax*2], bx
jmp 0x1400013b7
xor al, al
jmp 0x1400013c6
Function at 0x140001790
Capabilities:
Hide graphical window

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rdi
sub rsp, 0x20
mov edi, edx
test r8, r8
jne 0x1400480a6
mov eax, dword [0x1400efd78]
cmp eax, 0xffffffff
je 0x140001864
movsxd rcx, eax
mov rax, qword [0x1400efd60]
mov rcx, qword [rax + rcx*8]
mov rbx, qword [rcx]
cmp byte [rbx + 0x6a], 0
mov rbp, qword [rbx]
je 0x1400017e4
cmp dword [rbx + 0x2b8], 0
mov byte [rbx + 0x6a], 0
jge 0x1400480c0
cmp edi, 8
jg 0x140048124
je 0x140001816
test edi, edi
je 0x140048110
cmp edi, 1
je 0x140001816
mov edx, 6
cmp edi, 2
je 0x14000185b
cmp edi, 3
je 0x140001852
jle 0x14000183d
cmp edi, 5
jg 0x1400480ef
cmp byte [rbx + 0x68], 0
jne 0x140001864
mov edx, edi
mov rcx, rbp
call qword [sym.imp.USER32.dll_ShowWindow]
lea eax, [rdi - 4]
test eax, 0xfffffffb
je 0x140001839
mov rcx, rbp
call fcn.14000129c
mov byte [rbx + 0x68], 1
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov byte [rbx + 0x68], 1
jmp 0x14004818f
mov byte [rbx + 0x68], 1
jmp 0x1400480f7
xor eax, eax
jmp 0x140001842
mov rdx, r8
lea rcx, [0x1400efcc0]
call fcn.140003a60
mov dword [0x1400efd78], eax
jmp 0x1400017b0
cmp byte [rbx + 0x2c4], 0
je 0x1400017e4
mov r8d, dword [rbx + 0x2c0]
lea rcx, [0x1400efcc0]
mov rdx, rbx
call fcn.1400af230
mov byte [rbx + 0x2c4], 0
jmp 0x1400017e4
cmp edi, edx
jne 0x14000183d
cmp byte [rbx + 0x68], 0
je 0x140001864
mov rcx, rbp
call qword [sym.imp.USER32.dll_ShowWindow]
nop
jmp 0x14000183d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.USER32.dll_ShowWindow]
mov byte [rbx + 0x68], 0
jmp 0x14000183d
mov ecx, edi
sub ecx, 9
je 0x14004818f
sub ecx, 0x37
je 0x14004817b
sub ecx, 1
je 0x140048177
sub ecx, 1
je 0x140048164
cmp ecx, 1
jne 0x14000183d
xor ecx, ecx
mov byte [rbx + 0x69], 0
call qword [sym.imp.USER32.dll_LockWindowUpdate]
mov rcx, qword [rbx]
xor edx, edx
lea r8d, [rdx + 1]
call qword [sym.imp.USER32.dll_InvalidateRect]
nop
jmp 0x14000183d
mov rcx, rbp
mov byte [rbx + 0x69], 1
call qword [sym.imp.USER32.dll_LockWindowUpdate]
nop
jmp 0x14000183d
xor edx, edx
jmp 0x140048180
mov edx, 1
mov rcx, rbp
call qword [sym.imp.USER32.dll_EnableWindow]
nop
jmp 0x14000183d
cmp byte [rbx + 0x68], 0
je 0x140001864
mov edx, edi
mov rcx, rbp
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, rbp
call fcn.14000129c
nop
jmp 0x14000183d
Function at 0x140003660
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x30
mov rbx, qword [rdx]
mov rsi, rcx
lea rcx, [rbp + 0x30]
mov r14d, r8d
mov rdi, rdx
call qword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [rbp + 0x30]
lea rdx, [rbp + 0x30]
mov dword [rdi + 0x290], eax
mov rcx, rbx
mov eax, dword [rbp + 0x34]
mov dword [rdi + 0x294], eax
call qword [sym.imp.USER32.dll_ScreenToClient]
mov rax, qword [rbp + 0x30]
mov ecx, dword [rbp + 0x34]
cmp eax, dword [rdi + 0x298]
jne 0x14000375b
cmp ecx, dword [rdi + 0x29c]
jne 0x14000375b
mov ecx, dword [rsi + 0x18]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, dword [rsi + 0x1c]
mov ebx, 0x8000
movzx r15d, ax
mov r12d, 0
and r15w, bx
setne r12b
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx r13d, ax
mov eax, 0
and r13w, bx
mov ebx, eax
setne bl
cmp r12d, dword [rdi + 0x2a0]
jne 0x14004a1d3
test r14d, r14d
je 0x140003727
mov dword [rdi + 0x2a0], r12d
cmp ebx, dword [rdi + 0x2a4]
jne 0x14004a25a
test r14d, r14d
je 0x14000373e
mov dword [rdi + 0x2a4], ebx
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov dword [rdi + 0x298], eax
mov dword [rdi + 0x29c], ecx
cmp r14d, 1
jl 0x1400036d3
jmp 0x14004a1b6
mov dword [rsp + 0x20], ecx
mov r9d, eax
mov rcx, rsi
mov r8, rdi
mov edx, 0xfffffff5
call fcn.1400a82d4
nop
jmp 0x1400036d3
cmp r14d, 1
jl 0x14000371b
cmp byte [rdi + 0x2e0], al
je 0x14000371b
mov eax, dword [rbp + 0x34]
mov r8, rdi
mov r9d, dword [rbp + 0x30]
mov rcx, rsi
mov dword [rsp + 0x20], eax
test r15w, r15w
je 0x14004a207
mov edx, 0xfffffff9
jmp 0x14004a248
mov edx, 0xfffffff8
call fcn.1400a82d4
xor eax, eax
cmp byte [rdi + 0x2a8], al
je 0x14004a24f
mov rcx, qword [rdi]
lea edx, [rax - 0x10]
call qword [sym.imp.USER32.dll_GetWindowLongW]
mov r9d, dword [rbp + 0x30]
mov r8, rdi
bt eax, 0x18
mov rcx, rsi
mov eax, dword [rbp + 0x34]
mov edx, 0xfffffffa
mov dword [rsp + 0x20], eax
jb 0x14004a248
mov edx, 0xfffffff4
call fcn.1400a82d4
xor eax, eax
mov byte [rdi + 0x2a8], al
jmp 0x14000371b
cmp r14d, 1
jl 0x140003733
mov eax, dword [rbp + 0x34]
mov r8, rdi
mov r9d, dword [rbp + 0x30]
mov rcx, rsi
mov dword [rsp + 0x20], eax
mov edx, 0xfffffff7
test r13w, r13w
jne 0x14004a285
mov edx, 0xfffffff6
call fcn.1400a82d4
nop
jmp 0x140003733
Function at 0x140004d3c
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r15
lea rbp, [rsp - 0x1ff70]
mov eax, 0x20070
call fcn.1400474f0
sub rsp, rax
lea rcx, [rsp + 0x50]
mov rsi, rdx
call fcn.140008ce8
xor bl, bl
lea rdx, [rsp + 0x70]
mov ecx, 0x7fff
mov byte [rbp + 0x1ffa0], bl
xor dil, dil
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea r8, [rbp + 0x1ffb0]
mov rdx, rsi
call fcn.1400048e0
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x14004a95e
mov eax, dword [0x1400ef450]
test eax, eax
je 0x14004a980
mov r15d, 1
lea rcx, [0x1400f1200]
cmp eax, r15d
je 0x14004a98c
lea rax, [rbp + 0x1ffa0]
lea r8, [0x1400ef450]
mov qword [rsp + 0x20], rax
lea rdx, [0x1400ef478]
call fcn.140005868
test al, al
je 0x14004a9b0
mov al, byte [0x1400f1200]
lea r9, [rbp + 0x1ffb8]
mov rcx, qword [0x1400ef478]
lea r8, [rbp + 0xff70]
mov dil, byte [0x1400f1201]
mov edx, 0x7fff
mov byte [0x1400ef454], al
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov rdx, qword [rbp + 0x1ffb8]
lea rcx, [0x1400ef430]
call fcn.1400092ac
mov bl, byte [rbp + 0x1ffa0]
mov r8d, dword [0x1400ef450]
lea rdx, [0x1400ef478]
call fcn.140011008
test eax, eax
jne 0x14004a9bc
cmp dil, r15b
je 0x14004a9df
call fcn.140004c04
call fcn.140024290
cmp byte [0x1400ef454], 0
jne 0x140004e7b
lea rcx, [0x1400efe30]
call fcn.1400044bc
mov edx, r15d
lea rcx, [0x1400ef4a0]
call fcn.1400110e0
cmp byte [0x1400ef454], 0
jne 0x140004e9f
lea rcx, [0x1400efe30]
call fcn.1400045e0
lea rcx, [0x1400f1200]
call fcn.140005900
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea rcx, [rsp + 0x50]
call fcn.1400079ac
add rsp, 0x20070
pop r15
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov r9d, reloc.WSOCK32.dll_recv
lea r8, [0x1400daf5c]
lea rdx, str.This_is_a_third_party_compiled_AutoIt_script.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
nop
jmp 0x140004eb6
or dword [0x1400ef350], 0xffffffff
jmp 0x140004eab
mov r8, qword [0x1400ef458]
or r9d, 0xffffffff
mov edx, r15d
call fcn.1400057b0
mov al, byte [0x1400ef358]
mov byte [0x1400f1202], al
jmp 0x140004e38
mov dword [0x1400ef350], r15d
jmp 0x140004eab
lea rcx, [0x1400f1200]
call fcn.140005900
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [0x1400ef350], r15d
jmp 0x140004eb6
call fcn.14006c948
test al, al
jne 0x140004e5c
cmp byte [rbp + 0x1ffb0], al
jne 0x140004e5c
lea rcx, [rsp + 0x50]
call fcn.1400238e8
lea rdx, [0x1400d5de4]
lea rcx, [rsp + 0x30]
call fcn.1400094fc
lea rcx, [rsp + 0x30]
test bl, bl
je 0x14004aa47
lea rdx, [0x1400daf90]
call fcn.1400093ec
lea rdx, [0x1400ef478]
lea rcx, [rsp + 0x30]
call fcn.1400091f4
lea rdx, [0x1400daf90]
lea rcx, [rsp + 0x30]
jmp 0x14004aa4a
mov rdx, rsi
call fcn.1400093ec
mov rbx, qword [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r8, qword [rsp + 0x50]
lea rdx, str.runas
mov rcx, rax
mov dword [rsp + 0x28], r15d
lea rax, [rsp + 0x70]
mov r9, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
lea rcx, [rsp + 0x30]
call fcn.1400079ac
nop
jmp 0x140004e9f
Function at 0x140007cc0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
cmp dword [rcx + 0x10], 0
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
je 0x140007d69
xor edi, edi
test rsi, rsi
je 0x140007d12
mov eax, dword [rbx + 0x14]
cmp eax, dword [rbx + 0x10]
je 0x140007d2e
mov rcx, qword [rbx + 8]
movsxd rdx, eax
movzx edx, byte [rdx + rcx]
mov byte [rdi + rbp], dl
inc rdi
inc dword [rbx + 0x14]
mov eax, dword [rbx + 0x14]
cmp rdi, rsi
jb 0x140007cf1
add qword [rbx + 0x18], rdi
mov rax, rdi
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rdx, qword [rbx + 8]
lea r9, [rsp + 0x40]
mov rcx, qword [rbx]
mov r8d, 0x10000
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140007d12
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x140007d12
mov dword [rbx + 0x10], eax
xor eax, eax
mov dword [rbx + 0x14], 0
jmp 0x140007cf6
mov qword [rcx + 0x10], 0
lea r8, [rsp + 0x40]
mov rcx, qword [rcx]
mov r9d, 1
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov rax, qword [rsp + 0x40]
mov qword [rbx + 0x18], rax
jmp 0x140007ce7
Function at 0x14001f190
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
and qword [rsp + 0x30], 0
mov r10, r9
cmp byte [rcx + 0x20], 0
mov r11, r8
mov rbx, rdx
jne 0x140061c38
mov r9, qword [rsp + 0x50]
mov r8, r10
mov rdx, r11
mov rcx, rbx
call fcn.1400331cc
add rsp, 0x20
pop rbx
ret
mov rcx, qword [rcx + 0x18]
lea r9, [rsp + 0x30]
imul r10d, r11d
mov rax, qword [rcx]
mov r8d, r10d
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov rax, qword [rsp + 0x30]
jmp 0x14001f1c2

Function at 0x14001f838
Capabilities:
Hash data using djb2

Disassembly:
mov eax, dword [rdx + 8]
mov r8d, 0x1505
mov r10, qword [rdx]
add eax, eax
xor edx, edx
movsxd r9, eax
test eax, eax
jle 0x14001f863
movzx ecx, byte [rdx + r10]
inc rdx
imul r8d, r8d, 0x21
add r8d, ecx
cmp rdx, r9
jl 0x14001f84f
mov eax, r8d
ret
Function at 0x140023dd8
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 8], rcx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
xor ebp, ebp
mov r12, r9
mov rsi, r8
mov rdi, rdx
mov ebx, 1
cmp qword [rdx + 8], rbp
je 0x140068e34
mov r10, qword [rsp + 0xa0]
mov r15, qword [rsp + 0x98]
mov r14, qword [rsp + 0x90]
and dword [r8], ebp
mov byte [r9], bpl
xor r9d, r9d
mov byte [r10], bpl
mov byte [r15], bpl
mov byte [r14], bpl
movsxd rdx, r9d
mov rcx, rdi
call fcn.14000907c
movzx ecx, word [rax]
lea eax, [rcx - 0x21]
cmp ax, 0x3d
jbe 0x140068e3b
lea eax, [r9 + 1]
mov rcx, rdi
mov dword [rsp + 0x70], eax
call fcn.14000907c
movzx ecx, word [rax]
cmp cx, 0x7b
jne 0x140068ec6
mov edx, 0x40
lea rcx, [rsp + 0x20]
call fcn.1400090f0
mov ecx, 0x7d
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x20]
mov rdx, rdi
call fcn.140023fa8
test al, al
je 0x140023f16
lea rdi, [0x1400c49c0]
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rdi]
call fcn.1400273ac
test eax, eax
je 0x140023ec3
add ebp, ebx
lea rax, [0x1400c4cd8]
add rdi, 8
cmp rdi, rax
jl 0x140023ea0
cmp ebp, 0x63
je 0x140068e82
movsxd rax, ebp
lea rcx, [0x140000000]
cmp byte [rax + rcx + 0xc4950], 0
jne 0x140023f16
movzx eax, byte [rax + rcx + 0xc48e0]
mov dword [rsi], eax
lea rcx, [rsp + 0x20]
call fcn.1400079ac
mov eax, dword [rsi]
movzx ecx, al
mov al, bl
mov dword [rsi], ecx
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
xor bl, bl
jmp 0x140023eea
lea rcx, [rsp + 0x20]
call fcn.1400079ac
xor al, al
jmp 0x140023efd
movabs r8, 0x2000000000000405
bt r8, rax
jae 0x140023e52
cmp cx, 0x2b
jne 0x140068e5b
mov byte [r12], bl
jmp 0x140068e7a
cmp cx, 0x5e
jne 0x140068e66
mov byte [r14], bl
jmp 0x140068e7a
cmp cx, 0x21
jne 0x140068e71
mov byte [r15], bl
jmp 0x140068e7a
cmp cx, 0x23
jne 0x140068e7a
mov byte [r10], bl
add r9d, ebx
jmp 0x140023e37
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.1400090b8
movzx ecx, word [rax]
call qword [sym.imp.USER32.dll_VkKeyScanW]
movsx ecx, ax
mov dword [rsi], ecx
cmp ecx, 0xffffffff
je 0x140068e2a
bt ecx, 9
jae 0x140068eaa
mov byte [r14], bl
bt ecx, 0xa
jae 0x140068eb3
mov byte [r15], bl
bt ecx, 8
jae 0x140023eea
mov byte [r12], bl
jmp 0x140023eea
call qword [sym.imp.USER32.dll_VkKeyScanW]
cwde
mov dword [rsi], eax
cmp eax, 0xffffffff
je 0x140068e34
bt eax, 9
jae 0x140068ee1
mov byte [r14], bl
bt eax, 0xa
jae 0x140068eea
mov byte [r15], bl
bt eax, 8
jae 0x140023ef6
mov byte [r12], bl
jmp 0x140023ef6
Function at 0x140023f1c
Capabilities:
Log keystrokes

Disassembly:
push rbx
sub rsp, 0x20
mov word [rcx + 8], 1
mov eax, 5
mov dword [rcx], eax
mov rbx, rcx
mov dword [rcx + 4], eax
xor edx, edx
xor eax, eax
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], rax
mov dword [rcx + 0x20], eax
mov dword [rcx + 0xc], 4
lea ecx, [rax + 0x5b]
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor edx, edx
mov byte [rbx + 0x35], al
lea ecx, [rdx + 0x10]
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor edx, edx
mov ecx, QueryPathOfRegTypeLib
mov byte [rbx + 0x32], al
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor edx, edx
mov ecx, QueryPathOfRegTypeLib
mov byte [rbx + 0x33], al
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor edx, edx
mov byte [rbx + 0x34], al
lea ecx, [rdx + 0x11]
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor edx, edx
mov byte [rbx + 0x30], al
lea ecx, [rdx + 0x12]
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov byte [rbx + 0x31], al
add rsp, 0x20
pop rbx
ret
Function at 0x140024290
Capabilities:
Hide graphical window

Disassembly:
mov r11, rsp
sub rsp, 0x68
and qword [r11 - 0x10], 0
lea rdx, [0x1400b54a0]
mov rax, qword [0x1400ef348]
mov r9d, 0xcf0000
mov qword [r11 - 0x18], rax
mov r8, rdx
and qword [r11 - 0x20], 0
mov eax, 0x80000000
and qword [r11 - 0x28], 0
xor ecx, ecx
mov dword [rsp + 0x38], 0x64
mov dword [rsp + 0x30], 0x12c
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_CreateWindowExW]
and qword [rsp + 0x58], 0
lea rdx, str.edit
mov rcx, qword [0x1400ef348]
mov r9d, 0x50b008c4
mov qword [rsp + 0x50], rcx
xor r8d, r8d
mov qword [rsp + 0x48], 1
xor ecx, ecx
mov qword [rsp + 0x40], rax
and dword [rsp + 0x38], 0
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov qword [0x1400ef3a0], rax
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rcx, qword [0x1400ef3a0]
xor edx, edx
mov qword [0x1400ef398], rax
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x1400ef3a0]
xor edx, edx
add rsp, 0x68
jmp qword [sym.imp.USER32.dll_ShowWindow]

Function at 0x1400246a0
Capabilities:
Print debug messages
Write file on windows

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, 0x40
mov r14b, byte [0x1400ef357]
mov rdi, rdx
mov rsi, rcx
call fcn.140030d0c
mov ecx, eax
mov edx, 0x8000
call fcn.140030b34
cmp dword [rdi + 0x10], 0xb
mov ebp, eax
je 0x1400691ae
lea rcx, [rsp + 0x20]
call fcn.140007b80
mov rcx, rdi
call fcn.14000bfa8
mov rcx, qword [rdi + 8]
lea rdx, [rsp + 0x20]
call fcn.1400249e8
mov r8, qword [rsp + 0x20]
lea rdx, [0x1400b5510]
mov rcx, rsi
call fcn.140024770
movsxd rbx, eax
test r14b, r14b
jne 0x1400691dc
lea rcx, [rsp + 0x20]
call fcn.1400079ac
mov rcx, rsi
call fcn.1400311ac
mov rcx, rsi
call fcn.140030d0c
mov ecx, 0x4000
cmp ebp, 0xffffffff
cmove ebp, ecx
mov ecx, eax
mov edx, ebp
call fcn.140030b34
mov rbp, qword [rsp + 0x58]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
mov rcx, rdi
call fcn.14008058c
mov rcx, rdi
movsxd rbx, eax
call fcn.140080534
mov rcx, rax
mov r9, rsi
mov r8, rbx
mov edx, 1
call fcn.140030f74
mov rbx, rax
jmp 0x14002472d
mov rcx, rdi
call fcn.14000bfa8
mov rcx, qword [rdi + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
jmp 0x140024723

Function at 0x140026d50
Capabilities:
Allocate thread local storage

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
lea r9, str.FlsAlloc
xor ecx, ecx
lea r8, [0x1400b8ce8]
lea rdx, str.FlsAlloc
call fcn.140026b78
mov rbx, rax
test rax, rax
je 0x140026d90
mov rcx, rax
call fcn.140025d04
mov rcx, rdi
call rbx
jmp 0x140026d96
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret