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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
xor edi, edi
movsxd r12, edx
mov rbp, rcx
mov r14, r8
mov r13, r9
cmp qword [rcx + r12*8 + 0x28], 0
mov r15, r12
jne 0x1401eedc4
lea rdi, [rsp + 0x38]
lea rsi, str.SELECT__s_FROM__s_T_WHERE_T._Q_____AND_T._Q_____ORDER_BY_T._Q_ASC
mov ecx, 0x16
rep movsd dword [rdi], dword [rsi]
mov rsi, qword [rbp]
cmp r12d, 0xa
ja case.0x1401eebf2.5
lea rdx, [0x14035d478]
mov eax, r12d
movsxd rax, dword [rdx + rax*4]
add rax, rdx
jmp rax
mov rdx, qword [rsi + 0x60]
mov r8, qword [rsi + 0x48]
lea rcx, str.SELECT__s_FROM__s_AS_T
call sym.sqlite3_mprintf
jmp 0x1401eed1d
mov r9, qword [rsi + 0x50]
mov r8, qword [rsi + 0x48]
mov rdx, qword [rsi + 0x60]
mov rcx, qword [rsp + r12*8 + 0x38]
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], r9
call sym.sqlite3_mprintf
jmp 0x1401eec47
mov rdx, qword [rsi + 0x60]
mov r9, qword [rsi + 0x50]
lea rcx, str.SELECT__s_FROM__s_T_WHERE_T._Q_
mov r8, qword [rsi + 0x48]
call sym.sqlite3_mprintf
mov rbx, rax
mov r9d, 1
test rax, rax
jne 0x1401eed56
jmp 0x1401eec7a
mov r15d, dword [rsi + 0x18]
lea ecx, [r15 + r15 + 3]
lea ebx, [r15 + 1]
movsxd rcx, ecx
call sym.sqlite3_malloc64
mov rdi, rax
xor eax, eax
test rdi, rdi
jne 0x1401eec84
mov edi, 7
jmp 0x1401eedc4
cmp ebx, eax
jle 0x1401eec96
mov byte [rdi + rax*2], 0x3f
mov byte [rdi + rax*2 + 1], 0x2c
inc rax
jmp 0x1401eec84
xor eax, eax
add rbx, rbx
inc r15d
mov rcx, qword [rsp + r12*8 + 0x38]
cmovl rbx, rax
mov r9, rdi
mov byte [rdi + rbx - 1], 0
mov rdx, qword [rsi + 8]
mov r8, qword [rsi + 0x10]
call sym.sqlite3_mprintf
mov rcx, rdi
mov rbx, rax
call sym.sqlite3_free
jmp 0x1401eedb4
cmp dword [rsi + 0x44], 0
lea r9, [0x14035904c]
lea rax, [0x14035d28f]
mov rdx, qword [rsi + 8]
cmovne r9, rax
mov r8, qword [rsi + 0x10]
lea rcx, str.REPLACE_INTO__Q._q_docsize_VALUES_____s_
jmp 0x1401eed18
cmp dword [rsi + 0x44], 0
lea rdx, [0x14035904c]
lea rax, str._origin
mov r9, qword [rsi + 0x10]
cmovne rdx, rax
mov r8, qword [rsi + 8]
lea rcx, str.SELECT_sz_s_FROM__Q._q_docsize_WHERE_id_
call sym.sqlite3_mprintf
mov rbx, rax
jmp 0x1401eedb4
mov rdx, qword [rsi + 8]
mov rcx, qword [rsp + r12*8 + 0x38]
mov r8, qword [rsi + 0x10]
call sym.sqlite3_mprintf
mov rbx, rax
test rax, rax
je 0x1401eec7a
xor r9d, r9d
cmp r15d, 2
setg r9b
lea r9d, [r9*4 + 1]
mov rax, qword [rbp]
or r8d, 0xffffffff
mov rdx, rbx
inc dword [rax + 0x78]
xor eax, eax
mov qword [rsp + 0x28], rax
lea rax, [rbp + r12*8 + 0x28]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsi]
call sym.sqlite3_prepare_v3
mov rcx, rbx
mov edi, eax
mov rax, qword [rbp]
dec dword [rax + 0x78]
call sym.sqlite3_free
test edi, edi
je 0x1401eedc4
test r13, r13
je 0x1401eedc4
mov rcx, qword [rsi]
call sym.sqlite3_errmsg
lea rcx, [0x140359ffe]
mov rdx, rax
call sym.sqlite3_mprintf
mov qword [r13], rax
jmp 0x1401eedc4
mov r9d, 5
test rbx, rbx
jne 0x1401eed56
jmp 0x1401eec7a
mov rcx, qword [rbp + r12*8 + 0x28]
mov qword [r14], rcx
call sym.sqlite3_reset
mov eax, edi
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1401f2e00
Capabilities:
Reference sql statements

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
xor r10d, r10d
xor r11d, r11d
cmp dword [rcx + 0x3c], 0
mov r8, qword [rcx + 0x18]
mov r9, qword [rcx + 0x20]
mov dword [rsp + 0x34], r10d
mov rbx, rcx
mov rbp, rdx
mov qword [rsp + 0x38], r11
je 0x1401f2e4b
mov rdx, r9
lea rcx, str.recursive_definition_for__s._s
call sym.sqlite3_mprintf
mov qword [rbx + 0x10], rax
mov eax, 1
jmp 0x1401f2fa7
mov qword [rsp + 0x28], r8
lea r12, [rsp + 0x34]
lea rdx, str.SELECT_t._Q_FROM__Q._Q_AS_t_WHERE_t._Q_MATCH_id
mov qword [rsp + 0x20], r8
mov rcx, r12
call sym.sqlite3Fts5Mprintf
mov rsi, rax
test rax, rax
je 0x1401f2e92
xor r9d, r9d
mov rcx, qword [rbx + 0x28]
or r8d, 0xffffffff
mov rdx, rax
mov qword [rsp + 0x20], r9
lea r9, [rsp + 0x38]
call sym.sqlite3_prepare_v2
mov dword [rsp + 0x34], eax
mov rcx, rsi
call sym.sqlite3_free
cmp dword [rsp + 0x34], 1
jne 0x1401f2ea9
xor r8d, r8d
mov dword [rsp + 0x34], r8d
mov rdi, qword [rsp + 0x38]
mov dword [rbx + 0x3c], 1
test rdi, rdi
jne 0x1401f2ebe
xor esi, esi
jmp 0x1401f2ef1
mov rcx, rdi
call sym.sqlite3_step
cmp eax, 0x64
jne 0x1401f2eba
xor edx, edx
mov rcx, rdi
call sym.sqlite3_column_int64
mov rdx, qword [rbx + 0x30]
mov rdx, qword [rdx + 0x48]
test rdx, rdx
je 0x1401f2eba
cmp rax, qword [rdx + 0x18]
je 0x1401f2eee
mov rdx, qword [rdx + 8]
jmp 0x1401f2edd
mov rsi, qword [rdx]
xor ecx, ecx
cmp dword [rsp + 0x34], 0
mov dword [rbx + 0x3c], ecx
jne 0x1401f2f99
test rsi, rsi
jne 0x1401f2f3f
mov rcx, rdi
call sym.sqlite3_finalize
xor edx, edx
mov dword [rsp + 0x34], eax
mov qword [rsp + 0x38], rdx
test eax, eax
jne 0x1401f2f99
mov rdx, qword [rbx + 0x20]
mov r8, qword [rbx + 0x18]
lea rcx, str.no_such_fts5_table:__s._s
call sym.sqlite3_mprintf
mov dword [rsp + 0x34], 1
mov qword [rbx + 0x10], rax
jmp 0x1401f2f99
mov rcx, rsi
call sym.sqlite3Fts5FlushToDisk
mov dword [rsp + 0x34], eax
test eax, eax
jne 0x1401f2f99
mov rax, qword [rsi + 0x18]
mov rcx, r12
movsxd rdx, dword [rax + 0x18]
add rdx, 8
shl rdx, 4
call sym.sqlite3Fts5MallocZero
test rax, rax
je 0x1401f2f99
mov rcx, qword [rsi + 0x18]
lea rdx, [rax + 0x80]
mov qword [rax + 0x10], rsi
mov qword [rax + 0x48], rdx
movsxd rcx, dword [rcx + 0x18]
mov qword [rax + 8], rdi
lea rdx, [rdx + rcx*8]
mov qword [rax + 0x50], rdx
mov qword [rbp], rax
mov eax, dword [rsp + 0x34]
jmp 0x1401f2fa7
mov rcx, qword [rsp + 0x38]
call sym.sqlite3_finalize
xor eax, eax
jmp 0x1401f2f8f
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x1401f3030
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov r12d, dword [rdx + 0x38]
mov eax, dword [rdx + 0x18]
mov rbx, rdx
mov edx, dword [rdx + 0x28]
cmp r8d, r12d
mov rsi, rcx
cmovle r12d, r8d
mov edi, r8d
mov rbp, r9
add edx, eax
lea ecx, [r8 + rdx + 2]
mov rdx, qword [rsi]
cmp ecx, dword [rdx + 0x88]
jl 0x1401f30a5
cmp eax, 4
jg 0x1401f308f
lea r8d, [rdi + 0x14]
add r8d, dword [rbx + 0x18]
cmp dword [rbx + 0x1c], r8d
jae 0x1401f30a5
lea rdx, [rbx + 0x10]
lea rcx, [rsi + 0x3c]
call sym.sqlite3Fts5BufferSize
jmp 0x1401f30a5
mov rdx, rbx
mov rcx, rsi
call sym.fts5WriteFlushLeaf
cmp dword [rsi + 0x3c], 0
je 0x1401f3072
jmp 0x1401f31cc
mov edx, dword [rbx + 0x18]
sub edx, dword [rbx + 0xc]
movsxd rcx, dword [rbx + 0x28]
movsxd rdx, edx
add rcx, qword [rbx + 0x20]
call sym.sqlite3PutVarint
add dword [rbx + 0x28], eax
mov eax, dword [rbx + 0x18]
cmp byte [rbx + 0x4a], 0
mov dword [rbx + 0xc], eax
je 0x1401f3142
cmp dword [rbx + 8], 1
jne 0x1401f30d8
xor r12d, r12d
jmp 0x1401f3175
cmp dword [rbx + 0x38], 0
mov r8d, edi
je 0x1401f30fc
mov rdx, qword [rbx + 0x30]
xor eax, eax
lea r8d, [rax + 1]
cmp r12d, eax
jle 0x1401f30fc
mov cl, byte [rdx + rax]
inc rax
cmp cl, byte [rbp + rax - 1]
je 0x1401f30e7
cmp dword [rbx + 0x70], 0
je 0x1401f3117
mov rdx, rbx
mov rcx, rsi
mov dword [rsp + 0x2c], r8d
call sym.fts5WriteFlushBtree.part.0
mov r8d, dword [rsp + 0x2c]
cmp dword [rsi + 0x3c], 0
jne 0x1401f31cc
lea rdx, [rbx + 0x60]
lea rcx, [rsi + 0x3c]
mov r9, rbp
call sym.sqlite3Fts5BufferSet
mov eax, dword [rbx + 8]
cmp dword [rsi + 0x3c], 0
mov dword [rbx + 0x70], eax
je 0x1401f30d0
jmp 0x1401f31cc
mov rax, qword [rbx + 0x30]
xor r8d, r8d
cmp r12d, r8d
jle 0x1401f3162
mov cl, byte [rbp + r8]
lea rdx, [r8 + 1]
cmp byte [rax + r8], cl
jne 0x1401f3162
mov r8, rdx
jmp 0x1401f3149
mov r12d, r8d
lea rdx, [rbx + 0x10]
lea rcx, [rsi + 0x3c]
movsxd r8, r8d
call sym.sqlite3Fts5BufferAppendVarint
add rsi, 0x3c
lea r13, [rbx + 0x10]
movsxd r14, r12d
movsxd r8, edi
sub r8, r14
mov rdx, r13
mov rcx, rsi
call sym.sqlite3Fts5BufferAppendVarint
mov r8d, edi
lea r9, [rbp + r14]
mov rdx, r13
sub r8d, r12d
mov rcx, rsi
call sym.sqlite3Fts5BufferAppendBlob
lea rdx, [rbx + 0x30]
mov r9, rbp
mov r8d, edi
mov rcx, rsi
call sym.sqlite3Fts5BufferSet
mov rax, qword [rbx + 0x58]
mov edx, dword [rbx + 8]
mov byte [rbx + 0x4a], 0
mov word [rbx + 0x48], 1
mov dword [rax], edx
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x1401f31e0
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, 0x48
xor ebp, ebp
xor edi, edi
lea rax, [rcx + 0x3c]
mov rbx, rcx
mov rsi, rdx
mov r12, r8
mov qword [rsp + 0x28], rax
or edi, dword [rbx + 0x3c]
jne 0x1401f3386
mov r15, qword [rsi + 0x58]
mov r13, rbp
mov rax, qword [rbx]
shl r13, 5
add r15, r13
mov eax, dword [rax + 0x88]
cmp dword [r15 + 0x18], eax
jl 0x1401f330d
mov rax, qword [r15 + 0x10]
mov rcx, rbx
mov byte [rax], 1
movsxd rdx, dword [rsi]
mov eax, 1
shl rax, 0x24
mov r9d, dword [r15 + 0x18]
mov r8, qword [r15 + 0x10]
shl rdx, 0x25
add rdx, rax
mov rax, rbp
shl rax, 0x1f
add rdx, rax
movsxd rax, dword [r15]
add rdx, rax
call sym.fts5DataWrite
lea r8d, [rbp + 2]
mov rdx, rsi
mov rcx, rbx
call sym.fts5WriteDlidxGrow.isra.0
mov r15, qword [rsi + 0x58]
add r15, r13
cmp dword [rbx + 0x3c], 0
jne 0x1401f32fe
cmp dword [r15 + 0x38], 0
jne 0x1401f32fe
mov r14, qword [r15 + 0x10]
lea r13, [rsp + 0x38]
mov rdx, r13
lea rcx, [r14 + 1]
call sym.sqlite3Fts5GetVarint
mov rdx, r13
lea r13, [r15 + 0x30]
movzx eax, al
lea rcx, [r14 + rax + 1]
call sym.sqlite3Fts5GetVarint
mov eax, dword [r15]
mov rcx, qword [rsp + 0x28]
xor r8d, r8d
mov rdx, r13
mov r14, qword [rsp + 0x38]
mov dword [r15 + 0x20], eax
call sym.sqlite3Fts5BufferAppendVarint
movsxd r8, dword [r15]
mov rcx, qword [rsp + 0x28]
mov rdx, r13
call sym.sqlite3Fts5BufferAppendVarint
mov rcx, qword [rsp + 0x28]
mov r8, r14
mov rdx, r13
call sym.sqlite3Fts5BufferAppendVarint
mov dword [r15 + 0x24], 1
mov qword [r15 + 0x28], r14
xor eax, eax
inc dword [r15]
mov dword [r15 + 0x18], eax
mov dword [r15 + 4], eax
jmp 0x1401f3327
cmp dword [r15 + 4], 0
je 0x1401f3322
mov r8, r12
mov edi, 1
sub r8, qword [r15 + 8]
jmp 0x1401f3364
mov edi, 1
test rbp, rbp
jne 0x1401f3332
movsxd r14, dword [rsi + 8]
jmp 0x1401f3336
movsxd r14, dword [r15 - 0x20]
mov r8d, edi
mov rcx, qword [rsp + 0x28]
lea r13, [r15 + 0x10]
xor r8d, 1
mov rdx, r13
movsxd r8, r8d
call sym.sqlite3Fts5BufferAppendVarint
mov rcx, qword [rsp + 0x28]
mov r8, r14
mov rdx, r13
call sym.sqlite3Fts5BufferAppendVarint
mov r8, r12
mov rcx, qword [rsp + 0x28]
lea rdx, [r15 + 0x10]
inc rbp
call sym.sqlite3Fts5BufferAppendVarint
mov dword [r15 + 4], 1
mov qword [r15 + 8], r12
jmp 0x1401f3206
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1401ffb40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov ebp, dword [rcx + 0x80]
movsxd rdx, edx
mov rbx, rcx
mov rcx, qword [rcx + 0x78]
mov rsi, rdx
imul rdx, rdx, 0x38
call sym.sqlite3Realloc
mov r8, rax
test rax, rax
jne 0x1401ffb76
mov eax, 7
jmp 0x1401ffc12
movsxd rdi, ebp
mov ecx, esi
imul rdi, rdi, 0x38
sub ecx, ebp
movsxd rcx, ecx
imul rcx, rcx, 0x38
lea rdx, [rax + rdi]
xor eax, eax
mov rdi, rdx
rep stosb byte [rdi], al
mov qword [rbx + 0x78], r8
mov rdi, rdx
cmp ebp, esi
jge 0x1401ffc10
mov rax, qword [rbx + 0x50]
mov ecx, dword [rbx + 0x20]
cmp qword [rax], 0
mov dword [rdi + 0x18], ecx
je 0x1401ffbb7
mov rax, qword [rbx + 0x60]
test rax, rax
jg 0x1401ffbbd
mov eax, dword [rbx + 0xb8]
mov qword [rdi], rax
mov eax, dword [rbx + 0x3c]
mov dword [rdi + 0x1c], eax
call sym.sqlite3BitvecCreate
mov dword [rdi + 0x20], 1
mov qword [rdi + 0x10], rax
test rax, rax
je 0x1401ffb6c
mov rax, qword [rbx + 0x128]
test rax, rax
je 0x1401ffc02
mov edx, dword [rax + 0x58]
mov dword [rdi + 0x24], edx
mov edx, dword [rax + 0x60]
mov dword [rdi + 0x28], edx
mov edx, dword [rax + 0x64]
mov dword [rdi + 0x2c], edx
mov eax, dword [rax + 0x88]
mov dword [rdi + 0x30], eax
inc ebp
add rdi, 0x38
mov dword [rbx + 0x80], ebp
jmp 0x1401ffb9a
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x1402074a0
Capabilities:
Reference sql statements

Disassembly:
push r12
push rbp
push rdi
push rsi
sub rsp, 0x58
mov r12d, dword [rsp + 0xa0]
mov byte [rcx + 0x1c], 1
mov ebp, r8d
mov rsi, rdx
mov rdi, r9
mov qword [rsp + 0x28], r9
mov r9, rdx
mov dword [rsp + 0x20], r8d
mov r8, rdx
lea rdx, str.SELECT_1_FROM___w_.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d___Q___d_NULL
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x48], rcx
call sym.sqlite3NestedParse
test ebp, ebp
mov rcx, qword [rsp + 0x48]
jne 0x140207510
mov r9, rdi
mov r8, rsi
lea rdx, str.SELECT_1_FROM_temp.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1___Q___d_NULL
mov dword [rsp + 0xa0], r12d
add rsp, 0x58
pop rsi
pop rdi
pop rbp
pop r12
jmp sym.sqlite3NestedParse
add rsp, 0x58
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x14020a850
Capabilities:
Reference sql statements

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rax, str.SELECT_parentnode_FROM__Q._q_parent_WHERE_nodeno_1
movsxd r12, edx
mov qword [rsp + 0x40], rax
mov rbx, rcx
mov rsi, r8
lea rax, str.SELECT_nodeno_FROM__Q._q_rowid_WHERE_rowid_1
cmp qword [rcx + r12*8 + 0x28], 0
mov rbp, r12
mov rdi, r9
mov qword [rsp + 0x48], rax
lea r13, [r12 + 4]
jne 0x14020a8a7
mov rdx, qword [rsp + r12*8 + 0x40]
mov r9, qword [rcx + 0x10]
mov r8, qword [rcx + 8]
call sym.rtreeCheckPrepare
mov qword [rbx + r13*8 + 8], rax
cmp dword [rbx + 0x40], 0
jne 0x14020a960
mov r12, qword [rbx + r12*8 + 0x28]
mov r8, rsi
mov edx, 1
mov rcx, r12
call sym.sqlite3_bind_int64
mov rcx, r12
call sym.sqlite3_step
cmp eax, 0x65
jne 0x14020a903
test ebp, ebp
lea rdx, str.__rowid
mov r9, rdi
mov r8, rsi
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 0x14020a94f
cmp eax, 0x64
jne 0x14020a94f
xor edx, edx
mov rcx, r12
call sym.sqlite3_column_int64
mov r9, rax
cmp rdi, rax
je 0x14020a94f
lea rdx, str.__rowid
test ebp, ebp
mov r8, rsi
mov rcx, rbx
lea rax, str.__parent
mov qword [rsp + 0x30], rdi
cmovne rax, rdx
mov qword [rsp + 0x28], rsi
lea rdx, str.Found___lld_____lld__in__s_table__expected___lld_____lld_
mov qword [rsp + 0x20], rax
call sym.rtreeCheckAppendMsg
mov rcx, r12
call sym.sqlite3_reset
cmp dword [rbx + 0x40], 0
jne 0x14020a960
mov dword [rbx + 0x40], eax
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x14020cb10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [rcx + 0xa], 0
mov rbx, rcx
je 0x14020cb2b
mov byte [rcx + 0xa], 0
mov rcx, qword [rcx + 0x38]
call sym.sqlite3_reset
mov rcx, rbx
call sym.rtreeSearchPointPop
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp sym.rtreeStepToLeaf
Function at 0x140214190
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp byte [rcx + 0x11], 0
jne 0x1402141a5
mov al, byte [rcx + 0x10]
test al, al
je 0x1402141a5
dec al
jne 0x1402141aa
test edx, edx
je 0x1402141aa
jmp sym.btreeBeginTrans
mov r9, qword [rcx + 8]
test r8, r8
je 0x1402141c3
mov rax, qword [r9 + 0x18]
mov rax, qword [rax + 0x50]
mov eax, dword [rax + 0x28]
bswap eax
mov dword [r8], eax
test edx, edx
je 0x1402141d8
mov rax, qword [rcx]
mov rcx, qword [r9]
mov edx, dword [rax + 0x2f0]
jmp sym.sqlite3PagerOpenSavepoint
xor eax, eax
ret
Function at 0x14022bae0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rbx
mov r9d, edx
cmp ecx, 0x7f
jg 0x14022bafe
lea eax, [rcx - 0x41]
cmp eax, 0x19
ja 0x14022bba5
add ecx, 0x20
jmp 0x14022bba5
cmp ecx, 0xffff
jg 0x14022bb97
or r8d, 0xffffffff
xor r11d, r11d
mov ebx, 0xa2
mov esi, 2
lea r10, [0x1403647a0]
lea eax, [rbx + r11]
cdq
idiv esi
movsxd rdx, eax
movzx edx, word [r10 + rdx*4]
cmp ecx, edx
jl 0x14022bb3e
lea r11d, [rax + 1]
mov r8d, eax
jmp 0x14022bb41
lea ebx, [rax - 1]
cmp ebx, r11d
jge 0x14022bb22
movsxd rax, r8d
movzx edx, word [r10 + rax*4]
movzx r8d, byte [r10 + rax*4 + 3]
add r8d, edx
cmp ecx, r8d
jge 0x14022bb82
mov al, byte [r10 + rax*4 + 2]
xor edx, ecx
mov r8d, eax
and r8d, 1
test r8d, edx
jne 0x14022bb82
shr al, 1
lea rdx, [0x140367f80]
and eax, 0x7f
add cx, word [rdx + rax*2]
movzx ecx, cx
test r9d, r9d
je 0x14022bba5
xor edx, edx
cmp r9d, 2
sete dl
pop rbx
pop rsi
jmp sym.remove_diacritic
lea eax, [rcx - 0x10400]
cmp eax, 0x27
ja 0x14022bba5
add ecx, 0x28
mov eax, ecx
pop rbx
pop rsi
ret

Function at 0x140233520
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp dword [rcx + 0x80], edx
jge 0x140233533
cmp byte [rcx + 0xa], 0
je 0x140233533
jmp sym.pagerOpenSavepoint
xor eax, eax
ret
Function at 0x140260470
Capabilities:
Reference sql statements

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rbp, qword [rcx]
mov r13, qword [rsp + 0xa0]
mov rbx, rcx
mov edi, edx
call sym.statResetCsr
mov rcx, qword [rbx + 8]
mov esi, edi
call sym.sqlite3_finalize
xor ecx, ecx
mov qword [rbx + 8], rcx
and esi, 1
je 0x1402604d2
mov rcx, qword [r13]
call sym.sqlite3_value_text
mov rcx, qword [rbp + 0x18]
mov rdx, rax
call sym.sqlite3FindDbName
test eax, eax
jns 0x1402604d5
xor edx, edx
mov byte [rbx + 0x10], 1
xor eax, eax
mov dword [rbx + 0x14], edx
jmp 0x1402605e3
mov eax, dword [rbp + 0x20]
mov dword [rbx + 0x14], eax
xor r12d, r12d
test edi, 2
je 0x1402604fa
lea r14d, [rsi + 1]
movsxd rsi, esi
mov rcx, qword [r13 + rsi*8]
mov esi, r14d
call sym.sqlite3_value_text
mov r12, rax
xor eax, eax
test edi, 4
je 0x140260523
movsxd rsi, esi
mov rcx, qword [r13 + rsi*8]
call sym.sqlite3VdbeRealValue
mov dl, 1
movaps xmm1, xmm0
xorps xmm0, xmm0
ucomisd xmm1, xmm0
setp al
cmovne eax, edx
mov byte [rbx + 0x11], al
mov rcx, qword [rbp + 0x18]
call sym.sqlite3_str_new
mov rdx, qword [rbp + 0x18]
mov rsi, rax
movsxd rax, dword [rbx + 0x14]
mov rcx, rsi
shl rax, 5
add rax, qword [rdx + 0x20]
lea rdx, str.SELECT__FROM__SELECT_sqlite_schema_AS_name_1_AS_rootpage_table_AS_type_UNION_ALL_SELECT_name_rootpage_type_FROM___w_.sqlite_schema_WHERE_rootpage_0_
mov r8, qword [rax]
call sym.sqlite3_str_appendf
test r12, r12
je 0x14026056b
mov r8, r12
lea rdx, str.WHERE_name_Q
mov rcx, rsi
call sym.sqlite3_str_appendf
and edi, 8
je 0x14026057f
lea rdx, str._ORDER_BY_name
mov rcx, rsi
call sym.sqlite3_str_appendf
mov rcx, rsi
call sym.sqlite3_str_finish
mov rdi, rax
test rax, rax
je 0x1402605de
xor eax, eax
mov rcx, qword [rbp + 0x18]
lea r9, [rbx + 8]
or r8d, 0xffffffff
mov qword [rsp + 0x20], rax
mov rdx, rdi
call sym.sqlite3_prepare_v2
mov rcx, rdi
mov dword [rsp + 0x3c], eax
call sym.sqlite3_free
mov eax, dword [rsp + 0x3c]
test eax, eax
jne 0x1402605e3
mov dword [rbx + 0x818], 0xffffffff
mov rcx, rbx
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp sym.statNext
mov eax, 7
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x140265300
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, 0x48
mov rsi, qword [rsp + 0xc0]
mov ebp, r8d
mov r14, rcx
mov r8, qword [rsi + 0x18]
mov r12d, edx
mov ecx, ebp
mov qword [rsp + 0xa8], r9
call sym.sqlite3VdbeSerialTypeLen
mov ebx, eax
mov eax, 0x12
cmp dword [r8 + 0x88], ebx
jl 0x1402654d9
mov r13b, byte [rsi + 0x16]
cmp ebx, 0xfa0
jle 0x140265488
cmp qword [r14 + 0x38], 0
jne 0x140265488
test byte [r14 + 8], 0x10
jne 0x14026538f
mov edx, 0x20
mov rcx, r8
call sym.sqlite3DbMallocZero
mov qword [r14 + 0x70], rax
test rax, rax
jne 0x14026538a
mov eax, 7
jmp 0x1402654d9
or byte [r14 + 8], 0x10
mov rdi, qword [r14 + 0x70]
cmp qword [rdi], 0
jne 0x1402653a8
mov rcx, qword [rdi]
test rcx, rcx
je 0x1402653dd
call sym.sqlite3RCStrUnref
jmp 0x1402653dd
cmp dword [rdi + 0x10], r12d
jne 0x140265399
mov eax, dword [rsp + 0xb0]
cmp dword [rdi + 0x14], eax
jne 0x140265399
mov eax, dword [rsp + 0xb8]
cmp dword [rdi + 0x18], eax
jne 0x140265399
mov rcx, qword [r14 + 0x30]
mov r15, qword [rdi + 8]
call sym.sqlite3BtreeOffset
cmp r15, rax
jne 0x140265399
mov r15, qword [rdi]
jmp 0x14026544f
lea ecx, [rbx + 3]
movsxd rcx, ecx
call sym.sqlite3RCStrNew
mov qword [rdi], rax
mov r15, rax
test rax, rax
je 0x140265380
xor eax, eax
mov rcx, qword [r14 + 0x30]
mov edx, dword [rsp + 0xa8]
mov r9, r15
mov dword [rsp + 0x20], eax
mov r8d, ebx
call sym.accessPayload
test eax, eax
jne 0x1402654d9
mov eax, ebx
mov byte [r15 + rax], 0
mov byte [r15 + rax + 1], 0
mov byte [r15 + rax + 2], 0
mov eax, dword [rsp + 0xb0]
mov dword [rdi + 0x10], r12d
mov rcx, qword [r14 + 0x30]
mov dword [rdi + 0x14], eax
mov eax, dword [rsp + 0xb8]
mov dword [rdi + 0x18], eax
call sym.sqlite3BtreeOffset
mov qword [rdi + 8], rax
inc qword [r15 - 8]
lea rax, [sym.sqlite3RCStrUnref]
and ebp, 1
mov r8d, ebx
mov qword [rsp + 0x20], rax
je 0x140265478
movzx r9d, r13b
mov rdx, r15
mov rcx, rsi
call sym.sqlite3VdbeMemSetStr
jmp 0x1402654cd
xor r9d, r9d
mov rdx, r15
mov rcx, rsi
call sym.sqlite3VdbeMemSetStr
jmp 0x1402654d3
mov rcx, qword [r14 + 0x30]
mov edx, dword [rsp + 0xa8]
mov r9, rsi
mov r8d, ebx
call sym.sqlite3VdbeMemFromBtree
test eax, eax
jne 0x1402654d9
mov rcx, qword [rsi + 8]
mov r8, rsi
mov edx, ebp
mov dword [rsp + 0x3c], eax
call sym.sqlite3VdbeSerialGet
dec r13b
mov eax, dword [rsp + 0x3c]
jne 0x1402654d3
and ebp, 1
je 0x1402654d3
mov rdx, qword [rsi + 8]
movsxd rbx, ebx
mov byte [rdx + rbx], 0
or word [rsi + 0x14], 0x200
and word [rsi + 0x14], 0xbfff
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140266ab0
Capabilities:
Create thread

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
xor esi, esi
xor r13d, r13d
movzx r12d, byte [rcx + 0x5b]
mov ebp, r12d
dec r12d
mov byte [rcx + 0x58], 1
mov rbx, rcx
cmp r13d, r12d
jge 0x140266bb0
movzx eax, byte [rbx + 0x5a]
lea eax, [r13 + rax + 1]
cdq
idiv r12d
movsxd rdx, edx
lea rsi, [rdx + 1]
imul rdx, rdx, 0x60
imul rsi, rsi, 0x60
lea rdi, [rbx + rdx]
add rsi, rbx
cmp dword [rdi + 0x68], 0
jne 0x140266b11
cmp qword [rdi + 0x60], 0
je 0x140266b22
inc r13d
jmp 0x140266ad3
mov rcx, rsi
call sym.vdbeSorterJoinThread
test eax, eax
je 0x140266b05
jmp 0x140266bd6
lea rdx, [rbx + 0x60]
mov rax, rsi
mov rcx, qword [rsi + 0x28]
movups xmm0, xmmword [rbx + 0x38]
sub rax, rdx
movabs rdx, 0xaaaaaaaaaaaaaaab
sar rax, 5
imul rax, rdx
mov byte [rbx + 0x5a], al
mov rax, qword [rbx + 0x48]
movups xmmword [rsi + 0x20], xmm0
mov qword [rsi + 0x30], rax
xor eax, eax
mov qword [rbx + 0x38], rax
mov qword [rbx + 0x48], rax
test rcx, rcx
je 0x140266b72
mov qword [rbx + 0x40], rcx
call sym.sqlite3MallocSize
mov dword [rbx + 0x54], eax
jmp 0x140266b8b
cmp qword [rbx + 0x40], 0
je 0x140266b8b
movsxd rcx, dword [rbx + 0x54]
call sym.sqlite3Malloc
mov qword [rbx + 0x40], rax
test rax, rax
je 0x140266ba9
mov r8, rsi
lea rdx, [sym.vdbeSorterFlushThread]
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sym.sqlite3ThreadCreate
mov eax, 7
jmp 0x140266bd6
jne 0x140266b22
movzx ecx, bpl
lea rdx, [rbx + 0x38]
imul rcx, rcx, 0x60
add rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sym.vdbeSorterListToPMA
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x1402723b0
Capabilities:
Encode data using xor

Disassembly:
push rbx
xor r9d, r9d
xor r11d, r11d
movsxd rax, dword [rcx + 0xc]
lea r10d, [rax + 1]
add rax, qword [rcx]
mov bl, byte [rdx + r9]
xor byte [rax], bl
movsxd rax, r10d
cmp dword [rcx + 8], r10d
cmovle rax, r11
inc r9
cmp r8d, r9d
jg 0x1402723bb
add dword [rcx + 0x10], r8d
mov dword [rcx + 0xc], eax
pop rbx
ret