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

Disassembly:
push rbp
mov rbp, rsp
add rsp, 0xffffffffffffff80
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
lea rax, str.SELECT_stat_FROM__Q.sqlite_stat1_WHERE_tbl___q_rowid
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], 0x64
mov rax, qword [rbp + 0x18]
mov rdx, qword [rax + 0x30]
mov rax, qword [rbp + 0x10]
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
lea r8, str.sqlite_stat1
mov rcx, rax
call sym.sqlite3_table_column_metadata
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
je 0x1401a7c3c
mov rax, qword [rbp + 0x18]
mov qword [rax + 0x50], 0x100000
cmp dword [rbp - 4], 1
je 0x1401a7c32
mov eax, dword [rbp - 4]
jmp 0x1401a7cfa
mov eax, 0
jmp 0x1401a7cfa
mov rax, qword [rbp + 0x18]
mov rcx, qword [rax + 0x38]
mov rax, qword [rbp + 0x18]
mov rdx, qword [rax + 0x30]
mov rax, qword [rbp - 0x18]
mov r8, rcx
mov rcx, rax
call sym.sqlite3_mprintf
mov qword [rbp - 0x20], rax
cmp qword [rbp - 0x20], 0
jne 0x1401a7c6f
mov dword [rbp - 4], 7
jmp 0x1401a7cdf
lea rcx, [rbp - 0x28]
mov rdx, qword [rbp - 0x20]
mov rax, qword [rbp + 0x10]
mov qword [rsp + 0x20], 0
mov r9, rcx
mov r8d, 0xffffffff
mov rcx, rax
call sym.sqlite3_prepare_v2
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
jne 0x1401a7cd3
mov rax, qword [rbp - 0x28]
mov rcx, rax
call sym.sqlite3_step
cmp eax, 0x64
jne 0x1401a7cc4
mov rax, qword [rbp - 0x28]
mov edx, 0
mov rcx, rax
call sym.sqlite3_column_int64
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x28]
mov rcx, rax
call sym.sqlite3_finalize
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x20]
mov rcx, rax
call sym.sqlite3_free
mov rax, qword [rbp - 0x10]
mov edx, 0x64
cmp rax, rdx
cmovge rdx, rax
mov rax, qword [rbp + 0x18]
mov qword [rax + 0x50], rdx
mov eax, dword [rbp - 4]
sub rsp, 0xffffffffffffff80
pop rbp
ret
Function at 0x1401a825d
Capabilities:
Reference sql statements

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp + 0x20], r8d
mov qword [rbp + 0x28], r9
cmp dword [rbp + 0x20], 0
je 0x1401a8338
mov dword [rbp - 0x14], 0
mov rax, qword [rbp + 0x18]
mov rax, qword [rax + 0x30]
mov rdx, rax
lea rax, str.PRAGMA__Q.page_size
mov rcx, rax
call sym.sqlite3_mprintf
mov qword [rbp - 0x10], rax
lea rcx, [rbp - 0x14]
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp + 0x10]
mov r8, rcx
mov rcx, rax
call sym.getIntFromStmt
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
jne 0x1401a830e
mov eax, dword [rbp - 0x14]
lea edx, [rax - 0x40]
mov rax, qword [rbp + 0x18]
mov dword [rax + 0x20], edx
mov rax, qword [rbp + 0x18]
movzx eax, byte [rax + 0x27]
movzx eax, al
imul eax, eax, 0x33
lea edx, [rax + 4]
mov rax, qword [rbp + 0x18]
mov eax, dword [rax + 0x20]
cmp edx, eax
jge 0x1401a83e2
mov rax, qword [rbp + 0x18]
movzx eax, byte [rax + 0x27]
movzx eax, al
imul eax, eax, 0x33
lea edx, [rax + 4]
mov rax, qword [rbp + 0x18]
mov dword [rax + 0x20], edx
jmp 0x1401a83e2
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sym.sqlite3_errmsg
mov rdx, rax
lea rax, [0x14036de00]
mov rcx, rax
call sym.sqlite3_mprintf
mov rdx, qword [rbp + 0x28]
mov qword [rdx], rax
jmp 0x1401a83e2
mov rax, qword [rbp + 0x18]
mov rdx, qword [rax + 0x38]
mov rax, qword [rbp + 0x18]
mov rax, qword [rax + 0x30]
mov r8, rdx
mov rdx, rax
lea rax, str.SELECT_length_data__FROM__q._q_node_WHERE_nodeno__1
mov rcx, rax
call sym.sqlite3_mprintf
mov qword [rbp - 0x10], rax
mov rax, qword [rbp + 0x18]
lea rcx, [rax + 0x20]
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp + 0x10]
mov r8, rcx
mov rcx, rax
call sym.getIntFromStmt
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
je 0x1401a83ac
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sym.sqlite3_errmsg
mov rdx, rax
lea rax, [0x14036de00]
mov rcx, rax
call sym.sqlite3_mprintf
mov rdx, qword [rbp + 0x28]
mov qword [rdx], rax
jmp 0x1401a83e2
mov rax, qword [rbp + 0x18]
mov eax, dword [rax + 0x20]
cmp eax, 0x1bf
jg 0x1401a83e2
mov dword [rbp - 4], 0x10b
mov rax, qword [rbp + 0x18]
mov rax, qword [rax + 0x38]
mov rdx, rax
lea rax, str.undersize_RTree_blobs_in___q_node_
mov rcx, rax
call sym.sqlite3_mprintf
mov rdx, qword [rbp + 0x28]
mov qword [rdx], rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.sqlite3_free
mov eax, dword [rbp - 4]
add rsp, 0x40
pop rbp
ret
Function at 0x1401a8ed8
Capabilities:
Reference sql statements

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp - 8], 0
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x40]
test eax, eax
jne 0x1401a8f3d
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x20]
test rax, rax
jne 0x1401a8f3d
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 0x10]
mov rax, qword [rbp + 0x10]
mov rdx, qword [rax + 8]
mov rax, qword [rbp + 0x10]
mov r9, rcx
mov r8, rdx
lea rdx, str.SELECT_data_FROM__Q._q_node_WHERE_nodeno_
mov rcx, rax
call sym.rtreeCheckPrepare
mov rdx, qword [rbp + 0x10]
mov qword [rdx + 0x20], rax
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x40]
test eax, eax
jne 0x1401a9035
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x20]
mov rdx, qword [rbp + 0x18]
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.sqlite3_bind_int64
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x20]
mov rcx, rax
call sym.sqlite3_step
cmp eax, 0x64
jne 0x1401a8ff5
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x20]
mov edx, 0
mov rcx, rax
call sym.sqlite3_column_bytes
mov dword [rbp - 0xc], eax
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x20]
mov edx, 0
mov rcx, rax
call sym.sqlite3_column_blob
mov qword [rbp - 0x18], rax
mov eax, dword [rbp - 0xc]
cdqe
mov rcx, rax
call sym.sqlite3_malloc64
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1401a8fd3
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x40], 7
jmp 0x1401a8ff5
mov eax, dword [rbp - 0xc]
movsxd rcx, eax
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp - 8]
mov r8, rcx
mov rcx, rax
call sym.memcpy
mov rax, qword [rbp + 0x20]
mov edx, dword [rbp - 0xc]
mov dword [rax], edx
mov rax, qword [rbp + 0x10]
mov rdx, qword [rax + 0x20]
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sym.rtreeCheckReset
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x40]
test eax, eax
jne 0x1401a9035
cmp qword [rbp - 8], 0
jne 0x1401a9035
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp + 0x10]
mov r8, rdx
lea rdx, str.Node__lld_missing_from_database
mov rcx, rax
call sym.rtreeCheckAppendMsg
mov rax, qword [rbp - 8]
add rsp, 0x40
pop rbp
ret
Function at 0x1401a903f
Capabilities:
Reference sql statements

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
lea rax, str.SELECT_parentnode_FROM__Q._q_parent_WHERE_nodeno_1
mov qword [rbp - 0x30], rax
lea rax, str.SELECT_nodeno_FROM__Q._q_rowid_WHERE_rowid_1
mov qword [rbp - 0x28], rax
mov rax, qword [rbp + 0x10]
mov edx, dword [rbp + 0x18]
movsxd rdx, edx
add rdx, 4
mov rax, qword [rax + rdx*8 + 8]
test rax, rax
jne 0x1401a90c3
mov rax, qword [rbp + 0x10]
mov r8, qword [rax + 0x10]
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov eax, dword [rbp + 0x18]
cdqe
mov rdx, qword [rbp + rax*8 - 0x30]
mov rax, qword [rbp + 0x10]
mov r9, r8
mov r8, rcx
mov rcx, rax
call sym.rtreeCheckPrepare
mov rdx, qword [rbp + 0x10]
mov ecx, dword [rbp + 0x18]
movsxd rcx, ecx
add rcx, 4
mov qword [rdx + rcx*8 + 8], rax
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x40]
test eax, eax
jne 0x1401a91d3
mov rax, qword [rbp + 0x10]
mov edx, dword [rbp + 0x18]
movsxd rdx, edx
add rdx, 4
mov rax, qword [rax + rdx*8 + 8]
mov qword [rbp - 8], rax
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp - 8]
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.sqlite3_bind_int64
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.sqlite3_step
mov dword [rbp - 0xc], eax
cmp dword [rbp - 0xc], 0x65
jne 0x1401a9154
cmp dword [rbp + 0x18], 0
je 0x1401a9125
lea rax, str.__rowid
jmp 0x1401a912c
lea rax, str.__parent
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x20]
mov rcx, qword [rbp + 0x10]
mov qword [rsp + 0x20], rax
mov r9, r8
mov r8, rdx
lea rax, str.Mapping___lld_____lld__missing_from__s_table
mov rdx, rax
call sym.rtreeCheckAppendMsg
jmp 0x1401a91c1
cmp dword [rbp - 0xc], 0x64
jne 0x1401a91c1
mov rax, qword [rbp - 8]
mov edx, 0
mov rcx, rax
call sym.sqlite3_column_int64
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
cmp rax, qword [rbp + 0x28]
je 0x1401a91c1
cmp dword [rbp + 0x18], 0
je 0x1401a9188
lea rax, str.__rowid
jmp 0x1401a918f
lea rax, str.__parent
mov r9, qword [rbp - 0x18]
mov r8, qword [rbp + 0x20]
mov rcx, qword [rbp + 0x10]
mov rdx, qword [rbp + 0x28]
mov qword [rsp + 0x30], rdx
mov rdx, qword [rbp + 0x20]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rax
lea rax, str.Found___lld_____lld__in__s_table__expected___lld_____lld_
mov rdx, rax
call sym.rtreeCheckAppendMsg
mov rdx, qword [rbp - 8]
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sym.rtreeCheckReset
jmp 0x1401a91d4
nop
add rsp, 0x70
pop rbp
ret
Function at 0x1401b31fc
Capabilities:
Reference sql statements

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp + 0x20], r8d
mov qword [rbp + 0x28], r9
cmp dword [rbp + 0x20], 0
je 0x1401b3223
lea rax, str._rowid___
jmp 0x1401b322a
lea rax, [0x14036f359]
mov qword [rbp - 8], rax
mov r8, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x10]
mov rax, qword [rbp - 8]
mov rdx, qword [rbp + 0x30]
mov qword [rsp + 0x30], rdx
mov rdx, qword [rbp + 0x28]
mov qword [rsp + 0x28], rdx
mov rdx, qword [rbp + 0x18]
mov qword [rsp + 0x20], rdx
mov r9, r8
mov r8, rcx
mov rdx, rax
lea rax, str.SELECT__s_FROM___w_.__w__WHERE_NOT_EXISTS____SELECT_1_FROM___w_.__w__WHERE__s_
mov rcx, rax
call sym.sqlite3_mprintf
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
add rsp, 0x50
pop rbp
ret
Function at 0x1401b345d
Capabilities:
Reference sql statements

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
mov dword [rbp - 4], 0
mov rax, qword [rbp + 0x18]
mov r8, qword [rax + 0x30]
mov rax, qword [rbp + 0x18]
mov rcx, qword [rax + 0x20]
mov rax, qword [rbp + 0x18]
mov r9, qword [rax + 8]
mov rax, qword [rbp + 0x10]
mov rdx, qword [rax + 8]
mov rax, qword [rbp + 0x18]
mov eax, dword [rax + 0x10]
mov r10, qword [rbp + 0x20]
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rcx
mov r8, r10
mov ecx, eax
call sym.sessionExprCompareOther
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x1401b34d5
mov dword [rbp - 4], 7
jmp 0x1401b3667
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 8]
mov rdx, qword [rbp + 0x18]
mov rcx, rax
call sym.sessionAllCols
mov qword [rbp - 0x18], rax
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp + 0x20]
mov rcx, rax
call sym.sessionAllCols
mov qword [rbp - 0x20], rax
mov rax, qword [rbp + 0x18]
mov rcx, qword [rax + 8]
mov rax, qword [rbp + 0x18]
mov rdx, qword [rax + 8]
mov rax, qword [rbp + 0x10]
mov r9, qword [rax + 8]
mov r10, qword [rbp - 0x20]
mov rax, qword [rbp - 0x18]
mov r8, qword [rbp - 0x10]
mov qword [rsp + 0x40], r8
mov r8, qword [rbp + 0x28]
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], rcx
mov rcx, qword [rbp + 0x20]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rdx
mov r8, r10
mov rdx, rax
lea rax, str.SELECT__s__s_FROM___w_.__w_____w_.__w__WHERE__s_AND___z_
mov rcx, rax
call sym.sqlite3_mprintf
mov qword [rbp - 0x28], rax
cmp qword [rbp - 0x28], 0
je 0x1401b3574
cmp qword [rbp - 0x18], 0
je 0x1401b3574
cmp qword [rbp - 0x20], 0
jne 0x1401b3580
mov dword [rbp - 4], 7
jmp 0x1401b3643
mov rax, qword [rbp + 0x10]
mov rax, qword [rax]
lea rcx, [rbp - 0x40]
mov rdx, qword [rbp - 0x28]
mov qword [rsp + 0x20], 0
mov r9, rcx
mov r8d, 0xffffffff
mov rcx, rax
call sym.sqlite3_prepare
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
jne 0x1401b3643
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x60]
mov qword [rbp - 0x30], rax
mov rdx, qword [rbp - 0x40]
mov rax, qword [rbp - 0x30]
mov qword [rax], rdx
mov rax, qword [rbp + 0x18]
mov edx, dword [rax + 0x10]
mov rax, qword [rbp - 0x30]
mov dword [rax + 0xc], edx
jmp 0x1401b3623
mov rax, qword [rbp + 0x18]
mov eax, dword [rax + 0x18]
test eax, eax
je 0x1401b35fb
mov rax, qword [rbp - 0x40]
mov edx, 0
mov rcx, rax
call sym.sqlite3_column_int64
jmp 0x1401b3600
mov eax, 0
mov qword [rbp - 0x38], rax
mov rcx, qword [rbp + 0x18]
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp - 0x38]
mov r9, rcx
mov r8, rdx
mov rdx, rax
mov ecx, 0x17
call sym.sessionPreupdateOneChange
mov rax, qword [rbp - 0x40]
mov rcx, rax
call sym.sqlite3_step
cmp eax, 0x64
je 0x1401b35dd
mov rax, qword [rbp - 0x40]
mov rcx, rax
call sym.sqlite3_finalize
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x28]
mov rcx, rax
call sym.sqlite3_free
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sym.sqlite3_free
mov rax, qword [rbp - 0x20]
mov rcx, rax
call sym.sqlite3_free
mov eax, dword [rbp - 4]
add rsp, 0x90
pop rbp
ret
Function at 0x1401cb523
Capabilities:
Reference sql statements

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x68]
test rax, rax
jne 0x1401cb586
mov rax, qword [rbp + 0x10]
mov rax, qword [rax]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 0x10]
mov rax, qword [rbp - 8]
mov rax, qword [rax + 8]
mov r8, rdx
mov rdx, rax
lea rax, str.SELECT_pgno_FROM__q._q_idx_WHERE_segid__AND_term___ORDER_BY_term_DESC_LIMIT_1
mov rcx, rax
call sym.sqlite3_mprintf
mov rcx, rax
mov rax, qword [rbp + 0x10]
lea rdx, [rax + 0x68]
mov rax, qword [rbp + 0x10]
mov r8, rcx
mov rcx, rax
call sym.fts5IndexPrepareStmt
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x68]
add rsp, 0x30
pop rbp
ret
Function at 0x1401e1d0e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov dword [rbp + 0x10], ecx
mov dword [rbp + 0x18], edx
mov eax, dword [rbp + 0x10]
mov dword [rbp - 4], eax
cmp dword [rbp + 0x10], 0x7f
jg 0x1401e1d4a
cmp dword [rbp + 0x10], 0x40
jle 0x1401e1e8f
cmp dword [rbp + 0x10], 0x5a
jg 0x1401e1e8f
mov eax, dword [rbp + 0x10]
add eax, 0x20
mov dword [rbp - 4], eax
jmp 0x1401e1e8f
cmp dword [rbp + 0x10], 0xffff
jg 0x1401e1e74
mov dword [rbp - 8], 0xa2
mov dword [rbp - 0xc], 0
mov dword [rbp - 0x10], 0xffffffff
jmp 0x1401e1dc5
mov edx, dword [rbp - 8]
mov eax, dword [rbp - 0xc]
add eax, edx
mov edx, eax
shr edx, 0x1f
add eax, edx
sar eax, 1
mov dword [rbp - 0x1c], eax
mov eax, dword [rbp - 0x1c]
cdqe
lea rdx, [rax*4]
lea rax, [0x140381360]
movzx eax, word [rdx + rax]
movzx eax, ax
mov edx, dword [rbp + 0x10]
sub edx, eax
mov dword [rbp - 0x20], edx
cmp dword [rbp - 0x20], 0
js 0x1401e1dbc
mov eax, dword [rbp - 0x1c]
mov dword [rbp - 0x10], eax
mov eax, dword [rbp - 0x1c]
add eax, 1
mov dword [rbp - 0xc], eax
jmp 0x1401e1dc5
mov eax, dword [rbp - 0x1c]
sub eax, 1
mov dword [rbp - 8], eax
mov eax, dword [rbp - 8]
cmp eax, dword [rbp - 0xc]
jge 0x1401e1d6e
mov eax, dword [rbp - 0x10]
cdqe
lea rdx, [rax*4]
lea rax, [0x140381360]
add rax, rdx
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx edx, ax
mov rax, qword [rbp - 0x18]
movzx eax, byte [rax + 3]
movzx eax, al
add eax, edx
cmp dword [rbp + 0x10], eax
jge 0x1401e1e55
mov rax, qword [rbp - 0x18]
movzx eax, byte [rax + 2]
movzx eax, al
and eax, 1
mov edx, eax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
xor eax, dword [rbp + 0x10]
and eax, edx
test eax, eax
jne 0x1401e1e55
mov rax, qword [rbp - 0x18]
movzx eax, byte [rax + 2]
shr al, 1
movzx eax, al
cdqe
lea rdx, [rax + rax]
lea rax, [0x140381600]
movzx eax, word [rdx + rax]
movzx edx, ax
mov eax, dword [rbp + 0x10]
add eax, edx
and eax, 0xffff
mov dword [rbp - 4], eax
cmp dword [rbp + 0x18], 0
je 0x1401e1e8f
cmp dword [rbp + 0x18], 2
sete al
movzx edx, al
mov eax, dword [rbp - 4]
mov ecx, eax
call sym.fts5_remove_diacritic
mov dword [rbp - 4], eax
jmp 0x1401e1e8f
cmp dword [rbp + 0x10], 0x103ff
jle 0x1401e1e8f
cmp dword [rbp + 0x10], 0x10427
jg 0x1401e1e8f
mov eax, dword [rbp + 0x10]
add eax, 0x28
mov dword [rbp - 4], eax
mov eax, dword [rbp - 4]
add rsp, 0x40
pop rbp
ret
Function at 0x1401eef20
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 dbg.__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 dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x1401eef90
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14042cb64]
mov rbx, rcx
test esi, esi
jle 0x1401ef0c0
mov rax, qword [0x14042cb68]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1401eefdb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1401ef065
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1401eefc0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x1401ef0e2
mov rax, qword [0x14042cb68]
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 [0x14042cb68]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1401ef0c7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1401ef05e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1401ef070
add dword [0x14042cb64], 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 [0x14042cb68]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1401ef05e
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 0x1401eefe8
mov rax, qword [0x14042cb68]
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 0x1401ef670
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14042cbc0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14042cba0]
test rbx, rbx
je 0x1401ef6cc
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 rsi, rsi
je 0x1401ef6c3
test eax, eax
jne 0x1401ef6c3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1401ef6a8
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 0x1401ef8e0
Capabilities:
Parse pe header

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

Function at 0x1401ef910
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 0x1401ef95d
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 0x1401ef954
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1401ef95f
add rax, 0x28
cmp rax, r9
jne 0x1401ef940
xor eax, eax
ret

Function at 0x1401ef960
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1401ef9f0
mov rdx, qword [0x140388e70]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1401ef9de
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1401ef9de
cmp word [rax + 0x18], 0x20b
jne 0x1401ef9de
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1401ef9f0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1401ef9c9
add rbx, 0x28
cmp rbx, rdi
je 0x1401ef9f0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1401ef9c0
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 0x1401efa00
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140388e70]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1401efa20
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1401efa28
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1401efa20
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1401efa7d
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 0x1401efa74
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1401efa20
add rax, 0x28
cmp rax, r9
jne 0x1401efa60
xor eax, eax
ret

Function at 0x1401efa80
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140388e70]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1401efa9f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1401efaa8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1401efa9f
movzx ecx, word [rax + 6]
mov eax, ecx
ret