joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800f77a0
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.1800f74e0
mov rbp, rax
test rax, rax
jne 0x1800f77ef
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.1800f76f0
mov rdx, rdi
mov rcx, rbx
mov r13, rax
call fcn.1800f76f0
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 0x1800f7902
test r13, r13
je 0x1800f7902
test r14, r14
je 0x1800f7902
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.1800873e0
mov ebx, eax
test eax, eax
jne 0x1800f7907
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 0x1800f78f6
cmp dword [rdi + 0x18], r12d
je 0x1800f78d3
xor edx, edx
mov rcx, rbx
call sym.sqlite.dll_sqlite3_column_int64
jmp 0x1800f78d6
mov rax, r12
mov r9, rdi
mov r8, rsi
mov rdx, rax
mov ecx, 0x17
call fcn.1800f6c30
mov rcx, rbx
call sym.sqlite.dll_sqlite3_step
cmp eax, 0x64
je 0x1800f78c1
mov rcx, rbx
call sym.sqlite.dll_sqlite3_finalize
mov ebx, eax
jmp 0x1800f7907
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 0x1801056d0
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 0x180105718
nop
movsx r9d, byte [r10 + r8]
lea eax, [r11*8]
xor r9d, eax
xor r11d, r9d
dec r10
jns 0x180105700
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 0x18010575c
cmp dword [rbx + 0xc], r14d
jne 0x180105753
cmp dword [rbx + 8], esi
jne 0x180105753
mov rcx, qword [rbx]
mov r8, rsi
mov rdx, r12
call fcn.180136a90
test eax, eax
je 0x180105778
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x180105736
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x70], r13
lea rdi, [rsi + 0x18]
call sym.sqlite.dll_sqlite3_initialize
test eax, eax
je 0x18010578b
mov rbx, rbp
jmp 0x1801057ed
mov rcx, qword [rsp + 0x80]
mov dword [rcx], 1
jmp 0x18010583f
test rdi, rdi
je 0x1801057e5
cmp rdi, 0x7ffffeff
ja 0x1801057e5
cmp dword [0x180171920], ebp
je 0x1801057d8
mov rcx, qword [0x1801811a8]
test rcx, rcx
je 0x1801057b3
call qword [0x1801719a0]
lea rdx, [rsp + 0x20]
mov ecx, edi
call fcn.18000ae60
mov rcx, qword [0x1801811a8]
test rcx, rcx
je 0x1801057d1
call qword [0x1801719b0]
mov rbx, qword [rsp + 0x20]
jmp 0x1801057e8
mov ecx, edi
call qword [0x180171940]
mov rbx, rax
jmp 0x1801057e8
mov rbx, rbp
test rbx, rbx
jne 0x1801057f9
test rdi, rdi
jle 0x180105806
mov ebp, 7
jmp 0x180105806
mov r8, rdi
xor edx, edx
mov rcx, rbx
call fcn.18012d640
mov rdi, qword [rsp + 0x68]
test rbx, rbx
je 0x18010583a
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.1801278d0
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 0x180105aa0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r10, rcx
mov r8, rcx
movzx ecx, byte [rcx]
movzx eax, cl
cmp cl, 0x27
je 0x180105bda
cmp al, 0x4e
je 0x180105b7a
cmp al, 0x58
je 0x180105b23
cmp al, 0x6e
je 0x180105b7a
cmp al, 0x78
je 0x180105b23
cmp cl, 0x2b
je 0x180105ad7
cmp cl, 0x2d
jne 0x180105ae0
lea r8, [r10 + 1]
nop dword [rax + rax]
movzx eax, byte [r8]
sub al, 0x30
cmp al, 9
ja 0x180105aef
inc r8
jmp 0x180105ae0
cmp byte [r8], 0x2e
jne 0x180105b13
movzx eax, byte [r8 + 1]
sub al, 0x30
cmp al, 9
ja 0x180105b13
add r8, 2
movzx eax, byte [r8]
sub al, 0x30
cmp al, 9
ja 0x180105b13
inc r8
jmp 0x180105b04
cmp r8, r10
jne 0x180105c02
xor r8d, r8d
mov eax, r8d
ret
cmp byte [r10 + 1], 0x27
lea r8, [r10 + 1]
jne 0x180105bff
movzx eax, byte [r8 + 1]
inc r8
cmp al, 0x61
jl 0x180105b42
cmp al, 0x66
jle 0x180105b32
cmp al, 0x41
jl 0x180105b4a
cmp al, 0x46
jle 0x180105b32
cmp al, 0x30
jl 0x180105b52
cmp al, 0x39
jle 0x180105b32
cmp byte [r8], 0x27
jne 0x180105bff
mov rax, r8
sub rax, r10
cqo
and eax, 1
xor rax, rdx
cmp rax, rdx
jne 0x180105bff
inc r8
mov rax, r8
ret
mov edx, 4
lea r8, str.null
mov r9, r10
lea r11, [0x180143970]
movzx ecx, byte [r8]
dec edx
test cl, cl
je 0x180105bb8
movzx eax, byte [r9]
movzx ecx, cl
movzx eax, byte [rax + r11]
cmp byte [rcx + r11], al
jne 0x180105bb8
inc r8
inc r9
test edx, edx
jg 0x180105b90
dec edx
test edx, edx
js 0x180105bd2
movzx eax, byte [r9]
movzx edx, byte [rax + r11]
movzx eax, byte [r8]
movzx ecx, byte [rax + r11]
sub ecx, edx
jne 0x180105bff
lea r8, [r10 + 4]
mov rax, r8
ret
lea r8, [r10 + 1]
test r8, r8
je 0x180105c02
movzx eax, byte [r8]
cmp al, 0x27
jne 0x180105bf3
inc r8
cmp byte [r8], al
jne 0x180105c02
movzx eax, byte [r8 + 1]
inc r8
test al, al
jne 0x180105be7
xor r8d, r8d
mov rax, r8
ret
Function at 0x18010c5f0
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 0x18010c75c
test rdi, rdi
je 0x18010c75c
mov rcx, rdi
call fcn.18000af90
mov rsi, rax
test rax, rax
je 0x18010c75c
mov r8, rdi
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x40], rbx
call fcn.18012d640
xor ebx, ebx
cmp dword [r12 + 0x14], ebx
jle 0x18010c6dd
mov r10, r13
cmp qword [r10], 0
je 0x18010c6d0
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 0x18010c6b8
nop word [rax + rax]
movzx edx, byte [r11 + rax + 0x30]
lea ecx, [r8*8]
xor edx, ecx
xor r8d, edx
dec rax
jns 0x18010c6a0
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 0x18010c670
inc ebx
add r10, 8
cmp ebx, dword [r12 + 0x14]
jl 0x18010c662
mov rbx, qword [rsp + 0x40]
test r13, r13
je 0x18010c74e
cmp dword [0x180171920], 0
je 0x18010c745
mov rcx, qword [0x1801811a8]
test rcx, rcx
je 0x18010c702
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 0x18010c74e
call qword [0x1801719b0]
mov dword [r12 + 0x14], ebp
mov qword [r12 + 0x20], rsi
xor eax, eax
jmp 0x18010c761
mov rcx, r13
call qword [0x180171948]
mov dword [r12 + 0x14], ebp
mov qword [r12 + 0x20], rsi
xor eax, eax
jmp 0x18010c761
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 0x18010d020
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 0x18010d068
nop
movzx r11d, byte [rax + rdx]
lea r10d, [rcx*8]
xor r11d, r10d
xor ecx, r11d
dec rax
jns 0x18010d050
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 0x18010d0a6
mov eax, dword [rbx + 0x1c]
inc eax
cmp edi, eax
jne 0x18010d09e
lea rcx, [rbx + 0x30]
mov r8, rdi
mov rdx, rsi
call fcn.180136a90
test eax, eax
je 0x18010d0d4
mov rbx, qword [rbx]
test rbx, rbx
jne 0x18010d082
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 0x18010d145
test rdi, rdi
je 0x18010d145
cmp rdi, 0x7ffffeff
ja 0x18010d145
cmp dword [0x180171920], eax
je 0x18010d138
mov rcx, qword [0x1801811a8]
test rcx, rcx
je 0x18010d113
call qword [0x1801719a0]
lea rdx, [rsp + 0x40]
mov ecx, edi
call fcn.18000ae60
mov rcx, qword [0x1801811a8]
test rcx, rcx
je 0x18010d131
call qword [0x1801719b0]
mov rdi, qword [rsp + 0x40]
jmp 0x18010d147
mov ecx, edi
call qword [0x180171940]
mov rdi, rax
jmp 0x18010d147
xor edi, edi
mov qword [r12], rdi
test rdi, rdi
je 0x18010d18a
movsxd rdx, ebp
lea rcx, [rdi + 0x10]
movsxd r8, esi
add rdx, rbx
call fcn.1801278d0
mov r11d, 0x10
mov rdx, rbx
sub r11d, ebp
mov rcx, r13
movsxd r8, r11d
add r8, rdi
call fcn.18010c780
mov rcx, qword [rsp + 0x60]
add eax, esi
mov dword [rcx], eax
jmp 0x18010d0b9
mov rax, qword [rsp + 0x60]
mov dword [rax], 0
mov eax, 7
jmp 0x18010d0bb
Function at 0x180113910
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 0x180113b1f
mov qword [rsp + 0x20], r14
xor r14d, r14d
mov qword [rsp + 0x70], rdi
test r13d, r13d
jne 0x180113b15
mov rax, qword [rbx + 0x58]
lea rdi, [r14 + rax]
mov rax, qword [rsi]
mov ecx, dword [rax + 0x88]
cmp dword [rdi + 0x18], ecx
jl 0x180113a99
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.18010d420
lea r8d, [r12 + 2]
mov rdx, rbx
mov rcx, rsi
call fcn.180113660
mov r11, qword [rbx + 0x58]
lea rdi, [r14 + r11]
cmp dword [rbp], r13d
jne 0x180113a87
cmp dword [rdi + 0x38], r13d
jne 0x180113a87
mov r11, qword [rdi + 0x10]
movzx r8d, byte [r11 + 1]
lea rcx, [r11 + 1]
test r8b, r8b
js 0x1801139ee
mov eax, r8d
mov qword [rsp + 0x78], rax
mov al, 1
jmp 0x1801139f8
lea rdx, [rsp + 0x78]
call fcn.180125af0
movzx eax, al
inc eax
movsxd rcx, eax
add rcx, r11
movzx r8d, byte [rcx]
test r8b, r8b
js 0x180113a16
mov esi, r8d
mov qword [rsp + 0x78], r8
jmp 0x180113a25
lea rdx, [rsp + 0x78]
call fcn.180125af0
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 0x180113a4a
lea rdx, [rdi + 0x30]
mov rcx, rbp
call fcn.180104eb0
test eax, eax
jne 0x180113a59
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.180104f40
lea rdx, [rdi + 0x30]
mov r8, rsi
mov rcx, rbp
call fcn.180104f40
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 0x180113a9f
mov r13d, 1
cmp dword [rdi + 4], 0
je 0x180113aae
mov r8, r15
sub r8, qword [rdi + 8]
jmp 0x180113ae3
test r12d, r12d
jne 0x180113ab8
mov esi, dword [rbx + 8]
jmp 0x180113abb
mov esi, dword [rdi - 0x20]
xor r8d, r8d
test r13d, r13d
lea rdx, [rdi + 0x10]
sete r8b
mov rcx, rbp
call fcn.180104f40
lea rdx, [rdi + 0x10]
movsxd r8, esi
mov rcx, rbp
call fcn.180104f40
mov r8, r15
lea rdx, [rdi + 0x10]
mov rcx, rbp
call fcn.180104f40
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 0x180113951
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 0x1801160c0
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.180112e30
cmp dword [rbx + 0x3c], 0
mov rdi, qword [rsp + 0x60]
jne 0x180116180
cmp byte [rdi + 0x14], 0
jne 0x180116180
mov rax, qword [rdi + 0x58]
movzx ecx, word [rax + 4]
imul rcx, rcx, 0x88
cmp qword [rcx + rdi + 0xd8], rsi
jge 0x18011614e
mov r8, rsi
mov rdx, rdi
mov rcx, rbx
call fcn.1801132c0
cmp dword [rbx + 0x3c], 0
jne 0x180116180
cmp byte [rdi + 0x14], 0
jne 0x180116180
mov rax, qword [rdi + 0x58]
movzx ecx, word [rax + 4]
imul rcx, rcx, 0x88
cmp rsi, qword [rcx + rdi + 0xd8]
jne 0x180116180
lea rdx, [rcx + rdi + 0x60]
mov rcx, rbx
call fcn.180115770
mov rcx, rdi
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
jmp fcn.180111770
Function at 0x180120110
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 0x1801201ee
cmp qword [rcx + 0x38], rbx
lea rdi, [rcx + 0x38]
jne 0x1801201b4
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 0x180120177
lea ebx, [rsi + 6]
jmp 0x1801201b4
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.1800873e0
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 0x18012031f
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 0x1801201ee
mov rcx, rbp
call sym.sqlite.dll_sqlite3_reset
jmp 0x180120321
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 0x18012033f
mov rax, qword [r13 + 0x28]
cmp byte [rax + r12 - 1], 0
jne 0x1801202f8
test rbp, rbp
je 0x180120248
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 0x180120297
test r14, r14
je 0x1801202f8
mov rcx, qword [rdi + r14]
test rcx, rcx
jne 0x18012025e
xor ebx, ebx
jmp 0x18012028e
movzx edx, word [rcx + 0x14]
movzx eax, dx
and ax, r8w
cmp ax, r8w
jne 0x18012027b
cmp byte [rcx + 0x16], 1
jne 0x18012027b
mov rbx, qword [rcx + 8]
jmp 0x18012028e
test dl, 1
je 0x180120284
xor ebx, ebx
jmp 0x18012028e
mov dl, 1
call fcn.180033820
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 0x1801202d5
mov rax, qword [r13 + 0x70]
lea rcx, [0x1801200c0]
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 0x1801202fd
mov eax, 0x10b
inc esi
inc r12
add rdi, 8
test ebx, ebx
je 0x180120210
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 0x18012030e
cmp qword [r15 + 0x18], 1
jge 0x18012030e
mov ebx, eax
jmp 0x180120312
Function at 0x180120350
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 0x1801203f4
mov rsi, qword [rcx]
lea rax, str._origin
lea rdx, [0x1801437f4]
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 0x1801203b3
lea esi, [rdi + 7]
jmp 0x1801203ef
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.1800873e0
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 0x18012044e
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 0x18012042c
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 0x180120450
test rdi, rdi
je 0x180120450
mov rcx, qword [rbp + 8]
mov r8, r12
mov rdx, rdi
call fcn.180119920
jmp 0x180120450
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 0x180121ff0
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 0x1801220a1
cmp dword [rdi + 0x44], ebx
mov r9, qword [rdi + 0x10]
mov r8, qword [rdi + 8]
lea rax, str._origin
lea rdx, [0x1801437f4]
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 0x180122062
lea ebx, [rax + 7]
jmp 0x18012209e
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.1800873e0
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 0x180122117
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 0x1801220ff
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.180121ee0
test eax, eax
cmove esi, r12d
mov rcx, rdi
call sym.sqlite.dll_sqlite3_reset
test esi, esi
je 0x180122119
mov ecx, 0x10b
test eax, eax
cmove eax, ecx
jmp 0x180122119
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
Function at 0x180125420
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rdi
sub rsp, 0x20
mov edi, edx
mov r8d, ecx
cmp ecx, 0x80
jge 0x18012544c
lea eax, [rcx - 0x41]
cmp eax, 0x19
ja 0x180125444
lea eax, [rcx + 0x20]
add rsp, 0x20
pop rdi
ret
mov eax, ecx
add rsp, 0x20
pop rdi
ret
cmp ecx, 0x10000
jge 0x180125523
mov qword [rsp + 0x30], rbx
xor ebx, ebx
mov qword [rsp + 0x38], rsi
mov r9d, 0xa2
or r11d, 0xffffffff
lea rsi, [0x180000000]
mov r10d, ebx
nop dword [rax + rax]
lea eax, [r10 + r9]
cdq
sub eax, edx
sar eax, 1
movsxd rcx, eax
movzx edx, word [rsi + rcx*4 + 0x14b380]
cmp r8d, edx
js 0x1801254a2
mov r11d, eax
lea r10d, [rax + 1]
jmp 0x1801254a6
lea r9d, [rax - 1]
cmp r9d, r10d
jge 0x180125480
movsxd rdx, r11d
movzx ecx, word [rsi + rdx*4 + 0x14b380]
movzx eax, byte [rsi + rdx*4 + 0x14b383]
add eax, ecx
cmp r8d, eax
jge 0x1801254f2
movzx r9d, byte [rsi + rdx*4 + 0x14b382]
xor ecx, r8d
mov eax, r9d
and eax, 1
and eax, ecx
test al, al
jne 0x1801254f2
mov eax, r9d
shr rax, 1
movzx eax, word [rsi + rax*2 + 0x14b610]
add eax, r8d
movzx r8d, ax
mov rsi, qword [rsp + 0x38]
test edi, edi
je 0x180125515
cmp edi, 2
mov ecx, r8d
sete bl
mov edx, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1800e5250
mov eax, r8d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
lea eax, [rcx - 0x10400]
cmp eax, 0x27
ja 0x180125444
lea eax, [rcx + 0x28]
add rsp, 0x20
pop rdi
ret

Function at 0x18012b88f
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1801705d0]
jne 0x18012771a
rol rcx, 0x10
test cx, 0xffff
jne 0x180127716
repz ret
ror rcx, 0x10
jmp 0x18012b7e8
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x180177c20]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x180177d18]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x18012b86d
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x180177c20]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x18012b88f
mov rax, qword [rsp + 0x88]
mov qword [0x180177d18], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x180177cb8], rax
mov rax, qword [0x180177d18]
mov qword [0x180177b90], rax
mov rax, qword [rsp + 0x90]
mov qword [0x180177ca0], rax
mov dword [0x180177b80], 0xc0000409
mov dword [0x180177b84], 1
mov rax, qword [0x1801705d0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1801705d8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x180177c18], eax
mov ecx, 1
call fcn.180133de0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x18013d5d0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x180177c18], 0
jne 0x18012b916
mov ecx, 1
call fcn.180133de0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret