joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004aed0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
push r15
sub rsp, 0x38
xor r15d, r15d
mov rsi, rdx
lea rdx, [rsp + 0x60]
mov r14, rcx
mov dword [rsp + 0x70], r15d
lea ebx, [r15 + 1]
cmp qword [rcx + 8], r15
je 0x14004af06
mov r8d, ebx
call fcn.14004a5d0
mov dword [rsp + 0x70], eax
jmp 0x14004af20
mov rcx, qword [rcx]
lea r9, [rsp + 0x70]
mov r8d, ebx
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x70]
cmp eax, 1
jne 0x14004afe8
movzx ecx, byte [rsp + 0x60]
test cl, cl
js 0x14004af46
mov byte [rsi], cl
mov rax, rbx
mov byte [rsi + 1], r15b
add rsp, 0x38
pop r15
pop r14
pop rsi
pop rbx
ret
movzx eax, cl
mov qword [rsp + 0x68], rbp
and al, 0xe0
mov qword [rsp + 0x30], rdi
cmp al, 0xc0
jne 0x14004af62
mov ebp, 2
mov edi, ebp
jmp 0x14004af89
movzx eax, cl
and al, 0xf0
cmp al, 0xe0
jne 0x14004af75
mov edi, 3
lea ebx, [rdi - 1]
jmp 0x14004af86
movzx eax, cl
and al, 0xf8
cmp al, 0xf0
jne 0x14004afde
mov edi, 4
lea ebx, [rdi - 1]
mov rbp, rdi
mov byte [rsi], cl
lea rdx, [rsi + 1]
cmp qword [r14 + 8], r15
je 0x14004afa3
lea r8, [rdi - 1]
mov rcx, r14
call fcn.14004a5d0
jmp 0x14004afc0
mov rcx, qword [r14]
lea r9, [rsp + 0x70]
mov r8d, ebx
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x70]
mov rdi, rbp
cmp eax, ebx
cmovne rdi, r15
mov rax, rdi
mov rbp, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x30]
add rsp, 0x38
pop r15
pop r14
pop rsi
pop rbx
ret
mov word [rsi], 0x3f
mov rax, rbx
jmp 0x14004afc9
xor eax, eax
add rsp, 0x38
pop r15
pop r14
pop rsi
pop rbx
ret

Function at 0x14004c764
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 ebx, edx
mov rdx, rcx
mov rcx, qword [0x140175440]
call fcn.14006641c
xor ebp, ebp
mov rsi, rax
test rax, rax
je 0x14004c7e4
mov rcx, qword [rax + 8]
mov rax, qword [rcx + 0x28]
test rax, rax
je 0x14004c7a9
mov edx, ebx
mov rcx, rsi
call rax
jmp 0x14004c7e4
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ecx, eax
mov edx, ebx
mov edi, eax
call fcn.140067450
lea r8d, [rdi + 1]
mov rdx, rax
mov rbx, rax
mov word [rax], bp
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, rbx
call fcn.1400255dc
sub edi, eax
mov ecx, edi
call fcn.140067500
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140057a94
Capabilities:
Get common file path
Get file system object information

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

Function at 0x140057b00
Capabilities:
Terminate thread

Disassembly:
test rcx, rcx
je 0x140057b94
push rbx
sub rsp, 0x20
cmp dword [0x14017459c], 1
mov rbx, rcx
je 0x140057b8f
lea rcx, [0x140174870]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [0x1401748a0]
and qword [0x1401748b0], 0
mov qword [0x1401748a8], rbx
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [0x140174898]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [0x1401748a0]
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x140057b82
mov rcx, qword [0x140174868]
xor edx, edx
mov dword [0x14017459c], 1
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140174870]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add rsp, 0x20
pop rbx
ret
Function at 0x140057ef0
Capabilities:
Create thread

Disassembly:
push rsi
sub rsp, 0x30
cmp dword [0x140174380], 0
jne 0x140057ffa
mov esi, 1
lea rcx, [0x140175540]
mov dword [0x140174380], esi
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov rcx, qword [0x14017044c]
lea edx, [rsi + 7]
mov r8d, 0x640
mov dword [0x140174384], 0x1f4
mov dword [0x140174388], r8d
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
movsxd r8, dword [0x140174384]
lea edx, [rsi + 7]
mov rcx, qword [0x14017044c]
add r8, r8
mov qword [0x140174860], rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
and dword [0x14017438c], 0
lea rcx, [0x140174870]
mov qword [0x140174858], rax
mov dword [0x140174598], 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
mov qword [0x140174898], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
cmp qword [0x140174898], 0
mov qword [0x1401748a0], rax
je 0x140057ff4
test rax, rax
je 0x140057ff4
and dword [0x14017459c], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r8, [0x140057818]
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x140174868], rax
jmp 0x140057ffa
mov dword [0x14017459c], esi
add rsp, 0x30
pop rsi
ret

Function at 0x140058000
Capabilities:
Terminate thread

Disassembly:
test rcx, rcx
je 0x1400580c5
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, rdx
mov rbx, rcx
test rax, rax
je 0x1400580bb
cmp dword [0x14017459c], 1
je 0x1400580bb
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 0x1f]
call qword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400580bb
lea rcx, [0x140174870]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [0x1401748a0]
mov qword [0x1401748a8], rbx
mov qword [0x1401748b0], rdi
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [0x140174898]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [0x1401748a0]
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1400580ae
mov rcx, qword [0x140174868]
xor edx, edx
mov dword [0x14017459c], 1
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140174870]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140058568
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 edi, 0x104
mov ecx, edi
call fcn.140067450
mov rdx, rax
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor ebp, ebp
movsxd rbx, eax
test eax, eax
je 0x1400585b7
lea edx, [rbx - 1]
movsxd r8, edx
lea eax, [rbp + 0x5c]
cmp word [rsi + r8*2], ax
je 0x1400585b7
mov word [rsi + rbx*2], ax
inc ebx
sub edi, ebx
mov ecx, edi
call fcn.140067500
movsxd rax, ebx
mov rbx, qword [rsp + 0x30]
mov word [rsi + rax*2], bp
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400585dc
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x14016ca60]
xor rax, rsp
mov qword [rbp + 0x380], rax
or rbx, 0xffffffffffffffff
xor edi, edi
test rcx, rcx
je 0x14005876d
cmp word [rcx], di
je 0x14005876d
mov rdx, rcx
mov r8d, 0x104
lea rcx, [rbp + 0x170]
call fcn.1400c9af0
lea rcx, [rbp + 0x170]
mov word [rbp + 0x378], di
call fcn.1400255dc
mov rdx, rax
cdqe
lea rcx, [rbp + rax*2 + 0x16e]
lea eax, [rdx - 2]
cmp eax, 1
ja 0x1400586a0
cmp word [rbp + 0x172], 0x3a
jne 0x1400586a0
cmp edx, 2
jne 0x14005867e
lea rdx, [0x14010b3d8]
lea rcx, [rbp + 0x170]
call fcn.1400c9b54
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x14005876d
mov rbx, 0xfffffffffffffffe
jmp 0x14005876d
cmp word [rcx], 0x5c
je 0x1400586ac
cmp word [rcx], 0x2f
jne 0x1400586b5
mov word [rcx], di
sub rcx, 2
jmp 0x1400586a0
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rcx, rax
cmp rax, rbx
je 0x1400586f6
test byte [rsp + 0x20], 0x10
je 0x1400586df
mov rbx, 0xfffffffffffffffe
jmp 0x1400586ee
mov ebx, dword [rsp + 0x3c]
mov eax, dword [rsp + 0x40]
shl rbx, 0x20
or rbx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x14005876d
movzx ecx, word [rbp + 0x170]
movzx eax, word [rbp + 0x172]
cmp cx, 0x5c
jne 0x14005870f
cmp ax, cx
je 0x140058725
cmp cx, 0x2f
jne 0x14005871a
cmp ax, cx
je 0x140058725
cmp cx, 0x2e
jne 0x14005876d
cmp ax, cx
jne 0x14005876d
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14005874c
not eax
mov rbx, 0xfffffffffffffffe
shr rax, 4
and eax, 1
or rbx, rax
jmp 0x14005876d
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov rcx, rbx
mov rbx, 0xfffffffffffffffe
cmp eax, 1
cmova rcx, rbx
mov rbx, rcx
mov rax, rbx
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.1400a9c10
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x140058794
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x14016ca60]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor ebx, ebx
test rcx, rcx
je 0x140058830
mov rdx, rcx
mov r8d, 0x104
lea rcx, [rsp + 0x20]
call fcn.1400c9af0
lea rcx, [rsp + 0x20]
mov word [rsp + 0x228], bx
call fcn.1400255dc
lea rcx, [rsp + 0x20]
lea rcx, [rcx + rax*2]
lea rax, [rsp + 0x20]
cmp rcx, rax
jbe 0x14005881c
lea rdx, [rcx - 2]
movzx eax, word [rdx]
sub ax, 0x20
cmp ax, 0x3c
ja 0x14005881c
movabs r8, 0x1000000000008001
bt r8, rax
jae 0x14005881c
lea rax, [rsp + 0x20]
mov rcx, rdx
cmp rdx, rax
ja 0x1400587ee
mov word [rcx], bx
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cdqe
jmp 0x140058832
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400a9c10
add rsp, 0x240
pop rbx
ret

Function at 0x14005884c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
xor eax, eax
test rcx, rcx
je 0x14005885f
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cdqe
add rsp, 0x28
ret
Function at 0x140058864
Capabilities:
Delete file
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14005888f
test dl, 2
je 0x140058882
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 0x140058891
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x1400589a4
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 [0x1401748c0]
xor r13d, r13d
mov rbp, r8
mov r14, rdx
mov rdi, rcx
mov esi, r13d
test rax, rax
jne 0x1400589f6
lea r8, [fcn.140058b1c]
mov ecx, 0x260
lea edx, [rax + 0x10]
call fcn.14006654c
mov qword [0x1401748c0], rax
mov rdx, rdi
mov rcx, rax
call fcn.14006647c
mov rbx, rax
test rax, rax
je 0x140058af9
test r14, r14
lea r15, [0x14010eeb0]
cmovne r15, r14
test rbp, rbp
je 0x140058a27
cmp word [rbp], r13w
jne 0x140058a2e
lea rbp, [0x140112de0]
mov rcx, r15
call fcn.1400255dc
mov rcx, rbp
mov r12, rax
call fcn.1400255dc
mov rcx, qword [0x14017044c]
add eax, 2
add eax, r12d
xor edx, edx
movsxd r8, eax
add r8, r8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
je 0x140058ae2
mov rdx, r15
mov rcx, rax
call fcn.1400c9b38
test r12d, r12d
je 0x140058a8f
movsxd rax, r12d
cmp word [r15 + rax*2 - 2], 0x5c
je 0x140058a8f
lea rdx, [0x14010b3d8]
mov rcx, r14
call fcn.1400c9b54
mov rdx, rbp
mov rcx, r14
call fcn.1400c9b54
lea rdx, [rbx + 0xc]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
je 0x140058ab6
mov dword [rbx + 8], r13d
jmp 0x140058ac8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x140058acb
mov dword [rbx + 8], 1
mov rsi, rbx
mov rcx, qword [0x14017044c]
mov r8, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rsi, rsi
jne 0x140058af9
mov rcx, qword [0x1401748c0]
cmp rdi, 0xffffffffffffffff
cmove rdi, rbx
mov rdx, rdi
call fcn.1400663b0
mov rbx, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x140058bbc
Capabilities:
Move file

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x140058bd4
test rdx, rdx
je 0x140058bd4
call qword [sym.imp.KERNEL32.dll_MoveFileW]
cdqe
jmp 0x140058bd6
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400591a4
Capabilities:
Copy file

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

Function at 0x1400591c8
Capabilities:
Set file attributes

Disassembly:
sub rsp, 0x28
xor eax, eax
test rcx, rcx
je 0x1400591d9
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cdqe
add rsp, 0x28
ret

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

Disassembly:
sub rsp, 0x28
cmp qword [0x1401748d0], 0
jne 0x140059332
lea rcx, [0x1401748d0]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x14005931e
movabs rax, 0x20c49ba5e353f7cf
lea rcx, [0x1401748d8]
imul qword [0x1401748d0]
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov qword [0x1401748d0], rdx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
cmp qword [0x1401748d0], 0
jne 0x140059332
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, eax
jmp 0x140059358
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x30]
sub rax, qword [0x1401748d8]
cqo
idiv qword [0x1401748d0]
add rsp, 0x28
ret
Function at 0x14005a304
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x14016ca60]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r14, rcx
xor ebx, ebx
call qword [sym.imp.USER32.dll_GetFocus]
lea rdx, str.PB_WindowID
mov rcx, r14
mov rdi, rax
xor ebp, ebp
call qword [sym.imp.USER32.dll_GetPropW]
lea r13d, [rbx + 9]
mov rsi, rax
test rax, rax
je 0x14005a3c3
lea rdx, [rsp + 0x20]
mov rcx, r14
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x14005a3c3
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x20], eax
jne 0x14005a3c3
mov rcx, qword [0x140175460]
lea rdx, [rsi - 1]
call fcn.14006641c
mov rbx, rax
lea ebp, [r13 - 8]
cmp dword [rax + 0x20], 0
jle 0x14005a3c3
mov rcx, qword [rax + 8]
xor edx, edx
movsxd rax, dword [rax + 0x20]
add rcx, 4
cmp word [rcx - 2], r13w
jne 0x14005a3b3
mov r8d, 0xfa01
cmp word [rcx], r8w
je 0x14005a3c1
inc rdx
add rcx, 6
cmp rdx, rax
jge 0x14005a3c3
jmp 0x14005a3a0
xor ebp, ebp
mov sil, pe_nt_image_headers64
test rdi, rdi
je 0x14005a493
mov ecx, r13d
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
je 0x14005a493
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x14005a493
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x14005a493
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x14005a493
mov r8d, 0x10
lea rdx, [rsp + 0x28]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetClassNameW]
test ebp, ebp
jne 0x14005a493
lea r8d, [rbp + 5]
lea rdx, str.RichE
lea rcx, [rsp + 0x28]
call fcn.140027054
test eax, eax
je 0x14005a463
lea r8d, [rbp + 4]
lea rdx, str.RICHE
lea rcx, [rsp + 0x28]
call fcn.140027054
test eax, eax
jne 0x14005a47e
xor r9d, r9d
xor r8d, r8d
mov edx, 0x44e
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageW]
bt rax, 0xb
jae 0x14005a4fa
lea rdx, str.Scintilla
lea rcx, [rsp + 0x28]
call fcn.14002c984
test eax, eax
je 0x14005a4fa
test r14, r14
je 0x14005a4d5
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x14005a4c8
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x14005a4c8
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
je 0x14005a4d5
mov edx, 1
mov rcx, r14
call fcn.14005a524
test rdi, rdi
je 0x14005a4ef
lea rdx, str.PB_Hotkey
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetPropW]
test rax, rax
jne 0x14005a4fa
test rbx, rbx
je 0x14005a4fa
mov rax, qword [rbx + 0x10]
jmp 0x14005a4fc
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400a9c10
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop rdi
ret

Function at 0x14005e7bc
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140175880], eax
add rsp, 0x28
ret
Function at 0x14005ed64
Capabilities:
Get file size
Read file on windows

Disassembly:
xor r8d, r8d
jmp 0x14005ed6c
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, rdx
xor ebx, ebx
mov r14, rcx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], pe_nt_image_headers64
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [rbx + 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x14005ee2f
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, qword [0x14017044c]
xor edx, edx
mov r8d, eax
mov edi, eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x14005ee26
lea r9, [rsp + 0x78]
mov qword [rsp + 0x20], rbx
mov r8d, edi
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14005ee14
cmp dword [rsp + 0x78], edi
jne 0x14005ee14
mov r8d, edi
mov rdx, rsi
mov rcx, r14
call fcn.14005e8fc
mov rbx, rax
mov rcx, qword [0x14017044c]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x68]
mov rax, rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret

Function at 0x140064d60
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov esi, 0x40
mov ecx, esi
call fcn.140067450
mov rdx, rbx
mov rcx, rax
mov rdi, rax
call fcn.1400a8ca0
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rdi + rdx*2], 0
jne 0x140064d93
sub esi, edx
mov ecx, esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140067500
Function at 0x1400655c0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push r12
push r13
push r15
sub rsp, 0x28
xor ebp, ebp
mov r13d, r9d
mov r15d, edx
mov r12d, ebp
cmp edx, 1
jl 0x14006572b
test rcx, rcx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rdi
mov edi, ebp
mov qword [rsp + 0x20], r14
lea r14, [0x14010eeb0]
mov rsi, r14
cmovne rsi, rcx
test r8, r8
cmovne r14, r8
movzx ecx, word [r14]
test cx, cx
je 0x1400656ba
cmp word [r14 + 2], di
je 0x1400656ba
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [r14 + rax*2], di
jne 0x140065630
mov rbx, rsi
movsxd rbp, eax
mov r8, rbp
mov rdx, r14
mov rcx, rbx
call fcn.140027054
test eax, eax
je 0x14006565e
cmp word [rbx], r12w
je 0x14006565e
add rbx, 2
jmp 0x140065640
inc edi
cmp edi, r15d
je 0x140065674
cmp word [rbx], r12w
je 0x14006567d
lea rbx, [rbx + rbp*2]
mov rsi, rbx
jmp 0x140065640
mov r12, rbx
sub r12, rsi
sar r12, 1
xor ebp, ebp
mov rcx, rbx
call fcn.140067560
mov r14, qword [rsp + 0x20]
movsxd rbx, r12d
test eax, eax
je 0x1400656f0
mov ecx, r13d
call fcn.140067610
lea r8, [rbx + rbx]
mov rdx, rsi
mov rcx, rax
call fcn.1400358d0
mov edx, r13d
mov ecx, r12d
call fcn.140067450
mov rdi, rax
jmp 0x14006570c
mov rbx, rsi
nop dword [rax]
movzx eax, word [rbx]
cmp ax, cx
je 0x1400656d3
test ax, ax
je 0x1400656d3
add rbx, 2
jmp 0x1400656c0
inc edi
cmp edi, r15d
je 0x1400656e5
test ax, ax
je 0x14006567f
lea rsi, [rbx + 2]
jmp 0x1400656ba
mov r12, rbx
sub r12, rsi
sar r12, 1
jmp 0x14006567f
mov edx, r13d
mov ecx, r12d
call fcn.140067450
mov r8, rbx
mov rdx, rsi
mov rcx, rax
mov rdi, rax
call fcn.1400c9af0
mov rsi, qword [rsp + 0x58]
mov word [rdi + rbx*2], bp
mov rdi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x50]
add rsp, 0x28
pop r15
pop r13
pop r12
pop rbp
ret
mov ecx, r13d
add rsp, 0x28
pop r15
pop r13
pop r12
pop rbp
jmp fcn.140067530

Function at 0x140066214
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x140174ac8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x140066295
mov r8, qword [0x140174ac0]
lea edx, [rax + 8]
mov rcx, qword [0x14017044c]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x140174ac8]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [0x140174ab8]
jmp 0x140066281
mov rdx, qword [rbx + 0x18]
test rdx, rdx
je 0x14006627e
mov rcx, qword [rbx + 0x10]
add rcx, rdi
call rdx
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14006626c
mov rdx, rdi
lea rcx, [0x140066178]
call fcn.1400a94f8
mov rbx, qword [rsp + 0x30]
lea rax, [rdi + rsi]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret