joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000d710
Capabilities:
Encode data using base64

Disassembly:
push rbx
xor r9d, r9d
mov qword [rsp + 0x10], rdi
mov r11, rdx
mov r10, rcx
cmp r8, 0xffffffffffffffff
jne 0x14000d737
or rcx, r8
xor eax, eax
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rbx, [0x1400f1bf0]
cmp r8, 2
jbe 0x14000d7de
lea rcx, [r8 - 3]
movabs rax, 0xaaaaaaaaaaaaaaab
mul rcx
mov rdi, rdx
shr rdi, 1
inc rdi
mov rax, rdi
imul rax, rax, 0xfffffffffffffffd
add r8, rax
nop dword [rax]
movzx eax, byte [r11 + 1]
movzx ecx, byte [r11]
add r9, 4
shl ecx, 8
add r11, 3
or ecx, eax
movzx eax, byte [r11 - 1]
shl ecx, 8
movsxd rdx, ecx
or rdx, rax
mov rax, rdx
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rax + rbx]
mov byte [r10 + r9 - 4], al
mov rax, rdx
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rax + rbx]
mov byte [r10 + r9 - 3], al
mov rax, rdx
and edx, 0x3f
shr rax, 6
and eax, 0x3f
dec rdi
movzx eax, byte [rax + rbx]
mov byte [r10 + r9 - 2], al
movzx eax, byte [rdx + rbx]
mov byte [r10 + r9 - 1], al
jne 0x14000d770
mov rdi, qword [rsp + 0x10]
test r8, r8
je 0x14000d852
movzx eax, byte [r11]
shl eax, 0x10
movsxd rcx, eax
cmp r8, 1
jbe 0x14000d805
movzx eax, byte [r11 + 1]
shl eax, 8
cdqe
or rcx, rax
mov rax, rcx
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rax + rbx]
mov byte [r9 + r10], al
mov rax, rcx
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rax + rbx]
mov byte [r9 + r10 + 1], al
cmp r8, 1
jbe 0x14000d83d
shr rcx, 6
and ecx, 0x3f
movzx eax, byte [rcx + rbx]
jmp 0x14000d83f
mov al, 0x3d
mov byte [r9 + r10 + 2], al
mov word [r9 + r10 + 3], 0x3d
lea rax, [r9 + 4]
pop rbx
ret
mov byte [r9 + r10], 0
mov rax, r9
pop rbx
ret

Function at 0x14000e870
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
xor r8d, r8d
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
mov edi, eax
test eax, eax
jne 0x14000e8e1
mov rdi, qword [rbx + 8]
test rdi, rdi
je 0x14000e914
mov eax, dword [rdi + 0x20]
dec eax
mov dword [rdi + 0x20], eax
jne 0x14000e8c2
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14000e8ba
call fcn.1400d6fd8
mov rcx, rdi
call fcn.1400d6fd0
mov qword [rbx + 8], 0
mov byte [rbx + 0x10], 0
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
xor edx, edx
mov rcx, rbx
call fcn.14000ee20
mov rcx, qword [rbx + 8]
mov rdx, rdi
call fcn.14000ec20
mov r11, qword [rbx + 8]
mov r8d, edi
mov rdx, qword [r11]
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
mov ecx, eax
mov rax, qword [rbx + 8]
mov qword [rax + 0x10], rcx
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400158e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x30
xor al, al
cmp qword [0x14012ac08], 0
mov esi, 1
movzx edi, al
cmovne edi, esi
cmp qword [0x14012ac10], 0
je 0x14001590b
or dil, 2
xor ebp, ebp
mov qword [rsp + 0x58], rbx
test dil, dil
je 0x140015a65
mov qword [rsp + 0x60], r12
mov ebx, ebp
mov ecx, dword [0x1401298f8]
mov r9, rsi
xor r8d, r8d
mov edx, 0x417
call qword [sym.imp.USER32.DLL_PostThreadMessageW]
test eax, eax
jne 0x14001594d
lea ecx, [rax + 0xa]
call qword [sym.imp.KERNEL32.DLL_Sleep]
inc ebx
cmp ebx, 0x32
jl 0x140015922
xor r12b, r12b
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ebx, eax
nop dword [rax + rax]
mov rcx, qword [0x14012b668]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.DLL_GetExitCodeThread]
cmp dword [rsp + 0x50], 0x103
jne 0x140015995
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, ebx
cmp eax, 0x1f4
ja 0x1400159ae
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x140015960
mov rcx, qword [0x14012b668]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov qword [0x14012b668], rbp
call fcn.140014790
cmp qword [0x14012ac08], rbp
je 0x1400159d6
test sil, dil
jne 0x1400159ef
lea r8, [0x1400f4d58]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_CreateMutexW]
mov qword [0x14012b658], rax
jmp 0x1400159ef
test sil, dil
je 0x1400159ef
mov rcx, qword [0x14012b658]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov qword [0x14012b658], rbp
cmp qword [0x14012ac10], rbp
je 0x140015a18
test dil, 2
jne 0x140015a32
lea r8, [0x1400f4d70]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_CreateMutexW]
mov qword [0x14012b660], rax
jmp 0x140015a32
test dil, 2
je 0x140015a32
mov rcx, qword [0x14012b660]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov qword [0x14012b660], rbp
test r12b, r12b
mov r12, qword [rsp + 0x60]
je 0x140015a65
xorpd xmm3, xmm3
lea rcx, [0x1400f4d90]
xor r8d, r8d
mov edx, 0x10000
mov dword [0x140125594], ebp
mov qword [rsp + 0x20], rbp
call fcn.1400c0060
mov dword [0x140125594], esi
mov rcx, qword [0x14012ac18]
test rcx, rcx
je 0x140015a77
call qword [sym.imp.USER32.DLL_UnhookWindowsHookEx]
mov r8, qword [0x140127158]
mov edi, ebp
cmp bp, word [r8]
jae 0x140015b1b
mov rdx, qword [0x14012c458]
mov r9, qword [0x14012c450]
mov rsi, rbp
nop dword [rax + rax]
mov rax, qword [0x14012b6a8]
mov rbx, qword [rsi + rax]
test rbx, rbx
je 0x140015b0d
cmp byte [rbx + 0x18], bpl
je 0x140015ae4
movzx edx, word [rbx + 4]
mov rcx, qword [0x14012aab8]
call qword [sym.imp.USER32.DLL_UnregisterHotKey]
mov r8, qword [0x140127158]
mov rdx, qword [0x14012c458]
mov r9, qword [0x14012c450]
test eax, eax
sete al
mov byte [rbx + 0x18], al
cmp rbx, rdx
jne 0x140015b0d
test rdx, rdx
je 0x140015b0d
mov rax, qword [r9 + 8]
mov rcx, rax
sub rcx, rdx
mov rdx, rbp
sub rax, rcx
add qword [r9 + 0x10], rcx
mov qword [0x14012c458], rdx
mov qword [r9 + 8], rax
movzx eax, word [r8]
inc edi
add rsi, 8
cmp edi, eax
jl 0x140015aa0
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400161f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov eax, 0x1030
call fcn.1400e0af0
sub rsp, rax
cmp byte [0x14012d3f0], 0
mov rbx, rdx
mov rbp, rcx
jne 0x140016376
cmp dword [0x14012b69c], 0
jne 0x14001622b
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [0x14012b69c], eax
inc dword [0x14012d3f4]
mov qword [rsp + 0x1040], rsi
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
mov r9d, dword [0x14012d3f4]
mov edx, dword [0x1401255ac]
mov ecx, eax
sub ecx, dword [0x14012b69c]
cmp r9d, dword [0x1401255a8]
mov dword [0x14012b6a0], eax
jbe 0x1400162e9
cmp ecx, edx
jae 0x1400162e9
mov dword [rsp + 0x20], ecx
lea r8, [0x1400f5710]
lea rcx, [rsp + 0x30]
mov edx, 0x800
mov esi, 1
call fcn.1400b9320
call fcn.140014d80
lea edx, [rsi + 3]
xorpd xmm3, xmm3
lea rcx, [rsp + 0x30]
xor r8d, r8d
mov byte [0x14012d3f0], sil
mov dword [0x140125594], 0
mov qword [rsp + 0x20], 0
call fcn.1400c0060
cmp eax, 7
jne 0x1400162d4
lea edx, [rsi + 3]
lea rcx, [0x14012c5c0]
xor r8d, r8d
call fcn.14002a220
mov eax, dword [0x14012b6a0]
mov dword [0x140125594], esi
mov byte [0x14012d3f0], 0
jmp 0x1400162ef
xor esi, esi
cmp ecx, edx
jbe 0x140016303
mov dword [0x14012d3f4], 0
mov dword [0x14012b69c], eax
test esi, esi
jne 0x14001636e
movzx eax, byte [rbp + 0xf]
xor r9d, r9d
xor r8d, r8d
mov byte [0x14012d13e], al
inc byte [rbx + 0x22]
mov rdx, qword [0x14012d090]
mov rcx, rbx
mov qword [rsp + 0x20], 0
call fcn.1400b3790
dec byte [rbx + 0x22]
test eax, eax
jne 0x14001633a
mov byte [rbx + 0x27], al
jmp 0x14001636e
cmp byte [rbx + 0x27], 0
je 0x14001636e
mov byte [rbx + 0x27], 0
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [rbx + 0x18]
cmp eax, 0x3e8
ja 0x14001636e
movzx r8d, word [rbp + 4]
mov rcx, qword [0x14012aab8]
xor r9d, r9d
mov edx, 0x312
call qword [sym.imp.USER32.DLL_PostMessageW]
mov rsi, qword [rsp + 0x1040]
mov rbx, qword [rsp + 0x1048]
add rsp, 0x1030
pop rbp
ret
Function at 0x14001f1e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x80
cmp dword [0x14012b780], 2
movzx ebp, r8b
mov ebx, edx
sete sil
movzx edi, cx
test sil, sil
je 0x14001f23a
movzx ecx, cx
lea rdx, [rsp + 0x30]
test ecx, 0xffffff80
je 0x14001f227
mov eax, gethostbyname
lea rdx, [rsp + 0x32]
mov word [rsp + 0x30], ax
mov r8d, 0xa
call fcn.1400d67e0
movzx edi, word [rsp + 0xa8]
test ebx, ebx
jle 0x14001f308
mov qword [rsp + 0xa0], r12
xor r12d, r12d
nop dword [rax]
cmp dword [0x14012b780], r12d
jne 0x14001f2ba
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
mov rcx, qword [0x1401255c8]
sub eax, dword [0x14012d1a4]
cmp eax, dword [rcx + 0x118]
jbe 0x14001f2ba
lea rcx, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], r12d
call qword [sym.imp.USER32.DLL_PeekMessageW]
test eax, eax
je 0x14001f2ae
mov edx, 1
or ecx, 0xffffffff
mov dword [0x140125594], r12d
call fcn.140001b60
mov dword [0x140125594], 1
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [0x14012d1a4], eax
test sil, sil
je 0x14001f2cb
lea rcx, [rsp + 0x30]
call fcn.14001f320
jmp 0x14001f2d7
movzx edx, bpl
movzx ecx, di
call fcn.14001d180
cmp dword [0x14012b780], 2
mov rax, qword [0x1401255c8]
jne 0x14001f2ef
mov ecx, dword [rax + 0x80]
jmp 0x14001f2f2
mov ecx, dword [rax + 0x7c]
call fcn.1400215d0
dec rbx
jne 0x14001f250
mov r12, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001f320
Capabilities:
Log keystrokes via polling

