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

Disassembly:
test ecx, ecx
js 0x140042ef3
push rbx
sub rsp, 0x20
mov ebx, ecx
test ecx, ecx
je 0x140042ee8
cmp ecx, 0xf
jae 0x140042ee6
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140042ee6
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r11, qword [rsp + 0x38]
sub r11, qword [rsp + 0x40]
pxor xmm1, xmm1
pxor xmm0, xmm0
cvtsi2sd xmm0, qword [rsp + 0x48]
cvtsi2sd xmm1, r11
divsd xmm1, xmm0
mulsd xmm1, qword [0x1400a2c88]
cvttsd2si rax, xmm1
cmp eax, ebx
jb 0x140042e9e
jmp 0x140042eee
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
add rsp, 0x20
pop rbx
ret

Function at 0x1400430b0
Capabilities:
Shutdown system

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov esi, edx
mov edi, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x60]
mov edx, SafeArrayCreateEx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
xor ebx, ebx
cmp eax, ebx
jne 0x1400430ee
xor eax, eax
jmp 0x14004318c
lea r8, [rsp + 0x34]
lea rdx, str.SeShutdownPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x60]
lea r8, [rsp + 0x30]
mov ebp, 1
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x3c], 2
mov dword [rsp + 0x30], ebp
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x1400430e7
cmp edi, 0x20
je 0x140043181
cmp edi, 0x40
je 0x140043183
test dil, 0xb
jne 0x140043158
xor edx, edx
mov ecx, edi
call qword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x14004318c
test dil, 0x14
mov r9d, ebx
mov dword [rsp + 0x28], esi
cmovne r9d, ebp
test dil, 2
cmovne ebx, ebp
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownExW]
jmp 0x14004318c
mov ebx, ebp
xor edx, edx
mov ecx, ebx
call sub.KERNEL32.dll_SetSystemPowerState
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x1400431b0
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x2c0
mov rdi, rdx
movsxd rbx, ecx
lea rdx, [rsp + 0x120]
mov ecx, 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x140043289
lea rcx, [rsp + 0x20]
mov edx, 0x100
call sub.WSOCK32.dll_gethostname
lea rcx, [rsp + 0x20]
call sub.WSOCK32.dll_gethostbyname
test rax, rax
je 0x140043289
mov r9, qword [rax + 0x18]
xor ecx, ecx
cmp qword [r9], rcx
je 0x140043219
mov rax, r9
add rax, 8
inc ecx
cmp qword [rax], 0
jne 0x14004320d
cmp ebx, ecx
jle 0x14004322e
lea rdx, str.0.0.0.0
mov rcx, rdi
call fcn.140019150
jmp 0x140043282
mov rdx, qword [r9 + rbx*8 - 8]
lea rcx, [rsp + 0x2e0]
mov r8d, 4
call fcn.140019640
mov ecx, dword [rsp + 0x2e0]
call sub.WSOCK32.dll_inet_ntoa
lea rcx, [rsp + 0x20]
mov rdx, rax
call fcn.14001a380
lea rcx, [rsp + 0x20]
or edx, 0xffffffff
call fcn.140016860
mov rcx, rdi
mov rdx, rax
mov rbx, rax
call fcn.140019150
mov rcx, rbx
call fcn.140018ec8
call sub.WSOCK32.dll_WSACleanup
jmp 0x140043298
lea rdx, [0x14009a680]
mov rcx, rdi
call fcn.140019150
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x2c0
pop rdi
ret

Function at 0x140043310
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x230
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call fcn.140042f00
lea rcx, [rsp + 0x20]
call fcn.140019b5c
xor esi, esi
mov ebx, 0x5c
cmp rax, rsi
je 0x140043357
cmp word [rsp + rax*2 + 0x1e], bx
jne 0x140043357
mov word [rsp + rax*2 + 0x1e], si
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400433df
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x140043387
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, esi
je 0x14004338c
mov al, 1
jmp 0x1400433e5
cmp eax, 3
jne 0x1400433e3
lea rcx, [rsp + 0x20]
call fcn.1400172a0
mov edx, ebx
mov rcx, rax
mov rdi, rax
call fcn.14001c184
mov rcx, rdi
cmp rax, rsi
jne 0x1400433b2
call fcn.140018ec8
jmp 0x1400433e3
mov word [rax], si
call fcn.140043310
mov rcx, rdi
mov bl, al
call fcn.140018ec8
cmp bl, sil
je 0x1400433db
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, esi
setne bl
mov al, bl
jmp 0x1400433e5
test al, 0x10
jne 0x140043383
xor al, al
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x1400437b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400437c7
test al, 0x10
je 0x1400437c7
mov al, 1
jmp 0x1400437c9
xor al, al
add rsp, 0x28
ret
Function at 0x1400437d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x270
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14004380d
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
jne 0x140043800
or eax, 0xffffffff
jmp 0x14004380d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [rsp + 0x20]
add rsp, 0x270
pop rbx
ret

Function at 0x140043840
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x50
mov r12, rdx
lea rdx, [rsp + 0x30]
mov rbp, r8
mov rsi, rcx
call sub.VERSION.dll_GetFileVersionInfoSizeW
xor edi, edi
mov ebx, eax
cmp eax, edi
jne 0x140043878
xor al, al
jmp 0x140043a46
mov rcx, rbx
call fcn.140018cc8
mov r8d, ebx
xor edx, edx
mov r9, rax
mov rcx, rsi
mov r13, rax
call sub.VERSION.dll_GetFileVersionInfoW
mov rcx, rbp
call fcn.140019b5c
mov rcx, 0xffffffffffffffff
lea r11, [rax + 0x1a]
mov eax, 2
mul r11
cmovo rax, rcx
mov rcx, rax
call fcn.140018cc8
lea r15, [0x14009ad4c]
mov rdx, r15
mov rcx, rax
mov rsi, rax
call fcn.140019150
mov rdx, r15
mov rcx, rbp
call fcn.140019cfc
cmp eax, edi
je 0x140043974
lea rdx, str.StringFileInfo_
mov rcx, rsi
call fcn.140019124
mov rdx, r15
mov rcx, rbp
call fcn.14001a0ec
cmp rax, rdi
jne 0x140043969
lea r9, [rsp + 0x98]
lea r8, [rsp + 0x40]
lea rdx, str.VarFileInfoTranslation
mov rcx, r13
call sub.VERSION.dll_VerQueryValueW
cmp eax, edi
je 0x14004394f
mov rax, qword [rsp + 0x40]
lea rdx, [rsi + 0x20]
mov r8d, 4
mov ebx, dword [rax]
mov ecx, ebx
call fcn.140042a40
shr ebx, 0x10
lea rdx, [rsi + 0x28]
mov ecx, ebx
mov r8d, 4
call fcn.140042a40
jmp 0x14004395e
lea rdx, str.04090000
mov rcx, rsi
call fcn.140019124
mov rdx, r15
mov rcx, rsi
call fcn.140019124
mov rdx, rbp
mov rcx, rsi
call fcn.140019124
lea rdx, str.DefaultLangCodepage
mov rcx, rbp
call fcn.140019090
cmp eax, edi
jne 0x1400439b6
lea rdx, [rsi + 0x20]
mov r8d, 8
mov rcx, r12
call fcn.140019b78
mov rcx, r13
mov word [r12 + 0x10], di
call fcn.140018ec8
mov rcx, rsi
call fcn.140018ec8
mov al, 1
jmp 0x140043a46
lea r9, [rsp + 0x98]
lea r8, [rsp + 0x38]
mov rdx, rsi
mov rcx, r13
call sub.VERSION.dll_VerQueryValueW
cmp eax, edi
je 0x140043a33
mov rdx, r15
mov rcx, rbp
call fcn.140019cfc
cmp eax, edi
jne 0x140043a14
mov rax, qword [rsp + 0x38]
lea rdx, str._u._u._u._u
mov ecx, dword [rax + 0xc]
mov r8d, dword [rax + 8]
movzx eax, cx
shr ecx, 0x10
movzx r9d, r8w
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
mov rcx, r12
shr r8d, 0x10
call fcn.140019e48
jmp 0x140043a30
mov rdx, qword [rsp + 0x38]
mov r8d, 0x200
mov rcx, r12
call fcn.140019b78
mov word [r12 + 0x400], di
mov dil, 1
mov rcx, r13
call fcn.140018ec8
mov rcx, rsi
call fcn.140018ec8
mov al, dil
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140043c80
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1080
call fcn.140031e20
sub rsp, rax
mov rdi, r8
mov r14, rcx
mov r13, rdx
lea r8, [rsp + 0x10c8]
lea rcx, [rsp + 0x880]
mov edx, 0x800
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x140043dd3
mov esi, dword [rsp + 0x10c8]
mov rcx, r14
mov byte [rdi], 0
shr esi, 2
call fcn.140043c20
xor ebp, ebp
mov r12d, eax
test esi, esi
je 0x140043dd1
lea rbx, [rsp + 0x880]
cmp byte [rdi], 0
jne 0x140043dd1
mov r8d, dword [rbx]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
lea r9, [rsp + 0x10c8]
lea rdx, [rsp + 0x30]
mov rcx, rax
mov r8d, 8
mov r15, rax
call sub.PSAPI.DLL_EnumProcessModules
mov rdx, qword [rsp + 0x30]
lea r8, [rsp + 0x460]
mov r9d, 0x104
mov rcx, r15
call sub.PSAPI.DLL_GetModuleBaseNameW
test eax, eax
je 0x140043dba
lea rax, [rsp + 0x250]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x670]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x460]
mov qword [rsp + 0x20], rax
call fcn.14001a7ac
lea rdx, [rsp + 0x250]
lea rcx, [rsp + 0x40]
call fcn.140019124
lea rcx, [rsp + 0x40]
mov rdx, r14
call fcn.140019090
test eax, eax
jne 0x140043da7
mov eax, dword [rbx]
mov dword [r13], eax
jmp 0x140043db7
test r12d, r12d
je 0x140043dba
mov ecx, dword [rbx]
cmp r12d, ecx
jne 0x140043dba
mov dword [r13], ecx
mov byte [rdi], 1
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebp
add rbx, 4
cmp ebp, esi
jb 0x140043cfa
mov al, 1
lea r11, [rsp + 0x1080]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x140043e00
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x8a0
mov rbp, rdx
xor edx, edx
mov r12, rcx
lea ecx, [rdx + 2]
mov rbx, r8
mov dword [rsp + 0x30], 0x238
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea rdx, [rsp + 0x30]
mov rcx, rax
mov rdi, rax
call sub.KERNEL32.dll_Process32FirstW
mov rcx, r12
mov byte [rbx], 0
call fcn.140043c20
mov esi, eax
jmp 0x140043ed7
lea rdx, [rsp + 0x30]
mov rcx, rdi
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
jne 0x140043ee0
lea rax, [rsp + 0x480]
lea r9, [rsp + 0x270]
lea r8, [rsp + 0x690]
lea rdx, [rsp + 0x8d0]
lea rcx, [rsp + 0x5c]
mov qword [rsp + 0x20], rax
call fcn.14001a7ac
lea rdx, [rsp + 0x480]
lea rcx, [rsp + 0x270]
call fcn.140019124
lea rcx, [rsp + 0x270]
mov rdx, r12
call fcn.140019090
test eax, eax
jne 0x140043ec5
mov eax, dword [rsp + 0x38]
mov dword [rbp], eax
jmp 0x140043ed4
test esi, esi
je 0x140043ed7
mov ecx, dword [rsp + 0x38]
cmp esi, ecx
jne 0x140043ed7
mov dword [rbp], ecx
mov byte [rbx], 1
cmp byte [rbx], 0
je 0x140043e52
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x8a0]
mov al, 1
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x140043f10
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x40
xor r9d, r9d
xor r8d, r8d
mov rbx, rcx
lea edx, [r9 + 0x10]
call qword [sym.imp.USER32.dll_PostMessageW]
xor r9d, r9d
lea r11, [rsp + 0x60]
mov qword [rsp + 0x30], r11
lea edx, [r9 + 0x10]
xor r8d, r8d
mov rcx, rbx
mov dword [rsp + 0x28], 0x1f4
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
test rax, rax
jne 0x140043f92
lea rdx, [rsp + 0x58]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, dword [rsp + 0x58]
xor edx, edx
mov ecx, 0x1f0fff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
xor edx, edx
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x40
pop rbx
ret

Function at 0x140044320
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
test byte [rcx], 4
mov rbx, r8
mov rax, rdx
mov rdi, rcx
je 0x140044373
mov esi, dword [r8]
mov rcx, qword [rcx + 8]
and qword [rsp + 0x20], 0
mov r8d, esi
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14004439b
and dword [rbx], eax
mov rcx, qword [rdi + 8]
lea r9d, [rax + 1]
xor r8d, r8d
mov edx, esi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
xor al, al
jmp 0x14004439d
mov r9, qword [rcx + 8]
movsxd r8, dword [r8]
mov edx, 1
mov rcx, rax
call fcn.14001b5b8
mov dword [rbx], eax
mov rcx, qword [rdi + 8]
call fcn.14001b610
test eax, eax
je 0x14004439b
and dword [rbx], 0
jmp 0x14004436f
mov al, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1400444f0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov r9, qword [rcx + 8]
mov rax, rdx
mov rbx, rcx
movsxd r8, r8d
mov edx, 1
mov rcx, rax
call fcn.14001b0f4
mov rcx, qword [rbx + 8]
call fcn.14001b610
test eax, eax
sete al
add rsp, 0x20
pop rbx
ret
Function at 0x1400448d0
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov rdi, rdx
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rsi, rax
cmp rdi, rax
jne 0x140044903
mov eax, 1
jmp 0x140044a68
xor ebx, ebx
cmp rax, rbx
jne 0x14004491c
lea rcx, str.Shell_TrayWnd
xor edx, edx
call qword [sym.imp.USER32.dll_FindWindowW]
mov rsi, rax
mov rcx, rdi
call qword [sym.imp.USER32.dll_IsIconic]
cmp eax, ebx
je 0x140044937
mov edx, 9
mov rcx, rdi
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetForegroundWindow]
cmp eax, ebx
jne 0x140044a61
xor edx, edx
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor edx, edx
mov rcx, rdi
mov r12d, eax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, 1
mov ecx, r12d
mov edx, eax
mov r8d, esi
mov r13d, eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov r8d, esi
mov edx, ebp
mov ecx, r12d
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov r8d, esi
mov edx, r13d
mov ecx, ebp
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetForegroundWindow]
cmp eax, ebx
jne 0x140044a2f
xor edx, edx
lea esi, [rdx + 0x12]
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor r9d, r9d
xor r8d, r8d
mov edx, eax
mov cl, sil
call qword [sym.imp.USER32.dll_keybd_event]
xor edx, edx
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
lea r8d, [rsi - 0x10]
xor r9d, r9d
mov edx, eax
mov cl, sil
call qword [sym.imp.USER32.dll_keybd_event]
xor edx, edx
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
xor r9d, r9d
xor r8d, r8d
mov edx, eax
mov cl, sil
call qword [sym.imp.USER32.dll_keybd_event]
xor edx, edx
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
lea r8d, [rsi - 0x10]
xor r9d, r9d
mov edx, eax
mov cl, sil
call qword [sym.imp.USER32.dll_keybd_event]
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetForegroundWindow]
cmp eax, ebx
je 0x140044a34
lea ebx, [rsi - 0xe]
jmp 0x140044a34
mov ebx, 3
xor r8d, r8d
mov edx, r13d
mov ecx, r12d
call qword [sym.imp.USER32.dll_AttachThreadInput]
xor r8d, r8d
mov edx, ebp
mov ecx, r12d
call qword [sym.imp.USER32.dll_AttachThreadInput]
xor r8d, r8d
mov edx, r13d
mov ecx, ebp
call qword [sym.imp.USER32.dll_AttachThreadInput]
jmp 0x140044a66
mov ebx, 2
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
Function at 0x140044b20
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
test edx, edx
js 0x140044bab
push rbx
sub rsp, 0x30
mov ebx, edx
test edx, edx
jne 0x140044b37
xor ecx, ecx
jmp 0x140044ba0
cmp edx, 0xf
jae 0x140044b9e
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140044b9e
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r11, qword [rsp + 0x50]
sub r11, qword [rsp + 0x58]
pxor xmm1, xmm1
pxor xmm0, xmm0
cvtsi2sd xmm0, qword [rsp + 0x20]
cvtsi2sd xmm1, r11
divsd xmm1, xmm0
mulsd xmm1, qword [0x1400a2c88]
cvttsd2si rax, xmm1
cmp eax, ebx
jb 0x140044b56
jmp 0x140044ba6
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
add rsp, 0x30
pop rbx
ret

Function at 0x140044d50
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x120
xor ebx, ebx
mov rdi, rcx
cmp qword [rcx + 0x20], rbx
je 0x140044ddd
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetKeyboardState]
mov r11b, 0x80
cmp byte [rsp + 0x31], r11b
jne 0x140044d8d
bt dword [rdi + 0x18], 0xb
lea eax, [rbx + 8]
cmovae ebx, eax
cmp byte [rsp + 0x32], r11b
jne 0x140044d9e
bt dword [rdi + 0x18], 8
jb 0x140044d9e
or ebx, 1
mov eax, dword [rdi + 0x30]
cmp byte [rsp + rax + 0x20], r11b
je 0x140044daf
cmp byte [rsp + 0x30], r11b
jne 0x140044db9
bt dword [rdi + 0x18], 9
jb 0x140044db9
or ebx, 2
cmp byte [rsp + 0xc1], r11b
jne 0x140044dcd
bt dword [rdi + 0x18], 0xa
jb 0x140044dcd
or ebx, 4
cmp byte [rsp + 0x7b], r11b
jne 0x140044eb3
jmp 0x140044ea9
mov ecx, reloc.WSOCK32.dll_recvfrom
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov esi, 0x8000
test si, ax
jne 0x140044e02
mov ecx, reloc.WSOCK32.dll_recvfrom
call qword [sym.imp.USER32.dll_GetKeyState]
test si, ax
je 0x140044e0f
bt dword [rdi + 0x18], 0xb
mov eax, 8
cmovae ebx, eax
mov ecx, reloc.WSOCK32.dll_select
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test si, ax
jne 0x140044e2f
mov ecx, reloc.WSOCK32.dll_select
call qword [sym.imp.USER32.dll_GetKeyState]
test si, ax
je 0x140044e39
bt dword [rdi + 0x18], 8
jb 0x140044e39
or ebx, 1
mov ecx, dword [rdi + 0x30]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test si, ax
jne 0x140044e55
mov ecx, dword [rdi + 0x30]
call qword [sym.imp.USER32.dll_GetKeyState]
test si, ax
je 0x140044e5f
bt dword [rdi + 0x18], 9
jb 0x140044e5f
or ebx, 2
mov ecx, RegisterTypeLib
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test si, ax
jne 0x140044e7f
mov ecx, RegisterTypeLib
call qword [sym.imp.USER32.dll_GetKeyState]
test si, ax
je 0x140044e89
bt dword [rdi + 0x18], 0xa
jb 0x140044e89
or ebx, 4
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test si, ax
jne 0x140044ea9
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetKeyState]
test si, ax
je 0x140044eb3
bt dword [rdi + 0x18], 0xc
jb 0x140044eb3
or ebx, 0x10
lea r11, [rsp + 0x120]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140044ed0
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov r13b, r8b
mov rdi, rdx
mov rsi, rcx
test rdx, rdx
jne 0x140044eff
cmp byte [rcx + 9], dl
je 0x140044ff9
xor r12d, r12d
xor ebp, ebp
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
test r13b, r13b
je 0x140044fb0
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
lea r8d, [r12 + 1]
mov ecx, ebx
mov edx, eax
mov dword [0x1400c469c], eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov r13d, eax
test rdi, rdi
je 0x140044f89
lea rdx, [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, dword [0x1400c469c]
mov dword [0x1400c4698], eax
cmp ecx, eax
je 0x140044f77
lea r8d, [r12 + 1]
mov edx, eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov r12d, eax
mov eax, dword [0x1400c4698]
mov r8d, 1
mov edx, eax
mov ecx, ebx
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov ebp, eax
test r13d, r13d
jne 0x140044ff9
test r12d, r12d
jne 0x140044ff9
test ebp, ebp
jne 0x140044ff9
mov eax, dword [0x1400c469c]
cmp ebx, eax
jne 0x140044ff9
cmp eax, dword [0x1400c4698]
jne 0x140044ff9
and qword [rsi + 0x20], 0
jmp 0x140044ff9
test rdi, rdi
je 0x140044fe4
mov edx, dword [0x1400c4698]
xor r8d, r8d
mov ecx, eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov r11d, dword [0x1400c469c]
mov edx, dword [0x1400c4698]
cmp r11d, edx
je 0x140044feb
xor r8d, r8d
mov ecx, r11d
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov r11d, dword [0x1400c469c]
xor r8d, r8d
mov edx, r11d
mov ecx, ebx
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret

Function at 0x1400464b0
Capabilities:
Log keystrokes

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rdx
mov rcx, rdx
cmp r8b, 1
jne 0x14004650a
lea rax, [rsp + 0x68]
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 0x140046527
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 0x14004651d
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 0x140046d10
Capabilities:
Get token privileges

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, qword [rsp + 0x68]
mov rsi, r9
mov rbp, rdx
mov r8, qword [rsi]
xor r9d, r9d
mov rcx, rbp
lea edx, [r9 + 3]
mov qword [rax - 0x18], rdi
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
xor ebx, ebx
cmp eax, ebx
jne 0x140046d81
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140046d86
mov ecx, dword [rdi]
call fcn.140046c20
mov qword [rsi], rax
cmp rax, rbx
je 0x140046d86
mov r9d, dword [rdi]
lea edx, [rbx + 3]
mov r8, rax
mov rcx, rbp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp eax, ebx
je 0x140046d86
mov ebx, 1
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov al, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140046df0
Capabilities:
Create thread

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 r12
sub rsp, 0x40
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElement
mov rbp, r9
mov r12, r8
mov rdi, rdx
call fcn.140046c50
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 [rbp]
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 r11, qword [r12]
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8, [0x140046da0]
mov r9, rsi
xor edx, edx
xor ecx, ecx
mov qword [rsi + 8], r11
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r12
ret

Function at 0x140046ed0
Capabilities:
Impersonate user

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x70]
mov r10, r9
movsx r9d, byte [rsp + 0x60]
and r9d, 2
mov r11, r8
mov rcx, rdx
or r9d, 4
mov qword [rsp + 0x28], rax
xor ebx, ebx
mov r8, r10
mov rdx, r11
shr r9d, 1
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_LogonUserW]
cmp eax, ebx
mov rbx, qword [rsp + 0x40]
setne al
add rsp, 0x30
pop rdi
ret