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

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x80
movzx esi, cx
mov ebx, edx
lea rdx, [rsp + 0x30]
mov ecx, esi
test esi, 0xffffff80
je 0x140012716
mov eax, 0x30
lea rdx, [rsp + 0x32]
mov word [rsp + 0x30], ax
mov r8d, 0xa
call fcn.1400ba81f
test ebx, ebx
jle 0x1400128a7
mov qword [rsp + 0x90], rbp
xor ebp, ebp
mov qword [rsp + 0x98], rdi
mov rdi, rbx
cmp dword [0x14018cd4c], ebp
jne 0x1400127b1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x140185a58]
sub eax, dword [0x14018eefc]
cmp eax, dword [rcx + 0x118]
jbe 0x1400127b1
xor r9d, r9d
mov dword [rsp + 0x20], ebp
xor r8d, r8d
lea rcx, [rsp + 0x50]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x1400127a5
mov edx, 1
mov dword [0x140185a50], ebp
or ecx, 0xffffffff
call fcn.14000177b
mov dword [0x140185a50], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x14018eefc], eax
cmp dword [0x14018cd4c], 2
je 0x1400127ce
or edx, 0xffffffff
movzx ecx, si
call fcn.140010987
jmp 0x140012866
movzx edx, byte [0x14018f196]
xor r9d, r9d
movzx ecx, dl
mov dword [rsp + 0x28], 0xffc3d44f
and cl, 0xc4
mov byte [rsp + 0x20], 1
or cl, 4
xor r8d, r8d
call fcn.14001543b
movzx eax, word [rsp + 0x30]
lea rbx, [rsp + 0x30]
cmp ax, 0x30
jb 0x140012848
cmp ax, 0x39
ja 0x140012848
movzx edx, byte [rbx]
xor r8d, r8d
add dl, 0x30
mov dword [rsp + 0x28], 0xffc3d44d
xor r9d, r9d
mov byte [rsp + 0x20], bpl
lea ecx, [r8 + 2]
call fcn.140012c46
movzx eax, word [rbx + 2]
add rbx, 2
cmp ax, 0x30
jae 0x14001280a
xor r8d, r8d
mov dword [rsp + 0x28], 0xffc3d44d
xor r9d, r9d
mov byte [rsp + 0x20], bpl
mov dl, reloc.OLEAUT32.dll_SafeArrayGetUBound
lea ecx, [r8 + 1]
call fcn.140012c46
cmp dword [0x14018cd4c], 2
mov rax, qword [0x140185a58]
jne 0x140012885
mov ecx, dword [rax + 0x80]
jmp 0x140012888
mov ecx, dword [rax + 0x7c]
call fcn.140014f5a
sub rdi, 1
jne 0x14001273e
mov rdi, qword [rsp + 0x98]
mov rbp, qword [rsp + 0x90]
mov rbx, qword [rsp + 0xa0]
add rsp, 0x80
pop rsi
ret
Function at 0x140014655
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov eax, dword [rcx]
mov ebx, r9d
mov rsi, rdx
mov rdi, rcx
cmp eax, 0x80000000
je 0x140014871
mov r9d, dword [rdx]
cmp r9d, 0x80000000
je 0x140014871
cmp dword [0x14018cd4c], 2
mov qword [rsp + 0x58], rbp
jne 0x1400146db
movzx ebx, byte [rsp + 0x70]
mov ecx, 0x80000001
test bl, bl
mov ebp, 1
mov r8d, eax
cmovne ebp, ecx
xor edx, edx
mov ecx, ebp
call fcn.140014ad5
call fcn.140015052
test bl, bl
je 0x14001486c
mov rbp, qword [rsp + 0x58]
mov dword [rdi], 0x80000000
mov dword [rsi], 0x80000000
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
or dword [r8], 0x8001
cmp byte [rsp + 0x70], 0
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r15
je 0x140014753
cmp dword [0x14018cd4c], 1
jne 0x140014737
mov eax, dword [0x14018f1d0]
cmp eax, 0x80000000
jne 0x140014728
lea rcx, [0x14018f1d0]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [0x14018f1d0]
add dword [rdi], eax
mov eax, dword [0x14018f1d4]
add dword [rsi], eax
jmp 0x14001475e
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [rsp + 0x50]
add dword [rdi], eax
mov eax, dword [rsp + 0x54]
add dword [rsi], eax
jmp 0x14001475e
mov r8d, 2
call fcn.1400990fc
cmp dword [0x14018cd4c], 1
jne 0x14001477b
mov eax, dword [rdi]
mov dword [0x14018f1d0], eax
mov eax, dword [rsi]
mov dword [0x14018f1d4], eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebp, 1
mov r14d, eax
mov ecx, ebp
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [rdi]
mov r15d, eax
mov eax, ecx
sar ecx, 0x1f
shl eax, 0x10
and ecx, 0xfffffffe
cdq
inc ecx
idiv r14d
add ecx, eax
mov dword [rdi], ecx
mov ecx, dword [rsi]
mov eax, ecx
shl eax, 0x10
cdq
sar ecx, 0x1f
idiv r15d
and ecx, 0xfffffffe
lea r9d, [rcx + 1]
add r9d, eax
mov dword [rsi], r9d
test ebx, ebx
js 0x14001484e
cmp ebx, 0x64
jle 0x1400147e1
lea ebx, [rbp + 0x63]
jmp 0x1400147e9
test ebx, ebx
je 0x14001484e
cmp dword [0x14018cd4c], ebp
je 0x14001484e
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov r8d, dword [rsp + 0x54]
or r9d, 0xffffffff
mov rcx, qword [rsp + 0x50]
mov eax, r8d
shl eax, 0x10
mov r10d, ebp
cdq
mov dword [rsp + 0x20], ebx
idiv r15d
test r8d, r8d
mov r8d, dword [rdi]
cmovs r10d, r9d
add r10d, eax
mov eax, ecx
shl eax, 0x10
cdq
idiv r14d
test ecx, ecx
mov edx, r10d
cmovs ebp, r9d
mov r9d, dword [rsi]
lea ecx, [rax + rbp]
call fcn.14006dcfe
jmp 0x140014862
mov r8d, dword [rdi]
xor edx, edx
mov ecx, 0x8001
call fcn.140014885
call fcn.140015052
mov r14, qword [rsp + 0x60]
mov r15, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x140014dd2
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 edi, 1
movzx esi, dl
cmp dword [0x14018cd4c], edi
mov rbx, rcx
jne 0x140014ebb
xor al, al
cmp qword [0x140189ed8], 0
movzx ebx, al
cmovne ebx, edi
cmp qword [0x140189ed0], 0
je 0x140014e19
or bl, 2
test bl, bl
je 0x140014e35
movzx ecx, byte [0x14018f197]
movzx edx, dil
not cl
and cl, bl
call fcn.14000b23e
mov rdx, qword [0x14018cd50]
mov r8d, 0x28
mov ecx, dword [0x14018f1c0]
call qword [0x14018f120]
test bl, bl
je 0x140014f40
movzx eax, byte [0x14018f197]
and al, bl
test dil, al
je 0x140014ea0
movzx ecx, dil
call fcn.140015dbe
movzx r8d, al
xor r8b, sil
movzx edx, r8b
and r8b, al
and dl, sil
not dl
and dl, byte [0x14018ac71]
or dl, r8b
mov byte [0x14018ac71], dl
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov qword [0x14018a0a8], rax
movzx edx, dil
movzx ecx, bl
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.14000b23e
mov r8, qword [0x140189f18]
lea rdx, [0x14001297c]
xor esi, esi
xor r9d, r9d
mov ecx, edi
mov dword [0x14018f1c8], esi
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [0x140189e88], rax
test rax, rax
je 0x140014f40
mov byte [0x14018ac70], dil
mov edx, edi
mov dword [0x140185a50], esi
mov ecx, 0x8000012f
call fcn.14000177b
cmp qword [0x140189e88], rsi
mov dword [0x140185a50], edi
jne 0x140014ef3
mov edx, dword [0x14018f1c0]
mov rax, qword [str._____________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________]
dec edx
mov byte [0x14018ac70], sil
mov rcx, qword [rax]
cmp dword [rcx + rdx*8], esi
jne 0x140014f40
mov eax, dword [rcx + rdx*8 + 4]
mov dword [rbx], eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140015185
Capabilities:
Get graphical window text

Disassembly:
sub rsp, 0x28
mov r10, qword [0x140189ec8]
test r10, r10
je 0x1400152ca
movsxd rax, dword [0x140189f28]
imul r9, rax, 0xd4
mov eax, 0x69
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], ax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov dword [0x140189ee4], eax
sub ecx, dword [0x14018f118]
xorps xmm0, xmm0
mov dword [0x14018f118], eax
cvtsi2ss xmm0, rcx
movsxd rcx, dword [0x140189f28]
imul rdx, rcx, 0xd4
divss xmm0, dword [0x14010f338]
mov rcx, qword [0x140189ec8]
movss dword [rdx + rcx + 8], xmm0
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor edi, edi
mov rbx, rax
test rax, rax
je 0x140015284
cmp rax, qword [0x140189f20]
je 0x140015265
movsxd rcx, dword [0x140189f28]
lea r8d, [rdi + 0x64]
imul rdx, rcx, 0xd4
mov rcx, qword [0x140189ec8]
add rcx, 0xc
add rdx, rcx
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, dword [0x140189f28]
jmp 0x1400152a8
movsxd rdx, dword [0x140189f28]
mov rax, qword [0x140189ec8]
imul rcx, rdx, 0xd4
mov word [rcx + rax + 0xc], di
jmp 0x1400152a8
movsxd rdx, dword [0x140189f28]
movabs r8, 0x41002f004e
mov rax, qword [0x140189ec8]
imul rcx, rdx, 0xd4
mov qword [rcx + rax + 0xc], r8
inc edx
mov qword [0x140189f20], rbx
cmp edx, dword [0x140185a60]
mov rbx, qword [rsp + 0x30]
cmovge edx, edi
mov rdi, qword [rsp + 0x20]
mov dword [0x140189f28], edx
add rsp, 0x28
ret

