joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1402489d0
Capabilities:
Delete file

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.14022b4e0
mov rsi, qword [rsp + 0x20]
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x140248a84
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x20]
mov r8b, 1
call fcn.1402320c0
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
test rdi, rdi
je 0x140248a84
mov rcx, rdi
call qword [sym.imp.kernel32.dll_DeleteFileW]
test eax, eax
je 0x140248a57
test rsi, rsi
je 0x140248a82
mov rcx, qword [0x1404fd180]
xor esi, esi
xor edx, edx
mov r8, rdi
call qword [sym.imp.kernel32.dll_HeapFree]
jmp 0x140248a84
call sub.kernel32.dll_GetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x140248a7d
mov rcx, qword [0x1404fd180]
xor edx, edx
mov r8, rdi
call qword [sym.imp.kernel32.dll_HeapFree]
mov rsi, rbx
jmp 0x140248a84
xor esi, esi
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret

Function at 0x140248a90
Capabilities:
Copy file

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0x80]
mov qword [rbp], 0xfffffffffffffffe
mov rbx, r9
mov rdi, rcx
lea rcx, [rbp - 0x18]
call fcn.14022b4e0
mov r14, qword [rbp - 0x18]
mov rax, qword [rbp - 0x10]
test rax, rax
je 0x140248ba8
mov rcx, qword [rbp - 8]
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rcx
lea rcx, [rbp - 0x30]
lea rdx, [rbp - 0x18]
mov r8b, 1
call fcn.1402320c0
mov r14, qword [rbp - 0x30]
mov rsi, qword [rbp - 0x28]
test rsi, rsi
je 0x140248ba8
mov r8, qword [rbp + 0x60]
mov rax, qword [rbp - 0x20]
mov qword [rbp - 0x48], r14
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x38], rax
lea rcx, [rbp - 0x18]
mov rdx, rbx
call fcn.14022b4e0
mov r15, qword [rbp - 0x18]
mov rax, qword [rbp - 0x10]
test rax, rax
je 0x140248bb5
mov rcx, qword [rbp - 8]
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rcx
lea rcx, [rbp - 0x30]
lea rdx, [rbp - 0x18]
mov r8b, 1
call fcn.1402320c0
mov r15, qword [rbp - 0x30]
mov rbx, qword [rbp - 0x28]
test rbx, rbx
je 0x140248bb5
mov qword [rbp - 0x18], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [0x140248c50]
lea r9, [rbp - 0x18]
mov rcx, rsi
mov rdx, rbx
call qword [sym.imp.kernel32.dll_CopyFileExW]
test eax, eax
je 0x140248bc2
mov rax, qword [rbp - 0x18]
mov qword [rdi + 8], rax
mov qword [rdi], 0
test r15, r15
jne 0x140248bdf
jmp 0x140248bf1
mov qword [rdi + 8], r14
mov qword [rdi], 1
jmp 0x140248c08
mov qword [rdi + 8], r15
mov qword [rdi], 1
jmp 0x140248bf1
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rdi + 8], rax
mov qword [rdi], 1
test r15, r15
je 0x140248bf1
mov rcx, qword [0x1404fd180]
xor edx, edx
mov r8, rbx
call qword [sym.imp.kernel32.dll_HeapFree]
test r14, r14
je 0x140248c08
mov rcx, qword [0x1404fd180]
xor edx, edx
mov r8, rsi
call qword [sym.imp.kernel32.dll_HeapFree]
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
Function at 0x1402490e0
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x140249115
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x14024911a
call fcn.140241ef0
nop
add rsp, 0x38
ret

Function at 0x140249220
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
mov rbx, r8
mov rsi, rcx
test rdx, rdx
je 0x14024924b
mov qword [rsi + 8], rbx
mov qword [rsi], 1
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov rax, qword [0x1404fd188]
cmp rax, 3
jne 0x1402493d0
cmp word [rbx], 0
mov eax, 2
mov ebp, 0x17
cmove ebp, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
mov ecx, ebp
mov edx, 2
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1402492c1
cmp word [rbx], 0
je 0x14024933b
movups xmm0, xmmword [rbx + 4]
mov eax, dword [rbx + 0x14]
mov edx, dword [rbx + 0x18]
movzx ecx, word [rbx + 0x1c]
mov r8d, 0x1c
mov r9w, 0x17
jmp 0x140249350
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2739
je 0x1402492dc
mov r14d, eax
cmp eax, 0x2726
jne 0x1402493bf
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, ebp
mov edx, 2
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x1402493b6
mov rdi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call qword [sym.imp.kernel32.dll_SetHandleInformation]
test eax, eax
jne 0x140249299
call sub.kernel32.dll_GetLastError
mov r14d, eax
mov rcx, rdi
call qword [sym.imp.ws2_32.dll_closesocket]
jmp 0x1402493bf
mov eax, dword [rbx + 2]
movzx ecx, word [rbx + 6]
xorps xmm0, xmm0
mov r8d, 0x10
mov r9w, 2
rol cx, 8
mov word [rsp + 0x30], r9w
mov word [rsp + 0x32], cx
mov dword [rsp + 0x34], eax
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x48], edx
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.ws2_32.dll_bind]
cmp eax, 0xffffffff
je 0x14024938f
mov qword [rsi + 8], rdi
mov qword [rsi], 0
jmp 0x140249240
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, rdi
call qword [sym.imp.ws2_32.dll_closesocket]
jmp 0x140249240
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov r14d, eax
shl r14, 0x20
or r14, 2
mov qword [rsi + 8], r14
jmp 0x140249239
call fcn.140398730
jmp 0x14024925c

Function at 0x1402568f7
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
cmp rcx, 0xffffffffffffffff
je 0x140256941
movzx eax, dl
lea r9, [rsp + 0x34]
mov dword [r9], eax
mov dword [rsp + 0x20], 4
mov edx, 6
mov r8d, 1
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14025692e
xor eax, eax
jmp 0x14025693c
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret
lea rcx, [0x1404ccfb7]
lea r8, str.C:Userslucak.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.33.0_srciopoll_evented.rs
mov edx, 0x2b
call fcn.14038e950
ud2
Function at 0x140256c10
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 qword [rsp + 0x50], r9
mov rbx, r8
mov qword [rsp + 0x20], rcx
mov rax, qword [rsp + 0xc0]
mov r13, qword [rdx]
mov r14, qword [rdx + 8]
mov r15, qword [rdx + 0x20]
mov r12d, 0x7fffffff
cmp rax, r12
cmovb r12, rax
lea rax, [r15 + 0x80]
mov qword [rsp + 0x48], rax
lea rbp, [rsp + 0x28]
mov rcx, rbp
mov rdx, r15
mov r8, rbx
mov r9b, 1
call fcn.140256574
mov al, byte [rsp + 0x31]
cmp al, 3
je 0x140256da4
mov rcx, qword [rsp + 0x28]
cmp al, 2
je 0x140256db2
mov dl, byte [rsp + 0x30]
lea r9, [rsp + 0x32]
movzx r8d, word [r9 + 4]
lea r10, [rsp + 0x42]
mov word [r10 + 4], r8w
mov r8d, dword [r9]
mov dword [r10], r8d
mov qword [rsp + 0x38], rcx
mov byte [rsp + 0x40], dl
mov byte [rsp + 0x41], al
cmp r14, 0xffffffffffffffff
je 0x140256df9
mov rcx, r14
mov rdx, qword [rsp + 0x50]
mov r8d, r12d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_send]
cmp eax, 0xffffffff
jne 0x140256dc4
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov rsi, rax
shl rsi, 0x20
or rsi, 2
mov ecx, eax
call fcn.14022a080
cmp al, 0xd
jne 0x140256d46
test r13, r13
je 0x140256d46
mov rcx, qword [r13 + 8]
mov rdx, qword [r13 + 0x10]
lock inc qword [rdx]
jle 0x140256e13
add rcx, 0x10
mov r8, qword [r13]
mov r9b, byte [r13 + 0x18]
call fcn.140118874
test rax, rax
je 0x140256d46
mov rdi, rax
mov rcx, rsi
call fcn.14026a794
mov eax, edi
and eax, 3
lea rcx, [0x140256e18]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
mov rsi, rdi
jmp rax
mov eax, esi
and eax, 3
lea rcx, [0x140256e18]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
mov al, byte [rsi + 0x10]
jmp 0x140256d71
mov al, byte [rsi + 0xf]
jmp 0x140256d71
mov rcx, rsi
shr rcx, 0x20
call fcn.14022a080
cmp al, 0xd
je 0x140256d83
jmp 0x140256dd8
mov rax, rsi
shr rax, 0x20
cmp eax, 0xd
jne 0x140256dd8
mov qword [rsp + 0x28], rsi
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x38]
call fcn.14025367a
mov rcx, rbp
call fcn.14026b62e
jmp 0x140256c5e
mov rax, qword [rsp + 0x20]
mov qword [rax], 2
jmp 0x140256de8
mov rax, qword [rsp + 0x20]
mov qword [rax], 1
mov qword [rax + 8], rcx
jmp 0x140256de8
cdqe
mov rcx, qword [rsp + 0x20]
mov qword [rcx], 0
mov qword [rcx + 8], rax
jmp 0x140256de8
mov rax, qword [rsp + 0x20]
mov qword [rax], 1
mov qword [rax + 8], rsi
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x1404ccfb7]
lea r8, str.C:Userslucak.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.33.0_srciopoll_evented.rs
mov edx, 0x2b
call fcn.14038e950
ud2
ud2

Function at 0x140257612
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 0x140257619
test al, 1
je 0x140257638
test al, 2
jne 0x14025764d
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x1404a5f80]
mov edx, 0x23
jmp 0x140257660
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x1404a5fc0]
mov edx, 0x25
call fcn.14038e950
ud2
Function at 0x1402672b1
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb0
mov rbx, r8
mov r14, rdx
mov rsi, rcx
lea rax, [rsp + 0x60]
mov qword [rax], 0
mov qword [rsp + 0x20], rax
lea rcx, [0x1404cb34c]
lea r9, [0x1404cb35c]
xor edx, edx
mov r8d, 1
call sub.ole32.dll_CoCreateInstance
test eax, eax
js 0x1402673cf
mov rdi, qword [rsp + 0x60]
test rdi, rdi
je 0x14026747c
mov qword [rsp + 0x58], 0
lea r15, [rsp + 0x60]
mov rcx, r15
mov rdx, r14
mov r8, rbx
call fcn.14026707b
mov al, byte [r15]
cmp al, 0x14
jne 0x1402673da
mov r14, qword [rsp + 0x68]
mov rax, qword [rdi]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x40], rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov rdx, r14
xor r8d, r8d
xor r9d, r9d
call qword [rax + 0x18]
test eax, eax
js 0x140267414
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x14026748c
mov rcx, r14
call qword [sym.imp.oleaut32.dll_SysFreeString]
mov eax, 3
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov rcx, rbx
mov edx, 0xa
xor r8d, r8d
xor r9d, r9d
call sub.ole32.dll_CoSetProxyBlanket
test eax, eax
js 0x14026746b
mov qword [rsi + 8], rbx
mov byte [rsi], 0x14
jmp 0x140267452
mov dword [rsi + 4], eax
mov byte [rsi], 0
jmp 0x14026745b
mov cl, byte [rsp + 0x63]
mov byte [rsp + 0x56], cl
movzx ecx, word [rsp + 0x61]
mov word [rsp + 0x54], cx
mov ebx, dword [rsp + 0x64]
mov rcx, qword [rsp + 0x68]
movups xmm0, xmmword [rsp + 0x70]
movaps xmmword [rsp + 0x90], xmm0
movups xmm0, xmmword [rsp + 0x80]
movaps xmmword [rsp + 0xa0], xmm0
jmp 0x140267421
mov ebx, eax
mov rcx, r14
call qword [sym.imp.oleaut32.dll_SysFreeString]
xor eax, eax
mov dl, byte [rsp + 0x56]
mov byte [rsi + 3], dl
movzx edx, word [rsp + 0x54]
mov word [rsi + 1], dx
mov dword [rsi + 4], ebx
movaps xmm0, xmmword [rsp + 0x90]
movaps xmm1, xmmword [rsp + 0xa0]
movups xmmword [rsi + 0x10], xmm0
movups xmmword [rsi + 0x20], xmm1
mov byte [rsi], al
mov qword [rsi + 8], rcx
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
nop
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov dword [rsi + 4], eax
mov byte [rsi], 0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
jmp 0x140267452
lea rcx, [0x1404ccfb7]
lea r8, [0x1404cb370]
jmp 0x14026749a
lea rcx, [0x1404ccfb7]
lea r8, [0x1404cb388]
mov edx, 0x2b
call fcn.14038e950
ud2
Function at 0x140276560
Capabilities:
Encode data using xor

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, 0x20
mov rbx, r8
mov r14d, r9d
and ebx, 0x1f
mov rsi, rdx
mov rdi, rcx
movabs r13, 0x9e3779b185ebca87
cmp rbx, 8
jb 0x14027641e
mov ebp, ebx
shr rbp, 3
imul rax, rbp, 0xfffffffffffffff8
add rbx, rax
cmp r14d, 1
jne 0x1402763e6
lea r8d, [r14 + 7]
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.14038a820
mov rdx, qword [rsp + 0x50]
jmp 0x1402763e9
mov rdx, qword [rsi]
xor ecx, ecx
call fcn.140276528
xor rax, rdi
mov edx, 0x1b
mov rcx, rax
add rsi, 8
call sub.api_ms_win_crt_utility_l1_1_0.dll__rotl64
mov rdi, rax
movabs rax, 0x7a1435883d4d519d
imul rdi, r13
sub rdi, rax
sub rbp, 1
jne 0x1402763c8
mov ebp, 4
movabs r15, 0xc2b2ae3d27d4eb4f
movabs r12, 0x165667b19e3779f9
cmp rbx, rbp
jb 0x14027647d
cmp r14d, 1
jne 0x140276458
mov r8d, ebp
lea rcx, [rsp + 0x50]
mov rdx, rsi
call fcn.14038a820
mov eax, dword [rsp + 0x50]
jmp 0x14027645a
mov eax, dword [rsi]
mov ecx, eax
mov edx, 0x17
imul rcx, r13
add rsi, rbp
xor rcx, rdi
call sub.api_ms_win_crt_utility_l1_1_0.dll__rotl64
mov rdi, rax
imul rdi, r15
add rdi, r12
sub rbx, rbp
test rbx, rbx
je 0x1402764b0
movzx eax, byte [rsi]
movabs rcx, 0x27d4eb2f165667c5
imul rcx, rax
mov edx, 0xb
inc rsi
xor rcx, rdi
call sub.api_ms_win_crt_utility_l1_1_0.dll__rotl64
mov rdi, rax
imul rdi, r13
sub rbx, 1
jne 0x140276482
mov rbx, qword [rsp + 0x58]
mov rax, rdi
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
shr rax, 0x21
xor rax, rdi
imul rax, r15
mov rcx, rax
shr rcx, 0x1d
xor rcx, rax
imul rcx, r12
mov rax, rcx
shr rax, 0x20
xor rax, rcx
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov r8, qword [rcx]
mov rdi, rcx
cmp r8, 0x20
jb 0x1402765ed
mov rcx, qword [rcx + 0x20]
mov edx, 0x12
call sub.api_ms_win_crt_utility_l1_1_0.dll__rotl64
mov rcx, qword [rdi + 0x18]
mov edx, 0xc
mov rbx, rax
call sub.api_ms_win_crt_utility_l1_1_0.dll__rotl64
mov rcx, qword [rdi + 0x10]
mov edx, 7
add rbx, rax
call sub.api_ms_win_crt_utility_l1_1_0.dll__rotl64
mov rcx, qword [rdi + 8]
mov edx, 1
add rbx, rax
call sub.api_ms_win_crt_utility_l1_1_0.dll__rotl64
mov rdx, qword [rdi + 8]
lea rcx, [rbx + rax]
call fcn.1402764f4
mov rdx, qword [rdi + 0x10]
mov rcx, rax
call fcn.1402764f4
mov rdx, qword [rdi + 0x18]
mov rcx, rax
call fcn.1402764f4
mov rdx, qword [rdi + 0x20]
mov rcx, rax
call fcn.1402764f4
mov r8, qword [rdi]
jmp 0x1402765fe
mov rax, qword [rcx + 0x18]
movabs rcx, 0x27d4eb2f165667c5
add rax, rcx
lea rdx, [rdi + 0x28]
xor r9d, r9d
lea rcx, [r8 + rax]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x140276380
Function at 0x1402c4480
Capabilities:
Encode data using xor

Disassembly:
cmp dword [rcx + 0x60], 0
mov r8, rcx
movzx edx, byte [rcx + 0x5c]
jle 0x1402c44bb
mov ecx, dword [rcx + 0x288]
mov r9d, dword [r8 + 0x60]
mov eax, ecx
lea r11, [0x1404f78b0]
shr rax, 0x18
xor rax, rdx
shl ecx, 8
xor ecx, dword [r11 + rax*4]
mov dword [r8 + 0x288], ecx
sub r9, 1
jne 0x1402c4497
mov eax, dword [r8 + 0x5c]
mov byte [rax + r8 + 0x80], 1
mov ecx, dword [r8 + 0x60]
sub ecx, 1
je 0x1402c4563
sub ecx, 1
je 0x1402c4547
cmp ecx, 1
je 0x1402c451c
movsxd rax, dword [r8 + 0x60]
mov r9d, 4
mov byte [rax + r8 + 0x7c], 1
movsxd rcx, dword [r8 + 0x6c]
mov rax, qword [r8 + 0x40]
mov byte [rcx + rax], dl
movsxd rcx, dword [r8 + 0x6c]
lea eax, [rcx + 1]
mov dword [r8 + 0x6c], eax
sub r9, 1
jne 0x1402c44ef
mov dl, byte [r8 + 0x60]
sub dl, 4
mov rax, qword [r8 + 0x40]
mov byte [rcx + rax + 1], dl
jmp 0x1402c456e
movsxd rcx, dword [r8 + 0x6c]
mov rax, qword [r8 + 0x40]
mov byte [rcx + rax], dl
movsxd rcx, dword [r8 + 0x6c]
lea eax, [rcx + 1]
mov dword [r8 + 0x6c], eax
mov rax, qword [r8 + 0x40]
mov byte [rcx + rax + 1], dl
movsxd rcx, dword [r8 + 0x6c]
lea eax, [rcx + 1]
mov dword [r8 + 0x6c], eax
jmp 0x1402c4512
mov r9d, 2
movsxd rcx, dword [r8 + 0x6c]
mov rax, qword [r8 + 0x40]
mov byte [rcx + rax], dl
inc dword [r8 + 0x6c]
sub r9, 1
jne 0x1402c454d
ret
movsxd rcx, dword [r8 + 0x6c]
mov rax, qword [r8 + 0x40]
mov byte [rcx + rax], dl
inc dword [r8 + 0x6c]
ret
Function at 0x14030f7c8
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 ebp, r9d
and r14d, 8
xor r15d, r15d
lea r8d, [r12 + 0x77]
call fcn.14038afb0
mov rax, qword [rsp + 0x90]
lea r13, [rdi + 0x60]
mov qword [rbx], rax
mov rsi, qword [r13]
test rsi, rsi
jne 0x14030f85c
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.1402d7f7c
mov r8, rax
mov rdx, r13
mov rcx, rdi
call fcn.14030abf4
mov rax, qword [rsp + 0x90]
mov rsi, qword [r13]
cmp dword [rdi + 0x34], r15d
jne 0x14030f9ab
movsxd r8, dword [rax]
mov edx, r12d
mov rcx, rsi
call fcn.1402d9154
mov r13d, dword [rsp + 0x80]
mov edx, 2
mov r8, qword [rsp + 0x78]
mov r9d, r13d
and qword [rsp + 0x20], r15
mov rcx, rsi
call fcn.1402d908c
mov rcx, rsi
call fcn.1402d96f0
cmp eax, 0x64
jne 0x14030f8ba
xor edx, edx
mov rcx, rsi
call fcn.1402d9a8c
movsxd r15, eax
mov r12, r15
sar r12, 1
and r15d, 1
mov rcx, rsi
call fcn.1402d9cec
mov edx, 2
mov dword [rdi + 0x34], eax
mov rcx, rsi
call fcn.1402d91dc
mov rcx, qword [rsp + 0x90]
xor esi, esi
mov rdx, rbx
mov eax, dword [rcx + 4]
cmp r12d, eax
mov rcx, rdi
cmovge eax, r12d
cmovge esi, r15d
dec eax
mov dword [rbx + 0xc], eax
call fcn.14030f084
cmp qword [rbx + 0x10], 0
je 0x14030f919
mov r9, qword [rsp + 0x78]
mov r8, rbx
mov edx, r14d
mov dword [rsp + 0x20], r13d
mov rcx, rdi
call fcn.14030b1e8
cmp dword [rdi + 0x34], 0
jne 0x14030f97b
test r14d, r14d
jne 0x14030f97b
mov edx, dword [rbx + 8]
mov rax, qword [rbx + 0x10]
or edx, 1
mov dword [rbx + 8], edx
test rax, rax
je 0x14030f97b
and ebp, 2
je 0x14030f941
or edx, 2
mov dword [rbx + 8], edx
test esi, esi
je 0x14030f96c
mov r9d, dword [rbx + 0x30]
and edx, 2
cmp r9d, dword [rbx + 0xc]
jne 0x14030f95a
mov eax, dword [rax + 0xc]
cmp dword [rbx + 0x3c], eax
jl 0x14030f96c
mov rax, qword [rbx]
mov rcx, rdi
mov r8d, dword [rax]
call fcn.140305eec
mov qword [rbx + 0x50], rax
test ebp, ebp
je 0x14030f97b
mov rdx, rbx
mov rcx, rdi
call fcn.14030f35c
test byte [rbx + 8], 2
je 0x14030f98e
lea rax, [0x14030f2d8]
mov qword [rbx + 0x28], rax
jmp 0x14030f9ab
mov rax, qword [rdi]
lea rcx, [0x14030eccc]
lea rdx, [0x14030f128]
cmp dword [rax + 0x5c], 1
cmove rcx, rdx
mov qword [rbx + 0x28], rcx
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 0x140316114
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 0x14031619c
and dword [rax + 0x18], 0
lea rcx, str.PRAGMA__Q.page_size
call fcn.1402d7f7c
lea r8, [rsp + 0x50]
mov rdx, rax
mov rcx, rsi
mov rbp, rax
call fcn.1403157f4
mov edi, eax
test eax, eax
jne 0x140316188
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 0x1403161e5
mov dword [rbx + 0x20], edx
jmp 0x1403161e5
mov rcx, rsi
call fcn.1402d8cd8
mov rdx, rax
lea rcx, [0x1404deff0]
jmp 0x1403161dd
mov r8, qword [rbx + 0x38]
lea rcx, str.SELECT_length_data__FROM__q._q_node_WHERE_nodeno__1
call fcn.1402d7f7c
lea r8, [rbx + 0x20]
mov rdx, rax
mov rcx, rsi
mov rbp, rax
call fcn.1403157f4
mov edi, eax
test eax, eax
jne 0x140316188
cmp dword [rbx + 0x20], 0x1c0
jge 0x1403161e5
mov rdx, qword [rbx + 0x38]
lea rcx, str.undersize_RTree_blobs_in___q_node_
mov edi, 0x10b
call fcn.1402d7f7c
mov qword [r14], rax
mov rcx, rbp
call fcn.1402d81d8
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 0x140326afc
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.140351334
test ebx, ebx
jne 0x140326b65
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.140351334
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 0x140346ff0
Capabilities:
Encode data using xor

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 r13
push r14
push r15
sub rsp, 0x20
movsxd rsi, r9d
xor ebx, ebx
mov rbp, r8
movsxd r15, edx
mov r13, rcx
mov r10d, 0xd
lea eax, [rsi - 1]
movsxd r11, eax
test eax, eax
js 0x140347044
movzx r8d, byte [r11 + rbp]
lea edx, [r10*8]
xor r8d, edx
xor r10d, r8d
sub r11, 1
jns 0x14034702b
xor edx, edx
mov eax, r10d
div dword [rcx + 0x14]
mov rax, qword [rcx + 0x20]
mov rdi, qword [rax + rdx*8]
test rdi, rdi
je 0x1403470e7
mov eax, dword [rdi + 0x1c]
inc eax
cmp esi, eax
jne 0x140347079
mov r8, rsi
lea rcx, [rdi + 0x30]
mov rdx, rbp
call fcn.14038aeb0
test eax, eax
je 0x140347081
mov rdi, qword [rdi]
test rdi, rdi
jne 0x14034705d
test rdi, rdi
je 0x1403470e7
lea r14d, [rsi + 0x31]
mov esi, dword [rdi + 0x18]
lea eax, [r15 + 0xa]
sub esi, r14d
add eax, esi
movsxd rcx, eax
call fcn.1402d8140
mov rcx, qword [rsp + 0x60]
mov rbp, rax
mov qword [rcx], rax
test rax, rax
je 0x1403470d9
movsxd rdx, r14d
lea rcx, [r15 + rax]
add rdx, rdi
movsxd r8, esi
call fcn.14038a820
sub r15d, r14d
mov rdx, rdi
movsxd r8, r15d
mov rcx, r13
add r8, rbp
call fcn.140308fec
lea ebx, [rsi + rax]
jmp 0x1403470ef
mov rax, qword [rsp + 0x68]
mov dword [rax], ebx
mov eax, 7
jmp 0x1403470f8
mov rax, qword [rsp + 0x60]
mov qword [rax], rbx
mov rax, qword [rsp + 0x68]
mov dword [rax], ebx
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r13
ret