joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140117b40
Capabilities:
Reference sql statements

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rax, str.SELECT_nodeno_FROM__Q._q_rowid_WHERE_rowid_1
movq xmm1, rax
mov rbx, rcx
lea rcx, str.SELECT_parentnode_FROM__Q._q_parent_WHERE_nodeno_1
movsxd rbp, edx
mov rdi, r8
movq xmm0, rcx
mov rsi, rbp
lea r13, [rbp + 4]
mov r12, r9
punpcklqdq xmm0, xmm1
cmp qword [rbx + rbp*8 + 0x28], 0
movups xmmword [rsp + 0x40], xmm0
je 0x140117bf0
mov ecx, dword [rbx + 0x40]
test ecx, ecx
je 0x140117ba0
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov rbp, qword [rbx + rbp*8 + 0x28]
mov r8, rdi
mov edx, 1
mov rcx, rbp
call sym.sqlite3_bind_int64
mov rcx, rbp
call sym.sqlite3_step
cmp eax, 0x65
je 0x140117c10
cmp eax, 0x64
je 0x140117c40
mov rcx, rbp
call sym.sqlite3_reset
mov edx, dword [rbx + 0x40]
test edx, edx
jne 0x140117b8f
mov dword [rbx + 0x40], eax
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov rdx, qword [rsp + rbp*8 + 0x40]
mov r9, qword [rbx + 0x10]
mov rcx, rbx
mov r8, qword [rbx + 8]
call sym.rtreeCheckPrepare
mov qword [rbx + r13*8 + 8], rax
jmp 0x140117b88
test esi, esi
lea rdx, str.__rowid
mov r9, r12
mov r8, rdi
lea rax, str.__parent
mov rcx, rbx
cmovne rax, rdx
lea rdx, str.Mapping___lld_____lld__missing_from__s_table
mov qword [rsp + 0x20], rax
call sym.rtreeCheckAppendMsg
jmp 0x140117bc7
xor edx, edx
mov rcx, rbp
call sym.sqlite3_column_int64
mov r9, rax
cmp r12, rax
je 0x140117bc7
test esi, esi
lea rdx, str.__rowid
mov r8, rdi
mov rcx, rbx
lea rax, str.__parent
mov qword [rsp + 0x30], r12
cmovne rax, rdx
mov qword [rsp + 0x28], rdi
lea rdx, str.Found___lld_____lld__in__s_table__expected___lld_____lld_
mov qword [rsp + 0x20], rax
call sym.rtreeCheckAppendMsg
jmp 0x140117bc7