Function at 0x1400152d3
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
movzx edi, cl
mov esi, edx
mov ecx, edi
mov ebp, edi
call qword [sym.imp.USER32.dll_GetKeyState]
and al, 1
lea r8d, [rsi - 1]
neg al
sbb ebx, ebx
add ebx, 2
cmp r8d, 1
ja 0x140015418
cmp ebx, esi
je 0x140015418
mov ecx, edi
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x14001534b
xor r8d, r8d
mov dword [rsp + 0x28], 0xffc3d44d
xor r9d, r9d
mov byte [rsp + 0x20], r8b
movzx edx, dil
lea ecx, [r8 + 1]
call fcn.140012c46
xor r8d, r8d
mov dword [rsp + 0x28], 0xffc3d44d
xor r9d, r9d
mov byte [rsp + 0x20], r8b
movzx edx, dil
lea ecx, [r8 + 2]
call fcn.140012c46
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x14018e2d0]
sete bpl
test bpl, bpl
je 0x1400153b0
mov edx, 1
mov dword [0x140185a50], 0
or ecx, 0xffffffff
call fcn.14000177b
mov dword [0x140185a50], 1
cmp dil, 0x14
jne 0x140015418
cmp esi, 2
jne 0x140015418
lea ecx, [rsi + 0x12]
call qword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je 0x140015418
xor r8d, r8d
mov dword [rsp + 0x28], 0xffc3d44d
xor r9d, r9d
mov byte [rsp + 0x20], r8b
mov dl, reloc.OLEAUT32.dll_SafeArrayGetDim
mov ecx, esi
call fcn.140012c46
test bpl, bpl
je 0x140015418
lea edx, [rsi - 1]
mov dword [0x140185a50], 0
or ecx, 0xffffffff
call fcn.14000177b
mov dword [0x140185a50], 1
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140015dbe
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
cmp qword [0x140189ed8], 0
je 0x140015de4
test cl, cl
jne 0x140015de4
movzx eax, byte [0x14018ac73]
add rsp, 0x28
ret
mov qword [rsp + 0x30], rbx
mov ecx, 0xa0
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr ax, 0xb
mov ecx, 0xa1
and al, 0x10
movzx ebx, al
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ecx, bl
mov esi, 0x8000
or cl, 0x20
movzx edx, cl
and ax, si
mov ecx, 0xa2
cmove edx, ebx
movzx ebx, dl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ecx, bl
or cl, 1
movzx edx, cl
and ax, si
mov ecx, 0xa3
cmove edx, ebx
movzx ebx, dl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ecx, bl
or cl, 2
movzx edx, cl
and ax, si
mov ecx, 0xa4
cmove edx, ebx
movzx ebx, dl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ecx, bl
or cl, 4
movzx edx, cl
and ax, si
mov ecx, 0xa5
cmove edx, ebx
movzx ebx, dl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ecx, bl
or cl, 8
movzx edx, cl
and ax, si
mov ecx, 0x5b
cmove edx, ebx
movzx ebx, dl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ecx, bl
or cl, 0x40
movzx edi, cl
and ax, si
mov ecx, 0x5c
cmove edi, ebx
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov rbx, qword [rsp + 0x30]
test si, ax
mov rsi, qword [rsp + 0x38]
je 0x140015ed9
or dil, 0x80
cmp qword [0x140189ed8], 0
je 0x140015f27
movzx eax, byte [0x14018ac73]
movzx ecx, dil
not cl
and cl, al
je 0x140015f27
movzx edx, byte [0x14018ac71]
not cl
and byte [0x14018ac72], cl
and dl, cl
and al, cl
mov byte [0x14018ac71], dl
lea rcx, [0x14018ac80]
mov byte [0x14018ac73], al
call fcn.140015f42
movzx eax, dil
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
ret

Function at 0x1400163cc
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push rdi
sub rsp, 0x20
call qword [sym.imp.USER32.dll_GetForegroundWindow]
test rax, rax
je 0x1400163ec
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, eax
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
xor ecx, ecx
lea r9, [0x14018cd60]
mov rdi, rax
movsxd rdx, ecx
add rdx, rdx
mov r8, qword [r9 + rdx*8]
test r8, r8
je 0x140016427
cmp r8, rdi
je 0x140016491
inc ecx
cmp ecx, 0xa
jl 0x140016400
mov qword [rsp + 0x30], rbx
cmp ecx, 0xa
mov qword [rsp + 0x38], rbp
mov eax, 9
cmovl eax, ecx
mov qword [rsp + 0x40], rsi
movsxd rsi, eax
mov ebx, SafeArrayAllocDescriptor
shl rsi, 4
mov ebp, 0x600
add rsi, r9
mov dword [rsi + 8], 0
mov rdx, rdi
movzx ecx, bx
call qword [sym.imp.USER32.dll_VkKeyScanExW]
cmp ax, 0xffff
je 0x14001647e
and ax, bp
cmp ax, bp
je 0x1400164a8
inc ebx
cmp ebx, 0xffff
jle 0x14001645c
jmp 0x1400164af
movsxd rax, ecx
add rax, rax
mov ecx, dword [r9 + rax*8 + 8]
cmp ecx, 3
sete al
add rsp, 0x20
pop rdi
ret
mov dword [rsi + 8], 3
mov ecx, dword [rsi + 8]
cmp ecx, 3
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
sete al
mov qword [rsi], rdi
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400164db
Capabilities:
Log keystrokes via polling

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
xor r8d, r8d
lea rcx, [0x14018cd60]
nop dword [rax]
nop word [rax + rax]
movsxd rax, r8d
add rax, rax
mov r9, qword [rcx + rax*8]
test r9, r9
je 0x140016524
cmp r9, rsi
je 0x14001655b
inc r8d
cmp r8d, 0xa
jl 0x1400164fb
mov qword [rsp + 0x40], rdi
cmp r8d, 0xa
mov eax, 9
cmovl eax, r8d
movsxd rdi, eax
shl rdi, 4
add rdi, rcx
test edx, edx
je 0x140016588
mov dword [rdi + 8], edx
mov eax, edx
mov qword [rdi], rsi
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
test edx, edx
je 0x140016578
movsxd rax, r8d
add rax, rax
cmp dword [rcx + rax*8 + 8], 0
jne 0x140016578
mov dword [rcx + rax*8 + 8], edx
movsxd rax, r8d
add rax, rax
mov eax, dword [rcx + rax*8 + 8]
add rsp, 0x20
pop rsi
ret
mov qword [rsp + 0x30], rbx
mov ebx, SafeArrayAllocDescriptor
mov qword [rsp + 0x38], rbp
mov ebp, 0x600
mov dword [rdi + 8], 0
mov rdx, rsi
movzx ecx, bx
call qword [sym.imp.USER32.dll_VkKeyScanExW]
cmp ax, 0xffff
je 0x1400165c5
and ax, bp
cmp ax, bp
je 0x1400165d8
inc ebx
cmp ebx, 0xffff
jle 0x1400165a3
jmp 0x1400165df
mov dword [rdi + 8], 3
mov eax, dword [rdi + 8]
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov qword [rdi], rsi
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret

Function at 0x1400167ab
Capabilities:
Get keyboard layout

Disassembly:
mov qword [rsp + 0x10], rdx
push rsi
push rdi
sub rsp, 0x158
movzx esi, cl
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
lea edx, [rsi - 0x41]
mov rdi, rax
cmp dl, 0x19
ja 0x14001692e
mov qword [rsp + 0x150], rbx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x148], rbp
xor edx, edx
mov r8d, 0x100
mov qword [rsp + 0x140], r14
call fcn.1400b970f
xor ebx, ebx
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], ebx
lea r9, [rsp + 0x180]
lea r8, [rsp + 0x40]
mov dword [rsp + 0x20], 2
xor edx, edx
lea ecx, [rbx + 0x6e]
call qword [sym.imp.USER32.dll_ToUnicodeEx]
mov qword [rsp + 0x30], rdi
lea r9, [rsp + 0x180]
cmp eax, 2
movzx ecx, sil
movzx ebp, bx
mov dword [rsp + 0x28], ebx
cmove bp, word [rsp + 0x180]
lea r8, [rsp + 0x40]
xor edx, edx
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
mov r14d, eax
test eax, eax
jns 0x140016895
mov qword [rsp + 0x30], rdi
lea r9, [rsp + 0x178]
mov dword [rsp + 0x28], ebx
lea r8, [rsp + 0x40]
xor edx, edx
mov dword [rsp + 0x20], 2
lea ecx, [rbx + 0x6e]
call qword [sym.imp.USER32.dll_ToUnicodeEx]
test bp, bp
je 0x1400168f8
mov r8, rdi
lea rdx, [rsp + 0x170]
movzx ecx, bp
call fcn.140016bc7
movzx esi, al
test al, al
je 0x1400168f8
movzx edx, byte [rsp + 0x170]
lea rcx, [rsp + 0x40]
call fcn.140015f42
mov qword [rsp + 0x30], rdi
lea r9, [rsp + 0x178]
mov dword [rsp + 0x28], ebx
lea r8, [rsp + 0x40]
xor edx, edx
movzx ecx, sil
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
mov rbp, qword [rsp + 0x148]
test r14d, r14d
mov r14, qword [rsp + 0x140]
je 0x140016919
movzx ebx, word [rsp + 0x180]
movzx eax, bx
mov rbx, qword [rsp + 0x150]
add rsp, 0x158
pop rdi
pop rsi
ret
movzx ecx, sil
mov r8, rdi
mov edx, 2
call qword [sym.imp.USER32.dll_MapVirtualKeyExW]
add rsp, 0x158
pop rdi
pop rsi
ret
Function at 0x140016a65
Capabilities:
Log keystrokes via polling

Disassembly:
push rsi
push r14
sub rsp, 0x28
movzx eax, word [rcx]
movzx r14d, r8b
mov rsi, rcx
test ax, ax
jne 0x140016a88
add rsp, 0x28
pop r14
pop rsi
ret
cmp word [rcx + 2], 0
jne 0x140016aa7
mov r8, qword [rsp + 0x60]
movzx ecx, ax
add rsp, 0x28
pop r14
pop rsi
jmp fcn.140016bc7
mov qword [rsp + 0x40], rbx
test r9b, r9b
je 0x140016b13
movzx ebx, ax
test ebx, 0xffffff80
jne 0x140016adb
mov edx, 2
mov ecx, ebx
call fcn.1400bdc33
test eax, eax
je 0x140016adb
and ebx, 0xffffffdf
cmp bx, 0x56
jne 0x140016b13
movzx ecx, word [rsi + 2]
call fcn.14000be80
cmp ax, 0x4b
jne 0x140016b13
xor edx, edx
lea rcx, [rsi + 4]
lea r8d, [rdx + 0x10]
mov rbx, qword [rsp + 0x40]
add rsp, 0x28
pop r14
pop rsi
jmp fcn.1400bf3fd
mov qword [rsp + 0x48], rbp
xor ebp, ebp
mov qword [rsp + 0x50], rdi
mov edi, ebp
mov qword [rsp + 0x58], r12
lea r12, [0x140185b40]
mov qword [rsp + 0x20], r15
mov rbx, r12
lea r15, [0x140186210]
nop dword [rax + rax]
mov rcx, qword [rbx]
mov rdx, rsi
call fcn.1400ba941
test eax, eax
je 0x140016b98
inc edi
add rbx, 0x10
cmp rbx, r15
jl 0x140016b41
test r14b, r14b
je 0x140016b73
xor al, al
jmp 0x140016ba5
mov rcx, rsi
call fcn.14001694b
test ax, ax
je 0x140016b8f
movzx ecx, ax
call fcn.140017386
movzx ebp, al
movzx eax, bpl
jmp 0x140016ba5
movsxd rax, edi
shl rax, 4
movzx eax, byte [rax + r12 + 8]
mov r12, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov r15, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x40]
add rsp, 0x28
pop r14
pop rsi
ret

Function at 0x140016bc7
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
cmp cx, 0xa
jne 0x140016be2
mov al, 0xd
add rsp, 0x20
pop rbx
ret
mov rdx, r8
call qword [sym.imp.USER32.dll_VkKeyScanExW]
movsx rdx, ax
mov rcx, rdx
shr rcx, 8
cmp cl, 0xff
jne 0x140016c10
cmp dl, 0xff
jne 0x140016c10
xor al, al
add rsp, 0x20
pop rbx
ret
test cl, 0x38
jne 0x140016c08
test rbx, rbx
je 0x140016c7f
movzx eax, cl
and al, 6
cmp al, 6
jne 0x140016c37
or byte [rbx], 8
jmp 0x140016c67
test cl, 2
je 0x140016c4f
movzx eax, byte [rbx]
test al, 3
jne 0x140016c4f
or al, 1
mov byte [rbx], al
test cl, 4
je 0x140016c67
movzx eax, byte [rbx]
test al, 0xc
jne 0x140016c67
or al, 4
mov byte [rbx], al
test cl, 1
je 0x140016c7f
movzx eax, byte [rbx]
test al, 0x30
jne 0x140016c7f
or al, 0x10
mov byte [rbx], al
movzx eax, dl
add rsp, 0x20
pop rbx
ret
Function at 0x14001705c
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movzx edi, cl
lea rsi, [0x140000000]
movzx ebx, dl
lea eax, [rdi - 0x5b]
cmp eax, 0x4a
ja case.0x140017098.115
cdqe
movzx eax, byte [rsi + rax + 0x17296]
mov ecx, dword [rsi + rax*4 + 0x17232]
add rcx, rsi
jmp rcx
mov eax, 0x2a
jmp 0x140017185
mov eax, 0x136
jmp 0x140017185
mov eax, 0x1d
jmp 0x140017185
mov eax, 0x11d
jmp 0x140017185
mov eax, 0x38
jmp 0x140017185
mov eax, 0x138
jmp 0x140017185
mov eax, 0x15b
jmp 0x140017185
mov eax, 0x15c
jmp 0x140017185
mov eax, 0x52
jmp 0x140017185
mov eax, 0x4f
jmp 0x140017185
mov eax, 0x50
jmp 0x140017185
mov eax, 0x51
jmp 0x140017185
mov eax, 0x4b
jmp 0x140017185
mov eax, 0x4c
jmp 0x140017185
mov eax, 0x4d
jmp 0x140017185
mov eax, 0x47
jmp 0x140017185
mov eax, 0x48
jmp 0x140017185
mov eax, 0x49
jmp 0x140017185
mov eax, 0x53
jmp 0x140017185
mov eax, 0x145
jmp 0x140017185
mov eax, 0x135
jmp 0x140017185
mov eax, 0x37
jmp 0x140017185
mov eax, 0x4a
jmp 0x140017185
mov eax, 0x4e
test bl, bl
jne 0x1400171eb
movzx eax, ax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
xor edx, edx
mov ecx, edi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov edx, eax
test ax, ax
je 0x1400171eb
add edi, 0xfffffffd
cmp edi, 0x8d
ja case.0x1400171d9.5
movsxd rax, edi
movzx eax, byte [rsi + rax + 0x172ee]
mov ecx, dword [rsi + rax*4 + 0x172e2]
add rcx, rsi
jmp rcx
mov ecx, 0x100
or dx, cx
test bl, bl
je 0x14001721f
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
movzx eax, dx
test bl, bl
je 0x140017222
mov ecx, 0x100
or eax, ecx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
movzx eax, dx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140017386
Capabilities:
Log keystrokes

