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

Disassembly:
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
cmp dword [r8 + 0x18], 0
mov rsi, rdx
mov r10, r9
mov r9, qword [r8 + 8]
lea rax, str._rowid___
mov ebp, ecx
mov rdi, r8
lea rdx, [0x180150654]
lea rcx, str.SELECT__s_FROM___w_.__w__WHERE_NOT_EXISTS____SELECT_1_FROM___w_.__w__WHERE__s_
cmovne rdx, rax
mov rax, qword [rsp + 0x88]
mov r8, r10
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], rax
call sym.sqlite.dll_sqlite3_mprintf
mov r12, rax
test rax, rax
jne 0x1800f78bc
lea eax, [r12 + 7]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
mov rcx, qword [rsi]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], rax
xor r9d, r9d
or r8d, 0xffffffff
mov rdx, r12
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x20], 0
call fcn.180087650
mov ebx, eax
test eax, eax
jne 0x1800f7952
mov rcx, qword [rsi + 0x60]
mov rbx, qword [rsp + 0x70]
mov qword [rcx], rbx
mov dword [rcx + 0xc], eax
mov eax, dword [rdi + 0x18]
mov dword [rcx + 8], eax
mov rcx, rbx
call sym.sqlite.dll_sqlite3_step
cmp eax, 0x64
jne 0x1800f7948
cmp dword [rdi + 0x18], 0
je 0x1800f7929
xor edx, edx
mov rcx, rbx
call sym.sqlite.dll_sqlite3_column_int64
jmp 0x1800f792b
xor eax, eax
mov r9, rdi
mov r8, rsi
mov rdx, rax
mov ecx, ebp
call fcn.1800f6eb0
mov rcx, rbx
call sym.sqlite.dll_sqlite3_step
cmp eax, 0x64
je 0x1800f7917
mov rcx, rbx
call sym.sqlite.dll_sqlite3_finalize
mov ebx, eax
mov rcx, r12
call sym.sqlite.dll_sqlite3_free
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
Function at 0x1800f7a20
Capabilities:
Reference sql statements

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x50
mov rax, qword [rdx + 0x28]
mov rdi, rdx
mov r12, r9
mov r9, qword [rdx + 8]
mov qword [rsp + 0x28], rax
mov rax, qword [rdx + 0x20]
mov rdx, qword [rcx + 8]
mov rsi, rcx
mov ecx, dword [rdi + 0x10]
mov rbx, r8
mov qword [rsp + 0x20], rax
call fcn.1800f7760
mov rbp, rax
test rax, rax
jne 0x1800f7a6f
lea eax, [rbp + 7]
add rsp, 0x50
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rcx, qword [rsi + 8]
mov rdx, rdi
mov qword [rsp + 0x88], r13
mov qword [rsp + 0x90], r14
call fcn.1800f7970
mov rdx, rdi
mov rcx, rbx
mov r13, rax
call fcn.1800f7970
mov rcx, qword [rdi + 8]
mov r9, qword [rsi + 8]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rcx
lea rcx, str.SELECT__s__s_FROM___w_.__w_____w_.__w__WHERE__s_AND___z_
mov r8, rax
mov rdx, r13
mov r14, rax
call sym.sqlite.dll_sqlite3_mprintf
mov rbp, rax
test rax, rax
je 0x1800f7b82
test r13, r13
je 0x1800f7b82
test r14, r14
je 0x1800f7b82
mov rcx, qword [rsi]
lea rax, [rsp + 0x80]
xor r12d, r12d
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], rax
xor r9d, r9d
or r8d, 0xffffffff
mov rdx, rbp
mov qword [rsp + 0x20], r12
call fcn.180087650
mov ebx, eax
test eax, eax
jne 0x1800f7b87
mov rcx, qword [rsi + 0x60]
mov rbx, qword [rsp + 0x80]
mov qword [rcx], rbx
mov eax, dword [rdi + 0x10]
mov dword [rcx + 0xc], eax
mov rcx, rbx
call sym.sqlite.dll_sqlite3_step
cmp eax, 0x64
jne 0x1800f7b76
cmp dword [rdi + 0x18], r12d
je 0x1800f7b53
xor edx, edx
mov rcx, rbx
call sym.sqlite.dll_sqlite3_column_int64
jmp 0x1800f7b56
mov rax, r12
mov r9, rdi
mov r8, rsi
mov rdx, rax
mov ecx, 0x17
call fcn.1800f6eb0
mov rcx, rbx
call sym.sqlite.dll_sqlite3_step
cmp eax, 0x64
je 0x1800f7b41
mov rcx, rbx
call sym.sqlite.dll_sqlite3_finalize
mov ebx, eax
jmp 0x1800f7b87
mov ebx, 7
mov rcx, rbp
call sym.sqlite.dll_sqlite3_free
mov rcx, r13
call sym.sqlite.dll_sqlite3_free
mov rcx, r14
call sym.sqlite.dll_sqlite3_free
mov r14, qword [rsp + 0x90]
mov r13, qword [rsp + 0x88]
mov eax, ebx
add rsp, 0x50
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180105950
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push r12
push r14
push r15
sub rsp, 0x30
xor ebp, ebp
movsxd rsi, r9d
mov r12, r8
lea eax, [rsi - 1]
mov r14d, edx
lea r11d, [rbp + 0xd]
movsxd r10, eax
test eax, eax
js 0x180105998
nop
movsx r9d, byte [r10 + r8]
lea eax, [r11*8]
xor r9d, eax
xor r11d, r9d
dec r10
jns 0x180105980
lea eax, [r11*8]
xor eax, r11d
xor eax, edx
and eax, 0x1ff
mov r15d, eax
mov rbx, qword [rcx + rax*8]
test rbx, rbx
je 0x1801059dc
cmp dword [rbx + 0xc], r14d
jne 0x1801059d3
cmp dword [rbx + 8], esi
jne 0x1801059d3
mov rcx, qword [rbx]
mov r8, rsi
mov rdx, r12
call fcn.180134af0
test eax, eax
je 0x1801059f8
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1801059b6
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x70], r13
lea rdi, [rsi + 0x18]
call sym.sqlite.dll_sqlite3_initialize
test eax, eax
je 0x180105a0b
mov rbx, rbp
jmp 0x180105a6d
mov rcx, qword [rsp + 0x80]
mov dword [rcx], 1
jmp 0x180105abf
test rdi, rdi
je 0x180105a65
cmp rdi, 0x7ffffeff
ja 0x180105a65
cmp dword [0x180171920], ebp
je 0x180105a58
mov rcx, qword [0x1801811a8]
test rcx, rcx
je 0x180105a33
call qword [0x1801719a0]
lea rdx, [rsp + 0x20]
mov ecx, edi
call fcn.18000b000
mov rcx, qword [0x1801811a8]
test rcx, rcx
je 0x180105a51
call qword [0x1801719b0]
mov rbx, qword [rsp + 0x20]
jmp 0x180105a68
mov ecx, edi
call qword [0x180171940]
mov rbx, rax
jmp 0x180105a68
mov rbx, rbp
test rbx, rbx
jne 0x180105a79
test rdi, rdi
jle 0x180105a86
mov ebp, 7
jmp 0x180105a86
mov r8, rdi
xor edx, edx
mov rcx, rbx
call fcn.18012da30
mov rdi, qword [rsp + 0x68]
test rbx, rbx
je 0x180105aba
lea rcx, [rbx + 0x18]
mov r8, rsi
mov rdx, r12
mov dword [rbx + 8], esi
mov dword [rbx + 0xc], r14d
mov qword [rbx], rcx
call fcn.180127c70
mov r10, qword [rsp + 0x60]
mov r11, qword [r10 + r15*8]
mov qword [rbx + 0x10], r11
mov qword [r10 + r15*8], rbx
mov r13, qword [rsp + 0x70]
mov eax, ebp
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rsi
pop rbp
ret
Function at 0x180105d20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r10, rcx
mov r8, rcx
movzx ecx, byte [rcx]
movzx eax, cl
cmp cl, 0x27
je 0x180105e5a
cmp al, 0x4e
je 0x180105dfa
cmp al, 0x58
je 0x180105da3
cmp al, 0x6e
je 0x180105dfa
cmp al, 0x78
je 0x180105da3
cmp cl, 0x2b
je 0x180105d57
cmp cl, 0x2d
jne 0x180105d60
lea r8, [r10 + 1]
nop dword [rax + rax]
movzx eax, byte [r8]
sub al, 0x30
cmp al, 9
ja 0x180105d6f
inc r8
jmp 0x180105d60
cmp byte [r8], 0x2e
jne 0x180105d93
movzx eax, byte [r8 + 1]
sub al, 0x30
cmp al, 9
ja 0x180105d93
add r8, 2
movzx eax, byte [r8]
sub al, 0x30
cmp al, 9
ja 0x180105d93
inc r8
jmp 0x180105d84
cmp r8, r10
jne 0x180105e82
xor r8d, r8d
mov eax, r8d
ret
cmp byte [r10 + 1], 0x27
lea r8, [r10 + 1]
jne 0x180105e7f
movzx eax, byte [r8 + 1]
inc r8
cmp al, 0x61
jl 0x180105dc2
cmp al, 0x66
jle 0x180105db2
cmp al, 0x41
jl 0x180105dca
cmp al, 0x46
jle 0x180105db2
cmp al, 0x30
jl 0x180105dd2
cmp al, 0x39
jle 0x180105db2
cmp byte [r8], 0x27
jne 0x180105e7f
mov rax, r8
sub rax, r10
cqo
and eax, 1
xor rax, rdx
cmp rax, rdx
jne 0x180105e7f
inc r8
mov rax, r8
ret
mov edx, 4
lea r8, str.null
mov r9, r10
lea r11, [0x1801439c0]
movzx ecx, byte [r8]
dec edx
test cl, cl
je 0x180105e38
movzx eax, byte [r9]
movzx ecx, cl
movzx eax, byte [rax + r11]
cmp byte [rcx + r11], al
jne 0x180105e38
inc r8
inc r9
test edx, edx
jg 0x180105e10
dec edx
test edx, edx
js 0x180105e52
movzx eax, byte [r9]
movzx edx, byte [rax + r11]
movzx eax, byte [r8]
movzx ecx, byte [rax + r11]
sub ecx, edx
jne 0x180105e7f
lea r8, [r10 + 4]
mov rax, r8
ret
lea r8, [r10 + 1]
test r8, r8
je 0x180105e82
movzx eax, byte [r8]
cmp al, 0x27
jne 0x180105e73
inc r8
cmp byte [r8], al
jne 0x180105e82
movzx eax, byte [r8 + 1]
inc r8
test al, al
jne 0x180105e67
xor r8d, r8d
mov rax, r8
ret
Function at 0x18010c870
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov ebp, dword [rcx + 0x14]
mov r13, qword [rcx + 0x20]
mov r12, rcx
add ebp, ebp
movsxd rdi, ebp
shl rdi, 3
call sym.sqlite.dll_sqlite3_initialize
test eax, eax
jne 0x18010c9dc
test rdi, rdi
je 0x18010c9dc
mov rcx, rdi
call fcn.18000b130
mov rsi, rax
test rax, rax
je 0x18010c9dc
mov r8, rdi
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x40], rbx
call fcn.18012da30
xor ebx, ebx
cmp dword [r12 + 0x14], ebx
jle 0x18010c95d
mov r10, r13
cmp qword [r10], 0
je 0x18010c950
nop dword [rax + rax]
mov r11, qword [r10]
or rcx, 0xffffffffffffffff
mov rax, qword [r11]
lea rdi, [r11 + 0x30]
mov qword [r10], rax
xor eax, eax
repne scasb al, byte [rdi]
lea r8d, [rax + 0xd]
not rcx
lea rax, [rcx - 1]
dec eax
cdqe
js 0x18010c938
nop word [rax + rax]
movzx edx, byte [r11 + rax + 0x30]
lea ecx, [r8*8]
xor edx, ecx
xor r8d, edx
dec rax
jns 0x18010c920
xor edx, edx
mov eax, r8d
div ebp
mov rax, qword [rsi + rdx*8]
mov qword [r11], rax
mov qword [rsi + rdx*8], r11
cmp qword [r10], 0
jne 0x18010c8f0
inc ebx
add r10, 8
cmp ebx, dword [r12 + 0x14]
jl 0x18010c8e2
mov rbx, qword [rsp + 0x40]
test r13, r13
je 0x18010c9ce
cmp dword [0x180171920], 0
je 0x18010c9c5
mov rcx, qword [0x1801811a8]
test rcx, rcx
je 0x18010c982
call qword [0x1801719a0]
mov rcx, r13
call qword [0x180171958]
dec qword [0x180181138]
mov rcx, r13
movsxd rdx, eax
sub qword [0x1801810f0], rdx
call qword [0x180171948]
mov rcx, qword [0x1801811a8]
test rcx, rcx
je 0x18010c9ce
call qword [0x1801719b0]
mov dword [r12 + 0x14], ebp
mov qword [r12 + 0x20], rsi
xor eax, eax
jmp 0x18010c9e1
mov rcx, r13
call qword [0x180171948]
mov dword [r12 + 0x14], ebp
mov qword [r12 + 0x20], rsi
xor eax, eax
jmp 0x18010c9e1
mov eax, 7
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
Function at 0x18010d2a0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x20
movsxd rdi, r8d
mov r13, rcx
mov r12, r9
lea eax, [rdi - 1]
mov rsi, rdx
mov ecx, 0xd
cdqe
test rax, rax
js 0x18010d2e8
nop
movzx r11d, byte [rax + rdx]
lea r10d, [rcx*8]
xor r11d, r10d
xor ecx, r11d
dec rax
jns 0x18010d2d0
xor edx, edx
mov eax, ecx
mov qword [rsp + 0x48], rbp
div dword [r13 + 0x14]
mov rax, qword [r13 + 0x20]
mov rbx, qword [rax + rdx*8]
test rbx, rbx
je 0x18010d326
mov eax, dword [rbx + 0x1c]
inc eax
cmp edi, eax
jne 0x18010d31e
lea rcx, [rbx + 0x30]
mov r8, rdi
mov rdx, rsi
call fcn.180134af0
test eax, eax
je 0x18010d354
mov rbx, qword [rbx]
test rbx, rbx
jne 0x18010d302
mov rax, qword [rsp + 0x60]
mov qword [r12], 0
mov dword [rax], 0
xor eax, eax
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
mov esi, dword [rbx + 0x18]
lea ebp, [rdi + 0x31]
sub esi, ebp
lea eax, [rsi + 0x1a]
movsxd rdi, eax
call sym.sqlite.dll_sqlite3_initialize
test eax, eax
jne 0x18010d3c5
test rdi, rdi
je 0x18010d3c5
cmp rdi, 0x7ffffeff
ja 0x18010d3c5
cmp dword [0x180171920], eax
je 0x18010d3b8
mov rcx, qword [0x1801811a8]
test rcx, rcx
je 0x18010d393
call qword [0x1801719a0]
lea rdx, [rsp + 0x40]
mov ecx, edi
call fcn.18000b000
mov rcx, qword [0x1801811a8]
test rcx, rcx
je 0x18010d3b1
call qword [0x1801719b0]
mov rdi, qword [rsp + 0x40]
jmp 0x18010d3c7
mov ecx, edi
call qword [0x180171940]
mov rdi, rax
jmp 0x18010d3c7
xor edi, edi
mov qword [r12], rdi
test rdi, rdi
je 0x18010d40a
movsxd rdx, ebp
lea rcx, [rdi + 0x10]
movsxd r8, esi
add rdx, rbx
call fcn.180127c70
mov r11d, 0x10
mov rdx, rbx
sub r11d, ebp
mov rcx, r13
movsxd r8, r11d
add r8, rdi
call fcn.18010ca00
mov rcx, qword [rsp + 0x60]
add eax, esi
mov dword [rcx], eax
jmp 0x18010d339
mov rax, qword [rsp + 0x60]
mov dword [rax], 0
mov eax, 7
jmp 0x18010d33b
Function at 0x180113b90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push r12
push r13
push r15
sub rsp, 0x28
lea rbp, [rcx + 0x3c]
xor r12d, r12d
xor r13d, r13d
mov r15, r8
mov rbx, rdx
mov rsi, rcx
cmp dword [rbp], r12d
jne 0x180113d9f
mov qword [rsp + 0x20], r14
xor r14d, r14d
mov qword [rsp + 0x70], rdi
test r13d, r13d
jne 0x180113d95
mov rax, qword [rbx + 0x58]
lea rdi, [r14 + rax]
mov rax, qword [rsi]
mov ecx, dword [rax + 0x88]
cmp dword [rdi + 0x18], ecx
jl 0x180113d19
mov rax, qword [rdi + 0x10]
mov byte [rax], 1
movsxd rcx, dword [rbx]
mov r9d, dword [rdi + 0x18]
mov r8, qword [rdi + 0x10]
shl rcx, 6
movsxd rax, r12d
lea rdx, [rcx + rax + 0x20]
movsxd rax, dword [rdi]
mov rcx, rsi
shl rdx, 0x1f
add rdx, rax
call fcn.18010d6a0
lea r8d, [r12 + 2]
mov rdx, rbx
mov rcx, rsi
call fcn.1801138e0
mov r11, qword [rbx + 0x58]
lea rdi, [r14 + r11]
cmp dword [rbp], r13d
jne 0x180113d07
cmp dword [rdi + 0x38], r13d
jne 0x180113d07
mov r11, qword [rdi + 0x10]
movzx r8d, byte [r11 + 1]
lea rcx, [r11 + 1]
test r8b, r8b
js 0x180113c6e
mov eax, r8d
mov qword [rsp + 0x78], rax
mov al, 1
jmp 0x180113c78
lea rdx, [rsp + 0x78]
call fcn.180125d70
movzx eax, al
inc eax
movsxd rcx, eax
add rcx, r11
movzx r8d, byte [rcx]
test r8b, r8b
js 0x180113c96
mov esi, r8d
mov qword [rsp + 0x78], r8
jmp 0x180113ca5
lea rdx, [rsp + 0x78]
call fcn.180125d70
mov rsi, qword [rsp + 0x78]
mov eax, dword [rdi]
mov dword [rdi + 0x20], eax
mov r8d, dword [rdi + 0x38]
mov eax, dword [rdi + 0x3c]
add r8d, 9
cmp eax, r8d
jae 0x180113cca
lea rdx, [rdi + 0x30]
mov rcx, rbp
call fcn.180105130
test eax, eax
jne 0x180113cd9
movsxd rcx, dword [rdi + 0x38]
mov rax, qword [rdi + 0x30]
mov byte [rcx + rax], 0
inc dword [rdi + 0x38]
movsxd r8, dword [rdi]
lea rdx, [rdi + 0x30]
mov rcx, rbp
call fcn.1801051c0
lea rdx, [rdi + 0x30]
mov r8, rsi
mov rcx, rbp
call fcn.1801051c0
mov rbx, qword [rsp + 0x68]
mov dword [rdi + 0x24], 1
mov qword [rdi + 0x28], rsi
inc dword [rdi]
mov dword [rdi + 0x18], 0
mov dword [rdi + 4], 0
jmp 0x180113d1f
mov r13d, 1
cmp dword [rdi + 4], 0
je 0x180113d2e
mov r8, r15
sub r8, qword [rdi + 8]
jmp 0x180113d63
test r12d, r12d
jne 0x180113d38
mov esi, dword [rbx + 8]
jmp 0x180113d3b
mov esi, dword [rdi - 0x20]
xor r8d, r8d
test r13d, r13d
lea rdx, [rdi + 0x10]
sete r8b
mov rcx, rbp
call fcn.1801051c0
lea rdx, [rdi + 0x10]
movsxd r8, esi
mov rcx, rbp
call fcn.1801051c0
mov r8, r15
lea rdx, [rdi + 0x10]
mov rcx, rbp
call fcn.1801051c0
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
mov dword [rdi + 4], 1
mov qword [rdi + 8], r15
inc r12d
add r14, 0x20
cmp dword [rbp], 0
je 0x180113bd1
mov rdi, qword [rsp + 0x70]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop r15
pop r13
pop r12
pop rsi
pop rbp
pop rbx
ret
Function at 0x180116340
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x50
mov rbx, rcx
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r8
mov rsi, r9
xor r9d, r9d
repne scasb al, byte [rdi]
lea rax, [r11 + 8]
mov qword [r11 + 8], r9
mov qword [r11 - 0x18], rax
mov dword [r11 - 0x20], r9d
not rcx
dec rcx
mov dword [rsp + 0x30], 0xffffffff
mov dword [rsp + 0x28], ecx
mov qword [r11 - 0x38], r8
lea r8d, [r9 + 0x40]
mov rcx, rbx
call fcn.1801130b0
cmp dword [rbx + 0x3c], 0
mov rdi, qword [rsp + 0x60]
jne 0x180116400
cmp byte [rdi + 0x14], 0
jne 0x180116400
mov rax, qword [rdi + 0x58]
movzx ecx, word [rax + 4]
imul rcx, rcx, 0x88
cmp qword [rcx + rdi + 0xd8], rsi
jge 0x1801163ce
mov r8, rsi
mov rdx, rdi
mov rcx, rbx
call fcn.180113540
cmp dword [rbx + 0x3c], 0
jne 0x180116400
cmp byte [rdi + 0x14], 0
jne 0x180116400
mov rax, qword [rdi + 0x58]
movzx ecx, word [rax + 4]
imul rcx, rcx, 0x88
cmp rsi, qword [rcx + rdi + 0xd8]
jne 0x180116400
lea rdx, [rcx + rdi + 0x60]
mov rcx, rbx
call fcn.1801159f0
mov rcx, rdi
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
jmp fcn.1801119f0
Function at 0x180120390
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov r13, qword [rcx]
xor ebp, ebp
xor ebx, ebx
mov r14, r8
mov r12, rdx
mov r15, rcx
lea esi, [rbp + 1]
test r8, r8
jne 0x18012046e
cmp qword [rcx + 0x38], rbx
lea rdi, [rcx + 0x38]
jne 0x180120434
mov r9, qword [r13 + 0x50]
mov r8, qword [r13 + 0x48]
mov rdx, qword [r13 + 0x60]
lea rcx, str.SELECT__s_FROM__s_T_WHERE_T._Q_
call sym.sqlite.dll_sqlite3_mprintf
mov rbp, rax
test rax, rax
jne 0x1801203f7
lea ebx, [rsi + 6]
jmp 0x180120434
mov rax, qword [r15]
mov r9d, 0x81
or r8d, 0xffffffff
inc dword [rax + 0x78]
mov rcx, qword [r13]
xor eax, eax
mov qword [rsp + 0x30], rax
mov rdx, rbp
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.180087650
mov rcx, rbp
mov ebx, eax
mov rax, qword [r15]
dec dword [rax + 0x78]
call sym.sqlite.dll_sqlite3_free
mov rbp, qword [rdi]
mov rcx, rbp
call sym.sqlite.dll_sqlite3_reset
test ebx, ebx
jne 0x18012059f
mov r8, r12
mov edx, esi
mov rcx, rbp
call sym.sqlite.dll_sqlite3_bind_int64
mov rcx, rbp
call sym.sqlite.dll_sqlite3_step
cmp eax, 0x64
je 0x18012046e
mov rcx, rbp
call sym.sqlite.dll_sqlite3_reset
jmp 0x1801205a1
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x48], 0xffffffff
mov r12, rsi
xor edi, edi
mov eax, 0x10b
mov r8d, 0x202
nop dword [rax + rax]
cmp esi, dword [r13 + 0x18]
jg 0x1801205bf
mov rax, qword [r13 + 0x28]
cmp byte [rax + r12 - 1], 0
jne 0x180120578
test rbp, rbp
je 0x1801204c8
mov edx, esi
mov rcx, rbp
call sym.sqlite.dll_sqlite3_column_text
mov edx, esi
mov rcx, rbp
mov rbx, rax
call sym.sqlite.dll_sqlite3_column_bytes
jmp 0x180120517
test r14, r14
je 0x180120578
mov rcx, qword [rdi + r14]
test rcx, rcx
jne 0x1801204de
xor ebx, ebx
jmp 0x18012050e
movzx edx, word [rcx + 0x14]
movzx eax, dx
and ax, r8w
cmp ax, r8w
jne 0x1801204fb
cmp byte [rcx + 0x16], 1
jne 0x1801204fb
mov rbx, qword [rcx + 8]
jmp 0x18012050e
test dl, 1
je 0x180120504
xor ebx, ebx
jmp 0x18012050e
mov dl, 1
call fcn.180033b00
mov rbx, rax
mov rcx, qword [rdi + r14]
call sym.sqlite.dll_sqlite3_value_bytes
mov r11d, eax
xor eax, eax
mov dword [rsp + 0x4c], eax
test rbx, rbx
je 0x180120555
mov rax, qword [r13 + 0x70]
lea rcx, [0x180120340]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x28], rcx
mov rcx, qword [r13 + 0x68]
mov r9, rbx
mov r8d, 4
mov dword [rsp + 0x20], r11d
call qword [rax + 0x10]
mov ebx, eax
mov eax, dword [rsp + 0x4c]
mov rcx, qword [r15 + 0x20]
cdqe
mov r8d, 0x202
sub qword [rcx + rdi], rax
mov rax, qword [r15 + 0x20]
cmp qword [rdi + rax], 0
mov eax, 0x10b
cmovl ebx, eax
jmp 0x18012057d
mov eax, 0x10b
inc esi
inc r12
add rdi, 8
test ebx, ebx
je 0x180120490
dec qword [r15 + 0x18]
mov rcx, rbp
call sym.sqlite.dll_sqlite3_reset
test ebx, ebx
cmove ebx, eax
mov eax, ebx
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
test ebx, ebx
jne 0x18012058e
cmp qword [r15 + 0x18], 1
jge 0x18012058e
mov ebx, eax
jmp 0x180120592
Function at 0x1801205d0
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
xor edi, edi
lea rbx, [rcx + 0x68]
mov r12, rdx
mov esi, edi
mov rbp, rcx
cmp qword [rbx], rsi
jne 0x180120674
mov rsi, qword [rcx]
lea rax, str._origin
lea rdx, [0x180143844]
cmp dword [rsi + 0x44], edi
mov r9, qword [rsi + 0x10]
mov r8, qword [rsi + 8]
lea rcx, str.SELECT_sz_s_FROM__Q._q_docsize_WHERE_id_
cmovne rdx, rax
mov qword [rsp + 0x60], r13
call sym.sqlite.dll_sqlite3_mprintf
mov r13, rax
test rax, rax
jne 0x180120633
lea esi, [rdi + 7]
jmp 0x18012066f
mov rax, qword [rbp]
mov qword [rsp + 0x30], rdi
mov r9d, 0x85
inc dword [rax + 0x78]
mov rcx, qword [rsi]
or r8d, 0xffffffff
mov rdx, r13
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rdi
call fcn.180087650
mov rcx, r13
mov esi, eax
mov rax, qword [rbp]
dec dword [rax + 0x78]
call sym.sqlite.dll_sqlite3_free
mov r13, qword [rsp + 0x60]
mov rbx, qword [rbx]
mov rcx, rbx
call sym.sqlite.dll_sqlite3_reset
test esi, esi
jne 0x1801206ce
lea edx, [rsi + 1]
mov r8, r12
mov rcx, rbx
call sym.sqlite.dll_sqlite3_bind_int64
mov rcx, rbx
call sym.sqlite.dll_sqlite3_step
cmp eax, 0x64
jne 0x1801206ac
lea edx, [rsi + 1]
mov rcx, rbx
call sym.sqlite.dll_sqlite3_column_int64
mov rdi, rax
mov rcx, rbx
call sym.sqlite.dll_sqlite3_reset
test eax, eax
jne 0x1801206d0
test rdi, rdi
je 0x1801206d0
mov rcx, qword [rbp + 8]
mov r8, r12
mov rdx, rdi
call fcn.180119ba0
jmp 0x1801206d0
mov eax, esi
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
Function at 0x180122270
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rdi, qword [rcx]
xor r12d, r12d
lea rbp, [rcx + 0x68]
mov r15d, dword [rdi + 0x18]
mov ebx, r12d
mov r14, r8
mov r13, rdx
mov rsi, rcx
cmp qword [rbp], rbx
jne 0x180122321
cmp dword [rdi + 0x44], ebx
mov r9, qword [rdi + 0x10]
mov r8, qword [rdi + 8]
lea rax, str._origin
lea rdx, [0x180143844]
lea rcx, str.SELECT_sz_s_FROM__Q._q_docsize_WHERE_id_
cmovne rdx, rax
call sym.sqlite.dll_sqlite3_mprintf
mov r12, rax
test rax, rax
jne 0x1801222e2
lea ebx, [rax + 7]
jmp 0x18012231e
mov rax, qword [rsi]
mov r9d, 0x85
or r8d, 0xffffffff
inc dword [rax + 0x78]
mov rcx, qword [rdi]
xor eax, eax
mov qword [rsp + 0x30], rax
mov rdx, r12
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rax
call fcn.180087650
mov rcx, r12
mov ebx, eax
mov rax, qword [rsi]
dec dword [rax + 0x78]
call sym.sqlite.dll_sqlite3_free
xor r12d, r12d
mov rdi, qword [rbp]
mov rcx, rdi
call sym.sqlite.dll_sqlite3_reset
test rdi, rdi
je 0x180122397
mov esi, 1
mov r8, r13
mov rcx, rdi
mov edx, esi
call sym.sqlite.dll_sqlite3_bind_int64
mov rcx, rdi
call sym.sqlite.dll_sqlite3_step
cmp eax, 0x64
jne 0x18012237f
xor edx, edx
mov rcx, rdi
call sym.sqlite.dll_sqlite3_column_blob
xor edx, edx
mov rcx, rdi
mov rbx, rax
call sym.sqlite.dll_sqlite3_column_bytes
mov r8, rbx
mov edx, r15d
mov rcx, r14
mov r9d, eax
call fcn.180122160
test eax, eax
cmove esi, r12d
mov rcx, rdi
call sym.sqlite.dll_sqlite3_reset
test esi, esi
je 0x180122399
mov ecx, 0x10b
test eax, eax
cmove eax, ecx
jmp 0x180122399
mov eax, ebx
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret