joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140023df8
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
xor ecx, ecx
mov r15, r9
mov r13, rdx
lea ebx, [rcx + 1]
mov edi, ecx
mov ebp, ecx
cmp qword [rdx + 8], rcx
je 0x1400610fc
mov rax, qword [rsp + 0xc0]
mov r12, qword [rsp + 0xb8]
mov r14, qword [rsp + 0xb0]
mov byte [rax], cl
mov byte [r12], cl
mov byte [r14], cl
mov byte [r9], cl
mov dword [r8], ecx
mov rsi, rax
movsxd rdx, edi
mov rcx, r13
call fcn.14000953c
movzx ecx, word [rax]
lea eax, [rcx - 0x21]
cmp ax, 0x3d
jbe 0x140061103
movsxd rdx, edi
add edi, ebx
mov rcx, r13
mov dword [rsp + 0x90], edi
call fcn.14000953c
mov rsi, qword [rsp + 0xa0]
movzx ecx, word [rax]
cmp cx, 0x7b
jne 0x14006118c
lea rcx, [rsp + 0x30]
mov edx, 0x40
call fcn.1400095ac
lea rax, [rsp + 0x90]
lea r9, [rsp + 0x30]
mov edx, 0x7d
mov r8, r13
mov qword [rsp + 0x20], rax
call fcn.140023f50
test al, al
je 0x140023f4a
lea rdi, [0x1400ba3d0]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rdi]
call fcn.14002563c
test eax, eax
je 0x140023ef9
lea rax, [0x1400ba6e8]
add rdi, 8
add ebp, ebx
cmp rdi, rax
jl 0x140023ed6
cmp ebp, 0x63
je 0x140061148
lea rcx, [0x140000000]
movsxd rax, ebp
cmp byte [rax + rcx + 0xba360], 0
jne 0x140023f4a
movzx eax, byte [rax + rcx + 0xba2f0]
mov dword [rsi], eax
lea rcx, [rsp + 0x30]
call fcn.140006c8c
and dword [rsi], 0xff
mov al, bl
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
xor bl, bl
jmp 0x140023f20
lea rcx, [rsp + 0x30]
call fcn.140006c8c
xor al, al
jmp 0x140023f32
movabs rdx, 0x2000000000000405
bt rdx, rax
jae 0x140023e74
cmp cx, 0x2b
jne 0x140061122
mov byte [r15], bl
jmp 0x140061141
cmp cx, 0x5e
jne 0x14006112d
mov byte [r14], bl
jmp 0x140061141
cmp cx, 0x21
jne 0x140061139
mov byte [r12], bl
jmp 0x140061141
cmp cx, 0x23
jne 0x140061141
mov byte [rsi], bl
add edi, ebx
jmp 0x140023e59
lea rcx, [rsp + 0x30]
xor edx, edx
call fcn.140009574
movzx ecx, word [rax]
call qword [sym.imp.USER32.dll_VkKeyScanW]
movsx ecx, ax
mov dword [rsi], ecx
cmp ecx, 0xffffffff
je 0x1400610f2
bt ecx, 9
jae 0x140061170
mov byte [r14], bl
bt ecx, 0xa
jae 0x14006117a
mov byte [r12], bl
bt ecx, 8
jae 0x140023f20
mov byte [r15], bl
jmp 0x140023f20
call qword [sym.imp.USER32.dll_VkKeyScanW]
movsx ecx, ax
mov dword [rsi], ecx
cmp ecx, 0xffffffff
je 0x1400610fc
bt ecx, 9
jae 0x1400611a9
mov byte [r14], bl
bt ecx, 0xa
jae 0x1400611b3
mov byte [r12], bl
bt ecx, 8
jae 0x140023f2a
mov byte [r15], bl
jmp 0x140023f2a
Function at 0x140023fd8
Capabilities:
Log keystrokes

Disassembly:
push rbx
sub rsp, 0x20
mov word [rcx + 8], 1
mov eax, 5
mov rbx, rcx
mov dword [rcx], eax
mov dword [rcx + 4], eax
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]
xor edx, edx
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor edx, edx
lea ecx, [rdx + 0x10]
mov byte [rbx + 0x35], al
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
lea ecx, [rdx + 0x11]
mov byte [rbx + 0x34], al
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor edx, edx
lea ecx, [rdx + 0x12]
mov byte [rbx + 0x30], al
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov byte [rbx + 0x31], al
add rsp, 0x20
pop rbx
ret

Function at 0x140024470
Capabilities:
Get common file path

Disassembly:
push rbx
mov eax, 0x10020
call fcn.140037140
sub rsp, rax
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov ecx, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140009798
add rsp, 0x10020
pop rbx
ret

Function at 0x1400244a8
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 [0x1400e44c7]
mov rsi, rdx
mov rdi, rcx
call fcn.1400270f8
mov edx, 0x8000
mov ecx, eax
call fcn.140026f20
cmp dword [rsi + 0x10], 0xb
mov ebp, eax
je 0x14006123a
lea rcx, [rsp + 0x20]
call fcn.140006f0c
mov rcx, rsi
call fcn.14000d134
mov rdx, qword [rsi + 8]
lea r8, [rsp + 0x20]
call fcn.140006df0
mov r8, qword [rsp + 0x20]
lea rdx, [0x1400ab410]
mov rcx, rdi
call fcn.140027340
movsxd rbx, eax
test r14b, r14b
jne 0x140061268
lea rcx, [rsp + 0x20]
call fcn.140006c8c
mov rcx, rdi
call fcn.14002753c
mov rcx, rdi
call fcn.1400270f8
mov edx, 0x4000
mov ecx, eax
cmp ebp, 0xffffffff
je 0x140024553
mov edx, ebp
call fcn.140026f20
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop r14
ret
mov rcx, rsi
call fcn.140078708
mov rcx, rsi
movsxd rbx, eax
call fcn.140078690
mov r9, rdi
mov r8, rbx
mov edx, 1
mov rcx, rax
call fcn.1400272b0
mov rbx, rax
jmp 0x140024535
mov rcx, rsi
call fcn.14000d724
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
jmp 0x14002452b

Function at 0x140025b90
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.1400259f8
Function at 0x140063614
Capabilities:
Connect network resource
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov rbx, rcx
xor r15d, r15d
lea rcx, [rsp + 0x58]
mov rsi, r9
mov r14, r8
mov rdi, rdx
mov qword [rsp + 0x30], r15
mov qword [rbp + 0x228], r15
call fcn.140009030
lea rcx, [rsp + 0x38]
call fcn.140009030
lea rcx, [rsp + 0x78]
call fcn.140009030
lea rdx, [0x1400cf1b8]
lea rcx, [rsp + 0x58]
call fcn.140009798
lea rcx, [rsp + 0x58]
mov rdx, rbx
call fcn.1400098c0
lea rdx, str.CLSID
lea rcx, [rsp + 0x58]
call fcn.1400098c0
lea rcx, [rsp + 0x38]
call fcn.1400099e4
test rdi, rdi
je 0x1400636d1
cmp word [rdi], 0x5c
je 0x1400636d1
cmp word [rdi + 2], 0x5c
je 0x1400636d1
lea rdx, [0x1400cf1f0]
lea rcx, [rsp + 0x38]
call fcn.140009798
lea rcx, [rsp + 0x38]
mov rdx, rdi
call fcn.1400098c0
test rsi, rsi
je 0x140063733
xor edx, edx
lea rcx, [rbp - 0x68]
lea r8d, [rdx + 0x30]
call fcn.140025360
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x78]
mov dword [rbp - 0x64], r15d
call fcn.140009cf0
lea rdx, str.IPC_
lea rcx, [rsp + 0x78]
call fcn.1400098c0
mov rax, qword [rsp + 0x78]
mov rdx, qword [rbp + 0x230]
lea rcx, [rbp - 0x68]
xor r9d, r9d
mov r8, rsi
mov qword [rbp - 0x50], rax
call qword [sym.imp.MPR.dll_WNetAddConnection2W]
mov ebx, eax
test eax, eax
js 0x1400637f4
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x30]
mov rdx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
mov ebx, eax
test eax, eax
jne 0x1400637f4
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x30]
lea rax, [rbp + 0x228]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x1400637e9
mov rcx, qword [rbp + 0x228]
lea rax, [rbp + 0x218]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x30]
xor r8d, r8d
xor edx, edx
mov dword [rbp + 0x218], 0x1fe
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x1400637dc
mov eax, dword [rbp + 0x218]
lea rcx, [rbp - 0x30]
mov rdx, r14
shr eax, 1
mov dword [rbp + 0x218], eax
mov word [rbp + rax*2 - 0x30], r15w
call qword [sym.imp.ole32.dll_CLSIDFromString]
mov ebx, eax
mov rcx, qword [rbp + 0x228]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x78]
call fcn.140006c8c
lea rcx, [rsp + 0x38]
call fcn.140006c8c
lea rcx, [rsp + 0x58]
call fcn.140006c8c
mov eax, ebx
mov rbx, qword [rsp + 0x310]
add rsp, 0x2e0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400641b4
Capabilities:
Get token privileges

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, 0x30
mov rsi, qword [rsp + 0x60]
xor r9d, r9d
mov r14, r8
mov r8, qword [r8]
lea edx, [r9 + 3]
mov rbp, rcx
mov qword [rax - 0x18], rsi
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
xor edi, edi
test eax, eax
jne 0x140064237
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14006423c
mov ebx, dword [rsi]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea edx, [rdi + 8]
mov rcx, rax
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [r14], rax
test rax, rax
je 0x14006423c
mov r9d, dword [rsi]
lea edx, [rdi + 3]
mov r8, rax
mov rcx, rbp
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x14006423c
mov edi, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov al, dil
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x14006491c
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rdi
push r14
push r15
sub rsp, 0x60
xor r10d, r10d
mov rbp, r9
mov r14, r8
mov qword [rax + 0x30], r10
mov eax, dword [rsp + 0xa0]
lea ebx, [r10 + 1]
mov r15, rdx
test bl, al
je 0x14006495b
mov edi, ebx
jmp 0x140064968
mov ecx, 2
mov edi, r10d
test cl, al
cmovne edi, ecx
xor sil, sil
test al, 4
je 0x1400649c8
and qword [rsp + 0x80], r10
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x80]
mov rcx, rax
mov edx, 0xa
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0xa8]
mov r8d, ebx
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
mov rcx, qword [rsp + 0x80]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x140064a2e
mov r10, qword [rsp + 0xa8]
mov rax, qword [rsp + 0xd0]
mov ecx, dword [rsp + 0xb8]
mov r9d, edi
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xc8]
bts ecx, 0xa
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xc0]
mov r8, rbp
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x38], r10
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
mov rdx, r14
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
setne sil
mov rcx, qword [rsp + 0xa8]
test rcx, rcx
je 0x140064a41
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
lea r11, [rsp + 0x60]
mov al, sil
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret

Function at 0x140064ba0
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x60
xor ebx, ebx
lea rax, [rbp + 0x20]
lea rcx, [rbp + 0x18]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
lea r8d, [rbx + 0x20]
mov r9d, 0x220
mov dl, 2
mov dword [rsp + 0x28], ebx
mov dword [rbp + 0x18], ebx
mov word [rbp + 0x1c], 0x500
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rbp + 0x10], eax
test eax, eax
je 0x140064c1f
mov rdx, qword [rbp + 0x20]
lea r8, [rbp + 0x10]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
neg eax
sbb ecx, ecx
and dword [rbp + 0x10], ecx
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rbp + 0x10]
mov rbx, qword [rsp + 0x88]
cmp eax, 1
sete al
add rsp, 0x60
pop rbp
ret
Function at 0x140064df0
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x40
mov r14, r9
mov r15, r8
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
lea r8d, [rdx + 0x10]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [rdi]
mov dword [rsp + 0x30], 2
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov rcx, rax
mov r9, rsi
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [r14]
mov dword [rsp + 0x30], 2
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r9, [rsi + 0x10]
mov rcx, rax
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rax, qword [r15]
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8, [0x140064ed8]
mov r9, rsi
xor edx, edx
xor ecx, ecx
mov qword [rsi + 8], rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
add rsp, 0x40
pop r15
ret

