joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140075256
Capabilities:
Receive data
Receive data on socket

Disassembly:
cmp dword [rcx], 2
jne 0x140075268
add rcx, 8
jmp fcn.140074ace
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
mov rcx, r8
call fcn.140074d7f
lea rcx, [rsp + 0x58]
mov qword [rcx], rax
mov qword [rcx + 8], rdx
xorps xmm0, xmm0
movups xmmword [rcx + 0x10], xmm0
mov qword [rdi + 0x38], rbx
call fcn.140075438
mov r14, rax
mov r15, rdx
lea r12, [rsp + 0x30]
mov rcx, rdi
call fcn.1400754d8
test rdx, rdx
jne 0x14007531a
mov rcx, r12
mov rdx, rdi
call fcn.140073873
mov eax, dword [rsp + 0x30]
cmp eax, 2
je 0x140075387
test eax, eax
je 0x14007531a
cmp qword [rdi + 0x110], 0
je 0x140075301
mov rcx, rdi
call fcn.1400745ac
mov rbx, rdx
test rax, rax
jne 0x140075393
test rbx, rbx
je 0x14007531a
and qword [rdi + 0x110], 0
mov rcx, r12
mov rdx, rdi
call fcn.14007483c
cmp byte [rsp + 0x30], 0
jne 0x140075387
cmp byte [rsp + 0x31], 0
je 0x1400752ad
mov rcx, rdi
call fcn.1400754d8
mov rbx, rdx
test rax, rax
je 0x140075393
mov r12, rax
cmp r15, rbx
cmovb rbx, r15
lea r9, str.C:Usersuser.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.26_src_tls_stream.rs
mov rcx, rbx
mov rdx, r14
mov r8, r15
call fcn.140074563
lea rcx, str.C:Usersuser.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.26_src_tls_stream.rs
mov qword [rsp + 0x20], rcx
mov rcx, rax
mov r8, r12
mov r9, rbx
call fcn.14006585a
mov rax, qword [rdi + 0x58]
add rax, rbx
cmp rax, qword [rdi + 0x50]
ja 0x14007541f
mov qword [rdi + 0x58], rax
lea rcx, [rsp + 0x58]
mov rdx, rbx
call fcn.1400754a5
jmp 0x1400753c3
mov rbx, qword [rsp + 0x38]
mov qword [rsp + 0x30], rbx
jmp 0x14007539d
mov qword [rsp + 0x30], rbx
test rbx, rbx
je 0x1400753c3
mov rcx, rbx
call fcn.140031886
and qword [rdi + 0x38], 0
cmp al, 0xd
jne 0x1400753d0
invalid
lea rcx, [rsp + 0x30]
call fcn.140072604
mov edi, 1
xor ebx, ebx
xor eax, eax
jmp 0x1400753d4
and qword [rdi + 0x38], 0
mov al, 1
xor ebx, ebx
xor edi, edi
jmp 0x1400753d4
xor edi, edi
mov al, 1
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbx
test al, al
je 0x14007540b
test rbx, rbx
jne 0x14007540b
lea rcx, [rsp + 0x58]
call fcn.140074a8b
mov rbx, rdx
lea rcx, [rsp + 0x48]
call fcn.140074d22
mov rcx, rsi
mov rdx, rbx
call fcn.140074d96
invalid
push qword [rcx]
invalid
mov rax, rdi
mov rdx, rbx
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [0x1402083ee]
lea r8, str.C:Usersuser.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.26_src_tls_stream.rs
lea eax, [0x140208430]
mov edx, 0x3b
call fcn.1401be070
int3
Function at 0x14008646c
Capabilities:
Check for software breakpoints

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov eax, 0x2c28
call fcn.1401bc8c0
sub rsp, rax
invalid
movaps xmmword [rsp + 0x2c10], xmm9
movaps xmmword [rsp + 0x2c00], xmm8
movaps xmmword [rsp + 0x2bf0], xmm7
movaps xmmword [rsp + 0x2be0], xmm6
sub dword [rsp + 0x2be0], esi
mov r15, rdx
mov r12, rcx
mov esp, ecx
lea r13, [rcx + 0x80]
lea rdi, [rcx + 0x210]
lea rax, [rcx + 0x231]
mov qword [rsp + 0x2f8], rax
add byte [rax], al
lea rax, [rcx + 0x88]
mov qword [rsp + 0x2e0], rax
test byte [rax + riz*8], ah
add al, byte [rax]
add byte [rdi], cl
push rdi
div bl
movss xmm7, dword [0x1401c5bf0]
lea rax, [rcx + 0x1e0]
loopne 0x1400864ea
add byte [rax], al
mov qword [rsp + 0x170], rax
lea rax, [rcx + 0x138]
add byte [rax], al
mov qword [rsp + 0x2d8], rax
lea rax, [rcx + 0x129]
lea eax, [rcx + 0x129]
mov qword [rsp + 0x2d0], rax
lea rax, [rcx + 0x1b8]
mov qword [rsp + 0x168], rax

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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x718
mov rdi, r8
invalid
mov rbx, rdx
mov qword [rsp + 0x150], rcx
mov rsi, qword [rdx + 0x498]
mov rcx, rsi
int1
call fcn.1400943df
test al, al
invalid
jne 0x140092843
add rsi, 0x10
lea rcx, [rbx + 0x3b8]
mov rdx, rsi
call fcn.14009b7a1
invalid
cmp dword [rbx + 0x390], 2
jne 0x14009285a
mov qword [rsp + 0x170], 2
jmp 0x14009288a
lea rsi, [rbx + 0x390]
lea rdx, [rbx + 0x3a8]
mov rcx, rsi
call fcn.1400dade8
mov r14, rax
lea r15, [rsp + 0x170]
mov rcx, r15
mov rdx, rsi
call fcn.1400dae1c
mov qword [r15 + 0x18], r14
mov rax, qword [rbx + 0x3b0]
mov rcx, qword [rsp + 0x170]
mov rdx, qword [rsp + 0x178]
movups xmm0, xmmword [rsp + 0x180]
adc byte [rsp + 0x180], al
movaps xmmword [rsp + 0x480], xmm0
mov qword [rsp + 0x470], rcx
add al, 0
add byte [rax - 0x77], cl
xchg esp, eax
and al, 0x78
add al, 0
add byte [rax - 0x77], cl
test byte [rax + rdx*4], ah
nop
add al, 0
add byte [rbx + 0x47024bc], al
add byte [rax], al
invalid
je 0x1400928e8
lea rdx, [rsp + 0x488]
lea rcx, [rsp + 0x470]
call fcn.1400dae71
mov qword [rsp + 0x620], 2
and qword [rsp + 0x640], 0
lea r14, [rbx + 0x48]
lea rax, [rbx + 0x3b8]
mov qword [rsp + 0x2d8], rax
lea rax, [rbx + 0x4a8]
mov qword [rsp + 0x2d0], rax
mov dword [rsp + 0x74], eax
mov dword [rsp + 0x70], eax
mov qword [rsp + 0x50], r14
Function at 0x1400a58e7
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsp

Function at 0x1400adda0
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae 0x1400addc5
cmp rax, rcx
je 0x1400addcb
cmp rdx, 4
jae 0x1400addd2
xor eax, eax
xor r8d, r8d
jmp 0x1400ade70
pop rbp
jmp fcn.14001c9d0
xor eax, eax
jmp 0x1400ade87
mov r8d, edx
and r8d, 0x1c
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x1401c5b10]
movdqa xmm3, xmmword [0x1401c5b20]
pxor xmm1, xmm1
nop word cs:[rax + rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x1400ade00
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x1400ade87
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x1400ade70
pop rbp
ret
Function at 0x1400b72ea
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov eax, edx
lea r9, [rsp + 0x34]
mov dword [r9], r8d
mov dword [rsp + 0x20], 4
and byte [rax + rax], al
add byte [rax], al
mov edx, 0xffff
mov r8d, eax
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1400b7317
xor eax, eax
jmp 0x1400b731c
call fcn.14001bfe3
nop
add rsp, 0x38
ret

Function at 0x1400b8170
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
in al, dx
test al, 0
add byte [rax], al
lea rbp, [rsp + 0x80]
lodsb al, byte [rsi]
and al, 0x80
add byte [rax], 0
add byte [rax - 0x77], cl
mov rsi, rcx
mov esi, ecx
movups xmm0, xmmword [0x140211858]
adc byte [0x140211858], al
adc eax, 0x45290f00
add byte [r8 - 1], r15b
invalid
invalid
invalid
dec dword [rcx + 0x39]
cmp eax, eax
cmovb rax, r8
ror byte [rdi], 0x57
ror byte [rdi], 0x11
and al, 0x38
and al, 0x38
mov dword [rsp + 0x30], eax
and al, 0x30
mov qword [rsp + 0x28], rdx
push rsp
and al, 0x28
mov rax, rbp
mov eax, ebp
mov qword [rsp + 0x20], rax
and al, 0x20
xor edx, edx
rol byte [rbp + 0x31], cl
rol byte [rbp + 0x31], 0xc9
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
adc eax, 0x10d5c6
add byte [0x1400b82ca], bh
add byte [rax], al
jne 0x1400b81e1
mov rcx, rsi
mov edx, 0xffffffff
invalid
invalid
invalid
invalid
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0x103
je 0x1400b820e
test eax, eax
js 0x1400b81ed
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x1400b8204
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, [0x1402118c0]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
rol byte [rcx], 1
add byte [rax], al
add byte [rax - 0x73], cl
and byte [r8 - 0x77], r9b
fmul dword [r15]
push rdi
ror byte [rdi], 0x11
loopne 0x1400b8284
lea ecx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.1400b78b0
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.1400b7970
mov ecx, 7
int 0x29
ud2

Function at 0x1400ba370
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3d0], rcx
mov qword [rbp + 0x3d8], 0
add byte [rax], al
add byte [rax], al
Function at 0x1400bdce0
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4a8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x420], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x60]
call fcn.1400be1d0
mov rax, qword [rbp - 0x60]
movabs rdi, 0x8000000000000000
cmp rax, rdi
jne 0x1400bdd36
lea rcx, [rbp - 0x58]
call case.0x1400a2869.309
mov qword [rsi], rdi
jmp 0x1400bdf78
mov qword [rbp + 0x3f8], rsi
mov qword [rbp + 0x3f0], rax
mov rax, qword [rbp - 0x58]
mov qword [rbp + 0x400], rax
mov qword [rbp + 0x408], 0
mov qword [rbp + 0x410], 2
mov qword [rbp + 0x418], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r14d, r14d
cmp r8, 0x201
jae 0x1400bddc0
jmp 0x1400bddaf

Function at 0x1400bf000
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
Function at 0x1400c36a0
Capabilities:
Resolve dns

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x1e8
lea rbp, [rsp + 0x80]
add byte [rax - 0x77], cl
ror byte [rax - 0x77], 1
invalid
mov rdx, qword [rdx]
mov rdi, qword [rax + 8]
movzx eax, word [rax + 0x10]
mov word [rbp + 0x166], ax
mov eax, dword [0x140265c50]
add eax, 0x1a257f
Function at 0x1400cdcfe
Capabilities:
Get local ipv4 addresses

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov qword [rsp + 0x38], rcx
cmp byte [rax - 0x73], cl
insb byte [rdi], dx
and al, 0x44
Function at 0x1400d0019
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
sub esp, 0x38
in al, dx
invalid

Function at 0x1400d76ab
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x1400d76b2
test al, 1
je 0x1400d76d1
test al, 2
jne 0x1400d76e9
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x140216c50]
mov edx, 0x23
call fcn.1401be070
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x140216c90]
mov edx, 0x25
call fcn.1401be070
int3

Function at 0x1400d7fad
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, edx
call fcn.1400d6ef3
mov rcx, qword [rax]
movzx eax, bl
lea r9, [rsp + 0x2c]
mov dword [r9], eax
mov dword [rsp + 0x20], 4
add byte [rax], al
mov edx, 6
mov r8d, 1
add byte [rax], al
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1400d7fe9
xor eax, eax
jmp 0x1400d7ff7
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rbx
ret

Function at 0x1400d7ffd
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
lea r14, [rsp + 0x2a]
lea r12, [rsp + 0x42]
mov r13, qword [rcx + 0x10]
mov r15, qword [rcx + 0x18]
mov eax, 0x7fffffff
cmp r9, rax
cmovb rax, r9
mov qword [rsp + 0x50], rax
mov rax, qword [rcx + 0x20]
mov qword [rsp + 0x48], rax
lea rbp, [rsp + 0x20]
mov qword [rsp + 0x30], r13
Function at 0x1400ffbc4
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rdx
mov edi, ecx
call fcn.1401a5c74
test eax, eax
jne 0x1400ffd5a
cmp byte [0x1402602d4], al
jne 0x1400ffbf6
xor ebx, ebx
jmp 0x1400ffc12
mov ecx, 5
call qword [0x140260340]
mov rbx, rax
test rax, rax
je 0x1400ffc12
mov rcx, rax
call qword [0x140260350]
test edi, edi
jle 0x1400ffd45
test rbp, rbp
je 0x1400ffd45
cmp dword [0x140265ea0], 0
jne 0x1400ffcd1
xor ecx, ecx
call fcn.1400ea17c
mov r8d, 0x10
lea rdx, str.expand_32_byte_k
lea rcx, [0x140265ea0]
mov rsi, rax
call sub.VCRUNTIME140.dll_memcpy
test rsi, rsi
jne 0x1400ffc6c
xor edx, edx
lea r8d, [rsi + 0x2c]
lea rcx, [0x140265eb0]
call sub.VCRUNTIME140.dll_memset
jmp 0x1400ffcb4
cmp dword [0x140260480], 0
je 0x1400ffca2
xor edx, edx
lea rcx, [0x140265eb0]
lea r8d, [rdx + 0x2c]
call sub.VCRUNTIME140.dll_memset
mov r8d, 4
lea rdx, [0x140260480]
lea rcx, [0x140265eb0]
call sub.VCRUNTIME140.dll_memcpy
jmp 0x1400ffcb4
lea r8, [0x140265eb0]
mov edx, 0x2c
mov rcx, rsi
call qword [rsi + 0x68]
mov eax, dword [0x140265ed0]
and dword [0x140265ed0], 0
xor cl, cl
mov dword [0x140265edc], eax
mov byte [0x140265f20], cl
jmp 0x1400ffcd7
mov cl, byte [0x140265f20]
movzx eax, cl
lea rsi, [0x140265ee0]
cmp edi, eax
jle 0x1400ffd26
test cl, cl
je 0x1400ffd04
movzx r8d, cl
mov rdx, rsi
mov rcx, rbp
call sub.VCRUNTIME140.dll_memcpy
movzx ecx, byte [0x140265f20]
sub edi, ecx
add rbp, rcx
inc dword [0x140265ed0]
lea rdx, [0x140265ea0]
mov rcx, rsi
call fcn.14010aa30
mov cl, 0x40
mov byte [0x140265f20], cl
cmp edi, 0x40
jg 0x1400ffce5
movzx eax, cl
mov rcx, rbp
sub eax, edi
movsxd r8, edi
movsxd rdx, eax
add rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
sub byte [0x140265f20], dil
jmp 0x1400ffd4c
and dword [0x140265ea0], 0
test rbx, rbx
je 0x1400ffd5a
mov rcx, rbx
call qword [0x140260360]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1401330e4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], r9
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd rsi, dword [rsp + 0x90]
lea rbp, [rcx + 0x3c]
xor ebx, ebx
xor r13d, r13d
mov r12d, r8d
mov r15, rdx
mov r14, rcx
cmp dword [rbp], ebx
jne 0x140133158
test esi, esi
jns 0x140133142
mov ebx, dword [rdx + 0x18]
cmp qword [rcx + 0x18], r13
je 0x14013313c
test r12b, 0x40
jne 0x14013313c
lea eax, [r13 + 1]
jmp 0x14013313e
xor eax, eax
add ebx, eax
jmp 0x140133158
mov ebx, dword [rsp + 0x98]
mov rax, rsi
add rax, rax
cmp dword [rdx + rax*8 + 0x24], ebx
cmovl ebx, dword [rdx + rax*8 + 0x24]
mov edx, ebx
call fcn.140132cf4
mov rdi, rax
mov rax, qword [rsp + 0xa0]
mov qword [rax], rdi
test rdi, rdi
je 0x1401332e9
mov eax, r12d
shr eax, 1
and eax, 1
mov dword [rdi + 0x4c], eax
mov eax, r12d
shr eax, 4
and al, 1
mov byte [rdi + 0x50], al
mov rax, qword [rsp + 0x78]
mov qword [rdi + 0x38], rax
test r12b, 0x20
jne 0x1401331a6
mov rdx, rdi
mov rcx, rbp
call fcn.1401319a0
cmp dword [rbp], r13d
jne 0x140133280
test esi, esi
jns 0x140133293
movsxd rbp, dword [r15 + 0x1c]
add rbp, 2
shl rbp, 4
add rbp, r15
cmp qword [r14 + 0x18], r13
je 0x1401331fd
test r12b, 0x40
jne 0x1401331fd
mov r8d, dword [rsp + 0x88]
lea rax, [rdi + 0x68]
mov rdx, qword [rsp + 0x80]
mov r9d, r12d
mov rcx, r14
mov qword [rsp + 0x20], rax
mov r13d, 1
call fcn.1401358d8
lea rbx, [r15 + 0x20]
jmp 0x140133277
mov esi, dword [rbx + 4]
sub esi, 1
js 0x140133273
movsxd rax, esi
imul r15, rax, 0x38
mov rcx, qword [rbx + 8]
movsxd rdx, r13d
add rcx, r15
shl rdx, 7
inc r13d
add rdx, 0x68
add rdx, rdi
cmp qword [rsp + 0x80], 0
jne 0x140133245
mov r8, rdx
mov rdx, rcx
mov rcx, r14
call fcn.140135a6c
jmp 0x14013326a
mov r8d, dword [rsp + 0x88]
mov r9d, r12d
mov qword [rsp + 0x28], rdx
mov rdx, qword [rsp + 0x80]
mov qword [rsp + 0x20], rcx
mov rcx, r14
call fcn.140136b90
sub r15, 0x38
sub esi, 1
jns 0x140133212
add rbx, 0x10
cmp rbx, rbp
jb 0x140133203
lea rbp, [r14 + 0x3c]
cmp dword [rbp], 0
jne 0x1401332d5
mov rdx, rdi
mov rcx, r14
call fcn.140132e4c
jmp 0x1401332e9
add rsi, 2
shl rsi, 4
add rsi, r15
sub ebx, 1
js 0x140133280
movsxd rax, ebx
imul r15, rax, 0x38
mov rdx, qword [rsi + 8]
mov rcx, r14
movsxd r8, r13d
add rdx, r15
shl r8, 7
add r8, 0x68
add r8, rdi
call fcn.140135a6c
inc r13d
add r15, 0xffffffffffffffc8
sub ebx, 1
jns 0x1401332aa
jmp 0x140133280
mov rcx, rdi
call fcn.140132f54
mov rax, qword [rsp + 0xa0]
and qword [rax], 0
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140136158
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
or ebp, 0xffffffff
lea rbx, [rcx + 0x78]
xor r14d, r14d
mov r15, r9
mov edi, r8d
mov r12, rdx
mov rsi, rcx
cmp qword [rbx], r14
jne 0x1401361ae
mov rdx, qword [rcx]
lea rcx, str.SELECT_pgno_FROM__q._q_idx_WHERE_segid__AND_term___ORDER_BY_term_ASC_LIMIT_1
mov r8, qword [rdx + 0x10]
mov rdx, qword [rdx + 8]
call fcn.1400ff46c
mov r8, rax
mov rdx, rbx
mov rcx, rsi
call fcn.140130d20
mov rbx, qword [rbx]
test rbx, rbx
je 0x140136224
movsxd r8, dword [r15]
mov edx, 1
mov rcx, rbx
call fcn.140101bc0
and qword [rsp + 0x20], r14
mov r9d, edi
mov r8, r12
mov edx, 2
mov rcx, rbx
call fcn.140101af8
mov rcx, rbx
call fcn.140102614
cmp eax, 0x64
jne 0x140136202
xor edx, edx
mov rcx, rbx
call fcn.140102984
mov rbp, rax
mov r14, rax
sar rbp, 1
and r14d, 1
mov rcx, rbx
call fcn.140102e08
mov edx, 2
mov dword [rsi + 0x3c], eax
mov rcx, rbx
call fcn.140101c44
cmp dword [rsi + 0x3c], 0
jne 0x140136307
mov rdi, qword [rsp + 0x80]
xor edx, edx
mov rcx, rdi
mov r8d, 0x80
call sub.VCRUNTIME140.dll_memset
or dword [rdi + 8], 1
mov qword [rdi], r15
test ebp, ebp
js 0x140136288
lea eax, [rbp - 1]
mov rdx, rdi
mov rcx, rsi
mov dword [rdi + 0xc], eax
call fcn.140136320
test byte [rdi + 8], 2
je 0x14013626b
lea rax, [0x1401365b4]
mov qword [rdi + 0x30], rax
jmp 0x140136288
mov rax, qword [rsi]
lea rcx, [0x140135d68]
lea rdx, [0x1401363c4]
cmp dword [rax + 0x60], 1
cmove rcx, rdx
mov qword [rdi + 0x30], rcx
mov rbx, qword [rdi + 0x10]
test rbx, rbx
je 0x140136307
mov rcx, qword [rbx]
lea rdx, [rsp + 0x60]
movsxd rbx, dword [rbx + 0xc]
and dword [rsp + 0x60], 0
add rcx, rbx
mov dword [rdi + 0x40], ebx
call fcn.140175964
add eax, ebx
xor r8d, r8d
mov dword [rdi + 0x40], eax
mov rdx, rdi
movsxd rax, dword [rsp + 0x60]
mov rcx, rsi
mov qword [rdi + 0x20], rax
call fcn.140135c90
mov rdx, rdi
mov rcx, rsi
call fcn.140135b54
test r14d, r14d
je 0x140136307
mov edx, dword [rdi + 8]
mov r9d, dword [rdi + 0x38]
and edx, 2
cmp r9d, dword [rdi + 0xc]
jne 0x1401362f5
mov rax, qword [rdi + 0x10]
mov ecx, dword [rax + 0xc]
cmp dword [rdi + 0x44], ecx
jl 0x140136307
mov rax, qword [rdi]
mov rcx, rsi
mov r8d, dword [rax]
call fcn.14012a024
mov qword [rdi + 0x58], rax
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140136b90
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]
mov rdi, rcx
mov r14d, r9d
mov r12d, 1
xor edx, edx
mov rcx, rbx
mov r15d, r9d
and r14d, 8
xor ebp, ebp
lea r8d, [r12 + 0x7f]
call sub.VCRUNTIME140.dll_memset
mov r13, qword [rsp + 0x90]
lea rsi, [rdi + 0x70]
mov qword [rbx], r13
cmp qword [rsi], rbp
jne 0x140136c13
mov rdx, qword [rdi]
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.1400ff46c
mov r8, rax
mov rdx, rsi
mov rcx, rdi
call fcn.140130d20
mov rsi, qword [rsi]
cmp dword [rdi + 0x3c], ebp
jne 0x140136d79
movsxd r8, dword [r13]
mov edx, r12d
mov rcx, rsi
call fcn.140101bc0
mov r9d, dword [rsp + 0x80]
mov edx, 2
mov r8, qword [rsp + 0x78]
mov rcx, rsi
and qword [rsp + 0x20], rbp
call fcn.140101af8
mov rcx, rsi
call fcn.140102614
cmp eax, 0x64
jne 0x140136c6f
xor edx, edx
mov rcx, rsi
call fcn.140102950
mov r12d, eax
mov ebp, eax
sar r12d, 1
and ebp, 1
mov rcx, rsi
call fcn.140102e08
mov edx, 2
mov dword [rdi + 0x3c], eax
mov rcx, rsi
call fcn.140101c44
mov eax, dword [r13 + 4]
mov rdx, rbx
xor r13d, r13d
mov rcx, rdi
cmp r12d, eax
cmovge eax, r12d
cmovge r13d, ebp
dec eax
mov dword [rbx + 0xc], eax
call fcn.140136320
cmp qword [rbx + 0x10], 0
je 0x140136cce
mov eax, dword [rsp + 0x80]
mov r8, rbx
mov r9, qword [rsp + 0x78]
mov edx, r14d
mov rcx, rdi
mov dword [rsp + 0x20], eax
call fcn.140131f54
cmp dword [rdi + 0x3c], 0
jne 0x140136d3b
test r14d, r14d
je 0x140136ce0
bt r15d, 8
jae 0x140136d3b
mov edx, dword [rbx + 8]
mov rcx, qword [rbx + 0x10]
or edx, 1
mov dword [rbx + 8], edx
test rcx, rcx
je 0x140136d3b
mov esi, r15d
and esi, 2
je 0x140136d00
or edx, 2
mov dword [rbx + 8], edx
test r13d, r13d
je 0x140136d2c
mov rax, qword [rbx]
and edx, 2
mov r9d, dword [rbx + 0x38]
mov r8d, dword [rax]
cmp r9d, dword [rbx + 0xc]
jne 0x140136d20
mov eax, dword [rcx + 0xc]
cmp dword [rbx + 0x44], eax
jl 0x140136d2c
mov rcx, rdi
call fcn.14012a024
mov qword [rbx + 0x58], rax
test esi, esi
je 0x140136d3b
mov rdx, rbx
mov rcx, rdi
call fcn.140136638
test byte [rbx + 8], 2
je 0x140136d4a
lea rcx, [0x1401365b4]
jmp 0x140136d63
mov rax, qword [rdi]
lea rcx, [0x140135d68]
lea rdx, [0x1401363c4]
cmp dword [rax + 0x60], 1
cmove rcx, rdx
bt r15d, 8
mov qword [rbx + 0x30], rcx
jb 0x140136d79
mov rdx, rbx
mov rcx, rdi
call fcn.140135738
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 0x14013e9e8
Capabilities:
Reference sql statements

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rdx, qword [rdx + 0x30]
mov r14, r9
mov rsi, rcx
test r8d, r8d
je 0x14013ea70
and dword [rax + 0x18], 0
lea rcx, str.PRAGMA__Q.page_size
call fcn.1400ff46c
lea r8, [rsp + 0x50]
mov rdx, rax
mov rcx, rsi
mov rbp, rax
call fcn.14013def0
mov edi, eax
test eax, eax
jne 0x14013ea5c
movzx ecx, byte [rbx + 0x27]
mov r8d, dword [rsp + 0x50]
imul edx, ecx, 0x33
add r8d, 0xffffffc0
mov dword [rbx + 0x20], r8d
add edx, 4
cmp edx, r8d
jge 0x14013eab9
mov dword [rbx + 0x20], edx
jmp 0x14013eab9
mov rcx, rsi
call fcn.140101228
mov rdx, rax
lea rcx, [0x14024bec0]
jmp 0x14013eab1
mov r8, qword [rbx + 0x38]
lea rcx, str.SELECT_length_data__FROM__q._q_node_WHERE_nodeno__1
call fcn.1400ff46c
lea r8, [rbx + 0x20]
mov rdx, rax
mov rcx, rsi
mov rbp, rax
call fcn.14013def0
mov edi, eax
test eax, eax
jne 0x14013ea5c
cmp dword [rbx + 0x20], 0x1c0
jge 0x14013eab9
mov rdx, qword [rbx + 0x38]
lea rcx, str.undersize_RTree_blobs_in___q_node_
mov edi, 0x10b
call fcn.1400ff46c
mov qword [r14], rax
mov rcx, rbp
call fcn.1400ff720
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x140153128
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.140180d18
test ebx, ebx
jne 0x140153191
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.140180d18
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