Disassembly:
movzx r8d, cx
mov eax, r8d
cmp r8d, 0x11c
ja 0x140017404
cmp eax, 0x11c
je 0x140017401
sub eax, 0x1d
cmp eax, 0x36
ja case.0x14001742d.286
lea rdx, [0x140000000]
cdqe
movzx eax, byte [rdx + rax + 0x1749a]
mov ecx, dword [rdx + rax*4 + 0x17452]
add rcx, rdx
jmp rcx
mov al, 0xa0
ret
mov al, 0xa2
ret
mov al, 0xa4
ret
mov al, 0x6a
ret
mov al, 0x6d
ret
mov al, 0x6b
ret
mov al, 0x2e
ret
mov al, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
ret
mov al, 0x2d
ret
mov al, 0x26
ret
mov al, 0x28
ret
mov al, 0x25
ret
mov al, 0x27
ret
mov al, 0x24
ret
mov al, reloc.OLEAUT32.dll_SafeArrayAllocDescriptor
ret
mov al, 0x21
ret
mov al, SafeArrayAllocDescriptor
ret
mov al, 0xd
ret
sub eax, 0x11d
cmp eax, 0x40
ja case.0x14001742d.286
lea rdx, [0x140000000]
cdqe
movzx eax, byte [rdx + rax + 0x174ee]
mov ecx, dword [rdx + rax*4 + 0x174d2]
add rcx, rdx
jmp rcx
mov al, 0xa1
ret
mov al, 0xa3
ret
mov al, 0xa5
ret
mov al, 0x90
ret
mov al, 0x6f
ret
mov al, 0x5d
ret
movzx ecx, r8b
mov edx, 1
jmp qword [sym.imp.USER32.dll_MapVirtualKeyW]
Function at 0x140017532
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x14018f1e0], ecx
lea rax, [0x14018f1e4]
mov r8d, 1
mov edx, dword [rax - 4]
lea rax, [rax + 4]
shr edx, 0x1e
xor edx, dword [rax - 8]
imul ecx, edx, 0x6c078965
add ecx, r8d
inc r8d
mov dword [rax - 4], ecx
cmp r8d, 0x270
jl 0x140017545
mov dword [0x140187404], 1
mov dword [0x14018ce00], 1
ret

Function at 0x140017586
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x14018ce00], 0
lea rbx, [0x14018f1e0]
jne 0x1400175ed
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x14018f1e0], eax
mov edx, 1
lea r8, [0x14018f1e4]
nop
mov ecx, dword [r8 - 4]
lea r8, [r8 + 4]
shr ecx, 0x1e
xor ecx, dword [r8 - 8]
imul eax, ecx, 0x6c078965
add eax, edx
inc edx
mov dword [r8 - 4], eax
cmp edx, 0x270
jl 0x1400175ba
mov dword [0x14018ce00], 1
mov dword [0x140187404], 0x270
mov r8d, 0xe3
mov qword [0x14018fba0], rbx
nop word [rax + rax]
mov eax, dword [rbx + 4]
mov ecx, eax
xor ecx, dword [rbx]
and al, 1
and ecx, 0x7ffffffe
xor ecx, dword [rbx]
shr ecx, 1
neg al
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [rbx + 0x634]
mov dword [rbx], ecx
add rbx, 4
sub r8d, 1
jne 0x14001760e
mov r8d, 0x18c
nop word [rax + rax]
mov eax, dword [rbx + 4]
lea rdx, [rbx + 4]
mov ecx, eax
and al, 1
xor ecx, dword [rbx]
and ecx, 0x7ffffffe
xor ecx, dword [rbx]
shr ecx, 1
neg al
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [rbx - 0x38c]
mov dword [rbx], ecx
lea rbx, [rdx]
sub r8d, 1
jne 0x140017652
mov eax, dword [0x14018f1e0]
mov ecx, dword [rdx]
xor ecx, eax
and al, 1
and ecx, 0x7ffffffe
xor ecx, dword [rdx]
shr ecx, 1
neg al
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [rdx - 0x38c]
mov dword [rdx], ecx
add rsp, 0x20
pop rbx
ret

Function at 0x140019b1b
Capabilities:
Log keystrokes

Disassembly:
inc dword [rbp + 0x33]
leave
mov eax, ebp
iretd
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
lea rbp, [0x140000000]
xor esi, esi
movzx ebx, word [rdi]
test ebx, 0xffffff80
jne 0x140019b61
mov edx, 2
mov ecx, ebx
call fcn.1400bdc33
test eax, eax
je 0x140019b61
and ebx, 0xffffffdf
movzx eax, bx
add rdi, 2
cmp eax, 0x56
ja case.default.0x140019b83
movzx eax, byte [rax + rbp + 0x1706c]
mov ecx, dword [rbp + rax*4 + 0x19bbe]
add rcx, rbp
jmp rcx
mov eax, esi
mov ecx, esi
or eax, 1
and cl, 3
cmovne eax, esi
jmp 0x140019ba8
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret