joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1405b3058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1405b31df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1405b3089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405b306f
add dl, dl
jne 0x1405b3096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405b30f6
xor eax, eax
add dl, dl
jne 0x1405b30a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405b31ad
add dl, dl
jne 0x1405b30b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405b30c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405b30d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405b30dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1405b30ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1405b307e
mov eax, 1
add dl, dl
jne 0x1405b3106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405b3113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405b30fb
sub eax, ebx
mov ebx, 1
jne 0x1405b314c
mov ecx, 1
add dl, dl
jne 0x1405b312e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1405b313b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405b3123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405b307e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1405b3168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1405b3175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405b315d
cmp eax, 0x7d00
jae 0x1405b319b
cmp eax, 0x500
jb 0x1405b3196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405b307e
cmp eax, 0x7f
ja 0x1405b319e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405b307e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1405b31d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1405b307e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140002830
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x20], 0x8000
mov r8d, 0x8000
xor edx, edx
lea rcx, [0x1401b3400]
call fcn.1401557b0
mov r8d, dword [rsp + 0x20]
lea rdx, [0x1401b3400]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x140002881
mov eax, dword [rsp + 0x20]
cmp dword [rsp + 0x24], eax
jbe 0x140002887
xor eax, eax
jmp 0x14000288e
lea rax, [0x1401b3400]
add rsp, 0x38
ret
Function at 0x14000c790
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea rdx, [0x14019ba9c]
mov rcx, qword [rsp + 0x68]
call fcn.140158a70
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14000c7c1
jmp 0x14000c8e7
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x28]
call fcn.1401592a4
mov rcx, qword [rsp + 0x28]
call fcn.1401597a0
cdqe
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x28]
call fcn.14015a490
mov rcx, qword [rsp + 0x60]
call sym.sqlite3.exe_sqlite3_context_db_handle
mov qword [rsp + 0x48], rax
mov r8d, 0xffffffff
xor edx, edx
mov rcx, qword [rsp + 0x48]
call sym.sqlite3.exe_sqlite3_limit
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
cmp qword [rsp + 0x30], rax
jle 0x14000c83d
mov edx, 0x12
mov rcx, qword [rsp + 0x60]
call sym.sqlite3.exe_sqlite3_result_error_code
mov rcx, qword [rsp + 0x28]
call fcn.140158310
jmp 0x14000c8e7
cmp qword [rsp + 0x30], 0
je 0x14000c851
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x40], rax
jmp 0x14000c85a
mov qword [rsp + 0x40], 1
mov rcx, qword [rsp + 0x40]
call sym.sqlite3.exe_sqlite3_malloc64
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x14000c887
mov rcx, qword [rsp + 0x60]
call sym.sqlite3.exe_sqlite3_result_error_nomem
mov rcx, qword [rsp + 0x28]
call fcn.140158310
jmp 0x14000c8e7
mov r9, qword [rsp + 0x28]
mov r8, qword [rsp + 0x30]
mov edx, 1
mov rcx, qword [rsp + 0x38]
call fcn.140158fd4
cmp qword [rsp + 0x30], rax
jne 0x14000c8c4
lea r9, [sym.sqlite3.exe_sqlite3_free]
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call sym.sqlite3.exe_sqlite3_result_blob64
jmp 0x14000c8dd
mov edx, 0xa
mov rcx, qword [rsp + 0x60]
call sym.sqlite3.exe_sqlite3_result_error_code
mov rcx, qword [rsp + 0x38]
call sym.sqlite3.exe_sqlite3_free
mov rcx, qword [rsp + 0x28]
call fcn.140158310
add rsp, 0x58
ret
Function at 0x14000cc30
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x1401b2788]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rdx, qword [rsp + 0x80]
lea rcx, [0x14019babc]
call sym.sqlite3.exe_sqlite3_mprintf
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x24], 0
cmp qword [rsp + 0x28], 0
jne 0x14000cc7e
mov dword [rsp + 0x24], 7
jmp 0x14000cd56
mov rcx, qword [rsp + 0x28]
call fcn.140157e30
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x20], 1
cmp dword [rsp + 0x24], 0
jne 0x14000cd4c
jmp 0x14000ccab
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
movsx eax, byte [rcx + rax]
cmp eax, 0x2f
je 0x14000ccca
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x20], eax
jge 0x14000ccca
jmp 0x14000cca1
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x20], eax
jne 0x14000ccd6
jmp 0x14000cd4c
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov byte [rcx + rax], 0
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
call fcn.14000cb90
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x14000cd16
mov rcx, qword [rsp + 0x28]
call fcn.140165cec
test eax, eax
je 0x14000cd14
mov dword [rsp + 0x24], 1
jmp 0x14000cd2f
movzx eax, word [rsp + 0x3e]
and eax, 0xf000
cmp eax, 0x4000
je 0x14000cd2f
mov dword [rsp + 0x24], 1
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov byte [rcx + rax], 0x2f
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
jmp 0x14000cc94
mov rcx, qword [rsp + 0x28]
call sym.sqlite3.exe_sqlite3_free
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140154660
add rsp, 0x78
ret
Function at 0x14000fec0
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x30], 0
mov edx, 0x2060
lea rcx, [rsp + 0x30]
call fcn.140010690
mov qword [rsp + 0x38], rax
cmp dword [rsp + 0x30], 0
jne 0x14000ff26
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x38]
mov dword [rax], 0x64
mov rax, qword [rsp + 0x38]
add rax, 0x18
mov rdx, rax
lea rcx, [0x14019d200]
call sym.sqlite3.exe_sqlite3_open
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x14000ff6c
mov rax, qword [rsp + 0x38]
add rax, 0x10
mov rdx, rax
lea rcx, [0x14019d218]
call sym.sqlite3.exe_sqlite3_open
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x14000ff6c
xor r9d, r9d
mov r8d, 1
mov edx, 0x3f0
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x10]
call sym.sqlite3.exe_sqlite3_db_config
cmp dword [rsp + 0x30], 0
jne 0x14001000a
mov qword [rsp + 0x40], 0
lea r9, str.SELECT_sql_FROM_sqlite_schema_WHERE_name_NOT_LIKE_sqlite____AND_sql_NOT_LIKE_CREATE_VIRTUAL___
mov r8, qword [rsp + 0x68]
lea rdx, [rsp + 0x40]
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 8]
call fcn.140010ce0
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x14000fffb
mov rcx, qword [rsp + 0x40]
call sym.sqlite3.exe_sqlite3_step
cmp eax, 0x64
jne 0x14000fffb
xor edx, edx
mov rcx, qword [rsp + 0x40]
call sym.sqlite3.exe_sqlite3_column_text
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x14000fff9
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x10]
call sym.sqlite3.exe_sqlite3_exec
mov dword [rsp + 0x30], eax
jmp 0x14000ffa3
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.140011680
cmp dword [rsp + 0x30], 0
jne 0x140010024
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x38]
call fcn.140013520
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x140010045
mov r8, qword [rsp + 0x38]
lea rdx, [0x140012f00]
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x18]
call sym.sqlite3.exe_sqlite3_set_authorizer
cmp dword [rsp + 0x30], 0
je 0x14001005f
mov rcx, qword [rsp + 0x38]
call fcn.1400105e0
mov qword [rsp + 0x38], 0
mov rax, qword [rsp + 0x38]
add rsp, 0x58
ret
Function at 0x140013c70
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x20], 0
lea rax, str.SELECT_max_i.seqno__FROM___sqlite_schema_AS_s____pragma_index_list_s.name__AS_l____pragma_index_info_l.name__AS_i_WHERE_s.type__table
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x58]
mov dword [rax], 0
mov r9, qword [rsp + 0x30]
mov r8, qword [rsp + 0x60]
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
call fcn.140010c70
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x140013cf3
mov rcx, qword [rsp + 0x28]
call sym.sqlite3.exe_sqlite3_step
cmp eax, 0x64
jne 0x140013cf3
xor edx, edx
mov rcx, qword [rsp + 0x28]
call sym.sqlite3.exe_sqlite3_column_int
inc eax
mov rcx, qword [rsp + 0x58]
mov dword [rcx], eax
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x20]
call fcn.140011680
mov eax, dword [rsp + 0x20]
add rsp, 0x48
ret
Function at 0x140018d00
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SAVEPOINT_selftest_init__nCREATE_TABLE_IF_NOT_EXISTS_selftest__n__tno_INTEGER_PRIMARY_KEY__n__op_TEXT__n__cmd_TEXT__n__ans_TEXT_n__CREATE_TEMP_TABLE___shell_self__op_cmd_ans___nINSERT_INTO___shell_self__rowid_op_cmd__n__VALUES_coalesce__SELECT__max_tno_100__10_FROM_selftest__10___n_________memo_Tests_generated_by___init___nINSERT_INTO___shell_self__n__SELECT_run__n____SELECT_hex_sha3_query_SELECT_type_name_tbl_name_sql_FROM_sqlite_schema_ORDER_BY_2_224____n____hex_sha3_query_SELECT_type_name_tbl_name_sql_FROM_sqlite_schema_ORDER_BY_2_224____nINSERT_INTO___shell_self__n__SELECT_run_____SELECT_hex_sha3_query_SELECT__FROM___________printf__w_name_____NOT_INDEXED_224____n____hex_sha3_query_printf_SELECT__FROM___w__NOT_INDEXED_name__224___n__FROM___n____SELECT_name_FROM_sqlite_schema_n_____WHERE_typetable_n_______AND_name__selftest_n_______AND_coalesce_rootpage_0__0_n____n_ORDER_BY_name__nINSERT_INTO___shell_self__n__VALUES_run_PRAGMA_integrity_check_ok___nINSERT_INTO_selftest_tno_op_cmd_ans___SELECT_rowid10_op_cmd_ans_FROM___shell_self___nDROP_TABLE___shell_self__
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
call sym.sqlite3.exe_sqlite3_exec
cmp qword [rsp + 0x30], 0
je 0x140018d66
mov ecx, 2
call fcn.140158204
mov r8, qword [rsp + 0x30]
lea rdx, str.SELFTEST_initialization_failure:__s_n
mov rcx, rax
call fcn.1400013e0
mov rcx, qword [rsp + 0x30]
call sym.sqlite3.exe_sqlite3_free
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, str.RELEASE_selftest_init
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
call sym.sqlite3.exe_sqlite3_exec
add rsp, 0x48
ret
Function at 0x14001a750
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [0x1401b2788]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x58], 0
mov rcx, qword [rsp + 0xb8]
call sym.sqlite3.exe_sqlite3_bind_parameter_count
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jne 0x14001a799
jmp 0x14001a91a
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
lea r9, [0x14019de94]
lea r8, str.sqlite_parameters
lea rdx, [0x14019e5d4]
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rax]
call sym.sqlite3.exe_sqlite3_table_column_metadata
test eax, eax
je 0x14001a7f4
jmp 0x14001a91a
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x58]
mov r8d, 0xffffffff
lea rdx, str.SELECT_value_FROM_temp.sqlite_parameters_WHERE_key_1
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rax]
call sym.sqlite3.exe_sqlite3_prepare_v2
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0
jne 0x14001a832
cmp qword [rsp + 0x58], 0
jne 0x14001a837
jmp 0x14001a91a
mov dword [rsp + 0x50], 1
jmp 0x14001a84b
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x50], eax
jg 0x14001a910
mov edx, dword [rsp + 0x50]
mov rcx, qword [rsp + 0xb8]
call sym.sqlite3.exe_sqlite3_bind_parameter_name
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x14001a89c
mov r9d, dword [rsp + 0x50]
lea r8, [0x14019dedc]
lea rdx, [rsp + 0x70]
mov ecx, 0x1e
call sym.sqlite3.exe_sqlite3_snprintf
lea rax, [rsp + 0x70]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x20], 0
mov r9d, 0xffffffff
mov r8, qword [rsp + 0x68]
mov edx, 1
mov rcx, qword [rsp + 0x58]
call sym.sqlite3.exe_sqlite3_bind_text
mov rcx, qword [rsp + 0x58]
call sym.sqlite3.exe_sqlite3_step
cmp eax, 0x64
jne 0x14001a8f0
xor edx, edx
mov rcx, qword [rsp + 0x58]
call sym.sqlite3.exe_sqlite3_column_value
mov r8, rax
mov edx, dword [rsp + 0x50]
mov rcx, qword [rsp + 0xb8]
call sym.sqlite3.exe_sqlite3_bind_value
jmp 0x14001a901
mov edx, dword [rsp + 0x50]
mov rcx, qword [rsp + 0xb8]
call sym.sqlite3.exe_sqlite3_bind_null
mov rcx, qword [rsp + 0x58]
call sym.sqlite3.exe_sqlite3_reset
jmp 0x14001a841
mov rcx, qword [rsp + 0x58]
call sym.sqlite3.exe_sqlite3_finalize
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140154660
add rsp, 0xa8
ret
Function at 0x14001ea30
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
lea rdx, [0x14019f1ac]
mov rcx, qword [rsp + 0x50]
call fcn.140158a70
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14001ea63
xor eax, eax
jmp 0x14001eb20
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x28]
call fcn.1401592a4
mov rcx, qword [rsp + 0x28]
call fcn.1401597a0
mov dword [rsp + 0x20], eax
mov rcx, qword [rsp + 0x28]
call fcn.14015a490
mov eax, dword [rsp + 0x20]
inc eax
cdqe
mov rcx, rax
call sym.sqlite3.exe_sqlite3_malloc64
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x14001eab8
mov rcx, qword [rsp + 0x28]
call fcn.140158310
xor eax, eax
jmp 0x14001eb20
movsxd rax, dword [rsp + 0x20]
mov r9, qword [rsp + 0x28]
mov r8d, 1
mov rdx, rax
mov rcx, qword [rsp + 0x30]
call fcn.140158fd4
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x28]
call fcn.140158310
cmp qword [rsp + 0x38], 1
je 0x14001eafa
mov rcx, qword [rsp + 0x30]
call sym.sqlite3.exe_sqlite3_free
xor eax, eax
jmp 0x14001eb20
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
mov byte [rcx + rax], 0
cmp qword [rsp + 0x58], 0
je 0x14001eb1b
mov rax, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x20]
mov dword [rax], ecx
mov rax, qword [rsp + 0x30]
add rsp, 0x48
ret
Function at 0x14001eb30
Capabilities:
Read file on windows

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0xc8
mov rax, qword [0x1401b2788]
xor rax, rsp
mov qword [rsp + 0xb0], rax
lea rdx, [0x14019f1b0]
mov rcx, qword [rsp + 0xd0]
call fcn.140158a70
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
cmp qword [rsp + 0x28], 0
jne 0x14001ebb6
cmp dword [rsp + 0xd8], 0
je 0x14001ebac
xor r8d, r8d
mov rdx, qword [rsp + 0xd0]
lea rcx, [0x14019f1b4]
call sym.sqlite3.exe_sqlite3_strlike
test eax, eax
jne 0x14001ebac
mov eax, 3
jmp 0x14001ed45
mov eax, 1
jmp 0x14001ed45
mov r9, qword [rsp + 0x28]
mov r8d, 1
mov edx, 0x10
lea rcx, [rsp + 0x40]
call fcn.140158fd4
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 1
jne 0x14001ec0c
mov r8d, 0x10
lea rdx, str.SQLite_format_3
lea rcx, [rsp + 0x40]
call fcn.140155250
test eax, eax
jne 0x14001ec0c
mov rcx, qword [rsp + 0x28]
call fcn.140158310
mov eax, 1
jmp 0x14001ed45
mov r8d, 2
mov edx, 0xffffffe7
mov rcx, qword [rsp + 0x28]
call fcn.1401592a4
mov r9, qword [rsp + 0x28]
mov r8d, 1
mov edx, 0x19
lea rcx, [rsp + 0x40]
call fcn.140158fd4
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 1
jne 0x14001ec70
mov r8d, 0x11
lea rdx, str.Start_Of_SQLite3_
lea rcx, [rsp + 0x40]
call fcn.140155250
test eax, eax
jne 0x14001ec70
mov dword [rsp + 0x20], 2
jmp 0x14001ed37
mov r8d, 2
mov edx, 0xffffffea
mov rcx, qword [rsp + 0x28]
call fcn.1401592a4
mov r9, qword [rsp + 0x28]
mov r8d, 1
mov edx, 0x16
lea rcx, [rsp + 0x40]
call fcn.140158fd4
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 1
jne 0x14001ed02
mov eax, 1
imul rax, rax, 0
movsx eax, byte [rsp + rax + 0x40]
cmp eax, 0x50
jne 0x14001ed02
mov eax, 1
imul rax, rax, 1
movsx eax, byte [rsp + rax + 0x40]
cmp eax, 0x4b
jne 0x14001ed02
mov eax, 1
imul rax, rax, 2
movsx eax, byte [rsp + rax + 0x40]
cmp eax, 5
jne 0x14001ed02
mov eax, 1
imul rax, rax, 3
movsx eax, byte [rsp + rax + 0x40]
cmp eax, 6
jne 0x14001ed02
mov dword [rsp + 0x20], 3
jmp 0x14001ed37
cmp qword [rsp + 0x30], 0
jne 0x14001ed37
cmp dword [rsp + 0xd8], 0
je 0x14001ed37
xor r8d, r8d
mov rdx, qword [rsp + 0xd0]
lea rcx, str._.zip
call sym.sqlite3.exe_sqlite3_strlike
test eax, eax
jne 0x14001ed37
mov dword [rsp + 0x20], 3
mov rcx, qword [rsp + 0x28]
call fcn.140158310
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140154660
add rsp, 0xc8
ret
Function at 0x140033330
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
call sym.sqlite3.exe_sqlite3_initialize
test eax, eax
je 0x140033355
jmp 0x140033590
mov ecx, 5
call fcn.140050f10
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x28]
call sym.sqlite3.exe_sqlite3_mutex_enter
cmp dword [rsp + 0x50], 0
jle 0x14003337d
cmp qword [rsp + 0x58], 0
jne 0x1400333a3
mov eax, 4
imul rax, rax, 0
lea rcx, [0x1401bb640]
mov dword [rcx + rax], 0
mov rcx, qword [rsp + 0x28]
call sym.sqlite3.exe_sqlite3_mutex_leave
jmp 0x140033590
mov eax, 4
imul rax, rax, 0
lea rcx, [0x1401bb640]
cmp dword [rcx + rax], 0
jne 0x140033491
xor ecx, ecx
call sym.sqlite3.exe_sqlite3_vfs_find
mov qword [rsp + 0x30], rax
mov eax, 4
imul rax, rax, 0
lea rcx, [0x1401bb640]
add rcx, rax
mov rax, rcx
mov r8d, 0x10
lea rdx, str.expand_32_byte_k______3M_f
mov rcx, rax
call fcn.140155350
cmp qword [rsp + 0x30], 0
jne 0x140033424
mov eax, 4
imul rax, rax, 4
lea rcx, [0x1401bb640]
add rcx, rax
mov rax, rcx
mov r8d, 0x2c
xor edx, edx
mov rcx, rax
call fcn.1401557b0
jmp 0x14003344c
mov eax, 4
imul rax, rax, 4
lea rcx, [0x1401bb640]
add rcx, rax
mov rax, rcx
mov r8, rax
mov edx, 0x2c
mov rcx, qword [rsp + 0x30]
call fcn.14003fa10
mov eax, 4
imul rax, rax, 0xc
lea rcx, [0x1401bb640]
mov edx, 4
imul rdx, rdx, 0xf
lea r8, [0x1401bb640]
mov eax, dword [rcx + rax]
mov dword [r8 + rdx], eax
mov eax, 4
imul rax, rax, 0xc
lea rcx, [0x1401bb640]
mov dword [rcx + rax], 0
mov byte [0x1401bb6c0], 0
xor eax, eax
cmp eax, 1
je 0x140033586
movzx eax, byte [0x1401bb6c0]
cmp dword [rsp + 0x50], eax
jg 0x1400334ef
movsxd rax, dword [rsp + 0x50]
movzx ecx, byte [0x1401bb6c0]
sub ecx, dword [rsp + 0x50]
movsxd rcx, ecx
lea rdx, [0x1401bb680]
add rdx, rcx
mov rcx, rdx
mov r8, rax
mov rdx, rcx
mov rcx, qword [rsp + 0x20]
call fcn.140155350
movzx eax, byte [0x1401bb6c0]
sub eax, dword [rsp + 0x50]
mov byte [0x1401bb6c0], al
jmp 0x140033586
movzx eax, byte [0x1401bb6c0]
test eax, eax
jle 0x14003353f
movzx eax, byte [0x1401bb6c0]
mov r8d, eax
lea rdx, [0x1401bb680]
mov rcx, qword [rsp + 0x20]
call fcn.140155350
movzx eax, byte [0x1401bb6c0]
mov ecx, dword [rsp + 0x50]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x50], eax
movzx eax, byte [0x1401bb6c0]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov eax, 4
imul rax, rax, 0xc
lea rcx, [0x1401bb640]
mov eax, dword [rcx + rax]
inc eax
mov ecx, 4
imul rcx, rcx, 0xc
lea rdx, [0x1401bb640]
mov dword [rdx + rcx], eax
lea rdx, [0x1401bb640]
lea rcx, [0x1401bb680]
call fcn.1400a0ed0
mov byte [0x1401bb6c0], 0x40
jmp 0x140033491
mov rcx, qword [rsp + 0x28]
call sym.sqlite3.exe_sqlite3_mutex_leave
add rsp, 0x48
ret
Function at 0x14008c340
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
mov qword [rax], 0
mov ecx, 0x28
call fcn.140050340
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x14008c380
mov eax, 7
jmp 0x14008c454
movzx eax, byte [0x1401a5974]
test eax, eax
je 0x14008c399
mov ecx, 0xc8
call fcn.14005e3c0
test eax, eax
je 0x14008c3ad
mov r8d, 0x28
xor edx, edx
mov rcx, qword [rsp + 0x30]
call fcn.1401557b0
jmp 0x14008c419
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x58]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x60]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x30]
add rax, 8
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x30]
lea r8, [0x1400a1f70]
xor edx, edx
xor ecx, ecx
call fcn.140166be8
mov rcx, qword [rsp + 0x30]
mov qword [rcx], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
jne 0x14008c419
mov r8d, 0x28
xor edx, edx
mov rcx, qword [rsp + 0x30]
call fcn.1401557b0
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x10], 0
jne 0x14008c445
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rcx, qword [rsp + 0x30]
mov dword [rcx + 8], eax
mov rcx, qword [rsp + 0x60]
call qword [rsp + 0x58]
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 0x20], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
mov qword [rax], rcx
xor eax, eax
add rsp, 0x48
ret
Function at 0x1400d4d80
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
mov byte [rax + 0x1c], 1
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x58]
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 rcx, qword [rsp + 0x50]
call fcn.140081830
cmp dword [rsp + 0x60], 0
jne 0x1400d4e00
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x68]
mov r8, qword [rsp + 0x58]
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 rcx, qword [rsp + 0x50]
call fcn.140081830
add rsp, 0x48
ret