Function at 0x140118920
Capabilities:
Reference sql statements

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rsi, rdx
mov rdi, rcx
mov rdx, qword [rdx + 0x30]
mov r12, r9
test r8d, r8d
je 0x1401189b0
lea rcx, str.PRAGMA__Q.page_size
mov dword [rsp + 0x2c], 0
call sym.sqlite3_mprintf
mov rbx, rax
test rax, rax
je 0x140118a08
lea r8, [rsp + 0x2c]
mov rdx, rax
mov rcx, rdi
call sym.getIntFromStmt.part.0
mov ebp, eax
test eax, eax
je 0x140118a18
mov rcx, rdi
call sym.sqlite3_errmsg
lea rcx, [0x1401608f8]
mov rdx, rax
call sym.sqlite3_mprintf
mov qword [r12], rax
mov rcx, rbx
call sym.sqlite3_free
mov eax, ebp
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov r8, qword [rsi + 0x38]
lea rcx, str.SELECT_length_data__FROM__q._q_node_WHERE_nodeno__1
call sym.sqlite3_mprintf
mov rbx, rax
test rax, rax
je 0x140118a08
lea r8, [rsi + 0x20]
mov rdx, rax
mov rcx, rdi
call sym.getIntFromStmt.part.0
mov ebp, eax
test eax, eax
jne 0x140118976
cmp dword [rsi + 0x20], 0x1bf
jg 0x140118991
mov rdx, qword [rsi + 0x38]
lea rcx, str.undersize_RTree_blobs_in___q_node_
mov ebp, 0x10b
call sym.sqlite3_mprintf
mov qword [r12], rax
jmp 0x140118991
mov ebp, 7
jmp 0x140118976
mov eax, dword [rsp + 0x2c]
lea edx, [rax - 0x40]
movzx eax, byte [rsi + 0x27]
imul eax, eax, 0x33
add eax, 4
cmp eax, edx
cmovg eax, edx
mov dword [rsi + 0x20], eax
jmp 0x140118991
Function at 0x14012a070
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov eax, dword [rdx + 0x48]
lea ebx, [rax - 1]
mov rbp, rcx
mov rdi, rdx
test ebx, ebx
jle 0x14012a0d7
nop dword [rax + rax]
mov edx, ebx
mov rcx, rdi
call sym.fts5MultiIterDoCompare
mov esi, eax
test eax, eax
je 0x14012a0d2
mov r8d, dword [rbp + 0x3c]
test r8d, r8d
jne 0x14012a0c1
cdqe
xor r8d, r8d
mov rcx, rbp
shl rax, 7
lea rdx, [rdi + rax + 0x68]
call qword [rdi + rax + 0x98]
mov r9d, ebx
mov r8d, esi
mov rdx, rdi
mov rcx, rbp
call sym.fts5MultiIterAdvanced
sub ebx, 1
jne 0x14012a090
mov rax, qword [rdi + 0x60]
movzx eax, word [rax + 4]
shl rax, 7
add rax, rdi
mov rdx, qword [rax + 0x78]
test rdx, rdx
sete byte [rdi + 0x14]
mov rcx, qword [rax + 0xd8]
cmp byte [rdi + 0x50], 0
mov qword [rdi + 0x58], rcx
je 0x14012a138
mov ecx, dword [rbp + 0x3c]
test ecx, ecx
jne 0x14012a138
test rdx, rdx
je 0x14012a138
mov eax, dword [rax + 0xe0]
test eax, eax
jne 0x14012a138
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, rbp
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp sym.fts5MultiIterNext
mov rcx, rdi
call sym.fts5MultiIterIsDeleted
test eax, eax
jne 0x14012a118
cmp byte [rdi + 0x14], 0
jne 0x14012a170
mov rax, qword [rdi + 0x60]
mov rcx, rdi
movzx eax, word [rax + 4]
shl rax, 7
lea rdx, [rdi + rax + 0x68]
mov rax, qword [rdi + 0x40]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x14012a280
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rax, qword [rdx + 0x20]
mov rbx, qword [rax + 0x18]
mov rax, qword [rbx + 0x40]
mov rsi, qword [rbx + 0x38]
mov rbp, rcx
mov r14, rdx
mov dword [rdx + 8], 0
mov r12d, r8d
mov r13, r9
test rax, rax
je 0x14012a3e0
add rbx, 0x20
mov r9d, dword [rcx + 0x18]
xor edi, edi
xor ecx, ecx
mov rdx, rbx
jmp 0x14012a2ed
xor r8d, r8d
cmp rdx, rdi
setl r8b
cmp r8d, r9d
cmovne rdi, rdx
test rax, rax
je 0x14012a30b
mov rdx, rax
mov rax, qword [rax + 0x20]
mov rdx, qword [rdx + 0x18]
cmp byte [rdx + 0x14], 0
jne 0x14012a2e1
mov rdx, qword [rdx]
test ecx, ecx
jne 0x14012a2d0
mov rdi, rdx
mov ecx, 1
test rax, rax
jne 0x14012a2e6
mov r15d, 1
jmp 0x14012a33d
test r12d, r12d
je 0x14012a331
cmp r13, rax
je 0x14012a331
setl al
movzx eax, al
cmp eax, dword [rbp + 0x18]
je 0x14012a3c0
xor r15d, r15d
mov rbx, qword [rbx + 0x20]
test rbx, rbx
je 0x14012a398
mov rsi, qword [rbx + 0x18]
cmp byte [rsi + 0x14], 0
jne 0x14012a334
mov rax, qword [rsi]
cmp rax, rdi
jne 0x14012a318
test r12d, r12d
jne 0x14012a3c0
cmp qword [rsi + 0x18], 0
je 0x14012a448
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call sym.fts5TokendataIterNext
mov rdx, qword [rsi + 0x20]
mov eax, dword [rdx + 0x3c]
mov dword [rdx + 0x3c], 0
test eax, eax
jne 0x14012a408
mov rax, qword [rbx + 0x18]
cmp byte [rax + 0x14], 0
je 0x14012a331
mov rbx, qword [rbx + 0x20]
test rbx, rbx
jne 0x14012a33d
nop dword [rax]
mov dword [r14 + 4], r15d
test r15d, r15d
jne 0x14012a428
mov rdx, r14
mov rcx, rbp
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp sym.fts5ExprNodeTest_STRING
cmp qword [rsi + 0x18], 0
je 0x14012a430
mov r8, r13
mov edx, 1
mov rcx, rsi
call sym.fts5TokendataIterNext
jmp 0x14012a36c
mov rax, qword [rsi + 0x18]
test r8d, r8d
je 0x14012a460
test rax, rax
je 0x14012a498
mov r8, r9
mov edx, 1
mov rcx, rsi
call sym.fts5TokendataIterNext
jmp 0x14012a472
mov dword [r14 + 4], 1
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
xor eax, eax
jmp 0x14012a410
mov rcx, qword [rsi + 0x20]
mov r8, r13
mov rdx, rsi
call sym.fts5MultiIterNextFrom
jmp 0x14012a36c
mov rcx, qword [rsi + 0x20]
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
call sym.fts5MultiIterNext
jmp 0x14012a36c
test rax, rax
je 0x14012a4a9
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call sym.fts5TokendataIterNext
mov rdx, qword [rsi + 0x20]
mov eax, dword [rdx + 0x3c]
mov dword [rdx + 0x3c], 0
test eax, eax
jne 0x14012a408
xor r15d, r15d
cmp byte [rsi + 0x14], 0
setne r15b
jmp 0x14012a398
mov rcx, qword [rsi + 0x20]
mov r8, r9
mov rdx, rsi
call sym.fts5MultiIterNextFrom
jmp 0x14012a472
mov rcx, qword [rsi + 0x20]
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
call sym.fts5MultiIterNext
jmp 0x14012a472
Function at 0x140144bc0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call dbg.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x140144c30
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14018a724]
mov rbx, rcx
test esi, esi
jle 0x140144d60
mov rax, qword [0x14018a728]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140144c7b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140144d05
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140144c60
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140144d82
mov rax, qword [0x14018a728]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14018a728]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140144d67
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140144cfe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140144d10
add dword [0x14018a724], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14018a728]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140144cfe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140144c88
mov rax, qword [0x14018a728]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1401452f0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14018a780]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14018a760]
test rbx, rbx
je 0x14014534c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140145343
test rsi, rsi
je 0x140145343
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140145328
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140145560
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140145578
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140145580
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140145590
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x1401455dd
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x1401455d4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1401455df
add rax, 0x28
cmp rax, r9
jne 0x1401455c0
xor eax, eax
ret

Function at 0x1401455e0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140145670
mov rdx, qword [0x140177740]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14014565e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14014565e
cmp word [rax + 0x18], 0x20b
jne 0x14014565e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140145670
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140145649
add rbx, 0x28
cmp rbx, rdi
je 0x140145670
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140145640
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140145680
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140177740]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1401456a0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1401456a8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1401456a0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1401456fd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1401456f4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1401456a0
add rax, 0x28
cmp rax, r9
jne 0x1401456e0
xor eax, eax
ret

Function at 0x140145700
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140177740]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14014571f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140145728
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14014571f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140145740
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140177740]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140145760
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140145768
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140145760
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1401457b0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1401457a7
test rcx, rcx
je 0x140145760
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140145798
xor eax, eax
ret

Function at 0x1401457c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140177740]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1401457df
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1401457e8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140145800
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140177740]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140145820
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140145828
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140145820
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140145820
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140145874
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140145880
add rdx, 0x28
cmp r9, rdx
jne 0x140145860
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140145890
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x140177740]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1401458b2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1401458c0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1401458b2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1401458b2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1401458b2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140145915
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140145928
add rdx, 0x28
cmp rdx, r10
jne 0x140145900
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140145937
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140145947
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14014591e
test ecx, ecx
jg 0x140145930
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140145ae0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x138
mov rbx, rcx
call sym._errno
mov dword [rax], 0
test rbx, rbx
je 0x140145c90
cmp byte [rbx], 0
je 0x140145c58
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140145ca0
test al, 0x10
je 0x140145c58
lea rsi, [rsp + 0x20]
mov rdx, rbx
mov r8d, 0x104
mov rcx, rsi
call sym._fullpath
mov rcx, rsi
call sym.strlen
lea rcx, [rax + 0x24b]
mov rbx, rax
mov rbp, rax
call sym.malloc
mov rdx, rax
test rax, rax
je 0x140145cc8
lea r8, [rax + 0x244]
lea rax, [rbx + 1]
cmp eax, 8
jb 0x140145c20
mov rcx, qword [rsp + 0x20]
lea rdi, [rdx + 0x24c]
and rdi, 0xfffffffffffffff8
mov qword [rdx + 0x244], rcx
mov ecx, eax
mov r9, qword [rsi + rcx - 8]
mov qword [r8 + rcx - 8], r9
mov rcx, r8
sub rcx, rdi
sub rsi, rcx
add ecx, eax
shr ecx, 3
rep movsq qword [rdi], qword [rsi]
cmp byte [rdx + 0x244], 0
je 0x140145bc8
movzx ecx, byte [rdx + rbx + 0x243]
cmp cl, 0x5c
je 0x140145bc8
cmp cl, 0x2f
jne 0x140145c78
mov eax, 0x2a
mov ecx, 0x20
mov word [r8 + rbp], ax
lea r8, [rdx + 0x130]
xor eax, eax
mov qword [rdx + 0x238], 0xffffffffffffffff
mov rdi, r8
mov dword [rdx + 0x240], 0
mov qword [rdx + 0x128], 0
rep stosq qword [rdi], rax
mov rax, rdx
mov dword [rdi], 0
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
ret
test al, 4
jne 0x140145cb0
test eax, eax
je 0x140145ba9
movzx ecx, byte [rsp + 0x20]
mov byte [r8], cl
test al, 2
je 0x140145ba9
mov ecx, eax
movzx r9d, word [rsi + rcx - 2]
mov word [r8 + rcx - 2], r9w
jmp 0x140145ba9
call sym._errno
xor edx, edx
mov dword [rax], 0x14
mov rax, rdx
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov ecx, 0x5c
mov rbp, rax
mov word [r8 + rbx], cx
jmp 0x140145bc8
call sym._errno
xor edx, edx
mov dword [rax], 0xe
jmp 0x140145c65
call sym._errno
xor edx, edx
mov dword [rax], 2
jmp 0x140145c65
mov ecx, dword [rsp + 0x20]
mov dword [r8], ecx
mov ecx, eax
mov r9d, dword [rsi + rcx - 4]
mov dword [r8 + rcx - 4], r9d
jmp 0x140145ba9
call sym._errno
xor edx, edx
mov dword [rax], 0xc
jmp 0x140145c65
Function at 0x1400110fa
Capabilities:
Write file on windows