Disassembly:
push rsi
sub rsp, 0x30
cmp dword [0x14012b780], 0
mov qword [rsp + 0x40], rbx
mov rsi, rcx
je 0x14001f343
movzx ebx, byte [0x14012990f]
jmp 0x14001f49b
cmp qword [0x14012ac08], 0
je 0x14001f359
movzx ebx, byte [0x14012aab1]
jmp 0x14001f49b
mov ecx, 0xa0
mov qword [rsp + 0x48], rdi
xor bl, bl
call qword [sym.imp.USER32.DLL_GetAsyncKeyState]
mov edi, 0x8000
movzx ebx, bl
test di, ax
mov eax, reloc.OLEAUT32.DLL_SafeArrayGetDim
mov ecx, 0xa1
cmovne ebx, eax
call qword [sym.imp.USER32.DLL_GetAsyncKeyState]
test di, ax
je 0x14001f391
or bl, 0x20
mov ecx, 0xa2
call qword [sym.imp.USER32.DLL_GetAsyncKeyState]
test di, ax
je 0x14001f3a4
or bl, 1
mov ecx, 0xa3
call qword [sym.imp.USER32.DLL_GetAsyncKeyState]
test di, ax
je 0x14001f3b7
or bl, 2
mov ecx, 0xa4
call qword [sym.imp.USER32.DLL_GetAsyncKeyState]
test di, ax
je 0x14001f3ca
or bl, 4
mov ecx, 0xa5
call qword [sym.imp.USER32.DLL_GetAsyncKeyState]
test di, ax
je 0x14001f3dd
or bl, 8
mov ecx, 0x5b
call qword [sym.imp.USER32.DLL_GetAsyncKeyState]
test di, ax
je 0x14001f3f0
or bl, 0x40
mov ecx, 0x5c
call qword [sym.imp.USER32.DLL_GetAsyncKeyState]
test di, ax
je 0x14001f403
or bl, 0x80
cmp qword [0x14012ac08], 0
je 0x14001f496
movzx edi, bl
not dil
and dil, byte [0x14012aab1]
cmp byte [0x14012aab6], 0
je 0x14001f444
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [0x14012976c]
cmp eax, 0x14
jae 0x14001f444
movzx eax, byte [0x14012aab6]
not al
and dil, al
test dil, dil
je 0x14001f496
movzx edx, byte [0x14012aab3]
movzx eax, dil
lea rcx, [0x14012ab00]
not al
and byte [0x14012aab1], al
and byte [0x14012aab2], al
and dl, al
mov byte [0x14012aab3], dl
call fcn.140022460
mov rcx, qword [0x140129900]
test rcx, rcx
je 0x14001f496
test byte [rcx + 0xc], dil
mov eax, 0
cmovne rcx, rax
mov qword [0x140129900], rcx
mov rdi, qword [rsp + 0x48]
movzx ecx, bl
xor r9d, r9d
xor r8d, r8d
and cl, 0xc4
movzx edx, bl
mov dword [rsp + 0x28], 0xffc3d44f
or cl, 4
mov byte [rsp + 0x20], 1
call fcn.140021a90
movzx eax, word [rsi]
mov rbx, qword [rsp + 0x40]
cmp ax, 0x30
jb 0x14001f506
nop dword [rax]
cmp ax, 0x39
ja 0x14001f506
movzx edx, byte [rsi]
xor r8d, r8d
xor r9d, r9d
lea ecx, [r8 + 2]
add dl, 0x30
mov dword [rsp + 0x28], 0xffc3d44d
mov byte [rsp + 0x20], r8b
call fcn.14001f7c0
movzx eax, word [rsi + 2]
add rsi, 2
cmp ax, 0x30
jae 0x14001f4d0
xor r8d, r8d
xor r9d, r9d
mov dl, reloc.OLEAUT32.DLL_SafeArrayGetUBound
lea ecx, [r8 + 1]
mov dword [rsp + 0x28], 0xffc3d44d
mov byte [rsp + 0x20], r8b
call fcn.14001f7c0
add rsp, 0x30
pop rsi
ret
Function at 0x140020dd0
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov ebx, r9d
mov r9d, dword [rdx]
mov rsi, rdx
mov rdi, rcx
cmp r9d, 0x80000000
je 0x140020fc1
cmp dword [0x14012b780], 2
jne 0x140020e3d
movzx ebx, byte [rsp + 0x80]
mov r8d, dword [rdi]
movzx eax, bl
neg al
sbb ecx, ecx
xor edx, edx
and ecx, 0x80000000
or ecx, 1
call fcn.1400211c0
call fcn.1400216c0
test bl, bl
je 0x140020fc1
mov dword [rdi], 0x80000000
mov dword [rsi], 0x80000000
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
or dword [r8], 0x8001
cmp byte [rsp + 0x80], 0
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r14
je 0x140020eb2
cmp dword [0x14012b780], 1
jne 0x140020e97
mov eax, dword [0x140129910]
cmp eax, 0x80000000
jne 0x140020e8b
lea rcx, [0x140129910]
call qword [sym.imp.USER32.DLL_GetCursorPos]
mov eax, dword [0x140129910]
add dword [rdi], eax
mov eax, dword [0x140129914]
add dword [rsi], eax
jmp 0x140020ebd
lea rcx, [rsp + 0x68]
call qword [sym.imp.USER32.DLL_GetCursorPos]
mov r11d, dword [rsp + 0x68]
mov eax, dword [rsp + 0x6c]
add dword [rdi], r11d
add dword [rsi], eax
jmp 0x140020ebd
mov r8d, 2
call fcn.1400baa30
cmp dword [0x14012b780], 1
jne 0x140020ed6
mov eax, dword [rdi]
mov dword [0x140129910], eax
mov eax, dword [rsi]
mov dword [0x140129914], eax
xor ecx, ecx
call qword [sym.imp.USER32.DLL_GetSystemMetrics]
mov ebp, 1
mov ecx, ebp
mov r12d, eax
call qword [sym.imp.USER32.DLL_GetSystemMetrics]
mov r8d, dword [rdi]
or r14d, 0xffffffff
mov r13d, eax
mov eax, r8d
mov ecx, ebp
shl eax, 0x10
cdq
idiv r12d
test r8d, r8d
cmovs ecx, r14d
add eax, ecx
mov ecx, ebp
mov dword [rdi], eax
mov r8d, dword [rsi]
mov eax, r8d
shl eax, 0x10
cdq
idiv r13d
test r8d, r8d
cmovs ecx, r14d
lea r9d, [rax + rcx]
mov dword [rsi], r9d
test ebx, ebx
js 0x140020f99
cmp ebx, 0x64
jle 0x140020f3a
lea ebx, [rbp + 0x63]
jmp 0x140020f3e
test ebx, ebx
je 0x140020f99
cmp dword [0x14012b780], ebp
je 0x140020f99
lea rcx, [rsp + 0x68]
call qword [sym.imp.USER32.DLL_GetCursorPos]
mov r11d, dword [rsp + 0x6c]
mov rcx, qword [rsp + 0x68]
mov r9d, dword [rsi]
mov r8d, dword [rdi]
mov eax, r11d
shl eax, 0x10
mov r10d, ebp
mov dword [rsp + 0x20], ebx
cdq
idiv r13d
test r11d, r11d
cmovs r10d, r14d
add r10d, eax
mov eax, ecx
shl eax, 0x10
cdq
idiv r12d
test ecx, ecx
mov edx, r10d
cmovs ebp, r14d
lea ecx, [rbp + rax]
call fcn.14008e770
jmp 0x140020fad
mov r8d, dword [rdi]
xor edx, edx
mov ecx, 0x8001
call fcn.140020fd0
call fcn.1400216c0
mov r13, qword [rsp + 0x38]
mov r12, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x60]
mov r14, qword [rsp + 0x30]
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x140021450
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
mov rbx, rcx
cmp dword [0x14012b780], edi
jne 0x140021539
xor al, al
cmp qword [0x14012ac08], 0
movzx ebx, al
cmovne ebx, edi
cmp qword [0x14012ac10], 0
je 0x140021493
or bl, 2
test bl, bl
je 0x1400214ab
movzx ecx, byte [0x14012990e]
movzx edx, dil
not cl
and cl, bl
call fcn.140014030
mov rdx, qword [0x140129928]
mov ecx, dword [0x140129920]
mov r8d, 0x28
call qword [sym.imp.USER32.DLL_SendInput]
test bl, bl
je 0x1400215b2
movzx eax, byte [0x14012990e]
and al, bl
test dil, al
je 0x14002151e
movzx ecx, dil
call fcn.1400222e0
movzx r8d, al
mov byte [0x14012aab2], al
mov byte [0x14012aab1], al
xor r8b, sil
movzx edx, r8b
and r8b, al
and dl, sil
not dl
and dl, byte [0x14012aab3]
or dl, r8b
mov byte [0x14012aab3], dl
call qword [sym.imp.USER32.DLL_GetForegroundWindow]
mov qword [0x1401296a0], rax
movzx edx, dil
movzx ecx, bl
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140014030
mov r8, qword [0x14012aaa8]
lea rdx, [0x14001f530]
xor esi, esi
xor r9d, r9d
mov ecx, edi
mov dword [0x140129918], esi
call qword [sym.imp.USER32.DLL_SetWindowsHookExW]
mov qword [0x14012ac18], rax
test rax, rax
je 0x1400215b2
mov byte [0x14012aab7], dil
nop dword [rax]
mov edx, edi
mov ecx, 0x8000012f
mov dword [0x140125594], esi
call fcn.140001b60
cmp qword [0x14012ac18], rsi
mov dword [0x140125594], edi
jne 0x140021570
mov ecx, dword [0x140129920]
mov rax, qword [0x140129928]
mov byte [0x14012aab7], sil
dec ecx
cmp dword [rax + rcx*8], esi
jne 0x1400215b2
mov eax, dword [rax + rcx*8 + 4]
mov dword [rbx], eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400217e0
Capabilities:
Get graphical window text

Disassembly:
sub rsp, 0x28
mov r9, qword [0x14012b640]
test r9, r9
je 0x140021938
movsxd rax, dword [0x14012b648]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x20], rdi
imul rax, rax, 0xd4
mov byte [rax + r9 + 6], cl
mov byte [rax + r9], dl
mov ecx, 0x69
mov word [rax + r9 + 2], r8w
mov word [rax + r9 + 4], cx
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
movsxd rdx, dword [0x14012b648]
mov ecx, eax
pxor xmm0, xmm0
imul rdx, rdx, 0xd4
sub ecx, dword [0x14012c5b8]
mov dword [0x14012b64c], eax
mov dword [0x14012c5b8], eax
cvtsi2ss xmm0, rcx
mov rcx, qword [0x14012b640]
divss xmm0, dword [0x140112060]
movss dword [rdx + rcx + 8], xmm0
call qword [sym.imp.USER32.DLL_GetForegroundWindow]
xor edi, edi
mov rbx, rax
test rax, rax
je 0x1400218d4
cmp rax, qword [0x14012b650]
je 0x1400218b5
mov rcx, qword [0x14012b640]
movsxd rdx, dword [0x14012b648]
lea r8d, [rdi + 0x64]
imul rdx, rdx, 0xd4
lea rdx, [rdx + rcx + 0xc]
mov rcx, rax
call qword [sym.imp.USER32.DLL_GetWindowTextW]
mov r11d, dword [0x14012b648]
jmp 0x140021912
movsxd r11, dword [0x14012b648]
mov rax, qword [0x14012b640]
mov rcx, r11
imul rcx, rcx, 0xd4
mov word [rcx + rax + 0xc], di
jmp 0x140021912
movsxd r11, dword [0x14012b648]
mov rax, qword [0x14012b640]
lea rdx, [0x1400f4d00]
mov rcx, r11
imul rcx, rcx, 0xd4
sub rcx, rdx
lea r8, [rcx + rax + 0xc]
nop dword [rax + rax]
movzx eax, word [rdx]
add rdx, 2
mov word [r8 + rdx - 2], ax
test ax, ax
jne 0x140021900
inc r11d
mov qword [0x14012b650], rbx
mov rbx, qword [rsp + 0x30]
cmp r11d, dword [0x140125598]
cmovge r11d, edi
mov rdi, qword [rsp + 0x20]
mov dword [0x14012b648], r11d
add rsp, 0x28
ret
Function at 0x140021940
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 esi, cl
mov edi, edx
mov ecx, esi
mov ebp, esi
call qword [sym.imp.USER32.DLL_GetKeyState]
and al, 1
neg al
sbb ebx, ebx
add ebx, 2
cmp edi, 1
je 0x14002197a
cmp edi, 2
jne 0x140021a6d
cmp ebx, edi
je 0x140021a6d
mov ecx, ebp
call qword [sym.imp.USER32.DLL_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x1400219b4
xor r8d, r8d
xor r9d, r9d
movzx edx, sil
lea ecx, [r8 + 1]
mov dword [rsp + 0x28], 0xffc3d44d
mov byte [rsp + 0x20], r8b
call fcn.14001f7c0
xor r8d, r8d
xor r9d, r9d
movzx edx, sil
lea ecx, [r8 + 2]
mov dword [rsp + 0x28], 0xffc3d44d
mov byte [rsp + 0x20], r8b
call fcn.14001f7c0
call qword [sym.imp.USER32.DLL_GetForegroundWindow]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
cmp eax, dword [0x14012c598]
sete bpl
test bpl, bpl
je 0x140021a15
mov edx, 1
or ecx, 0xffffffff
mov dword [0x140125594], 0
call fcn.140001b60
mov dword [0x140125594], 1
cmp sil, 0x14
jne 0x140021a6d
cmp edi, 2
jne 0x140021a6d
lea ecx, [rdi + 0x12]
call qword [sym.imp.USER32.DLL_GetKeyState]
test al, 1
je 0x140021a6d
xor r8d, r8d
xor r9d, r9d
mov dl, reloc.OLEAUT32.DLL_SafeArrayGetDim
mov ecx, edi
mov dword [rsp + 0x28], 0xffc3d44d
mov byte [rsp + 0x20], r8b
call fcn.14001f7c0
test bpl, bpl
je 0x140021a6d
lea edx, [rdi - 1]
or ecx, 0xffffffff
mov dword [0x140125594], 0
call fcn.140001b60
mov dword [0x140125594], 1
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400222e0
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
cmp qword [0x14012ac08], 0
je 0x1400222fe
test cl, cl
jne 0x1400222fe
movzx eax, byte [0x14012aab1]
add rsp, 0x28
ret
mov qword [rsp + 0x30], rbx
mov ecx, 0xa0
mov qword [rsp + 0x20], rdi
xor bl, bl
call qword [sym.imp.USER32.DLL_GetAsyncKeyState]
mov edi, 0x8000
test di, ax
mov eax, reloc.OLEAUT32.DLL_SafeArrayGetDim
movzx ebx, bl
mov ecx, 0xa1
cmovne ebx, eax
call qword [sym.imp.USER32.DLL_GetAsyncKeyState]
test di, ax
je 0x14002233b
or bl, 0x20
mov ecx, 0xa2
call qword [sym.imp.USER32.DLL_GetAsyncKeyState]
test di, ax
je 0x14002234e
or bl, 1
mov ecx, 0xa3
call qword [sym.imp.USER32.DLL_GetAsyncKeyState]
test di, ax
je 0x140022361
or bl, 2
mov ecx, 0xa4
call qword [sym.imp.USER32.DLL_GetAsyncKeyState]
test di, ax
je 0x140022374
or bl, 4
mov ecx, 0xa5
call qword [sym.imp.USER32.DLL_GetAsyncKeyState]
test di, ax
je 0x140022387
or bl, 8
mov ecx, 0x5b
call qword [sym.imp.USER32.DLL_GetAsyncKeyState]
test di, ax
je 0x14002239a
or bl, 0x40
mov ecx, 0x5c
call qword [sym.imp.USER32.DLL_GetAsyncKeyState]
test di, ax
je 0x1400223ad
or bl, 0x80
cmp qword [0x14012ac08], 0
je 0x140022440
movzx edi, bl
not dil
and dil, byte [0x14012aab1]
cmp byte [0x14012aab6], 0
je 0x1400223ee
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [0x14012976c]
cmp eax, 0x14
jae 0x1400223ee
movzx eax, byte [0x14012aab6]
not al
and dil, al
test dil, dil
je 0x140022440
movzx edx, byte [0x14012aab3]
movzx eax, dil
lea rcx, [0x14012ab00]
not al
and byte [0x14012aab1], al
and byte [0x14012aab2], al
and dl, al
mov byte [0x14012aab3], dl
call fcn.140022460
mov rcx, qword [0x140129900]
test rcx, rcx
je 0x140022440
test byte [rcx + 0xc], dil
mov eax, 0
cmovne rcx, rax
mov qword [0x140129900], rcx
mov rdi, qword [rsp + 0x20]
movzx eax, bl
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret

Function at 0x140022840
Capabilities:
Get keyboard layout

Disassembly:
push rbx
sub rsp, 0x70
xor ebx, ebx
test rcx, rcx
je 0x140022884
xor edx, edx
call qword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x48
mov ecx, eax
mov ebx, eax
call qword [sym.imp.USER32.DLL_GetGUIThreadInfo]
test eax, eax
je 0x140022884
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140022884
xor edx, edx
call qword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
mov ebx, eax
mov ecx, ebx
call qword [sym.imp.USER32.DLL_GetKeyboardLayout]
add rsp, 0x70
pop rbx
ret
Function at 0x1400228a0
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x2c0
xor edx, edx
mov rbp, rcx
xor edi, edi
call qword [sym.imp.USER32.DLL_ActivateKeyboardLayout]
mov rsi, rax
test rax, rax
je 0x1400229fc
mov edx, edi
lea rcx, [0x1400f6410]
nop dword [rax]
movzx eax, word [rdx + rcx]
add rdx, 2
mov word [rsp + rdx + 0x2e], ax
test ax, ax
jne 0x1400228d0
lea rcx, [rsp + 0x94]
call qword [sym.imp.USER32.DLL_GetKeyboardLayoutNameW]
test eax, eax
je 0x1400229ec
lea rax, [rsp + 0x2f0]
lea rdx, [rsp + 0x30]
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.DLL_RegOpenKeyExW]
test eax, eax
jne 0x1400229ec
mov rcx, qword [rsp + 0x2f0]
lea rax, [rsp + 0x2e8]
lea rdx, [0x1400f6478]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xb0]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x2e0], rbx
mov dword [rsp + 0x2e8], 0x208
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.DLL_RegQueryValueExW]
mov rcx, qword [rsp + 0x2f0]
mov ebx, eax
call qword [sym.imp.ADVAPI32.DLL_RegCloseKey]
test ebx, ebx
mov rbx, qword [rsp + 0x2e0]
jne 0x1400229ec
mov ecx, dword [rsp + 0x2e8]
test ecx, ecx
je 0x1400229ec
shr ecx, 1
dec ecx
cmp word [rsp + rcx*2 + 0xb0], di
jne 0x1400229c5
test ecx, ecx
je 0x1400229ec
nop dword [rax]
lea edx, [rcx - 1]
cmp word [rsp + rdx*2 + 0xb0], di
jne 0x1400229d7
mov ecx, edx
test edx, edx
jne 0x1400229b0
jmp 0x1400229ec
inc ecx
cmp ecx, 0x104
jae 0x1400229ec
mov word [rsp + rcx*2 + 0xb0], di
test ecx, ecx
je 0x1400229ec
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov rdi, rax
cmp rbp, rsi
je 0x1400229fc
xor edx, edx
mov rcx, rsi
call qword [sym.imp.USER32.DLL_ActivateKeyboardLayout]
mov rax, rdi
add rsp, 0x2c0
pop rdi
pop rsi
pop rbp
ret