joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001f500
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov rax, rsp
mov byte [rax + 0x20], r9b
mov word [rax + 0x10], dx
push rsi
push rdi
sub rsp, 0x98
mov qword [rax + 8], rbx
movzx edi, r9b
mov qword [rax - 0x18], rbp
movzx ebx, dx
mov qword [rax - 0x20], r12
movzx ebp, cl
mov qword [rax - 0x28], r13
movzx r13d, r8b
mov qword [rax - 0x38], r15
or r13b, r9b
lea eax, [rbp - 1]
cmp al, 5
ja 0x14001f545
cmp cl, 3
jne 0x14001f54c
lea eax, [rbp + 0x66]
cmp al, 5
ja 0x14001f551
mov r15b, 1
jmp 0x14001f554
xor r15b, r15b
mov eax, dword [rsp + 0xd0]
mov rsi, qword [rsp + 0xe8]
movzx r12d, byte [rsp + 0xe0]
test eax, eax
jle 0x14001f6e2
mov edi, dword [rsp + 0xd8]
mov qword [rsp + 0x78], r14
mov r14d, eax
cmp dword [0x14012e180], 0
jne 0x14001f5f5
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x1401251d8]
sub eax, dword [0x14012de38]
cmp eax, dword [rcx + 0x88]
jbe 0x14001f5fc
xor r9d, r9d
mov dword [rsp + 0x20], 0
xor r8d, r8d
lea rcx, [rsp + 0x40]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x14001f5e9
mov edx, 1
mov dword [0x1401251d0], 0
mov ecx, 0xffffffff
call fcn.1400016f0
mov dword [0x1401251d0], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x14012de38], eax
mov rcx, qword [0x1401251d8]
test r12b, r12b
jne 0x14001f65d
movzx eax, byte [rcx + 0xc5]
test al, al
je 0x14001f615
mov ebx, 0xffc3d44d
sub ebx, eax
jmp 0x14001f61a
mov ebx, 0xffc3d44f
cmp dword [0x14012e180], 0
je 0x14001f62c
movzx eax, byte [0x14012e074]
jmp 0x14001f633
xor ecx, ecx
call fcn.140022a60
mov dword [rsp + 0x28], ebx
xor r9d, r9d
mov r8, rsi
mov byte [rsp + 0x20], 1
movzx edx, al
movzx ecx, r13b
call fcn.1400221e0
mov rcx, qword [0x1401251d8]
movzx ebx, word [rsp + 0xb8]
test r15b, r15b
je 0x14001f6a2
test rsi, rsi
jne 0x14001f6a2
movzx eax, byte [rcx + 0xc3]
mov r9d, 1
movzx ecx, byte [rsp + 0x100]
mov r8d, dword [rsp + 0xf8]
mov edx, dword [rsp + 0xf0]
mov byte [rsp + 0x30], cl
movzx ecx, bpl
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], eax
call fcn.140020ec0
jmp 0x14001f6cb
movzx eax, byte [rcx + 0xc5]
mov r9, rsi
mov ecx, 0xffc3d44d
movzx r8d, bx
sub ecx, eax
movzx edx, bpl
mov dword [rsp + 0x28], ecx
mov ecx, edi
mov byte [rsp + 0x20], 1
call fcn.14001fc90
sub r14, 1
jne 0x14001f583
mov r14, qword [rsp + 0x78]
movzx edi, byte [rsp + 0xc8]
mov r15, qword [rsp + 0x70]
test r12b, r12b
mov r12, qword [rsp + 0x88]
mov r13, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x90]
mov rbx, qword [rsp + 0xb0]
jne 0x14001f74f
cmp dword [0x14012e180], 0
je 0x14001f71e
movzx eax, byte [0x14012e074]
jmp 0x14001f725
xor ecx, ecx
call fcn.140022a60
not dil
and dil, al
and dil, 0xcc
je 0x14001f74f
mov dword [rsp + 0x28], 0xffc3d44d
mov r9b, 1
mov r8, rsi
mov byte [rsp + 0x20], 0
movzx edx, dil
xor ecx, ecx
call fcn.1400221e0
add rsp, 0x98
pop rdi
pop rsi
ret
Function at 0x14001f760
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push r14
sub rsp, 0x80
cmp dword [0x14012e180], 2
movzx r14d, r8b
mov ebx, edx
sete bpl
movzx esi, cx
jne 0x14001f7bc
mov eax, esi
mov ecx, esi
and eax, 0xffffff80
je 0x14001f799
mov edx, gethostbyaddr
mov word [rsp + 0x30], dx
lea r8, [rsp + 0x32]
test eax, eax
lea rdx, [rsp + 0x30]
cmovne rdx, r8
mov r8d, 0xa
call fcn.1400caf48
movzx esi, word [rsp + 0xa8]
test ebx, ebx
jle 0x14001f943
mov qword [rsp + 0xa0], rdi
mov rdi, rbx
mov qword [rsp + 0xb0], r15
xor r15d, r15d
nop word [rax + rax]
cmp dword [0x14012e180], r15d
jne 0x14001f84c
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x1401251d8]
sub eax, dword [0x14012de38]
cmp eax, dword [rcx + 0x88]
jbe 0x14001f84c
xor r9d, r9d
mov dword [rsp + 0x20], r15d
xor r8d, r8d
lea rcx, [rsp + 0x50]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x14001f840
mov edx, 1
mov dword [0x1401251d0], r15d
mov ecx, 0xffffffff
call fcn.1400016f0
mov dword [0x1401251d0], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x14012de38], eax
test bpl, bpl
je 0x14001f8fa
cmp dword [0x14012e180], r15d
je 0x14001f867
movzx eax, byte [0x14012e074]
jmp 0x14001f86e
xor ecx, ecx
call fcn.140022a60
movzx ecx, al
mov dword [rsp + 0x28], 0xffc3d44f
and cl, 0xc4
mov byte [rsp + 0x20], 1
or cl, 4
xor r9d, r9d
xor r8d, r8d
movzx edx, al
call fcn.1400221e0
movzx eax, word [rsp + 0x30]
lea rbx, [rsp + 0x30]
cmp ax, 0x30
jb 0x14001f8d9
cmp ax, 0x39
ja 0x14001f8d9
movzx edx, byte [rbx]
xor r8d, r8d
add dl, 0x30
mov dword [rsp + 0x28], 0xffc3d44d
xor r9d, r9d
mov byte [rsp + 0x20], r8b
mov ecx, 2
call fcn.14001fc90
movzx eax, word [rbx + 2]
add rbx, 2
cmp ax, 0x30
jae 0x14001f8a2
xor r8d, r8d
mov dword [rsp + 0x28], 0xffc3d44d
xor r9d, r9d
mov byte [rsp + 0x20], r8b
mov dl, reloc.OLEAUT32.dll_SafeArrayGetUBound
mov ecx, 1
call fcn.14001fc90
jmp 0x14001f906
movzx edx, r14b
movzx ecx, si
call fcn.14001d840
cmp dword [0x14012e180], 2
mov rax, qword [0x1401251d8]
jne 0x14001f91e
mov ecx, dword [rax + 0x9c]
jmp 0x14001f924
mov ecx, dword [rax + 0x98]
call fcn.140021cb0
sub rdi, 1
jne 0x14001f7e0
mov r15, qword [rsp + 0xb0]
mov rdi, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0xb8]
add rsp, 0x80
pop r14
pop rsi
pop rbp
ret
Function at 0x140021b10
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ebx, 1
movzx esi, dl
cmp dword [0x14012e180], ebx
mov rdi, rcx
jne 0x140021c1f
xor al, al
cmp qword [0x14012be68], 0
movzx edi, al
cmovne edi, ebx
cmp qword [0x14012be60], 0
je 0x140021b54
or dil, 2
test dil, dil
je 0x140021bf6
movzx ecx, byte [0x14012e075]
movzx edx, bl
not cl
and cl, dil
call fcn.140016ca0
mov rdx, qword [0x14012c018]
mov r8d, 0x28
mov ecx, dword [0x14012e16c]
call qword [sym.imp.USER32.dll_SendInput]
movzx eax, byte [0x14012e075]
and al, dil
test bl, al
je 0x140021bdb
movzx ecx, bl
call fcn.140022a60
movzx r8d, al
mov byte [0x14012bd88], al
xor r8b, sil
mov byte [0x14012bd89], al
movzx edx, r8b
and r8b, al
and dl, sil
not dl
and dl, byte [0x14012bd87]
or dl, r8b
mov byte [0x14012bd87], dl
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov qword [0x14012bcb0], rax
movzx edx, bl
movzx ecx, dil
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140016ca0
mov rdx, qword [0x14012c018]
mov r8d, 0x28
mov ecx, dword [0x14012e16c]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.USER32.dll_SendInput]
mov r8, qword [0x14012bba8]
lea rdx, [0x14001fa10]
xor esi, esi
xor r9d, r9d
mov ecx, ebx
mov dword [0x14012e174], esi
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [0x14012bb60], rax
test rax, rax
je 0x140021c97
mov byte [0x14012bcbf], bl
mov edx, ebx
mov dword [0x1401251d0], esi
mov ecx, 0x8000012f
call fcn.1400016f0
cmp qword [0x14012bb60], rsi
mov dword [0x1401251d0], ebx
jne 0x140021c52
mov edx, dword [0x14012e16c]
mov rax, qword [0x1401280e8]
dec edx
mov byte [0x14012bcbf], sil
mov rcx, qword [rax]
cmp dword [rcx + rdx*8], esi
jne 0x140021c97
mov eax, dword [rcx + rdx*8 + 4]
mov dword [rdi], eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140021ec0
Capabilities:
Get graphical window text

Disassembly:
sub rsp, 0x28
mov r10, qword [0x14012bba0]
test r10, r10
je 0x140021ffb
movsxd rax, dword [0x14012bbcc]
imul r9, rax, 0xd4
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x20], rdi
mov byte [r9 + r10 + 6], cl
mov byte [r9 + r10], dl
mov word [r9 + r10 + 2], r8w
mov word [r9 + r10 + 4], WSAGetLastError
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov dword [0x14012bbc8], eax
sub ecx, dword [0x14012e058]
xorps xmm0, xmm0
mov dword [0x14012e058], eax
cvtsi2ss xmm0, rcx
movsxd rcx, dword [0x14012bbcc]
imul rdx, rcx, 0xd4
divss xmm0, dword [0x140110db8]
mov rcx, qword [0x14012bba0]
movss dword [rdx + rcx + 8], xmm0
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor edi, edi
mov rbx, rax
test rax, rax
je 0x140021fb0
cmp rax, qword [0x14012bbc0]
je 0x140021f94
movsxd rcx, dword [0x14012bbcc]
mov r8d, WSAAsyncSelect
imul rdx, rcx, 0xd4
mov rcx, qword [0x14012bba0]
add rcx, 0xc
add rdx, rcx
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, dword [0x14012bbcc]
jmp 0x140021fd4
movsxd rdx, dword [0x14012bbcc]
mov rax, qword [0x14012bba0]
imul rcx, rdx, 0xd4
mov word [rcx + rax + 0xc], di
jmp 0x140021fd4
movsxd rdx, dword [0x14012bbcc]
movabs r8, 0x41002f004e
mov rax, qword [0x14012bba0]
imul rcx, rdx, 0xd4
mov qword [rcx + rax + 0xc], r8
inc edx
mov qword [0x14012bbc0], rbx
cmp edx, dword [0x1401251e0]
mov rbx, qword [rsp + 0x30]
mov dword [0x14012bbcc], edx
jl 0x140021ff6
mov dword [0x14012bbcc], edi
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
ret
Function at 0x140022090
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
movzx edi, cl
mov esi, edx
mov ecx, edi
call qword [sym.imp.USER32.dll_GetKeyState]
movzx ebx, ax
lea eax, [rsi - 1]
xor ebx, 0xffffffff
and ebx, 1
inc ebx
cmp eax, 1
ja 0x1400221db
cmp ebx, esi
je 0x1400221db
mov ecx, edi
mov qword [rsp + 0x40], r14
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x140022103
xor r8d, r8d
mov dword [rsp + 0x28], 0xffc3d44d
xor r9d, r9d
mov byte [rsp + 0x20], r8b
movzx edx, dil
mov ecx, 1
call fcn.14001fc90
xor r8d, r8d
mov dword [rsp + 0x28], 0xffc3d44d
xor r9d, r9d
mov byte [rsp + 0x20], r8b
movzx edx, dil
mov ecx, 2
call fcn.14001fc90
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x14012d658]
sete r14b
jne 0x140022164
mov edx, 1
mov dword [0x1401251d0], 0
mov ecx, 0xffffffff
call fcn.1400016f0
mov dword [0x1401251d0], 1
cmp dil, 0x14
jne 0x1400221bf
cmp esi, 2
jne 0x1400221bf
mov ecx, edi
call qword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je 0x1400221bf
xor r8d, r8d
mov dword [rsp + 0x28], 0xffc3d44d
xor r9d, r9d
mov byte [rsp + 0x20], r8b
mov dl, reloc.WSOCK32.dll_recv
mov ecx, esi
call fcn.14001fc90
test r14b, r14b
je 0x1400221bf
mov edx, 1
mov dword [0x1401251d0], 0
mov ecx, 0xffffffff
call fcn.1400016f0
mov dword [0x1401251d0], 1
mov r14, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov eax, ebx
jmp 0x1400221c6
Function at 0x140022a60
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
cmp qword [0x14012be68], 0
je 0x140022a7e
test cl, cl
jne 0x140022a7e
movzx eax, byte [0x14012bd89]
add rsp, 0x28
ret
mov qword [rsp + 0x30], rbx
mov ecx, 0xa0
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
xor ebp, ebp
mov ecx, reloc.WSOCK32.dll_recv
test ax, ax
cmovns ecx, ebp
movzx ebx, cl
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ecx, bl
or cl, 0x20
movzx edx, cl
test ax, ax
mov ecx, 0xa2
cmovns edx, ebx
movzx ebx, dl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ecx, bl
or cl, 1
movzx edx, cl
test ax, ax
mov ecx, 0xa3
cmovns edx, ebx
movzx ebx, dl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ecx, bl
or cl, 2
movzx edx, cl
test ax, ax
mov ecx, 0xa4
cmovns edx, ebx
movzx ebx, dl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ecx, bl
or cl, 4
movzx edx, cl
test ax, ax
mov ecx, 0xa5
cmovns edx, ebx
movzx ebx, dl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ecx, bl
or cl, 8
movzx edx, cl
test ax, ax
mov ecx, 0x5b
cmovns edx, ebx
movzx ebx, dl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ecx, bl
or cl, 0x40
movzx edx, cl
test ax, ax
mov ecx, 0x5c
cmovns edx, ebx
movzx ebx, dl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ecx, bl
or cl, 0x80
test ax, ax
movzx esi, cl
cmovns esi, ebx
cmp qword [0x14012be68], rbp
movzx edi, sil
je 0x140022c09
movzx ebx, sil
not bl
and bl, byte [0x14012bd89]
cmp byte [0x14012bd84], bpl
je 0x140022bc1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x14012bf80]
cmp eax, 0x14
jae 0x140022bc1
movzx ecx, byte [0x14012bd84]
test bl, cl
je 0x140022bc1
movzx eax, cl
not al
and bl, al
or dil, cl
test bl, bl
je 0x140022c09
movzx edx, byte [0x14012bd87]
lea rcx, [0x14012be80]
movzx eax, bl
not al
and byte [0x14012bd89], al
and dl, al
and byte [0x14012bd88], al
mov byte [0x14012bd87], dl
call fcn.140022c30
mov rcx, qword [0x14012bfc8]
test rcx, rcx
je 0x140022c09
test byte [rcx + 0xc], bl
je 0x140022c09
mov qword [0x14012bfc8], rbp
mov rsi, qword [rsp + 0x40]
movzx eax, dil
mov rdi, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret
Function at 0x140023030
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
xor edi, edi
xor edx, edx
mov esi, edi
mov r15, rcx
call qword [sym.imp.USER32.dll_ActivateKeyboardLayout]
mov r14, rax
test rax, rax
je 0x140023200
movaps xmm0, xmmword [str.SYSTEMCurrentControlSetControlKeyboard_Layouts_]
lea rcx, [rbp - 0x6c]
movaps xmm1, xmmword [0x140107bf0]
mov eax, dword [0x140107c40]
movaps xmmword [rsp + 0x30], xmm0
movaps xmm0, xmmword [0x140107c00]
movaps xmmword [rsp + 0x40], xmm1
movaps xmm1, xmmword [0x140107c10]
movaps xmmword [rsp + 0x50], xmm0
movaps xmm0, xmmword [0x140107c20]
movaps xmmword [rsp + 0x60], xmm1
movaps xmm1, xmmword [0x140107c30]
mov dword [rbp - 0x70], eax
movzx eax, word [0x140107c44]
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rbp - 0x80], xmm1
mov word [rbp - 0x6c], ax
call qword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
test eax, eax
je 0x1400231c0
lea rax, [rbp + 0x200]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x30]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400231bc
mov rcx, qword [rbp + 0x200]
lea rax, [rbp + 0x1f8]
mov qword [rsp + 0x28], rax
lea rdx, str.Layout_File
lea rax, [rbp - 0x50]
mov qword [rsp + 0x2f0], rbx
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x1f8], 0x208
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbp + 0x200]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov rbx, qword [rsp + 0x2f0]
jne 0x1400231bc
mov edx, dword [rbp + 0x1f8]
test edx, edx
je 0x1400231bc
shr edx, 1
mov ecx, edx
dec edx
cmp word [rbp + rdx*2 - 0x50], di
jne 0x14002319a
test edx, edx
je 0x1400231c0
mov ecx, edx
mov r8d, edx
nop word [rax + rax]
lea eax, [r8 - 1]
mov edx, ecx
mov r8d, eax
cmp word [rbp + rax*2 - 0x50], di
jne 0x1400231a9
mov ecx, eax
mov edx, eax
test eax, eax
jne 0x140023180
jmp 0x1400231a9
cmp ecx, 0x104
jae 0x1400231bc
mov word [rbp + rcx*2 - 0x50], di
mov edx, ecx
test edx, edx
je 0x1400231c0
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
jmp 0x1400231c0
mov word [rbp - 0x50], di
cmp r15, r14
je 0x1400231d0
xor edx, edx
mov rcx, r14
call qword [sym.imp.USER32.dll_ActivateKeyboardLayout]
test rsi, rsi
je 0x140023200
lea rdx, str.KbdLayerDescriptor
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400231f7
call rax
mov edi, dword [rax + 0x50]
not edi
and edi, 1
add edi, 3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
add rsp, 0x2c0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140023360
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rdi
sub rsp, 0x148
movzx edi, cl
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
lea edx, [rdi - 0x41]
mov rbp, rax
cmp dl, 0x19
ja 0x14002356f
mov qword [rsp + 0x170], rbx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x178], rsi
xor edx, edx
mov r8d, 0x100
mov qword [rsp + 0x140], r14
call fcn.1400e3010
mov qword [rsp + 0x30], rbp
lea r9, [rsp + 0x168]
xor esi, esi
lea r8, [rsp + 0x40]
mov dword [rsp + 0x28], esi
xor edx, edx
mov ecx, WSAGetLastError
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
mov qword [rsp + 0x30], rbp
lea r9, [rsp + 0x168]
cmp eax, 2
mov dword [rsp + 0x28], esi
movzx ebx, si
mov dword [rsp + 0x20], 2
cmove bx, word [rsp + 0x168]
lea r8, [rsp + 0x40]
xor edx, edx
mov ecx, edi
call qword [sym.imp.USER32.dll_ToUnicodeEx]
mov r14d, eax
test eax, eax
jns 0x140023448
mov qword [rsp + 0x30], rbp
lea r9, [rsp + 0x160]
mov dword [rsp + 0x28], esi
lea r8, [rsp + 0x40]
xor edx, edx
mov dword [rsp + 0x20], 2
mov ecx, WSAGetLastError
call qword [sym.imp.USER32.dll_ToUnicodeEx]
test bx, bx
je 0x14002353d
cmp bx, 0xa
jne 0x140023467
movzx edx, byte [rsp + 0x160]
mov dil, ntohs
jmp 0x140023509
mov rdx, rbp
movzx ecx, bx
call qword [sym.imp.USER32.dll_VkKeyScanExW]
movsx rdi, ax
mov rcx, rdi
shr rcx, 8
cmp cl, 0xff
jne 0x1400234c2
cmp dil, 0xff
jne 0x1400234c2
lea eax, [rbx - 0x41]
cmp ax, 0x19
jbe 0x14002349f
lea eax, [rbx - 0x61]
cmp ax, 0x19
ja 0x14002353d
movzx r8d, bl
lea edx, [rbx - 0x61]
movzx eax, r8b
and al, 0xdf
cmp dx, 0x19
movzx edi, al
cmova edi, r8d
sub bx, 0x41
cmp bx, 0x19
setbe cl
test cl, 0x38
jne 0x14002353d
movzx edx, byte [rsp + 0x160]
movzx eax, cl
and al, 6
cmp al, 6
jne 0x1400234dd
or dl, 8
jmp 0x1400234f7
test cl, 2
je 0x1400234ea
test dl, 3
jne 0x1400234ea
or dl, 1
test cl, 4
je 0x1400234f7
test dl, 0xc
jne 0x1400234f7
or dl, 4
test cl, 1
je 0x140023504
test dl, 0x30
jne 0x140023504
or dl, 0x10
test dil, dil
je 0x14002353d
lea rcx, [rsp + 0x40]
call fcn.140022c30
mov qword [rsp + 0x30], rbp
lea r9, [rsp + 0x160]
mov dword [rsp + 0x28], esi
lea r8, [rsp + 0x40]
xor edx, edx
movzx ecx, dil
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
mov rbx, qword [rsp + 0x170]
test r14d, r14d
mov r14, qword [rsp + 0x140]
je 0x14002355a
movzx esi, word [rsp + 0x168]
movzx eax, si
mov rsi, qword [rsp + 0x178]
add rsp, 0x148
pop rdi
pop rbp
ret
mov ecx, edi
mov r8, rbp
mov edx, 2
call qword [sym.imp.USER32.dll_MapVirtualKeyExW]
add rsp, 0x148
pop rdi
pop rbp
ret
Function at 0x140023680
Capabilities:
Log keystrokes

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
movzx r10d, word [rcx]
movzx ebp, r8b
mov rsi, rcx
test r10w, r10w
je 0x1400237c5
movzx r9d, word [rcx + 2]
movzx ecx, r10w
test r9w, r9w
jne 0x1400236ce
mov r8, qword [rsp + 0x60]
mov r9b, 1
call fcn.1400237e0
jmp 0x1400237c7
mov edx, 0xffdf
lea eax, [r10 - 0x61]
and cx, dx
cmp ax, 0x19
cmova cx, r10w
cmp cx, 0x56
jne 0x140023730
movzx ecx, r9w
lea eax, [r9 - 0x61]
and cx, dx
cmp ax, 0x19
cmova cx, r9w
cmp cx, 0x4b
jne 0x140023730
lea rcx, [rsi + 4]
mov r8d, reloc.WSOCK32.dll_recv
lea rdx, [rsp + 0x40]
call fcn.1400cc1f8
mov rcx, qword [rsp + 0x40]
xor edi, edi
movzx edx, al
cmp word [rcx], di
cmove edi, edx
movzx eax, dil
jmp 0x1400237c7
lea r15, str.Numpad0
xor edi, edi
mov rbx, r15
lea r14, [0x140125aa0]
mov rcx, qword [rbx]
mov rdx, rsi
call fcn.1400c5794
test eax, eax
je 0x1400237b7
inc edi
add rbx, 0x10
cmp rbx, r14
jl 0x140023743
test bpl, bpl
jne 0x1400237c5
xor edx, edx
mov rcx, rsi
call fcn.140023590
test ax, ax
je 0x1400237c5
movzx edx, ax
sub edx, 0x45
je 0x1400237b3
mov r8d, 0xff
sub edx, 0xf1
je 0x14002378c
cmp edx, 0xf
jne 0x140023790
and ax, r8w
bt ax, 8
jae 0x1400237a3
and ax, r8w
mov ecx, 0xe000
or ax, cx
movzx ecx, ax
mov edx, 3
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
jmp 0x1400237c7
mov al, reloc.WSOCK32.dll_send
jmp 0x1400237c7
movsxd rax, edi
add rax, rax
movzx eax, byte [r15 + rax*8 + 8]
jmp 0x1400237c7
xor al, al
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x1400237e0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movzx edi, cx
movzx esi, r9b
mov rbx, rdx
cmp edi, 0xa
jne 0x140023810
mov al, 0xd
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rdx, r8
movzx ecx, di
call qword [sym.imp.USER32.dll_VkKeyScanExW]
movsx rdx, ax
mov rcx, rdx
shr rcx, 8
cmp cl, 0xff
jne 0x14002386e
cmp dl, 0xff
jne 0x14002386e
test sil, sil
je 0x140023873
lea eax, [rdi - 0x41]
cmp ax, 0x19
jbe 0x140023848
lea eax, [rdi - 0x61]
cmp ax, 0x19
ja 0x140023873
movzx r8d, dil
lea edx, [rdi - 0x61]
movzx eax, r8b
and al, 0xdf
cmp dx, 0x19
movzx ecx, al
cmova ecx, r8d
sub di, 0x41
cmp di, 0x19
movzx edx, cl
setbe cl
test cl, 0x38
je 0x140023885
xor al, al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
test rbx, rbx
je 0x1400238c8
movzx eax, cl
and al, 6
cmp al, 6
jne 0x140023898
or byte [rbx], 8
jmp 0x1400238b8
test cl, 2
je 0x1400238a8
movzx eax, byte [rbx]
test al, 3
jne 0x1400238a8
or al, 1
mov byte [rbx], al
test cl, 4
je 0x1400238b8
movzx eax, byte [rbx]
test al, 0xc
jne 0x1400238b8
or al, 4
mov byte [rbx], al
test cl, 1
je 0x1400238c8
movzx eax, byte [rbx]
test al, 0x30
jne 0x1400238c8
or al, 0x10
mov byte [rbx], al
mov rbx, qword [rsp + 0x30]
movzx eax, dl
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140024050
Capabilities:
Log keystrokes

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
xor r14d, r14d
movsxd rbp, r9d
movzx ebx, dx
mov rsi, r8
mov word [r8], r14w
movzx edi, cl
lea r15, [0x140000000]
test cl, cl
jne 0x1400240da
test bx, bx
je 0x14002415c
mov edx, ebx
movzx ecx, bx
sub edx, 0x45
je 0x1400240d5
mov r8d, 0xff
sub edx, 0xf1
je 0x1400240ac
cmp edx, 0xf
jne 0x1400240b0
and cx, r8w
bt cx, 8
jae 0x1400240c3
and cx, r8w
mov eax, 0xe000
or cx, ax
movzx ecx, cx
mov edx, 3
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov edi, eax
jmp 0x140024107
mov dil, reloc.WSOCK32.dll_send
jmp 0x140024107
test bx, bx
jne 0x140024107
cmp dil, 0xd
je 0x1400240f4
mov dl, 1
call fcn.1400241f0
movzx ebx, ax
test ax, ax
jne 0x140024107
xor edx, edx
movzx ecx, dil
call fcn.1400241f0
movzx ebx, ax
test ax, ax
je 0x140024161
lea eax, [rdi + 0x64]
cmp al, 3
jbe 0x140024161
mov ecx, r14d
lea rax, [0x140125328]
lea rdx, [0x1401253f8]
nop
cmp word [rax], bx
je 0x140024136
inc ecx
add rax, 0x10
cmp rax, rdx
jl 0x140024120
mov word [rsi], r14w
jmp 0x140024156
movsxd rdx, ecx
lea r8, [rbp - 1]
add rdx, rdx
mov rcx, rsi
mov rdx, qword [r15 + rdx*8 + 0x125320]
call fcn.1400d42d4
mov word [rsi + rbp*2 - 2], r14w
cmp word [rsi], r14w
je 0x140024161
mov rax, rsi
jmp 0x1400241cd
mov ecx, r14d
lea rax, [0x1401253f8]
lea rdx, [0x140125aa8]
cmp byte [rax], dil
je 0x1400241a0
inc ecx
add rax, 0x10
cmp rax, rdx
jl 0x140024172
movzx ecx, dil
call fcn.140023360
mov word [rsi], ax
test ax, ax
je 0x14002419a
mov word [rsi + 2], r14w
jmp 0x1400241c0
mov word [rsi], r14w
jmp 0x1400241c0
movsxd rdx, ecx
lea r8, [rbp - 1]
add rdx, rdx
mov rcx, rsi
mov rdx, qword [r15 + rdx*8 + 0x1253f0]
call fcn.1400d42d4
mov word [rsi + rbp*2 - 2], r14w
cmp word [rsi], r14w
mov rax, qword [rsp + 0x60]
cmovne rax, rsi
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x1400241f0
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movzx ebx, cl
movzx edi, dl
mov ecx, ebx
sub ecx, 0x13
je 0x1400242c4
sub ecx, 0x19
je 0x1400242bd
cmp ecx, 0x64
je 0x1400242b6
mov edx, 4
mov ecx, ebx
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov edx, eax
test ax, ax
jne 0x14002423e
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov eax, 0xe000
mov r9d, 0x100
test ax, dx
je 0x14002425a
mov eax, 0xff
and dx, ax
or dx, r9w
add ebx, 0xfffffff3
cmp ebx, 0x94
ja case.0x140024283.14
lea r8, [0x140000000]
movsxd rax, ebx
movzx eax, byte [r8 + rax + 0x242ec]
mov ecx, dword [r8 + rax*4 + 0x242e0]
add rcx, r8
jmp rcx
movzx eax, dx
mov ecx, eax
or ecx, r9d
test dil, dil
cmovne eax, ecx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
or dx, r9w
xor eax, eax
test dil, dil
cmove ax, dx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov ecx, 0x145
jmp 0x1400242c9
mov ecx, 0x137
jmp 0x1400242c9
mov ecx, 0x45
mov rbx, qword [rsp + 0x30]
xor eax, eax
test dil, dil
cmove ax, cx
add rsp, 0x20
pop rdi
ret