Disassembly:
jmp 0x140020a50
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x14003b0f5]
call fcn.14001196a
nop
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x140020aa8
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x140020bba
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x140020b53
cmp qword [rbp + 0x28], 0
jle 0x140020b53
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x140020af1
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.1400118f2
nop
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
nop
cmp qword [rbp + 0x130], 0
jle 0x140020ba9
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x140020ba9
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x14001154b
Capabilities:
Terminate process

Disassembly:
jmp 0x140024210
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret
Function at 0x14001169f
Capabilities:
Log keystrokes via application hook

Disassembly:
jmp 0x140020c40
push rbp
push rdi
sub rsp, 0x138
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x16
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140033040]
xor rax, rbp
mov qword [rbp + 0x108], rax
lea rcx, [0x14003b0f8]
call fcn.14001196a
nop
lea rdx, str.___Starting_KeyCapture
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14001111d
lea rdx, [0x14001105f]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor r9d, r9d
mov r8, rax
lea rdx, [0x1400119f1]
mov ecx, 0xd
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [0x140033880], rax
cmp qword [0x140033880], 0
jne 0x140020cf9
lea rdx, str.____Failed_to_get_handle_from_SetWindowsHookEx__
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14001111d
lea rdx, [0x14001105f]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
jmp 0x140020d4b
lea rdx, str.___KeyCapture_handle_ready
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14001111d
lea rdx, [0x14001105f]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 8]
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jle 0x140020d4b
lea rcx, [rbp + 8]
call qword [sym.imp.USER32.dll_TranslateMessage]
nop
lea rcx, [rbp + 8]
call qword [sym.imp.USER32.dll_DispatchMessageW]
nop
jmp 0x140020d1d
call fcn.1400116db
nop
xor eax, eax
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, [0x14002cd50]
call fcn.1400117ee
mov eax, edi
mov rcx, qword [rbp + 0x108]
xor rcx, rbp
call fcn.140011488
lea rsp, [rbp + 0x118]
pop rdi
pop rbp
ret