joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401241a0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x480
mov rsi, rcx
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, rax
call fcn.140131100
lea r9, [rsp + 0x20]
mov edx, 0xd
mov r8d, 0x104
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.USER32.dll_SendMessageW]
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_wcslen
dec eax
movsxd rcx, eax
cmp word [rsp + rcx*2 + 0x20], 0x5c
jne 0x140124206
xor eax, eax
mov word [rsp + rcx*2 + 0x20], ax
lea rdx, [rsp + 0x230]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14012424e
test byte [rsp + 0x230], 0x10
je 0x140124243
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140124698
mov rcx, qword [rbx]
xor edx, edx
call fcn.140130fb0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x140124269
mov rdx, qword [rbx + 0x28]
lea rcx, [rsp + 0x20]
call fcn.1400e60fd
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140124698
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_wcslen
lea rcx, [rsp + 0x20]
mov rbx, rax
call sub.msvcrt.dll_wcslen
mov r9, rbx
mov edx, 0xb1
mov rcx, rsi
mov r8, rax
call qword [sym.imp.USER32.dll_SendMessageW]
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140132038
Capabilities:
Get common file path
Get file system object information

Disassembly:
push rbx
sub rsp, 0x500
mov ebx, ecx
lea rcx, [rsp + 0x30]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
bts ebx, 0xe
lea r8, [rsp + 0x240]
lea rcx, [rsp + 0x30]
mov r9d, 0x2b8
xor edx, edx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
add rsp, 0x500
pop rbx
ret

Function at 0x140132080
Capabilities:
Terminate thread

Disassembly:
test rcx, rcx
je 0x140132114
push rbx
sub rsp, 0x20
cmp dword [0x1403665dc], 1
mov rbx, rcx
je 0x14013210f
lea rcx, [0x1403668b0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [0x1403668e0]
and qword [0x1403668f0], 0
mov qword [0x1403668e8], rbx
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [0x1403668d8]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [0x1403668e0]
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x140132102
mov rcx, qword [0x1403668a8]
xor edx, edx
mov dword [0x1403665dc], 1
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x1403668b0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add rsp, 0x20
pop rbx
ret
Function at 0x140132460
Capabilities:
Create thread

Disassembly:
push rsi
sub rsp, 0x30
cmp dword [0x1403663c0], 0
jne 0x14013256a
lea rcx, [0x140368a00]
mov esi, 1
mov dword [0x1403663c0], esi
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov rcx, qword [0x140360a30]
mov r8d, 0x640
lea edx, [rsi + 7]
mov dword [0x1403663c4], 0x1f4
mov dword [0x1403663c8], r8d
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
movsxd r8, dword [0x1403663c4]
mov rcx, qword [0x140360a30]
lea edx, [rsi + 7]
add r8, r8
mov qword [0x1403668a0], rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
and dword [0x1403663cc], 0
lea rcx, [0x1403668b0]
mov qword [0x140366898], rax
mov dword [0x1403665d8], esi
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor r9d, r9d
xor r8d, r8d
mov edx, esi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
xor r9d, r9d
xor r8d, r8d
mov edx, esi
xor ecx, ecx
mov qword [0x1403668d8], rax
call qword [sym.imp.KERNEL32.dll_CreateEventW]
cmp qword [0x1403668d8], 0
mov qword [0x1403668e0], rax
je 0x140132564
test rax, rax
je 0x140132564
and dword [0x1403665dc], 0
lea rax, [rsp + 0x40]
lea r8, [0x140131db4]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1403668a8], rax
jmp 0x14013256a
mov dword [0x1403665dc], esi
add rsp, 0x30
pop rsi
ret

Function at 0x14013260c
Capabilities:
Terminate thread

Disassembly:
test rcx, rcx
je 0x1401326d1
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, rdx
mov rbx, rcx
test rax, rax
je 0x1401326c7
cmp dword [0x1403665dc], 1
je 0x1401326c7
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 0x1f]
call qword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1401326c7
lea rcx, [0x1403668b0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [0x1403668e0]
mov qword [0x1403668e8], rbx
mov qword [0x1403668f0], rdi
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [0x1403668d8]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [0x1403668e0]
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1401326ba
mov rcx, qword [0x1403668a8]
xor edx, edx
mov dword [0x1403665dc], 1
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x1403668b0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1401332ec
Capabilities:
Get common file path

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, 0x20
mov edx, ecx
mov ebx, 0x104
mov ecx, ebx
call fcn.1401544c0
mov ecx, ebx
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rcx, str.Kernel32.DLL
mov esi, eax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor r14d, r14d
mov rbp, rax
test rax, rax
je 0x140133366
lea rdx, str.GetLongPathNameW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14013335d
mov r8d, ebx
mov rdx, rdi
mov rcx, rdi
call rax
mov esi, eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
sub ebx, esi
mov ecx, ebx
call fcn.1401545c0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
movsxd rax, esi
mov rsi, qword [rsp + 0x40]
mov word [rdi + rax*2], r14w
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x140133394
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x380]
sub rsp, 0x480
or rbx, 0xffffffffffffffff
xor edi, edi
test rcx, rcx
je 0x1401334f6
cmp word [rcx], di
je 0x1401334f6
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call sub.msvcrt.dll_wcsncpy
lea rcx, [rsp + 0x20]
mov word [rbp + 0x128], di
call sub.msvcrt.dll_wcslen
mov rdx, rax
cdqe
lea rcx, [rsp + rax*2 + 0x1e]
lea eax, [rdx - 2]
cmp eax, 1
ja 0x140133433
cmp word [rsp + 0x22], 0x3a
jne 0x140133433
cmp edx, 2
jne 0x14013341a
lea rdx, [0x140233664]
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_wcscat
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1401334f6
jmp 0x1401334ce
cmp word [rcx], 0x5c
je 0x14013343f
cmp word [rcx], 0x2f
jne 0x140133448
mov word [rcx], di
sub rcx, 2
jmp 0x140133433
lea rdx, [rbp + 0x130]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rcx, rax
cmp rax, rbx
je 0x14013348f
test byte [rbp + 0x130], 0x10
je 0x140133474
mov rbx, 0xfffffffffffffffe
jmp 0x140133487
mov ebx, dword [rbp + 0x14c]
mov eax, dword [rbp + 0x150]
shl rbx, 0x20
or rbx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x1401334f6
movzx ecx, word [rsp + 0x20]
movzx eax, word [rsp + 0x22]
cmp cx, 0x5c
jne 0x1401334a4
cmp ax, cx
je 0x1401334ba
cmp cx, 0x2f
jne 0x1401334af
cmp ax, cx
je 0x1401334ba
cmp cx, 0x2e
jne 0x1401334f6
cmp ax, cx
jne 0x1401334f6
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401334d7
test al, 0x10
je 0x1401334f6
mov rbx, 0xfffffffffffffffe
jmp 0x1401334f6
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov rcx, rbx
mov rbx, 0xfffffffffffffffe
cmp eax, 1
cmova rcx, rbx
mov rbx, rcx
lea r11, [rsp + 0x480]
mov rax, rbx
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x140133680
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x230
xor ebx, ebx
test rcx, rcx
je 0x14013370a
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call sub.msvcrt.dll_wcsncpy
lea rcx, [rsp + 0x20]
mov word [rsp + 0x228], bx
call sub.msvcrt.dll_wcslen
lea rcx, [rsp + 0x20]
lea rcx, [rcx + rax*2]
lea rax, [rsp + 0x20]
cmp rcx, rax
jbe 0x1401336f6
lea rdx, [rcx - 2]
movzx eax, word [rdx]
sub ax, 0x20
cmp ax, 0x3c
ja 0x1401336f6
movabs r8, 0x1000000000008001
bt r8, rax
jae 0x1401336f6
lea rax, [rsp + 0x20]
mov rcx, rdx
cmp rdx, rax
ja 0x1401336c8
mov word [rcx], bx
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cdqe
jmp 0x14013370c
xor eax, eax
add rsp, 0x230
pop rbx
ret

Function at 0x14013382c
Capabilities:
Delete file
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x140133857
test dl, 2
je 0x14013384a
mov edx, pe_nt_image_headers64
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cdqe
jmp 0x140133859
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x140133860
Capabilities:
Copy file

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x14013387b
test rdx, rdx
je 0x14013387b
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
cdqe
jmp 0x14013387d
xor eax, eax
add rsp, 0x28
ret

Function at 0x1401338a0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edx, ecx
mov esi, 0x104
mov ecx, esi
call fcn.1401544c0
mov ecx, esi
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor ebp, ebp
movsxd rbx, eax
test eax, eax
je 0x1401338e9
lea ecx, [rbp + 0x5c]
cmp word [rdi + rbx*2 - 2], cx
je 0x1401338e9
mov word [rdi + rbx*2], cx
inc ebx
sub esi, ebx
mov ecx, esi
call fcn.1401545c0
mov rsi, qword [rsp + 0x40]
movsxd rax, ebx
mov rbx, qword [rsp + 0x30]
mov word [rdi + rax*2], bp
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140133a18
Capabilities:
Check if file exists

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
sub rsp, 0x20
mov rax, qword [0x140366908]
xor r13d, r13d
mov rsi, r8
mov r15, rdx
mov rdi, rcx
mov r14d, r13d
test rax, rax
jne 0x140133a6a
lea r8, [fcn.140133b8c]
lea edx, [rax + 0x10]
mov ecx, 0x260
call fcn.140153084
mov qword [0x140366908], rax
mov rdx, rdi
mov rcx, rax
call fcn.140152fe4
mov rbx, rax
test rax, rax
je 0x140133b6b
test r15, r15
lea rbp, [0x14021d568]
cmovne rbp, r15
test rsi, rsi
je 0x140133a9a
cmp word [rsi], r13w
jne 0x140133aa1
lea rsi, [0x1402337b8]
mov rcx, rbp
call sub.msvcrt.dll_wcslen
mov rcx, rsi
mov r12, rax
call sub.msvcrt.dll_wcslen
mov rcx, qword [0x140360a30]
add eax, 2
xor edx, edx
add eax, r12d
movsxd r8, eax
add r8, r8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15, rax
test rax, rax
je 0x140133b54
mov rdx, rbp
mov rcx, rax
call fcn.1400e60fd
test r12d, r12d
je 0x140133b01
movsxd rax, r12d
cmp word [rbp + rax*2 - 2], 0x5c
je 0x140133b01
lea rdx, [0x140233664]
mov rcx, r15
call sub.msvcrt.dll_wcscat
mov rdx, rsi
mov rcx, r15
call sub.msvcrt.dll_wcscat
lea rdx, [rbx + 0xc]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
je 0x140133b28
mov dword [rbx + 8], r13d
jmp 0x140133b3a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x140133b3d
mov dword [rbx + 8], 1
mov r14, rbx
mov rcx, qword [0x140360a30]
mov r8, r15
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test r14, r14
jne 0x140133b6b
mov rcx, qword [0x140366908]
cmp rdi, 0xffffffffffffffff
cmove rdi, rbx
mov rdx, rdi
call fcn.140152f7c
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rax, r14
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x140133d08
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x140133d1b
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cdqe
jmp 0x140133d1d
xor eax, eax
add rsp, 0x28
ret

Function at 0x140133de0
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x30
lea rax, [r11 + 0x10]
mov rdi, rdx
mov edx, ecx
xor esi, esi
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov qword [r11 - 0x18], rax
mov ebx, esi
call qword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
jne 0x140133e51
mov rcx, qword [rsp + 0x48]
mov rdx, rdi
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x140133e46
mov rcx, rdi
call sub.msvcrt.dll_wcslen
mov rbx, rax
test eax, eax
je 0x140133e46
lea ecx, [rsi + 0x5c]
cdqe
cmp word [rdi + rax*2 - 2], cx
je 0x140133e46
mov word [rdi + rax*2], cx
inc ebx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
movsxd rax, ebx
mov word [rdi + rax*2], si
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140133ed0
Capabilities:
Check os version

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x298]
sub rsp, 0x380
lea rcx, [rbp + 0x40]
mov ebx, 0xc8
xor r14d, r14d
xor edi, edi
xor r15d, r15d
mov dword [rbp + 0x40], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1401340ab
mov eax, dword [rbp + 0x50]
dec eax
je 0x140134089
dec eax
jne 0x1401340ab
lea r8d, [rbx + 0x54]
lea rcx, [rsp + 0x20]
xor edx, edx
xor esi, esi
call fcn.1400e6121
lea rcx, [0x140233ee0]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140133f7c
lea rdx, str.RtlGetVersion
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140133f7c
lea rcx, [rsp + 0x20]
call rax
xor ecx, ecx
test eax, eax
sete cl
jmp 0x140133f7e
xor ecx, ecx
test ecx, ecx
je 0x140133f9e
mov r14d, dword [rsp + 0x24]
mov edi, dword [rsp + 0x28]
mov r15d, dword [rsp + 0x2c]
mov eax, 1
cmp byte [rbp + 0x3a], al
jne 0x140133fce
mov esi, eax
jmp 0x140133fce
lea rcx, [rbp + 0x160]
mov dword [rbp + 0x160], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x140133fce
mov r14d, dword [rbp + 0x44]
mov edi, dword [rbp + 0x48]
mov eax, 1
cmp byte [rbp + 0x27a], al
cmove esi, eax
sub r14d, 3
je 0x140134082
dec r14d
je 0x14013407b
dec r14d
je 0x140134055
dec r14d
je 0x140134011
cmp r14d, 4
jne 0x1401340ab
test edi, edi
jne 0x1401340ab
cmp r15d, 0x55f0
sbb ebx, ebx
and ebx, 0xfffffff6
add ebx, 0x78
jmp 0x1401340ab
test edi, edi
je 0x140134049
dec edi
je 0x14013403d
dec edi
je 0x140134031
dec edi
jne 0x1401340ab
neg esi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x69
jmp 0x1401340ab
neg esi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x5f
jmp 0x1401340ab
neg esi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x55
jmp 0x1401340ab
neg esi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x4b
jmp 0x1401340ab
test edi, edi
je 0x140134074
dec edi
je 0x14013406d
dec edi
jne 0x1401340ab
neg esi
sbb ebx, ebx
and ebx, 0xfffffffb
add ebx, 0x41
jmp 0x1401340ab
mov ebx, 0x3c
jmp 0x1401340ab
mov ebx, 0x32
jmp 0x1401340ab
mov ebx, 0x14
jmp 0x1401340ab
mov ebx, 5
jmp 0x1401340ab
mov eax, dword [rbp + 0x48]
test eax, eax
je 0x1401340a6
cmp eax, 0xa
je 0x14013409f
cmp eax, 0x5a
jne 0x1401340ab
lea ebx, [rax - 0x32]
jmp 0x1401340ab
mov ebx, 0x1e
jmp 0x1401340ab
mov ebx, 0xa
lea r11, [rsp + 0x380]
movsxd rax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140134100
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub rsp, 0x28
cmp qword [0x140366918], 0
jne 0x140134166
lea rcx, [0x140366918]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x140134152
movabs rax, 0x20c49ba5e353f7cf
lea rcx, [0x140366920]
imul qword [0x140366918]
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov qword [0x140366918], rdx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
cmp qword [0x140366918], 0
jne 0x140134166
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, eax
jmp 0x14013418c
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x30]
sub rax, qword [0x140366920]
cqo
idiv qword [0x140366918]
add rsp, 0x28
ret

Function at 0x140134518
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov rdx, rcx
mov rcx, qword [0x140368340]
xor ebp, ebp
mov ebx, ebp
call fcn.140152fb8
mov rdi, rax
test rax, rax
je 0x140134554
mov rcx, qword [rax]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ebx, eax
mov edx, esi
mov ecx, ebx
call fcn.1401544c0
test ebx, ebx
je 0x140134573
mov rcx, qword [rdi]
lea r8d, [rbx + 1]
mov rdx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x140134576
mov word [rax], bp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140136550
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov r14, rcx
xor ebx, ebx
call qword [sym.imp.USER32.dll_GetFocus]
lea rdx, str.PB_WindowID
mov rcx, r14
xor ebp, ebp
mov rdi, rax
call qword [sym.imp.USER32.dll_GetPropW]
mov rsi, rax
lea eax, [rbx + 9]
test rsi, rsi
je 0x140136612
lea rdx, [rsp + 0x68]
mov rcx, r14
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x140136753
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x68], eax
jne 0x140136753
mov rcx, qword [0x140368340]
lea rdx, [rsi - 1]
call fcn.140152fb8
mov ebp, 1
cmp dword [rax + 0x20], 0
mov rbx, rax
jle 0x140136753
mov rax, qword [rax + 8]
movsxd r8, dword [rbx + 0x20]
xor edx, edx
xor ecx, ecx
lea r10d, [rbp + 8]
cmp word [rcx + rax + 2], r10w
jne 0x140136603
mov r9d, 0xfa01
cmp word [rcx + rax + 4], r9w
je 0x14013674c
inc rdx
add rcx, 6
cmp rdx, r8
jl 0x1401365e9
mov eax, r10d
mov sil, pe_nt_image_headers64
test rdi, rdi
je 0x1401366e5
mov ecx, eax
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
je 0x1401366e5
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x1401366e5
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x1401366e5
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x1401366e5
lea rdx, [rsp + 0x20]
mov r8d, 0x10
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetClassNameW]
test ebp, ebp
jne 0x1401366e5
lea r8d, [rbp + 5]
lea rdx, str.RichE
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_wcsncmp
test eax, eax
je 0x1401366b1
lea r8d, [rbp + 4]
lea rdx, str.RICHE
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_wcsncmp
test eax, eax
jne 0x1401366d0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x44e
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageW]
bt rax, 0xb
jae 0x14013675d
lea rdx, [0x14021e330]
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x14013675d
test r14, r14
je 0x140136727
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x14013671a
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x14013671a
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
je 0x140136727
mov edx, 1
mov rcx, r14
call fcn.140136774
test rdi, rdi
je 0x140136741
lea rdx, str.PB_Hotkey
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetPropW]
test rax, rax
jne 0x14013675d
test rbx, rbx
je 0x14013675d
mov rax, qword [rbx + 0x10]
jmp 0x14013675f
xor ebp, ebp
jmp 0x14013660f
mov eax, 9
jmp 0x140136612
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x140138e74
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
xor ecx, ecx
xor ebx, ebx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140138f0d
lea rsi, [0x14021d568]
test rdi, rdi
cmovne rsi, rdi
mov rcx, rsi
call sub.msvcrt.dll_wcslen
mov ecx, 0x2002
inc eax
movsxd rbp, eax
add rbp, rbp
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
je 0x140138f07
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x140138f07
mov r8, rbp
mov rdx, rsi
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea ecx, [rbx + 0xd]
mov rdx, rdi
call qword [sym.imp.USER32.dll_SetClipboardData]
mov rbx, rax
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140138f28
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov ebp, ecx
xor r14d, r14d
xor ecx, ecx
mov ebx, r14d
mov esi, r14d
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140138f87
lea ecx, [r14 + 0xd]
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rdi, rax
test rax, rax
je 0x140138f7f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rbx, rax
test rax, rax
je 0x140138f7f
mov rcx, rax
call sub.msvcrt.dll_wcslen
mov rsi, rax
call qword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x140138f8c
mov rdi, qword [rsp + 0x48]
mov edx, ebp
mov ecx, esi
call fcn.1401544c0
test rbx, rbx
je 0x140138fb9
lea ecx, [rsi + 1]
mov rdx, rbx
movsxd r8, ecx
mov rcx, rax
add r8, r8
call sub.msvcrt.dll_memcpy
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x140138fbd
mov word [rax], r14w
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x140139524
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
test rcx, rcx
je 0x140139599
call qword [rcx + 0xb0]
mov edx, dword [rbx + 0xf4]
mov dword [rbx + 0x108], edx
mov edx, dword [rbx + 0xf8]
mov rdi, rax
mov dword [rbx + 0x10c], edx
test rax, rax
jne 0x140139599
mov rax, qword [rbx + 0xe0]
test rax, rax
je 0x140139571
xor edx, edx
mov rcx, rbx
call rax
mov rcx, qword [0x140360a30]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [0x140368c20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
and qword [0x140368c40], 0
mov rax, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret