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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rax, str.SELECT_stat_FROM__Q.sqlite_stat1_WHERE_tbl___q_rowid
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x68], 0x64
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
xor r9d, r9d
lea r8, str.sqlite_stat1
mov rax, qword [rsp + 0x98]
mov rdx, qword [rax + 0x30]
mov rcx, qword [rsp + 0x90]
call sym.sqlite3.exe_sqlite3_table_column_metadata
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x140123c03
mov rax, qword [rsp + 0x98]
mov qword [rax + 0x48], 0x100000
cmp dword [rsp + 0x50], 1
jne 0x140123bf2
mov dword [rsp + 0x54], 0
jmp 0x140123bfa
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x54]
jmp 0x140123cd7
mov rax, qword [rsp + 0x98]
mov r8, qword [rax + 0x38]
mov rax, qword [rsp + 0x98]
mov rdx, qword [rax + 0x30]
mov rcx, qword [rsp + 0x78]
call sym.sqlite3.exe_sqlite3_mprintf
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x140123c3c
mov dword [rsp + 0x50], 7
jmp 0x140123ca5
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x58]
mov r8d, 0xffffffff
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x90]
call sym.sqlite3.exe_sqlite3_prepare_v2
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x140123c9b
mov rcx, qword [rsp + 0x58]
call sym.sqlite3.exe_sqlite3_step
cmp eax, 0x64
jne 0x140123c8d
xor edx, edx
mov rcx, qword [rsp + 0x58]
call sym.sqlite3.exe_sqlite3_column_int64
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x58]
call sym.sqlite3.exe_sqlite3_finalize
mov dword [rsp + 0x50], eax
mov rcx, qword [rsp + 0x60]
call sym.sqlite3.exe_sqlite3_free
cmp qword [rsp + 0x68], 0x64
jle 0x140123cb9
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
jmp 0x140123cc2
mov qword [rsp + 0x70], 0x64
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x70]
mov qword [rax + 0x48], rcx
mov eax, dword [rsp + 0x50]
add rsp, 0x88
ret
Function at 0x140124350
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, 0x38
cmp dword [rsp + 0x50], 0
je 0x14012441b
mov dword [rsp + 0x24], 0
mov rax, qword [rsp + 0x48]
mov rdx, qword [rax + 0x30]
lea rcx, str.PRAGMA__Q.page_size
call sym.sqlite3.exe_sqlite3_mprintf
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x24]
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
call fcn.1401242b0
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x1401243f5
mov eax, dword [rsp + 0x24]
sub eax, 0x40
mov rcx, qword [rsp + 0x48]
mov dword [rcx + 0x20], eax
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax + 0x27]
imul eax, eax, 0x33
add eax, 4
mov rcx, qword [rsp + 0x48]
cmp eax, dword [rcx + 0x20]
jge 0x1401243f3
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax + 0x27]
imul eax, eax, 0x33
add eax, 4
mov rcx, qword [rsp + 0x48]
mov dword [rcx + 0x20], eax
jmp 0x140124416
mov rcx, qword [rsp + 0x40]
call sym.sqlite3.exe_sqlite3_errmsg
mov rdx, rax
lea rcx, [0x1401aa0d4]
call sym.sqlite3.exe_sqlite3_mprintf
mov rcx, qword [rsp + 0x58]
mov qword [rcx], rax
jmp 0x1401244ba
mov rax, qword [rsp + 0x48]
mov r8, qword [rax + 0x38]
mov rax, qword [rsp + 0x48]
mov rdx, qword [rax + 0x30]
lea rcx, str.SELECT_length_data__FROM__q._q_node_WHERE_nodeno__1
call sym.sqlite3.exe_sqlite3_mprintf
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x48]
add rax, 0x20
mov r8, rax
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
call fcn.1401242b0
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140124487
mov rcx, qword [rsp + 0x40]
call sym.sqlite3.exe_sqlite3_errmsg
mov rdx, rax
lea rcx, [0x1401aa10c]
call sym.sqlite3.exe_sqlite3_mprintf
mov rcx, qword [rsp + 0x58]
mov qword [rcx], rax
jmp 0x1401244ba
mov rax, qword [rsp + 0x48]
cmp dword [rax + 0x20], 0x1c0
jge 0x1401244ba
mov dword [rsp + 0x20], 0x10b
mov rax, qword [rsp + 0x48]
mov rdx, qword [rax + 0x38]
lea rcx, str.undersize_RTree_blobs_in___q_node_
call sym.sqlite3.exe_sqlite3_mprintf
mov rcx, qword [rsp + 0x58]
mov qword [rcx], rax
mov rcx, qword [rsp + 0x28]
call sym.sqlite3.exe_sqlite3_free
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x140124a70
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x40], 0
jne 0x140124acf
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x20], 0
jne 0x140124acf
mov rax, qword [rsp + 0x50]
mov r9, qword [rax + 0x10]
mov rax, qword [rsp + 0x50]
mov r8, qword [rax + 8]
lea rdx, str.SELECT_data_FROM__Q._q_node_WHERE_nodeno_
mov rcx, qword [rsp + 0x50]
call fcn.1401248b0
mov rcx, qword [rsp + 0x50]
mov qword [rcx + 0x20], rax
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x40], 0
jne 0x140124bb8
mov r8, qword [rsp + 0x58]
mov edx, 1
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x20]
call sym.sqlite3.exe_sqlite3_bind_int64
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x20]
call sym.sqlite3.exe_sqlite3_step
cmp eax, 0x64
jne 0x140124b7c
xor edx, edx
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x20]
call sym.sqlite3.exe_sqlite3_column_bytes
mov dword [rsp + 0x20], eax
xor edx, edx
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x20]
call sym.sqlite3.exe_sqlite3_column_blob
mov qword [rsp + 0x30], rax
movsxd rax, dword [rsp + 0x20]
mov rcx, rax
call sym.sqlite3.exe_sqlite3_malloc64
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140124b5a
mov rax, qword [rsp + 0x50]
mov dword [rax + 0x40], 7
jmp 0x140124b7c
movsxd rax, dword [rsp + 0x20]
mov r8, rax
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call fcn.140155350
mov rax, qword [rsp + 0x60]
mov ecx, dword [rsp + 0x20]
mov dword [rax], ecx
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax + 0x20]
mov rcx, qword [rsp + 0x50]
call fcn.140124870
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x40], 0
jne 0x140124bb8
cmp qword [rsp + 0x28], 0
jne 0x140124bb8
mov r8, qword [rsp + 0x58]
lea rdx, str.Node__lld_missing_from_database
mov rcx, qword [rsp + 0x50]
call fcn.140124970
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret
Function at 0x140124bd0
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rax, str.SELECT_parentnode_FROM__Q._q_parent_WHERE_nodeno_1
mov qword [rsp + 0x68], rax
lea rax, str.SELECT_nodeno_FROM__Q._q_rowid_WHERE_rowid_1
mov qword [rsp + 0x70], rax
movsxd rax, dword [rsp + 0x98]
mov rcx, qword [rsp + 0x90]
cmp qword [rcx + rax*8 + 0x28], 0
jne 0x140124c61
movsxd rax, dword [rsp + 0x98]
mov rcx, qword [rsp + 0x90]
mov r9, qword [rcx + 0x10]
mov rcx, qword [rsp + 0x90]
mov r8, qword [rcx + 8]
mov rdx, qword [rsp + rax*8 + 0x68]
mov rcx, qword [rsp + 0x90]
call fcn.1401248b0
movsxd rcx, dword [rsp + 0x98]
mov rdx, qword [rsp + 0x90]
mov qword [rdx + rcx*8 + 0x28], rax
mov rax, qword [rsp + 0x90]
cmp dword [rax + 0x40], 0
je 0x140124c74
jmp 0x140124db7
movsxd rax, dword [rsp + 0x98]
mov rcx, qword [rsp + 0x90]
mov rax, qword [rcx + rax*8 + 0x28]
mov qword [rsp + 0x48], rax
mov r8, qword [rsp + 0xa0]
mov edx, 1
mov rcx, qword [rsp + 0x48]
call sym.sqlite3.exe_sqlite3_bind_int64
mov rcx, qword [rsp + 0x48]
call sym.sqlite3.exe_sqlite3_step
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0x65
jne 0x140124d11
cmp dword [rsp + 0x98], 0
je 0x140124cd2
lea rax, [0x1401af3d0]
mov qword [rsp + 0x50], rax
jmp 0x140124cde
lea rax, [0x1401af3d8]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0xa8]
mov r8, qword [rsp + 0xa0]
lea rdx, str.Mapping___lld_____lld__missing_from__s_table
mov rcx, qword [rsp + 0x90]
call fcn.140124970
jmp 0x140124da5
cmp dword [rsp + 0x40], 0x64
jne 0x140124da5
xor edx, edx
mov rcx, qword [rsp + 0x48]
call sym.sqlite3.exe_sqlite3_column_int64
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0xa8]
cmp qword [rsp + 0x60], rax
je 0x140124da5
cmp dword [rsp + 0x98], 0
je 0x140124d54
lea rax, str.__rowid
mov qword [rsp + 0x58], rax
jmp 0x140124d60
lea rax, str.__parent
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x60]
mov r8, qword [rsp + 0xa0]
lea rdx, str.Found___lld_____lld__in__s_table__expected___lld_____lld_
mov rcx, qword [rsp + 0x90]
call fcn.140124970
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x90]
call fcn.140124870
add rsp, 0x88
ret
Function at 0x140124dd0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov dword [rsp + 0x30], 0
jmp 0x140124dfc
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x1c]
cmp dword [rsp + 0x30], eax
jge 0x140125043
mov eax, dword [rsp + 0x30]
shl eax, 3
cdqe
mov rcx, qword [rsp + 0x98]
add rcx, rax
mov rax, rcx
lea rdx, [rsp + 0x34]
mov rcx, rax
call fcn.14011ba40
mov eax, dword [rsp + 0x30]
shl eax, 1
lea eax, [rax*4 + 4]
cdqe
mov rcx, qword [rsp + 0x98]
add rcx, rax
mov rax, rcx
lea rdx, [rsp + 0x38]
mov rcx, rax
call fcn.14011ba40
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0x18], 0
je 0x140124e93
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x34], eax
jle 0x140124e81
mov dword [rsp + 0x3c], 1
jmp 0x140124e89
mov dword [rsp + 0x3c], 0
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x44], eax
jmp 0x140124eba
movss xmm0, dword [rsp + 0x34]
comiss xmm0, dword [rsp + 0x38]
jbe 0x140124eaa
mov dword [rsp + 0x40], 1
jmp 0x140124eb2
mov dword [rsp + 0x40], 0
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
je 0x140124eef
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x90]
mov r8d, dword [rsp + 0x30]
lea rdx, str.Dimension__d_of_cell__d_on_node__lld_is_corrupt
mov rcx, qword [rsp + 0x80]
call fcn.140124970
cmp qword [rsp + 0xa0], 0
je 0x14012503e
mov eax, dword [rsp + 0x30]
shl eax, 3
cdqe
mov rcx, qword [rsp + 0xa0]
add rcx, rax
mov rax, rcx
lea rdx, [rsp + 0x4c]
mov rcx, rax
call fcn.14011ba40
mov eax, dword [rsp + 0x30]
shl eax, 1
lea eax, [rax*4 + 4]
cdqe
mov rcx, qword [rsp + 0xa0]
add rcx, rax
mov rax, rcx
lea rdx, [rsp + 0x5c]
mov rcx, rax
call fcn.14011ba40
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0x18], 0
je 0x140124f80
mov eax, dword [rsp + 0x4c]
cmp dword [rsp + 0x34], eax
jge 0x140124f6e
mov dword [rsp + 0x48], 1
jmp 0x140124f76
mov dword [rsp + 0x48], 0
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x54], eax
jmp 0x140124fa7
movss xmm0, dword [rsp + 0x4c]
comiss xmm0, dword [rsp + 0x34]
jbe 0x140124f97
mov dword [rsp + 0x50], 1
jmp 0x140124f9f
mov dword [rsp + 0x50], 0
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
jne 0x140125010
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0x18], 0
je 0x140124fe2
mov eax, dword [rsp + 0x5c]
cmp dword [rsp + 0x38], eax
jle 0x140124fd0
mov dword [rsp + 0x58], 1
jmp 0x140124fd8
mov dword [rsp + 0x58], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x64], eax
jmp 0x140125009
movss xmm0, dword [rsp + 0x38]
comiss xmm0, dword [rsp + 0x5c]
jbe 0x140124ff9
mov dword [rsp + 0x60], 1
jmp 0x140125001
mov dword [rsp + 0x60], 0
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0
je 0x14012503e
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x90]
mov r8d, dword [rsp + 0x30]
lea rdx, str.Dimension__d_of_cell__d_on_node__lld_is_corrupt_relative_to_parent
mov rcx, qword [rsp + 0x80]
call fcn.140124970
jmp 0x140124df2
add rsp, 0x78
ret
Function at 0x140125050
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x70]
call fcn.140124a70
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x1401252b7
cmp dword [rsp + 0x30], 4
jge 0x1401250ca
mov r9d, dword [rsp + 0x30]
mov r8, qword [rsp + 0x88]
lea rdx, str.Node__lld_is_too_small___d_bytes_
mov rcx, qword [rsp + 0x70]
call fcn.140124970
jmp 0x1401252ad
cmp qword [rsp + 0x80], 0
jne 0x14012510f
mov rcx, qword [rsp + 0x40]
call fcn.14011ba00
mov dword [rsp + 0x78], eax
cmp dword [rsp + 0x78], 0x28
jle 0x14012510f
mov r8d, dword [rsp + 0x78]
lea rdx, str.Rtree_depth_out_of_range___d_
mov rcx, qword [rsp + 0x70]
call fcn.140124970
mov rcx, qword [rsp + 0x40]
call sym.sqlite3.exe_sqlite3_free
jmp 0x1401252b7
mov eax, 1
imul rax, rax, 2
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.14011ba00
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x1c]
shl eax, 1
lea eax, [rax*4 + 8]
mov ecx, dword [rsp + 0x38]
imul ecx, eax
mov eax, ecx
add eax, 4
cmp eax, dword [rsp + 0x30]
jle 0x14012517d
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x38]
mov r8, qword [rsp + 0x88]
lea rdx, str.Node__lld_is_too_small_for_cell_count_of__d___d_bytes_
mov rcx, qword [rsp + 0x70]
call fcn.140124970
jmp 0x1401252ad
mov dword [rsp + 0x34], 0
jmp 0x140125191
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x34], eax
jge 0x1401252ad
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x1c]
shl eax, 1
lea eax, [rax*4 + 8]
mov ecx, dword [rsp + 0x34]
imul ecx, eax
mov eax, ecx
add eax, 4
cdqe
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x48]
call fcn.14011ba70
mov qword [rsp + 0x50], rax
mov eax, 1
imul rax, rax, 8
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x20], rcx
mov r9, rax
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x70]
call fcn.140124dd0
cmp dword [rsp + 0x78], 0
jle 0x14012527a
mov r9, qword [rsp + 0x88]
mov r8, qword [rsp + 0x50]
xor edx, edx
mov rcx, qword [rsp + 0x70]
call fcn.140124bd0
mov eax, 1
imul rax, rax, 8
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x78]
dec ecx
mov r9, qword [rsp + 0x50]
mov r8, rax
mov edx, ecx
mov rcx, qword [rsp + 0x70]
call fcn.140125050
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x3c]
inc eax
mov rcx, qword [rsp + 0x70]
mov dword [rcx + 0x3c], eax
jmp 0x1401252a8
mov r9, qword [rsp + 0x88]
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, qword [rsp + 0x70]
call fcn.140124bd0
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x38]
inc eax
mov rcx, qword [rsp + 0x70]
mov dword [rcx + 0x38], eax
jmp 0x140125187
mov rcx, qword [rsp + 0x40]
call sym.sqlite3.exe_sqlite3_free
add rsp, 0x68
ret
Function at 0x140131ce0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x70]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], 0
mov r8d, 0x10
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.1401557b0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call fcn.140139c90
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x140131db8
cmp dword [rsp + 0x88], 0
je 0x140131d5b
mov dword [rsp + 0x34], 2
jmp 0x140131d63
mov dword [rsp + 0x34], 0
mov eax, dword [rsp + 0x34]
or eax, 1
mov dword [rsp + 0x3c], eax
mov rcx, qword [rsp + 0x40]
call fcn.14012a840
mov rcx, qword [rsp + 0x40]
call fcn.140157e30
mov dword [rsp + 0x38], eax
lea rax, [fcn.140139df0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x38]
mov r8, qword [rsp + 0x40]
mov edx, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x48]
call fcn.14012a7d0
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x40]
call sym.sqlite3.exe_sqlite3_free
cmp dword [rsp + 0x30], 0
jne 0x140131dd8
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140131dfc
mov rax, qword [rsp + 0x70]
mov ecx, dword [rsp + 0x30]
mov dword [rax + 0x10], ecx
mov rcx, qword [rsp + 0x50]
call fcn.140139ce0
mov qword [rsp + 0x50], 0
jmp 0x140131ea4
cmp qword [rsp + 0x78], 0
jne 0x140131e35
mov rcx, qword [rsp + 0x70]
call fcn.14013a090
test eax, eax
je 0x140131e23
mov rcx, qword [rsp + 0x50]
call fcn.140139ce0
xor eax, eax
jmp 0x140131ea9
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x14]
inc eax
mov rcx, qword [rsp + 0x70]
mov dword [rcx + 0x14], eax
cmp qword [rsp + 0x50], 0
jne 0x140131e5a
mov rax, qword [rsp + 0x70]
add rax, 0x10
mov edx, 0x40
mov rcx, rax
call fcn.14012b9d0
mov qword [rsp + 0x50], rax
jmp 0x140131e86
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x18], 0
je 0x140131e86
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x18]
dec eax
cdqe
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x50]
movzx edx, byte [rsp + 0x88]
mov byte [rcx + rax + 0x20], dl
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x14]
dec eax
cdqe
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx + 0x18]
mov rdx, qword [rsp + 0x50]
mov qword [rcx + rax*8], rdx
mov rax, qword [rsp + 0x50]
add rsp, 0x68
ret
Function at 0x140132a60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x60], 0x80
jge 0x140132a9c
cmp dword [rsp + 0x60], 0x41
jl 0x140132a97
cmp dword [rsp + 0x60], 0x5a
jg 0x140132a97
mov eax, dword [rsp + 0x60]
add eax, 0x20
mov dword [rsp + 0x20], eax
jmp 0x140132beb
cmp dword [rsp + 0x60], 0x10000
jge 0x140132bcc
mov dword [rsp + 0x2c], 0xa2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x30], 0xffffffff
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x2c], eax
jl 0x140132b24
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x2c]
add ecx, eax
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [rsp + 0x24], eax
movsxd rax, dword [rsp + 0x24]
lea rcx, [0x14017b6c0]
movzx eax, word [rcx + rax*4]
mov ecx, dword [rsp + 0x60]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jl 0x140132b18
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x28], eax
jmp 0x140132b22
mov eax, dword [rsp + 0x24]
dec eax
mov dword [rsp + 0x2c], eax
jmp 0x140132ac2
movsxd rax, dword [rsp + 0x30]
lea rcx, [0x14017b6c0]
lea rax, [rcx + rax*4]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
movzx eax, word [rax]
mov rcx, qword [rsp + 0x40]
movzx ecx, byte [rcx + 3]
add eax, ecx
cmp dword [rsp + 0x60], eax
jge 0x140132b99
mov rax, qword [rsp + 0x40]
movzx eax, byte [rax + 2]
and eax, 1
mov rcx, qword [rsp + 0x40]
movzx ecx, word [rcx]
xor ecx, dword [rsp + 0x60]
and eax, ecx
test eax, eax
jne 0x140132b99
mov rax, qword [rsp + 0x40]
movzx eax, byte [rax + 2]
sar eax, 1
cdqe
lea rcx, [0x14017b950]
movzx eax, word [rcx + rax*2]
mov ecx, dword [rsp + 0x60]
add ecx, eax
mov eax, ecx
and eax, 0xffff
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x68], 0
je 0x140132bca
cmp dword [rsp + 0x68], 2
jne 0x140132bb1
mov dword [rsp + 0x34], 1
jmp 0x140132bb9
mov dword [rsp + 0x34], 0
mov edx, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x20]
call fcn.140151e40
mov dword [rsp + 0x20], eax
jmp 0x140132beb
cmp dword [rsp + 0x60], 0x10400
jl 0x140132beb
cmp dword [rsp + 0x60], 0x10428
jge 0x140132beb
mov eax, dword [rsp + 0x60]
add eax, 0x28
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x58
ret
Function at 0x14013f950
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x60], 0
jne 0x14013f9a9
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov r8, qword [rax + 0x10]
mov rax, qword [rsp + 0x20]
mov rdx, qword [rax + 8]
lea rcx, str.SELECT_pgno_FROM__q._q_idx_WHERE_segid__AND_term___ORDER_BY_term_DESC_LIMIT_1
call sym.sqlite3.exe_sqlite3_mprintf
mov rcx, qword [rsp + 0x40]
add rcx, 0x60
mov r8, rax
mov rdx, rcx
mov rcx, qword [rsp + 0x40]
call fcn.14013b9f0
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x60]
add rsp, 0x38
ret
Function at 0x14014a6c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [rsp + 0x80]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x48], 0
jne 0x14014a70c
mov dword [rsp + 0x38], 1
jmp 0x14014a714
mov dword [rsp + 0x38], 0
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x50]
and eax, 0x40
test eax, eax
je 0x14014a845
mov rax, qword [rsp + 0x48]
cmp dword [rax + 0x5c], 0
je 0x14014a82c
mov edx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax + 0x40]
call fcn.140130f80
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14014a76b
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x34], 0
jmp 0x14014a77f
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x34], eax
jge 0x14014a7f2
cmp dword [rsp + 0x30], 0
jne 0x14014a7f2
lea r9, [rsp + 0x54]
lea r8, [rsp + 0x68]
mov edx, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x80]
call fcn.14014ab10
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x14014a7f0
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x34]
mov r8, qword [rsp + 0x58]
mov rax, qword [rsp + 0x80]
mov rdx, qword [rax + 0x40]
mov rcx, qword [rsp + 0x48]
call fcn.1401310a0
mov dword [rsp + 0x30], eax
jmp 0x14014a775
mov rcx, qword [rsp + 0x58]
call sym.sqlite3.exe_sqlite3_free
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x48], 0
je 0x14014a82c
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 0x48]
mov rdx, qword [rax + 8]
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax + 0x40]
call fcn.1401311f0
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x50]
and eax, 0xffffffbf
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x50], eax
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x48], 0
je 0x14014a8ee
mov rax, qword [rsp + 0x48]
cmp dword [rax + 0x5c], 0
jne 0x14014a8ee
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 0x48]
mov qword [rsp + 0x60], rax
cmp dword [rsp + 0x88], 0
jne 0x14014a88c
mov dword [rsp + 0x3c], 0
jmp 0x14014a8a4
mov eax, dword [rsp + 0x88]
dec eax
cdqe
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx + rax*4 + 0x1c]
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x40], eax
movsxd rax, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x60]
mov edx, dword [rsp + 0x40]
mov eax, dword [rcx + rax*4 + 0x1c]
sub eax, edx
mov rcx, qword [rsp + 0x98]
mov dword [rcx], eax
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x10]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x90]
mov qword [rcx], rax
jmp 0x14014a918
mov r8, qword [rsp + 0x90]
mov edx, dword [rsp + 0x88]
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax + 0x40]
call fcn.140130ee0
mov rcx, qword [rsp + 0x98]
mov dword [rcx], eax
mov eax, dword [rsp + 0x30]
add rsp, 0x78
ret