Function at 0x140065224
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov r15, rcx
mov rcx, qword [rcx]
mov rbp, rdx
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x68]
mov edx, 0xb0
call qword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x68], eax
jae 0x1400652ea
mov rcx, qword [r15]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0xe]
call qword [sym.imp.USER32.dll_SendMessageW]
xor esi, esi
mov rdi, rax
test eax, eax
je 0x1400652ea
cmp eax, dword [rsp + 0x68]
jb 0x1400652ea
cmp eax, dword [rsp + 0x60]
jb 0x1400652ea
lea ebx, [rax + 1]
lea rcx, [rsi - 1]
lea eax, [rsi + 2]
mul rbx
cmovo rax, rcx
mov rcx, rax
call fcn.140024a2c
mov rcx, qword [r15]
lea edx, [rsi + 0xd]
mov r9, rax
mov r8d, ebx
mov r14, rax
call qword [sym.imp.USER32.dll_SendMessageW]
test rax, rax
je 0x1400652dd
cmp dword [rsp + 0x60], edi
je 0x1400652ca
mov ecx, dword [rsp + 0x60]
mov word [r14 + rcx*2], si
mov eax, dword [rsp + 0x68]
mov rcx, rbp
lea rdx, [r14 + rax*2]
call fcn.140009798
mov sil, 1
mov rcx, r14
call fcn.1400205a0
mov al, sil
jmp 0x1400652ec
xor al, al
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140065f14
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, edx
mov rdx, qword [rcx]
mov r8b, 1
mov rdi, rcx
call fcn.140067650
xor edx, edx
test ebx, ebx
lea ebx, [rdx + 0x25]
mov ecx, ebx
jns 0x140065f71
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov rcx, qword [rdi]
mov r8d, ebx
shl eax, 0x10
mov edx, 0x100
mov r9d, eax
or r9, 1
call qword [sym.imp.USER32.dll_PostMessageW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
mov ecx, ebx
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov r8d, ebx
jmp 0x140065fad
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov rcx, qword [rdi]
mov edx, 0x100
shl eax, 0x10
mov r8d, reloc.OLEAUT32.dll_SafeArrayRedim
mov r9d, eax
or r9, 1
call qword [sym.imp.USER32.dll_PostMessageW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
mov ecx, ebx
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov r8d, reloc.OLEAUT32.dll_SafeArrayRedim
mov rcx, qword [rdi]
shl eax, 0x10
mov edx, 0x101
mov r9d, eax
mov eax, 0xc0000001
or r9, rax
call qword [sym.imp.USER32.dll_PostMessageW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rdx, qword [rdi]
xor r8d, r8d
call fcn.140067650
mov rbx, qword [rsp + 0x30]
mov al, 1
add rsp, 0x20
pop rdi
ret

Function at 0x140066984
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x40
mov rbx, rdx
mov rcx, rdx
cmp r8b, 1
jne 0x1400669e2
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x30], rax
xor edx, edx
mov dword [rsp + 0x28], 0x1388
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
test rax, rax
je 0x1400669ff
xor edx, edx
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, 1
jmp 0x1400669f5
xor edx, edx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r8d, r8d
mov edx, ebx
mov ecx, eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
add rsp, 0x40
pop rbx
ret

Function at 0x140067650
Capabilities:
Log keystrokes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
cmp r8b, 1
jne 0x140067683
call fcn.1400679c4
test al, al
jne 0x1400676a3
xor edx, edx
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, 1
jmp 0x140067699
xor edx, edx
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r8d, r8d
mov edx, ebx
mov ecx, eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
add rsp, 0x20
pop rbx
ret
Function at 0x1400677d8
Capabilities:
Get graphical window text

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 r14, rcx
mov rcx, rdx
mov rbp, rdx
call fcn.1400099e4
mov rdx, qword [r14]
call fcn.1400679c4
test al, al
je 0x140067812
xor al, al
jmp 0x1400678e6
mov rdx, qword [r14]
call fcn.1400679c4
test al, al
jne 0x140067838
mov rcx, qword [r14]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0xe]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rsi, rax
test eax, eax
jne 0x14006783d
mov esi, 0x7fff
mov rcx, 0xffffffffffffffff
lea ebx, [rsi + 1]
mov eax, 2
mul rbx
cmovo rax, rcx
mov rcx, rax
call fcn.140024a2c
mov rcx, qword [r14]
mov r8d, ebx
mov r9, rax
mov edx, reloc.WSOCK32.dll_listen
mov rdi, rax
call qword [sym.imp.USER32.dll_SendMessageW]
test rax, rax
jle 0x1400678dc
mov rcx, rdi
call fcn.140025fc0
mov ecx, esi
mov r8, rax
cmp rax, rcx
jne 0x1400678d1
test rax, rax
je 0x1400678ab
mov rdx, rdi
mov rcx, rdi
neg rdx
mov al, byte [rcx]
sub al, 0x20
cmp al, 0x5e
ja 0x1400678d1
inc rcx
lea rax, [rdx + rcx]
cmp rax, r8
jb 0x140067897
lea rcx, [rsp + 0x20]
mov rdx, rdi
call fcn.1400675e8
lea rdx, [rsp + 0x20]
mov r8, rbp
call fcn.1400091e0
lea rcx, [rsp + 0x20]
call fcn.140006c8c
jmp 0x1400678dc
mov rdx, rdi
mov rcx, rbp
call fcn.140009798
mov rcx, rdi
call fcn.1400205a0
mov al, 1
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1400699e8
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x220
mov rbx, rcx
mov rcx, qword [rcx + 0x88]
mov edx, 0x3e9
call qword [sym.imp.USER32.dll_GetDlgItem]
xor edi, edi
test rax, rax
je 0x140069a7d
lea rdx, [rsp + 0x20]
mov r8d, 0x100
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
test byte [rbx + 0x10], 1
je 0x140069a3c
cmp word [rsp + 0x20], di
jne 0x140069a3c
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBeep]
jmp 0x140069a7d
movsd xmm0, qword [rbx + 0x18]
comisd xmm0, xmmword [0x1400ba260]
jbe 0x140069a5d
mov rcx, qword [rbx + 0x88]
mov edx, 0x40a
call qword [sym.imp.USER32.dll_KillTimer]
lea rcx, [rbx + 0x48]
lea rdx, [rsp + 0x20]
call fcn.140009798
mov rcx, qword [rbx + 0x88]
mov edx, 1
call qword [sym.imp.USER32.dll_EndDialog]
mov rbx, qword [rsp + 0x230]
add rsp, 0x220
pop rdi
ret
Function at 0x14006dc44
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov rcx, qword [r8]
mov rdi, rdx
mov rsi, r8
mov r14d, dword [rcx + rdx]
lea rax, [rcx + 4]
mov qword [r8], rax
lea eax, [r14 + 1]
movsxd rcx, eax
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140024a2c
mov rdx, qword [rsi]
lea ecx, [r14 + r14]
movsxd rbx, ecx
add rdx, rdi
mov rcx, rax
mov r8, rbx
mov r15, rax
call fcn.140024af0
add qword [rsi], rbx
xor eax, eax
movsxd rcx, r14d
mov word [r15 + rcx*2], ax
test r14d, r14d
jle 0x14006dcd3
mov rax, r15
mov ecx, r14d
xor word [rax], r14w
lea rax, [rax + 2]
dec rcx
jne 0x14006dcc6
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
mov rax, r15
add rsp, 0x20
pop r15
ret

Function at 0x14006e354
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
xor eax, eax
cmp qword [rcx + 0x28], rax
lea edx, [rax + 2]
cmovne eax, edx
mov edx, dword [rcx]
cmp edx, eax
jge 0x14006e368
mov edx, eax
jmp 0x14006faa8
test edx, edx
js 0x14006fb37
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x40
movaps xmmword [rsp + 0x30], xmm6
mov ebx, edx
movaps xmmword [rsp + 0x20], xmm7
test edx, edx
jne 0x14006face
xor ecx, ecx
jmp 0x14006fb22
cmp ebx, 0xf
jae 0x14006fb20
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14006fb20
xorps xmm7, xmm7
cvtsi2sd xmm7, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x50]
xorps xmm6, xmm6
sub rax, qword [rsp + 0x60]
cvtsi2sd xmm6, rax
call fcn.140024218
divsd xmm6, xmm0
comisd xmm7, xmm6
ja 0x14006faea
jmp 0x14006fb28
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
movaps xmm6, xmmword [rsp + 0x30]
movaps xmm7, xmmword [rsp + 0x20]
add rsp, 0x40
pop rbx
ret

Function at 0x14006e370
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
xor eax, eax
cmp qword [rcx + 0x28], rax
lea edx, [rax + 2]
cmovne eax, edx
mov edx, dword [rcx + 4]
cmp edx, eax
jge 0x14006e385
mov edx, eax
jmp 0x14006faa8
Function at 0x14006e38c
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, 0x120
xor esi, esi
mov rbx, rdx
mov rdi, rcx
mov dword [rdx], esi
mov word [rdx + 4], si
cmp qword [rcx + 0x28], rsi
je 0x14006e426
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x14006e4fc
mov al, 0x80
cmp byte [rsp + 0xc0], al
je 0x14006e3db
cmp byte [rsp + 0x30], al
jne 0x14006e3e4
cmp byte [rdi + 0x1e], sil
jne 0x14006e3e4
mov byte [rbx], 1
cmp byte [rsp + 0xc1], al
jne 0x14006e3f7
cmp byte [rdi + 0x1f], sil
jne 0x14006e3f7
mov byte [rbx + 1], 1
cmp byte [rsp + 0x31], al
jne 0x14006e407
cmp byte [rdi + 0x20], sil
jne 0x14006e407
mov byte [rbx + 2], 1
cmp byte [rsp + 0x32], al
jne 0x14006e417
cmp byte [rdi + 0x21], sil
jne 0x14006e417
mov byte [rbx + 3], 1
cmp byte [rsp + 0x7b], al
jne 0x14006e4fc
jmp 0x14006e4f2
mov ecx, QueryPathOfRegTypeLib
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ebp, 0x8000
test bp, ax
jne 0x14006e44b
mov ecx, QueryPathOfRegTypeLib
call qword [sym.imp.USER32.dll_GetKeyState]
test bp, ax
je 0x14006e454
cmp byte [rdi + 0x1e], sil
jne 0x14006e454
mov byte [rbx], 1
mov ecx, QueryPathOfRegTypeLib
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test bp, ax
jne 0x14006e474
mov ecx, QueryPathOfRegTypeLib
call qword [sym.imp.USER32.dll_GetKeyState]
test bp, ax
je 0x14006e47e
cmp byte [rdi + 0x1f], sil
jne 0x14006e47e
mov byte [rbx + 1], 1
mov ecx, reloc.WSOCK32.dll_recvfrom
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test bp, ax
jne 0x14006e49e
mov ecx, reloc.WSOCK32.dll_recvfrom
call qword [sym.imp.USER32.dll_GetKeyState]
test bp, ax
je 0x14006e4a8
cmp byte [rdi + 0x20], sil
jne 0x14006e4a8
mov byte [rbx + 2], 1
mov ecx, reloc.WSOCK32.dll_select
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test bp, ax
jne 0x14006e4c8
mov ecx, reloc.WSOCK32.dll_select
call qword [sym.imp.USER32.dll_GetKeyState]
test bp, ax
je 0x14006e4d2
cmp byte [rdi + 0x21], sil
jne 0x14006e4d2
mov byte [rbx + 3], 1
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test bp, ax
jne 0x14006e4f2
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetKeyState]
test bp, ax
je 0x14006e4fc
cmp byte [rdi + 0x22], sil
jne 0x14006e4fc
mov byte [rbx + 4], 1
lea r11, [rsp + 0x120]
mov rax, rbx
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret