joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140295e80
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, rsp
push rbx
push rbp
push rdi
push r12
push r15
sub rsp, 0x170
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
mov rax, qword [0x1404af540]
xor rax, rsp
mov qword [rsp + 0x130], rax
movsxd rbx, dword [rsp + 0x1c8]
mov r11d, r9d
mov ebp, r9d
and r11d, 0xf
shr ebp, 4
mov r15, rdx
mov r12, rcx
test rbx, rbx
js 0x140295f04
mov rdx, qword [rsp + 0x1c0]
lea rcx, [rsp + 0x20]
sub rdx, rcx
lea rax, [rsp + 0x20]
lea rcx, [rbx + 1]
nop dword [rax]
nop dword [rax + rax]
movdqu xmm0, xmmword [rdx + rax]
lea rax, [rax + 0x10]
movdqu xmmword [rax - 0x10], xmm0
sub rcx, 1
jne 0x140295ef0
movdqa xmm7, xmmword [rsp + 0x20]
mov edi, 1
movdqu xmm6, xmmword [r8]
test ebp, ebp
je 0x140295f76
mov r10, r12
mov r9d, ebp
sub r10, r15
mov r8, r15
nop dword [rax]
nop dword [rax + rax]
mov rdx, rdi
movdqu xmm0, xmmword [r10 + r8]
xorps xmm6, xmm0
xorps xmm6, xmm7
cmp rbx, rdi
jle 0x140295f5e
lea rax, [rsp + 0x30]
mov rdx, rbx
lea rcx, [rbx - 1]
aesenc xmm6, xmmword [rax]
lea rax, [rax + 0x10]
sub rcx, rdi
jne 0x140295f50
add rdx, rdx
aesenclast xmm6, xmmword [rsp + rdx*8 + 0x20]
movdqu xmmword [r8], xmm6
add r8, 0x10
sub r9, rdi
jne 0x140295f30
test r11d, r11d
je 0x14029603c
mov eax, ebp
mov qword [rsp + 0x168], rsi
shl eax, 4
lea rcx, [rsp + 0x120]
mov qword [rsp + 0x160], r14
mov r8d, r11d
mov esi, r11d
lea edx, [rax - 0x10]
mov r14d, eax
add rdx, r15
call sub.VCRUNTIME140.dll_memcpy
xorps xmm0, xmm0
lea rdx, [r14 + r12]
mov r8d, esi
lea rcx, [rsp + 0x110]
movups xmmword [rsp + 0x110], xmm0
call sub.VCRUNTIME140.dll_memcpy
movdqu xmm0, xmmword [rsp + 0x110]
xorps xmm0, xmm6
xorps xmm0, xmm7
cmp rbx, rdi
jle 0x140295fff
lea rax, [rbx - 1]
lea edi, [rax + 1]
lea rcx, [rsp + 0x30]
nop
aesenc xmm0, xmmword [rcx]
lea rcx, [rcx + 0x10]
sub rax, 1
jne 0x140295ff0
movsxd rax, edi
lea ecx, [rbp - 1]
add rcx, rcx
lea rdx, [rsp + 0x120]
add rax, rax
mov r8, rsi
aesenclast xmm0, xmmword [rsp + rax*8 + 0x20]
movdqu xmmword [r15 + rcx*8], xmm0
lea rcx, [r14 + r15]
call sub.VCRUNTIME140.dll_memcpy
mov r14, qword [rsp + 0x160]
mov rsi, qword [rsp + 0x168]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1403ca460
movaps xmm6, xmmword [rsp + 0x150]
movaps xmm7, xmmword [rsp + 0x140]
add rsp, 0x170
pop r15
pop r12
pop rdi
pop rbp
pop rbx
ret
Function at 0x140296070
Capabilities:
Encrypt data using aes via x86 extensions

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, 0xf0
xor r12d, r12d
mov rdi, r8
mov r10, rcx
cmp edx, 0x80
jne 0x1402960a7
mov ebx, 0xa
jmp 0x1402960c7
cmp edx, 0xc0
jne 0x1402960b6
mov ebx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
jmp 0x1402960c7
cmp edx, 0x100
mov ebx, r12d
mov eax, Ordinal_16
cmove ebx, eax
mov eax, edx
lea r8, [rcx + 2]
cdq
lea r14, [rsp]
and edx, 0x1f
lea rbp, [rsp]
add eax, edx
lea esi, [rbx*4 + 4]
sar eax, 5
lea r13, [0x1403e3588]
movsxd r11, eax
sub r14, r10
mov r15d, r12d
mov r9d, r12d
lea rcx, [r11*4]
sub rbp, rcx
sub rbp, r10
cmp r9d, r11d
jge 0x140296136
movzx eax, byte [r8]
lea r10, [r8 + r14]
movzx ecx, byte [r8 + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [r8 - 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [r8 - 2]
shl ecx, 8
or ecx, eax
jmp 0x1402961c4
mov ecx, dword [r14 + r8 - 6]
lea r10, [r14 + r8]
mov eax, r9d
cdq
idiv r11d
cmp r11d, 8
jne 0x140296167
mov eax, r9d
and eax, 0x80000007
jge 0x14029615d
dec eax
or eax, 0xfffffff8
inc eax
cmp eax, 4
mov eax, 1
je 0x14029616a
mov eax, r12d
test edx, edx
jne 0x14029619d
movd xmm1, ecx
xorps xmm2, xmm2
movd xmm0, r12d
punpckldq xmm1, xmm0
mov eax, r15d
punpckldq xmm2, xmm1
aeskeygenassist xmm0, xmm2, 0
pextrd ecx, xmm0, 1
movzx eax, byte [rax + r13]
xor ecx, eax
inc r15d
jmp 0x1402961bf
test eax, eax
je 0x1402961bf
movd xmm0, r12d
xorps xmm2, xmm2
movd xmm1, ecx
punpckldq xmm1, xmm0
punpckldq xmm2, xmm1
aeskeygenassist xmm0, xmm2, 0
movd ecx, xmm0
xor ecx, dword [r8 + rbp - 2]
inc r9d
mov dword [r10 - 2], ecx
add r8, 4
sub rsi, 1
jne 0x140296106
lea rcx, [rsp + 4]
sub rdi, rcx
lea rax, [rsp + 4]
mov ecx, ebx
inc rcx
nop dword [rax + rax]
movdqu xmm3, xmmword [rax - 4]
lea rax, [rax + 0x10]
movdqu xmmword [rdi + rax - 0x10], xmm3
sub rcx, 1
jne 0x1402961f0
lea r11, [rsp + 0xf0]
xor eax, eax
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
Function at 0x1402b3350
Capabilities:
Read file on windows

Disassembly:
mov r8, qword [rcx + 0x28]
mov rdx, rcx
cmp r8, qword [rcx + 0x30]
jb 0x1402b336d
cmp qword [rcx], 0
jne fcn.1402b3390
mov eax, 0xffffffff
ret
mov rax, qword [rcx + 0x38]
movzx ecx, byte [r8 + rax]
lea rax, [r8 + 1]
mov qword [rdx + 0x28], rax
mov eax, ecx
ret

Function at 0x1402b3390
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov r9, qword [rcx]
mov rbx, rcx
mov rcx, qword [rcx + 0x38]
mov edx, 1
mov r8d, 0x400
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
test rax, rax
jne 0x1402b33c1
mov eax, 0xffffffff
add rsp, 0x20
pop rbx
ret
mov qword [rbx + 0x30], rax
mov rax, qword [rbx + 0x38]
mov qword [rbx + 0x28], 1
movsx eax, byte [rax]
add rsp, 0x20
pop rbx
ret
Function at 0x1402de3a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x48
movsxd rdi, r8d
mov rbp, rdx
mov rsi, rdi
mov qword [rsp + 0x38], r13
shl rsi, 5
mov rbx, rcx
add rsi, rdx
mov qword [rsp + 0x88], rdi
mov r13d, dword [rsi + 0x10]
cmp r13d, dword [rsi + 0x18]
jg 0x1402de3e8
mov dword [rsi + 0x14], 1
jmp 0x1402de4ac
mov rbx, qword [rsi + 8]
lea rdx, [rsi + 0x1c]
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r15
mov r12, qword [rbx]
mov dword [rsi + 0x10], 1
mov rcx, qword [rbx]
inc rcx
call fcn.14035a880
add eax, dword [rsi + 0x10]
lea rdx, [rsi + 0x20]
movsxd rcx, eax
mov dword [rsi + 0x10], eax
add rcx, qword [rbx]
call fcn.14035a690
movzx ebx, al
add ebx, dword [rsi + 0x10]
mov dword [rsi + 0x18], ebx
xor edi, edi
movsxd rcx, ebx
add rcx, r12
mov dword [rsi + 0x10], ebx
mov qword [rsp + 0x78], rdi
cmp byte [rcx], dil
jne 0x1402de45d
nop word [rax + rax]
inc edi
lea rcx, [rcx + 1]
inc ebx
cmp byte [rcx], 0
je 0x1402de450
movsxd rcx, ebx
lea rdx, [rsp + 0x78]
add rcx, r12
call fcn.14035a690
movzx eax, al
add ebx, eax
cmp ebx, r13d
jge 0x1402de488
lea eax, [rdi + 1]
add dword [rsi + 0x1c], eax
mov rax, qword [rsp + 0x78]
add qword [rsi + 0x20], rax
jmp 0x1402de432
mov r8d, dword [rsp + 0x80]
mov rbx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x88]
mov r15, qword [rsp + 0x28]
mov r14, qword [rsp + 0x30]
mov r12, qword [rsp + 0x40]
cmp dword [rsi + 0x14], 0
mov r13, qword [rsp + 0x38]
je 0x1402de524
inc r8d
cmp r8d, dword [rbp]
jge 0x1402de524
mov rdx, rbp
mov rcx, rbx
call fcn.1402de3a0
cmp dword [rsi + 0x34], 0
jne 0x1402de524
mov rcx, qword [rsi + 8]
call fcn.1402c8630
xorps xmm0, xmm0
mov rcx, rbx
movups xmmword [rsi + 8], xmm0
movups xmmword [rsi + 0x18], xmm0
movsxd rdx, dword [rbp + 4]
movsxd rax, dword [rsi + 0x3c]
shl rdx, 6
add rdx, 0x20
add rdx, rdi
shl rdx, 0x1f
add rdx, rax
call fcn.1402dcfb0
mov qword [rsi + 8], rax
test rax, rax
je 0x1402de524
lea rcx, [rsi + 8]
call fcn.1402de530
test eax, eax
je 0x1402de510
mov dword [rsi + 0x14], 0
mov eax, dword [rbp + 0x14]
add rsp, 0x48
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1402f1e50
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rbx, qword [rsp + 0x98]
xorps xmm0, xmm0
mov r13, qword [rsp + 0x90]
xor eax, eax
mov r12d, r9d
xor r14d, r14d
and r12d, 8
mov r15d, r9d
movups xmmword [rbx + 8], xmm0
mov rdi, rcx
mov ebp, 1
movups xmmword [rbx + 0x18], xmm0
movups xmmword [rbx + 0x28], xmm0
movups xmmword [rbx + 0x38], xmm0
movups xmmword [rbx + 0x48], xmm0
movups xmmword [rbx + 0x58], xmm0
movups xmmword [rbx + 0x68], xmm0
mov qword [rbx + 0x78], rax
mov qword [rbx], r13
cmp qword [rcx + 0x70], rax
jne 0x1402f1ee7
mov rdx, qword [rcx]
lea rcx, str.SELECT_pgno_FROM__q._q_idx_WHERE_segid__AND_term___ORDER_BY_term_DESC_LIMIT_1
mov r8, qword [rdx + 0x10]
mov rdx, qword [rdx + 8]
call fcn.140285a90
mov r8, rax
lea rdx, [rdi + 0x70]
mov rcx, rdi
call fcn.1402e8430
mov rsi, qword [rdi + 0x70]
cmp dword [rdi + 0x3c], r14d
jne 0x1402f2066
movsxd r8, dword [r13]
mov edx, ebp
mov rcx, rsi
call fcn.140288b80
mov r9d, dword [rsp + 0x80]
mov edx, 2
mov r8, qword [rsp + 0x78]
mov rcx, rsi
mov qword [rsp + 0x20], r14
call fcn.140288950
mov rcx, rsi
call fcn.14028a180
cmp eax, 0x64
jne 0x1402f1f44
xor edx, edx
mov rcx, rsi
call fcn.14028b140
mov ebp, eax
mov r14d, eax
sar ebp, 1
and r14d, 1
mov rcx, rsi
call fcn.14028bb90
mov edx, 1
mov dword [rdi + 0x3c], eax
mov rcx, rsi
call fcn.1403b3950
test eax, eax
jne 0x1402f1f72
mov rax, qword [rsi]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x1402f1f72
call qword [0x1404a5be0]
mov eax, dword [r13 + 4]
cmp ebp, eax
jge 0x1402f1f7f
mov ebp, eax
xor r14d, r14d
lea eax, [rbp - 1]
mov rdx, rbx
mov rcx, rdi
mov dword [rbx + 0xc], eax
call fcn.1402f12b0
cmp qword [rbx + 0x10], 0
je 0x1402f1fb5
mov eax, dword [rsp + 0x80]
mov r8, rbx
mov r9, qword [rsp + 0x78]
mov edx, r12d
mov rcx, rdi
mov dword [rsp + 0x20], eax
call fcn.1402eb280
cmp dword [rdi + 0x3c], 0
jne 0x1402f2004
test r12d, r12d
je 0x1402f1fc7
bt r15d, 8
jae 0x1402f2004
mov eax, dword [rbx + 8]
or eax, 1
cmp qword [rbx + 0x10], 0
mov dword [rbx + 8], eax
je 0x1402f2004
mov esi, r15d
and esi, 2
je 0x1402f1fe5
or eax, 2
mov dword [rbx + 8], eax
test r14d, r14d
je 0x1402f1ff5
mov rdx, rbx
mov rcx, rdi
call fcn.1402f08b0
test esi, esi
je 0x1402f2004
mov rdx, rbx
mov rcx, rdi
call fcn.1402f16a0
test byte [rbx + 8], 2
je 0x1402f2013
lea rcx, [0x1402f1610]
jmp 0x1402f202c
mov rax, qword [rdi]
lea rcx, [0x1402f0bc0]
lea rdx, [0x1402f13c0]
cmp dword [rax + 0x60], 1
cmove rcx, rdx
mov qword [rbx + 0x30], rcx
bt r15d, 8
jb 0x1402f2066
mov rax, qword [rbx]
mov esi, dword [rax + 0x20]
test esi, esi
jle 0x1402f2066
lea eax, [rsi*8 + 0x10]
movsxd rdx, eax
lea rcx, [rdi + 0x3c]
call fcn.14035e1e0
test rax, rax
je 0x1402f2066
mov dword [rax + 4], esi
mov dword [rax], 1
mov qword [rbx + 0x28], rax
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1402f5940
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor r12d, r12d
lea rbx, [rcx + 0x68]
mov r13, rdx
mov r15, rcx
mov esi, r12d
mov ebp, r12d
cmp qword [rbx], r12
jne 0x1402f5a53
mov r14, qword [rcx]
lea rax, str._origin
lea rdx, [0x1403f5736]
lea rcx, str.SELECT_sz_s_FROM__Q._q_docsize_WHERE_id_
cmp dword [r14 + 0x44], esi
mov r9, qword [r14 + 0x10]
mov r8, qword [r14 + 8]
cmovne rdx, rax
call fcn.140285a90
mov rdi, rax
test rax, rax
jne 0x1402f59bf
mov rcx, qword [rbx]
call fcn.14028bb90
mov eax, 7
jmp 0x1402f5b97
mov rax, qword [r15]
mov r9d, 0x85
mov qword [rsp + 0x30], r12
mov r8d, 0xffffffff
mov qword [rsp + 0x28], rbx
mov rdx, rdi
mov qword [rsp + 0x20], r12
inc dword [rax + 0x80]
mov rcx, qword [r14]
call fcn.14036b1c0
mov ebp, eax
mov rax, qword [r15]
dec dword [rax + 0x80]
cmp dword [reloc.SinoSPE.dll_Ordinal_1], esi
je 0x1402f5a4a
mov rcx, qword [0x1404b8660]
test rcx, rcx
je 0x1402f5a13
call qword [0x1404a5bd0]
mov rcx, rdi
call qword [0x1404a5b88]
dec qword [0x1404b85e8]
movsxd rcx, eax
sub qword [0x1404b85a0], rcx
mov rcx, rdi
call qword [0x1404a5b78]
mov rcx, qword [0x1404b8660]
test rcx, rcx
je 0x1402f5a53
call qword [0x1404a5be0]
jmp 0x1402f5a53
mov rcx, rdi
call qword [0x1404a5b78]
mov rbx, qword [rbx]
mov rcx, rbx
call fcn.14028bb90
test ebp, ebp
jne 0x1402f5b95
mov r8, r13
mov edx, 1
mov rcx, rbx
call fcn.140288b80
mov rcx, rbx
call fcn.14028a180
cmp eax, 0x64
jne 0x1402f5a93
mov edx, 1
mov rcx, rbx
call fcn.14028b260
mov rsi, rax
mov rcx, rbx
call fcn.14028bb90
test eax, eax
jne 0x1402f5b97
test rsi, rsi
je 0x1402f5b97
mov r15, qword [r15 + 8]
cmp qword [r15 + 0xa0], r12
jne 0x1402f5ae1
mov rcx, r15
call fcn.1402e4bc0
mov qword [r15 + 0x98], rax
cmp dword [r15 + 0x3c], r12d
jne 0x1402f5b8b
mov rcx, r15
call fcn.1402f7f30
mov qword [r15 + 0xa0], rax
cmp dword [r15 + 0x3c], r12d
jne 0x1402f5b8b
mov rax, qword [r15 + 0xa0]
inc dword [rax]
mov rcx, qword [r15 + 0xa0]
test rcx, rcx
je 0x1402f5b8b
mov eax, dword [rcx + 0x1c]
mov ebp, r12d
sub eax, 1
movsxd r12, eax
js 0x1402f5b83
mov r14, r12
mov qword [rsp + 0x70], rcx
shl r14, 4
add r14, 0x28
add r14, rcx
nop word [rax + rax]
mov eax, dword [r14 - 4]
sub eax, 1
movsxd rbx, eax
js 0x1402f5b74
imul rdi, rbx, 0x38
mov rdx, qword [r14]
add rdx, rdi
cmp qword [rdx + 0x10], rsi
ja 0x1402f5b6a
cmp qword [rdx + 0x18], rsi
jb 0x1402f5b6a
test ebp, ebp
jne 0x1402f5b5f
inc qword [rdx + 0x28]
mov ebp, 1
mov r8, r13
mov rcx, r15
call fcn.1402e8510
sub rdi, 0x38
sub rbx, 1
jns 0x1402f5b40
sub r14, 0x10
sub r12, 1
jns 0x1402f5b30
mov rcx, qword [rsp + 0x70]
call fcn.1402f8130
xor r12d, r12d
mov eax, dword [r15 + 0x3c]
mov dword [r15 + 0x3c], r12d
jmp 0x1402f5b97
mov eax, ebp
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140301370
Capabilities:
Reference sql statements

Disassembly:
push rbx
push rsi
sub rsp, 0x28
mov qword [rsp + 0x40], rbp
mov rbp, rcx
mov qword [rsp + 0x48], rdi
mov rdi, rdx
mov rdx, qword [rdx + 0x30]
mov qword [rsp + 0x58], r14
mov r14, r9
test r8d, r8d
je 0x140301409
lea rcx, str.PRAGMA__Q.page_size
mov dword [rsp + 0x50], 0
call fcn.140285a90
lea r8, [rsp + 0x50]
mov rdx, rax
mov rcx, rbp
mov rsi, rax
call fcn.140300250
mov ebx, eax
test eax, eax
jne 0x1403013ed
movzx ecx, byte [rdi + 0x27]
mov r8d, dword [rsp + 0x50]
imul edx, ecx, 0x33
add r8d, 0xffffffc0
mov dword [rdi + 0x20], r8d
add edx, 4
cmp edx, r8d
jge 0x140301470
mov dword [rdi + 0x20], edx
jmp 0x140301470
mov rcx, rbp
call fcn.140287d20
mov rdx, rax
lea rcx, [0x1403e9084]
call fcn.140285a90
mov qword [r14], rax
jmp 0x140301470
mov r8, qword [rdi + 0x38]
lea rcx, str.SELECT_length_data__FROM__q._q_node_WHERE_nodeno__1
mov qword [rsp + 0x20], r15
call fcn.140285a90
lea r8, [rdi + 0x20]
mov rdx, rax
mov rcx, rbp
mov rsi, rax
call fcn.140300250
mov ebx, eax
test eax, eax
je 0x14030144a
mov rcx, rbp
call fcn.140287d20
mov rdx, rax
lea rcx, [0x1403e9084]
jmp 0x140301463
cmp dword [rdi + 0x20], 0x1c0
jge 0x14030146b
mov rdx, qword [rdi + 0x38]
lea rcx, str.undersize_RTree_blobs_in___q_node_
mov ebx, 0x10b
call fcn.140285a90
mov qword [r14], rax
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
test rsi, rsi
je 0x1403014e6
cmp dword [reloc.SinoSPE.dll_Ordinal_1], 0
je 0x1403014dd
mov rcx, qword [0x1404b8660]
test rcx, rcx
je 0x14030149f
call qword [0x1404a5bd0]
mov rcx, rsi
call qword [0x1404a5b88]
dec qword [0x1404b85e8]
movsxd rcx, eax
sub qword [0x1404b85a0], rcx
mov rcx, rsi
call qword [0x1404a5b78]
mov rcx, qword [0x1404b8660]
test rcx, rcx
je 0x1403014e6
call qword [0x1404a5be0]
mov eax, ebx
add rsp, 0x28
pop rsi
pop rbx
ret
mov rcx, rsi
call qword [0x1404a5b78]
mov eax, ebx
add rsp, 0x28
pop rsi
pop rbx
ret

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

Disassembly:
push rbp
sub rsp, 0x30
cmp byte [rcx + 0x18], 0xb
mov rbp, rcx
jne 0x1403051ab
mov eax, dword [rcx + 0x1c]
lea rdx, [rcx + 0x38]
mov r9, qword [rcx + 0x28]
dec eax
mov ecx, Ordinal_32
lea r8, [rax + rax*2]
mov r9, qword [r9 + r8*8 + 0x10]
lea r8, str.__lld_
add rsp, 0x30
pop rbp
jmp fcn.140308a40
mov edx, dword [rcx + 0xc]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x48], rsi
add rcx, 0xc0
xor esi, esi
mov qword [rsp + 0x50], rdi
mov dword [rsp + 0x40], esi
call fcn.14030be70
add eax, dword [rbp + 0xc]
mov r9d, dword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
mov edx, eax
add rdx, qword [rbp + 0xc0]
test r9d, r9d
je 0x14030521f
movzx eax, byte [rdx]
lea r8, [0x1403e0580]
test byte [rax + r8], 2
je 0x14030521f
test r9d, r9d
je 0x140305212
movzx ecx, byte [rsi + rdx]
test byte [rcx + r8], 6
je 0x14030521f
inc esi
cmp esi, r9d
jb 0x140305200
lea ecx, [r9 + 2]
lea r8, str.._.s
jmp 0x14030522a
lea ecx, [r9 + 4]
lea r8, str..__.s_
add rbp, 0x38
mov qword [rsp + 0x20], rdx
mov rdx, rbp
call fcn.140308a40
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rbp
ret
Function at 0x140321bd0
Capabilities:
Reference sql statements

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
mov r14d, dword [rsp + 0x70]
mov ebx, r8d
mov dword [rax - 0x18], r14d
mov rbp, r9
mov qword [rax - 0x20], r9
mov rdi, rdx
mov r9, rdx
mov byte [rcx + 0x1c], 1
mov r8, rdx
mov dword [rax - 0x28], ebx
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 rsi, rcx
call fcn.14036c3b0
test ebx, ebx
jne 0x140321c39
mov r9, rbp
mov dword [rsp + 0x20], r14d
mov r8, rdi
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, rsi
call fcn.14036c3b0
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140325520
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
push r12
push r15
sub rsp, 0x20
xor edi, edi
mov r12, r8
mov r15, rdx
mov rbx, rcx
cmp dword [rcx + 0x40], edi
jne 0x14032555c
cmp qword [rcx + 0x20], rdi
jne 0x14032555c
mov r9, qword [rcx + 0x10]
lea rdx, str.SELECT_data_FROM__Q._q_node_WHERE_nodeno_
mov r8, qword [rcx + 8]
call fcn.140325b50
mov qword [rbx + 0x20], rax
cmp dword [rbx + 0x40], edi
jne 0x1403256aa
mov rcx, qword [rbx + 0x20]
mov r8, r15
mov edx, 1
call fcn.140288b80
mov rcx, qword [rbx + 0x20]
call fcn.14028a180
cmp eax, 0x64
jne 0x14032567a
mov rcx, qword [rbx + 0x20]
xor edx, edx
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x40], rbp
call fcn.14028b650
mov rsi, qword [rbx + 0x20]
movsxd r14, eax
test rsi, rsi
jne 0x1403255bf
lea rcx, [0x1403e20b8]
call fcn.14028c250
mov rbp, rax
jmp 0x140325637
mov rax, qword [rsi]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x1403255d1
call qword [0x1404a5bd0]
mov rcx, qword [rsi + 0xa0]
test rcx, rcx
je 0x1403255e6
cmp di, word [rsi + 0xc0]
jb 0x140325601
mov rcx, qword [rsi]
mov edx, reloc.SinoSPE.dll_Ordinal_25
mov dword [rcx + 0x50], reloc.SinoSPE.dll_Ordinal_25
call fcn.140345860
lea rcx, [0x1403e20b8]
call fcn.14028c250
mov rcx, qword [rsi]
mov rbp, rax
mov edx, dword [rsi + 0x34]
cmp byte [rcx + 0x67], dil
jne 0x14032561d
test edx, edx
jne 0x14032561d
mov eax, edi
jmp 0x140325622
call fcn.140299160
mov dword [rsi + 0x34], eax
mov rax, qword [rsi]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x140325637
call qword [0x1404a5be0]
call fcn.1403a2170
test eax, eax
jne 0x140325650
mov rcx, r14
call fcn.14036b6d0
mov rdi, rax
test rax, rax
jne 0x140325659
mov dword [rbx + 0x40], 7
jmp 0x14032566b
mov r8, r14
mov rdx, rbp
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov dword [r12], r14d
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov r14, qword [rsp + 0x50]
mov rcx, qword [rbx + 0x20]
call fcn.14028bb90
mov ecx, dword [rbx + 0x40]
test ecx, ecx
jne 0x1403256aa
mov dword [rbx + 0x40], eax
mov ecx, eax
test eax, eax
jne 0x1403256aa
test rdi, rdi
jne 0x1403256aa
mov r8, r15
lea rdx, str.Node__lld_missing_from_database
mov rcx, rbx
call fcn.1403254a0
mov rbx, qword [rsp + 0x58]
mov rax, rdi
add rsp, 0x20
pop r15
pop r12
pop rdi
ret
Function at 0x1403256c0
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
lea rax, str.SELECT_parentnode_FROM__Q._q_parent_WHERE_nodeno_1
movsxd r15, edx
mov rdi, qword [rcx + r15*8 + 0x28]
lea r14, [rcx + r15*8]
mov qword [rsp + 0x40], rax
lea rax, str.SELECT_nodeno_FROM__Q._q_rowid_WHERE_rowid_1
mov qword [rsp + 0x48], rax
mov rbp, r9
mov rsi, r8
mov rbx, rcx
test rdi, rdi
jne 0x140325723
mov r9, qword [rcx + 0x10]
mov r8, qword [rcx + 8]
mov rdx, qword [rsp + r15*8 + 0x40]
call fcn.140325b50
mov rdi, rax
mov qword [r14 + 0x28], rax
cmp dword [rbx + 0x40], 0
jne 0x1403257d9
mov r8, rsi
mov edx, 1
mov rcx, rdi
call fcn.140288b80
mov rcx, rdi
call fcn.14028a180
cmp eax, 0x65
jne 0x14032577b
test r15d, r15d
lea rcx, str.__rowid
lea rax, str.__parent
mov r9, rbp
cmovne rax, rcx
lea rdx, str.Mapping___lld_____lld__missing_from__s_table
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov r8, rsi
call fcn.1403254a0
jmp 0x1403257c8
cmp eax, 0x64
jne 0x1403257c8
xor edx, edx
mov rcx, rdi
call fcn.14028b260
mov r9, rax
cmp rax, rbp
je 0x1403257c8
test r15d, r15d
mov qword [rsp + 0x30], rbp
lea rcx, str.__rowid
mov qword [rsp + 0x28], rsi
lea rax, str.__parent
mov r8, rsi
cmovne rax, rcx
lea rdx, str.Found___lld_____lld__in__s_table__expected___lld_____lld_
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.1403254a0
mov rcx, rdi
call fcn.14028bb90
cmp dword [rbx + 0x40], 0
jne 0x1403257d9
mov dword [rbx + 0x40], eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r14
pop rdi
ret