joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14008bef0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, ecx
mov rbp, r8
mov rsi, rdx
and ecx, 7
je 0x14008bf1a
mov eax, 8
sub eax, ecx
add edi, eax
mov rbx, qword [0x1408961f8]
test rbx, rbx
jne 0x14008bf60
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, qword [0x140893d68]
lea edx, [rbx + 8]
movsxd rdi, edi
mov r8, rdi
mov dword [0x140896200], eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x140896200]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [0x1408961f8]
jmp 0x14008bf63
movsxd rdi, edi
mov ecx, dword [0x140896200]
lea rax, [rdi + rbx]
mov qword [0x1408961f8], rax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r9, qword [0x1408961f8]
mov edx, 8
mov rcx, qword [0x140893d68]
mov r8, rax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [0x140896200]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test rsi, rsi
jne 0x14008bfb2
test rbp, rbp
je 0x14008bfd9
mov edx, 0x28
lea rcx, [0x1408961f0]
call fcn.1400991f0
mov qword [rax], rbx
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rbp
test rsi, rsi
je 0x14008bfd9
lea rcx, [rdi + rbx]
call rsi
mov rbp, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14008c130
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov r14, rcx
movsxd rbx, edx
mov ecx, dword [0x140892448]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, qword [0x140896208]
xor edx, edx
mov rsi, rax
mov rax, qword [r14]
mov r8d, dword [rsi + 0x10]
sub r8d, ebx
movsxd rdi, r8d
lea r9, [rdi + 0xa]
test rax, rax
jne 0x14008c184
mov r8, r9
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
jmp 0x14008c18d
mov r8, rax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov qword [r14], rax
mov rcx, rax
mov rdx, qword [rsi]
shr rdi, 1
add rdx, rbx
mov r8d, edi
call fcn.14010d040
mov rdi, qword [rsp + 0x40]
mov qword [rsi + 0x10], rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret

Function at 0x14008c200
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140892448]
cmp ecx, 0xffffffff
jne 0x14008c216
call fcn.14008c420
jmp 0x14008c226
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x14008c245
call fcn.14010d4e0
mov ecx, dword [0x140892448]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
lea rcx, [0x14008c1c0]
add rsp, 0x28
jmp fcn.14010d2a4
add rsp, 0x28
ret

Function at 0x14008c400
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140892448]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add qword [rax + 0x10], 2
add rsp, 0x28
ret
Function at 0x14008c420
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
sub rsp, 0x28
xor r8d, r8d
mov edx, 0x1000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x140896208], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140892448], eax
add rsp, 0x28
jmp fcn.14010d4e0

Function at 0x14008c450
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140892448]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, qword [rax + 0x338]
mov rcx, qword [rax + 0x10]
mov qword [rax + rdx*8 + 0x18], rcx
inc qword [rax + 0x338]
add rsp, 0x28
ret

Function at 0x14008c480
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x140892448]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
dec qword [rax + 0x338]
mov rcx, qword [rax + 0x338]
mov rbx, qword [rax + rcx*8 + 0x18]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14008c4d0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140892448]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
dec qword [rax + 0x338]
mov rcx, qword [rax + 0x338]
mov rax, qword [rax + rcx*8 + 0x18]
mov qword [rdx + 0x10], rax
add rsp, 0x28
ret

Function at 0x14008c500
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140892448]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
dec qword [rax + 0x338]
mov rcx, qword [rax + 0x338]
mov rdx, qword [rax + rcx*8 + 0x18]
mov qword [rax + 0x10], rdx
mov rax, qword [rax]
add rax, rdx
add rsp, 0x28
ret

Function at 0x14008c540
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140892448]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
dec qword [rax + 0x338]
mov rcx, qword [rax + 0x338]
mov rax, qword [rax + rcx*8 + 0x18]
add rax, qword [rdx]
add rsp, 0x28
ret

Function at 0x14008c570
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x140892448]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebx
mov qword [rax + 0x10], rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
Function at 0x1400986c0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
movsxd rbp, ecx
mov esi, edx
mov ecx, dword [0x140892448]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
cmp esi, 0xffffffff
jne 0x1400986f0
mov esi, dword [rax + 0x10]
mov eax, dword [rax + 0x10]
mov r8, qword [rbx + 8]
lea edx, [rax + rbp*2]
movsxd rax, edx
lea rcx, [r8 - 4]
cmp rax, rcx
jl 0x140098711
lea eax, [rdx + 0x4000]
movsxd r9, eax
jmp 0x140098723
mov eax, 0x100000
cmp r8, rax
jle 0x140098740
cmp edx, eax
cmovl edx, eax
mov r9d, edx
mov r8, qword [rbx]
xor edx, edx
mov qword [rbx + 8], r9
add r9, 0xa
mov rcx, qword [0x140896208]
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov qword [rbx], rax
mov rax, qword [rbx]
movsxd rdx, esi
mov rsi, qword [rsp + 0x40]
add rax, rdx
lea rcx, [rdx + rbp*2]
mov rbp, qword [rsp + 0x38]
mov qword [rbx + 0x10], rcx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400992c0
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x14009933c
movsxd rdx, ecx
lea rcx, [0x1400993c4]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rbx, qword [0x1408962b8]
test rbx, rbx
je 0x1400993af
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140099332
cmp byte [rbx + 0x20], 0
je 0x140099332
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov dword [rsp + 0x30], 3
xor r8d, r8d
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea rdx, [r9 - 2]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rbx, rdi
test rdi, rdi
jne 0x1400992f8
jmp 0x1400993af
mov rbx, qword [0x1408962b8]
test rbx, rbx
je 0x1400993af
mov rsi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x1400993a7
cmp byte [rbx + 0x21], 0
je 0x14009936b
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.dll_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x140099397
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov dword [rsp + 0x30], 3
xor r8d, r8d
and dword [rsp + 0x28], 0
or rdx, 0xffffffffffffffff
and dword [rsp + 0x20], 0
call qword [sym.imp.USER32.dll_SetWindowPos]
lea rdx, [rbx + 0x10]
lea rcx, [0x1408962b8]
call fcn.140099234
mov rbx, rsi
test rsi, rsi
jne 0x140099348
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x1400994b0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
mov ecx, dword [0x140892448]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
lea ecx, [rbx + rbx]
movsxd rdx, ecx
sub qword [rax + 0x10], rdx
add rsp, 0x20
pop rbx
ret
Function at 0x1400a44c0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
movsxd rbx, ecx
mov ecx, dword [0x140892448]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor edx, edx
mov qword [rax + 0x10], rbx
mov rax, qword [rax]
mov word [rbx + rax], dx
add rsp, 0x20
pop rbx
ret
Function at 0x1400bf310
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x140892448]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, qword [rax]
cmp rbx, rcx
jb 0x1400bf344
mov rdx, qword [rax + 0x10]
add rdx, rcx
cmp rbx, rdx
ja 0x1400bf344
sub ebx, ecx
lea eax, [rbx + 1]
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x1400bf350
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
movsxd rbx, ecx
mov ecx, dword [0x140892448]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
dec rbx
mov rax, qword [rax]
add rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x1400dae60
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push r14
push r15
sub rsp, 0x30
mov rbx, r9
mov r15, r8
mov ebp, edx
mov r14, rcx
test rcx, rcx
je 0x1400db07a
test rbx, rbx
je 0x1400db07a
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rdi
mov rdi, qword [rsp + 0x78]
test rdi, rdi
je 0x1400daeb4
mov rax, qword [rdi + 8]
test rax, rax
je 0x1400daec6
mov rdx, qword [rdi]
mov ecx, gethostbyname
call rax
jmp 0x1400daebe
mov ecx, gethostbyname
call fcn.140112868
mov rsi, rax
test rax, rax
jne 0x1400daee4
mov eax, 0xfffffffc
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rbp
ret
mov rax, qword [rsp + 0x70]
mov qword [rsi + 8], rax
lea rax, [rsi + 0x10]
mov qword [rsi], rbx
xor ebx, ebx
test rax, rax
je 0x1400daf5d
test rdi, rdi
je 0x1400daf39
cmp qword [rdi], rbx
jne 0x1400daf17
cmp qword [rdi + 0x18], rbx
jne 0x1400daf1d
cmp qword [rdi + 8], rbx
jne 0x1400daf17
cmp qword [rdi + 0x10], rbx
je 0x1400daf39
cmp qword [rdi + 0x18], rbx
je 0x1400daf5d
cmp qword [rdi + 8], rbx
jne 0x1400daf29
cmp qword [rdi + 0x10], rbx
je 0x1400daf5d
movups xmm0, xmmword [rdi]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rax + 0x10], xmm1
jmp 0x1400daf5d
mov qword [rax], rbx
lea rcx, [0x1400b4c40]
mov qword [rax + 8], rcx
lea rcx, [0x1400dac60]
mov qword [rax + 0x10], rcx
lea rcx, [fcn.1400995c0]
mov qword [rax + 0x18], rcx
lea rax, [rsp + 0x50]
mov r9, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400dae00]
mov rdx, r15
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [r14], rax
mov r8, rax
test rax, rax
jne 0x1400dafcf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400dace0
mov ebx, eax
test eax, eax
je 0x1400db073
test rdi, rdi
je 0x1400dafc0
mov r8, qword [rdi + 0x18]
test r8, r8
je 0x1400dafc8
mov rdx, qword [rdi]
mov rcx, rsi
call r8
mov eax, ebx
jmp 0x1400daecb
mov rcx, rsi
call fcn.140102fa0
mov eax, ebx
jmp 0x1400daecb
lea eax, [rbp + 5]
cmp eax, 6
ja case.0x1400dafee.2
lea rdx, [0x140000000]
cdqe
mov ecx, dword [rdx + rax*4 + 0xdb090]
add rcx, rdx
jmp rcx
mov ebx, 0xfffffff1
mov rcx, r8
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor eax, eax
jmp 0x1400daecb
mov ebx, 0xfffffffe
mov rcx, r8
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor eax, eax
jmp 0x1400daecb
mov ebx, 0xffffffff
mov rcx, r8
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor eax, eax
jmp 0x1400daecb
mov ebx, 1
mov rcx, r8
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor eax, eax
jmp 0x1400daecb
mov ebx, 2
mov rcx, r8
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor eax, eax
jmp 0x1400daecb
mov ebx, SafeArrayGetElemsize
mov edx, ebx
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor eax, eax
jmp 0x1400daecb
mov rbx, qword [rsp + 0x68]
mov eax, 0xfffffffe
add rsp, 0x30
pop r15
pop r14
pop rbp
ret
Function at 0x1400f54a0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov ebx, r9d
mov edi, r8d
mov ebp, edx
mov rsi, rcx
call fcn.1400c88d0
lea rax, [0x140893190]
mov rdx, rsi
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rax
call fcn.1400d2820
test eax, eax
jne 0x1400f5598
mov ecx, 0x20000
mov qword [rsi + 0x60], 0
call fcn.140112868
mov ecx, 0x20000
mov qword [rsi + 0x48], rax
call fcn.140112868
mov rcx, qword [rsi + 0x48]
mov edx, 0x20000
mov qword [rsi + 0x50], rax
mov dword [rsi + 0x74], ebx
mov rbx, qword [rsp + 0x78]
mov dword [rsi + 0x70], edi
mov r8, rbx
mov rdi, qword [rsp + 0x70]
mov dword [rsi + 0x68], 1
mov dword [rsi + 0x6c], ebp
mov qword [rsi + 0x80], rdi
mov qword [rsi + 0x88], rbx
call rdi
mov rcx, qword [rsi + 0x50]
mov r8, rbx
mov edx, 0x20000
mov dword [rsi + 0x58], eax
call rdi
lea rcx, [rsp + 0x50]
mov dword [rsi + 0x5c], eax
mov qword [rsp + 0x28], rcx
lea r8, [0x1400f5600]
xor ecx, ecx
mov dword [rsp + 0x20], 0
mov r9, rsi
mov edx, 0x2000
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x1400f5598
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov dword [rsi + 0x78], 1
jmp 0x1400f559a
xor eax, eax
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

Function at 0x140100de8
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, ecx
mov edx, 8
mov rcx, qword [0x140893d68]
mov r8d, 0x258
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x14089606c]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov qword [0x140896070], rdi
or eax, 0xffffffff
and dword [rdi + 0x11c], 0
mov edx, ebx
mov rcx, rdi
mov dword [rdi + 0x120], eax
mov dword [rdi + 0x124], eax
mov dword [rdi + 0x118], 0xffffff
mov dword [rdi + 0xe8], 2
mov dword [rdi + 0xec], 0x3f
call fcn.140139f24
mov rbx, qword [rsp + 0x30]
lea rax, [0x1401023cc]
mov qword [rdi + 0xb0], rax
lea rax, [0x140102430]
mov qword [rdi + 0xb8], rax
lea rax, [fcn.140100ff8]
mov qword [rdi + 0x20], rax
lea rax, [0x1401011d0]
mov qword [rdi + 0x60], rax
lea rax, [0x140101418]
mov qword [rdi + 0xc8], rax
lea rax, [0x140101480]
mov qword [rdi + 0xc0], rax
lea rax, [0x140101d08]
mov qword [rdi + 0x68], rax
lea rax, [0x140101b48]
mov qword [rdi + 0x48], rax
lea rax, [0x140101b74]
mov qword [rdi + 0x50], rax
lea rax, [0x140101ba4]
mov qword [rdi + 0x58], rax
lea rax, [0x1401021a4]
mov qword [rdi + 0x88], rax
lea rax, [0x140100f58]
mov qword [rdi + 0xd0], rax
lea rax, [0x140100fdc]
mov qword [rdi + 0xd8], rax
mov rax, rdi
add rsp, 0x20
pop rdi
ret
Function at 0x140103f1c
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
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
mov rdi, rax
xor ebp, ebp
call qword [sym.imp.USER32.dll_GetPropW]
lea r12d, [rbx + 9]
mov rsi, rax
test rax, rax
je 0x140103fcd
lea rdx, [rsp + 0x68]
mov rcx, r14
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x140103fcd
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x68], eax
jne 0x140103fcd
mov rcx, qword [0x140895ed8]
lea rdx, [rsi - 1]
call fcn.14008ea90
mov rbx, rax
lea ebp, [r12 - 8]
cmp dword [rax + 0x20], 0
jle 0x140103fcd
mov rcx, qword [rax + 8]
xor edx, edx
movsxd rax, dword [rax + 0x20]
add rcx, 4
cmp word [rcx - 2], r12w
jne 0x140103fbd
mov r8d, 0xfa01
cmp word [rcx], r8w
je 0x140103fcb
inc rdx
add rcx, 6
cmp rdx, rax
jge 0x140103fcd
jmp 0x140103faa
xor ebp, ebp
mov sil, 0x80
test rdi, rdi
je 0x14010409d
mov ecx, r12d
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
je 0x14010409d
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElemsize
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x14010409d
mov ecx, SafeArrayGetElemsize
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x14010409d
mov ecx, SafeArrayGetLBound
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x14010409d
mov r8d, SafeArrayGetElemsize
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetClassNameW]
test ebp, ebp
jne 0x14010409d
lea r8d, [rbp + 5]
lea rdx, str.RichE
lea rcx, [rsp + 0x20]
call fcn.14010d078
test eax, eax
je 0x14010406d
lea r8d, [rbp + 4]
lea rdx, str.RICHE
lea rcx, [rsp + 0x20]
call fcn.14010d078
test eax, eax
jne 0x140104088
xor r9d, r9d
xor r8d, r8d
mov edx, 0x44e
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageW]
bt rax, 0xb
jae 0x140104104
lea rdx, str.Scintilla
lea rcx, [rsp + 0x20]
call fcn.1400b52f8
test eax, eax
je 0x140104104
test r14, r14
je 0x1401040df
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElemsize
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x1401040d2
mov ecx, SafeArrayGetElemsize
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x1401040d2
mov ecx, SafeArrayGetLBound
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
je 0x1401040df
mov edx, 1
mov rcx, r14
call fcn.140104294
test rdi, rdi
je 0x1401040f9
lea rdx, str.PB_Hotkey
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetPropW]
test rax, rax
jne 0x140104104
test rbx, rbx
je 0x140104104
mov rax, qword [rbx + 0x10]
jmp 0x140104106
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r12
pop rdi
ret
Function at 0x140104494
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, rdx
lea rax, [r11 + 0x10]
mov edx, ecx
mov qword [r11 - 0x18], rax
xor esi, esi
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov ebx, esi
call qword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
jne 0x140104506
mov rcx, qword [rsp + 0x48]
mov rdx, rdi
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x1401044fb
mov rcx, rdi
call fcn.14009826c
mov rbx, rax
test eax, eax
je 0x1401044fb
movsxd rax, ebx
lea ecx, [rsi + 0x5c]
cmp word [rdi + rax*2 - 2], cx
je 0x1401044fb
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 eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1401045c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
xor ebp, ebp
mov rdi, r8
mov r15, rdx
mov r14, rcx
cmp dword [rcx + 0x1c], ebp
jne 0x1401045f7
call fcn.1400848b0
mov dword [r14 + 0x1c], 1
mov dword [r14 + 0x14], ebp
movsxd r12, dword [r14 + 0x14]
mov eax, dword [r14 + 0x18]
mov rbx, r12
sub eax, r12d
movsxd rdx, eax
add rdx, qword [r14 + 8]
cmp r12, rdi
jl 0x140104670
mov rax, rdi
sub rax, 1
je 0x140104661
sub rax, 1
je 0x14010464e
cmp rax, 2
je 0x14010463d
mov r8, rdi
mov rcx, r15
call fcn.1400b4c80
sub dword [r14 + 0x14], edi
movsxd rax, edi
jmp 0x1401046ea
mov eax, dword [rdx]
mov dword [r15], eax
sub dword [r14 + 0x14], edi
movsxd rax, edi
jmp 0x1401046ea
movzx eax, word [rdx]
mov word [r15], ax
sub dword [r14 + 0x14], edi
movsxd rax, edi
jmp 0x1401046ea
movzx eax, byte [rdx]
mov byte [r15], al
sub dword [r14 + 0x14], edi
movsxd rax, edi
jmp 0x1401046ea
mov r8, rbx
mov rcx, r15
call fcn.1400b4c80
movsxd r8, dword [r14 + 0x10]
lea r9, [rsp + 0x60]
mov rcx, qword [r14]
add r15, rbx
sub rdi, rbx
mov qword [rsp + 0x20], rbp
cmp rdi, r8
jl 0x1401046b0
mov r8d, edi
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x60]
add eax, r12d
mov dword [r14 + 0x14], ebp
jmp 0x1401046e8
mov rdx, qword [r14 + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd rax, dword [rsp + 0x60]
mov rcx, r15
mov rdx, qword [r14 + 8]
cmp rdi, rax
mov rbx, rax
mov dword [r14 + 0x14], eax
cmovle rbx, rdi
mov dword [r14 + 0x18], eax
mov r8, rbx
call fcn.1400b4c80
sub dword [r14 + 0x14], ebx
lea eax, [rbx + r12]
cdqe
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140104710
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rsi, r8
mov r12d, edx
mov r14, rcx
mov r15d, 0x1000
mov rcx, qword [0x140893d68]
mov r8d, r15d
xor edx, edx
mov r13, r9
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x1401048eb
movzx r8d, byte [rsp + 0x30]
mov qword [rsp + 0x70], rbx
mov rbx, rax
mov qword [rsp + 0x78], rdi
cmp rsi, 0xffffffffffffffff
je 0x140104777
test rsi, rsi
je 0x140104840
dec rsi
cmp qword [r14 + 8], 0
lea rdi, [r14 + 8]
lea rdx, [rsp + 0x30]
je 0x14010479b
mov r8d, 1
mov rcx, r14
call fcn.1401045c0
mov dword [rsp + 0x34], eax
jmp 0x1401047bc
mov rcx, qword [r14]
lea r9, [rsp + 0x34]
mov r8d, 1
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x34]
movzx r8d, byte [rsp + 0x30]
cmp eax, 1
jne 0x140104844
test r8b, r8b
je 0x1401047d8
mov byte [rbx], r8b
inc rbx
movzx r8d, byte [rsp + 0x30]
mov rdx, rbx
lea eax, [r15 - 1]
sub rdx, rbp
movsxd rcx, eax
cmp rdx, rcx
jle 0x14010481a
mov rcx, qword [0x140893d68]
add r15d, 0x1000
movsxd r9, r15d
mov r8, rbp
mov edx, 8
sub ebx, ebp
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
movzx r8d, byte [rsp + 0x30]
mov rbp, rax
movsxd rbx, ebx
add rbx, rax
test r8b, r8b
je 0x140104844
test r12d, r12d
jne 0x140104765
cmp r8b, 0xd
je 0x14010484d
cmp r8b, 0xa
jne 0x140104765
dec rbx
jmp 0x1401048d1
lea rdi, [r14 + 8]
test r12d, r12d
jne 0x1401048d1
cmp r8b, 0xa
jne 0x140104858
dec rbx
jmp 0x1401048d1
cmp r8b, 0xd
jne 0x1401048d1
dec rbx
lea rdx, [rsp + 0x30]
cmp qword [rdi], 0
je 0x140104880
mov r8d, 1
mov rcx, r14
call fcn.1401045c0
mov dword [rsp + 0x34], eax
jmp 0x14010489d
mov rcx, qword [r14]
lea r9, [rsp + 0x34]
mov r8d, 1
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [rsp + 0x30], 0xa
je 0x1401048d1
cmp qword [rdi], 0
je 0x1401048b0
inc dword [r14 + 0x14]
jmp 0x1401048d1
mov rcx, qword [r14]
lea r8, [rsp + 0x3c]
mov r9d, 1
mov qword [rsp + 0x38], 0xffffffffffffffff
lea edx, [r9 - 2]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rdi, qword [rsp + 0x78]
mov rax, rbx
sub rax, rbp
mov qword [r13], rax
mov rax, rbp
mov byte [rbx], 0
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rsi
ret