joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140138940
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.14011a590
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
test rax, rax
je 0x1401389e3
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x20]
mov r8b, 1
call fcn.140121370
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
test rdi, rdi
je 0x1401389e3
mov rcx, rdi
call qword [sym.imp.kernel32.dll_DeleteFileW]
test eax, eax
je 0x1401389be
test rsi, rsi
je 0x1401389ba
mov edx, 2
mov rcx, rdi
call fcn.14005d7f0
xor esi, esi
jmp 0x1401389e3
call qword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x1401389e0
mov edx, 2
mov rcx, rdi
call fcn.14005d7f0
mov rsi, rbx
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret

Function at 0x140139b20
Capabilities:
Copy file

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r9
mov rsi, rcx
lea rcx, [rbp - 0x20]
call fcn.14011a590
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
test rax, rax
je 0x140139c32
mov rcx, qword [rbp - 0x10]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rdx
mov qword [rbp - 0x10], rcx
lea rcx, [rbp - 0x48]
lea rdx, [rbp - 0x20]
mov r8b, 1
call fcn.140121370
mov rax, qword [rbp - 0x48]
mov rdx, qword [rbp - 0x40]
test rax, rax
je 0x140139c32
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x30], rdx
mov r8, qword [rbp + 0x50]
lea rcx, [rbp - 0x20]
mov rdx, rdi
call fcn.14011a590
mov rax, qword [rbp - 0x20]
mov rbx, qword [rbp - 0x18]
test rax, rax
je 0x140139c3f
mov rcx, qword [rbp - 0x10]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x10], rcx
lea rcx, [rbp - 0x48]
lea rdx, [rbp - 0x20]
mov r8b, 1
call fcn.140121370
mov rdi, qword [rbp - 0x48]
mov rbx, qword [rbp - 0x40]
test rdi, rdi
je 0x140139c3f
mov qword [rbp - 0x20], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [0x140139cd0]
lea r9, [rbp - 0x20]
mov r14, qword [rbp - 0x28]
mov rcx, r14
mov rdx, rdi
call qword [sym.imp.kernel32.dll_CopyFileExW]
test eax, eax
je 0x140139c50
mov rax, qword [rbp - 0x20]
mov qword [rsi + 8], rax
mov qword [rsi], 0
test rbx, rbx
jne 0x140139c6e
jmp 0x140139c7b
mov qword [rsi + 8], rdx
mov qword [rsi], 1
jmp 0x140139c8f
mov r14, qword [rbp - 0x28]
mov qword [rsi + 8], rbx
mov qword [rsi], 1
jmp 0x140139c7b
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
test rbx, rbx
je 0x140139c7b
mov edx, 2
mov rcx, rdi
call fcn.14005d7f0
cmp qword [rbp - 0x30], 0
je 0x140139c8f
mov edx, 2
mov rcx, r14
call fcn.14005d7f0
nop
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
Function at 0x140139f10
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 0x140139f45
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x140139f4a
call fcn.1401319d0
nop
add rsp, 0x38
ret

Function at 0x14013ebf8
Capabilities:
Accept command line arguments

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov qword [rbp], 0xfffffffffffffffe
mov rax, rdx
mov rsi, rcx
lea rdx, [rbp - 4]
mov rcx, rax
call sub.shell32.dll_CommandLineToArgvW
test rax, rax
je 0x14013ec9a
mov rdi, rax
movsxd rax, dword [rbp - 4]
lea rbx, [rbp - 0x20]
mov qword [rbx], 8
xorps xmm0, xmm0
movups xmmword [rbx + 8], xmm0
lea r12, [rdi + rax*8]
lea r14, [rbp - 0x38]
mov r13, rdi
cmp r13, r12
je 0x14013ec80
mov r15, qword [r13]
mov rcx, r15
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
mov rcx, r14
mov rdx, r15
mov r8, rax
call fcn.14013e63c
mov rcx, rbx
mov rdx, r14
call fcn.14013ef5b
add r13, 8
jmp 0x14013ec50
mov rcx, rdi
call qword [sym.imp.kernel32.dll_LocalFree]
mov rax, qword [rbp - 0x10]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rbp - 0x20]
movups xmmword [rsi], xmm0
jmp 0x14013eca8
mov qword [rsi], 8
xorps xmm0, xmm0
movups xmmword [rsi + 8], xmm0
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x140145791
Capabilities:
Get memory capacity

Disassembly:
push rsi
push rdi
sub rsp, 0xe8
movaps xmmword [rsp + 0xd0], xmm6
mov rsi, rcx
xorps xmm6, xmm6
lea rdi, [rsp + 0x90]
movaps xmmword [rdi], xmm6
movaps xmmword [rdi + 0x30], xmm6
movaps xmmword [rdi + 0x20], xmm6
movaps xmmword [rdi + 0x10], xmm6
mov dword [rdi], 0x40
mov rcx, rdi
call sub.kernel32.dll_GlobalMemoryStatusEx
mov rax, qword [rdi + 8]
mov qword [rsi + 0xa0], rax
mov rax, qword [rdi + 0x10]
mov qword [rsi + 0xa8], rax
lea rcx, [rsp + 0x20]
movaps xmmword [rcx + 0x50], xmm6
movaps xmmword [rcx + 0x40], xmm6
movaps xmmword [rcx + 0x30], xmm6
movaps xmmword [rcx + 0x20], xmm6
movaps xmmword [rcx + 0x10], xmm6
movaps xmmword [rcx], xmm6
and qword [rcx + 0x60], 0
mov edx, 0x68
call sub.psapi.dll_GetPerformanceInfo
cmp eax, 1
jne 0x140145864
mov r8, qword [rsp + 0x30]
mov r9, qword [rsp + 0x40]
xor r10d, r10d
sub r8, r9
cmovb r8, r10
mov rcx, qword [rsp + 0x70]
mov rax, rcx
mul r8
mov r8, rax
mov r11, 0xffffffffffffffff
cmovo r8, r11
mov rdi, qword [rsp + 0x28]
sub rdi, r9
cmovb rdi, r10
mov rax, rcx
mul rdi
cmovo rax, r11
mov qword [rsi + 0xb0], r8
mov qword [rsi + 0xb8], rax
movaps xmm6, xmmword [rsp + 0xd0]
add rsp, 0xe8
pop rdi
pop rsi
ret
Function at 0x140146b65
Capabilities:
Get disk size

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
imul rbx, rdx, 0x90
xor r14d, r14d
lea rdi, [rsp + 0x28]
mov r15, rcx
cmp rbx, r14
je 0x140146bca
cmp qword [r15 + 0x78], 0
je 0x140146bba
and qword [rsp + 0x28], 0
mov rcx, qword [rsi + r14 + 0x48]
xor edx, edx
xor r8d, r8d
mov r9, rdi
call sub.kernel32.dll_GetDiskFreeSpaceExW
test eax, eax
je 0x140146bba
mov rax, qword [rsp + 0x28]
mov qword [rsi + r14 + 0x80], rax
add r15, 0x90
add r14, 0x90
jmp 0x140146b85
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14014812b
Capabilities:
Reference wmi statements

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
and qword [rbp - 0x20], 0
mov rax, rdx
mov rsi, rcx
cmp qword [rdx + 0x10], 0
je 0x140148214
mov qword [rbp - 0x10], rax
lea rcx, [0x1402d5da2]
call sub.oleaut32.dll_SysAllocString
mov rdi, rax
lea rcx, str.SELECT__FROM_MSAcpi_ThermalZoneTemperature
call sub.oleaut32.dll_SysAllocString
mov rbx, rax
mov rax, qword [rbp - 0x10]
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx]
mov rax, qword [rax + 0xa0]
lea rdx, [rbp - 0x20]
mov qword [rsp + 0x28], rdx
and qword [rsp + 0x20], 0
push 0x30
pop r9
mov rdx, rdi
mov r8, rbx
call rax
mov r14d, eax
mov rcx, rdi
call sub.oleaut32.dll_SysFreeString
mov rcx, rbx
call sub.oleaut32.dll_SysFreeString
test r14d, r14d
mov rax, qword [rbp - 0x10]
js 0x140148214
mov rcx, qword [rbp - 0x20]
mov qword [rbp - 0x18], rcx
mov rcx, qword [rax + 0x20]
mov rdx, qword [rax + 0x28]
call fcn.140141ef2
mov rcx, qword [rbp - 0x10]
mov qword [rcx + 0x20], 1
mov rax, qword [rbp - 0x18]
mov qword [rcx + 0x28], rax
mov rax, qword [rcx + 0x30]
mov qword [rsi + 0x30], rax
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rax, qword [rcx + 0x20]
mov qword [rsi + 0x20], rax
mov rax, qword [rcx + 0x28]
mov qword [rsi + 0x28], rax
jmp 0x140148223
mov qword [rsi], 2
mov rcx, rax
call fcn.140141dd1
nop
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret

Function at 0x140149129
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
lea rax, [rsp + 0x34]
and dword [rax], 0
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], r8
xor r8d, r8d
mov r9, rax
call qword [sym.imp.advapi32.dll_RegQueryValueExW]
nop
add rsp, 0x38
ret

Function at 0x140153121
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 0x140153128
test al, 1
je 0x140153147
test al, 2
jne 0x14015315c
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x1402d9268]
mov edx, 0x23
jmp 0x14015316f
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x1402d9228]
mov edx, 0x25
call fcn.140281860
ud2

Function at 0x14015475f
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, edx
call fcn.140152066
mov rcx, qword [rax]
movzx eax, bl
lea r9, [rsp + 0x2c]
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 0x14015479b
xor eax, eax
jmp 0x1401547a9
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rbx
ret
Function at 0x140154ad1
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x70]
mov qword [rbp], 0xfffffffffffffffe
mov qword [rbp - 0x48], r9
mov qword [rbp - 0x50], r8
mov r14, rdx
mov qword [rbp - 0x10], rcx
mov rax, qword [rbp + 0x70]
lea rsi, [rbp - 0x16]
lea r13, [rbp - 0x36]
lea r15, [rdx + 0x18]
xor ecx, ecx
cmp qword [rdx + 0x18], 0xffffffffffffffff
cmove r15, rcx
mov r12d, 0x7fffffff
cmp rax, r12
cmovb r12, rax
lea rcx, [rbp - 0x20]
mov qword [rbp - 0x30], r15
mov qword [rbp - 0x28], rdx
mov rdx, qword [r14 + 0x10]
mov rdi, rcx
mov r8, qword [rbp - 0x50]
call fcn.140154757
mov al, byte [rbp - 0x17]
cmp al, 3
je 0x140154c5f
mov rcx, qword [rbp - 0x20]
cmp al, 2
je 0x140154c6c
mov dl, byte [rbp - 0x18]
movzx r8d, word [rsi + 4]
mov word [r13 + 4], r8w
mov r8d, dword [rsi]
mov dword [r13], r8d
mov qword [rbp - 0x40], rcx
mov byte [rbp - 0x38], dl
mov byte [rbp - 0x37], al
mov rcx, r15
lea rdx, str.C:Users_admin.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.32.0_srciopoll_evented.rs
call fcn.140010a0b
mov rcx, qword [r15]
mov rdx, qword [rbp - 0x48]
mov r8d, r12d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_send]
cmp eax, 0xffffffff
jne 0x140154c7d
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 8], rax
mov rcx, rax
call fcn.1400735d4
cmp al, 0xd
jne 0x140154c2c
mov rax, qword [r15 + 8]
test rax, rax
je 0x140154c2c
mov rcx, qword [rax]
mov rdx, qword [rax + 8]
lock inc qword [rdx]
jle 0x140154cad
mov rbx, r13
mov r15, rsi
add rcx, 0x10
mov r8, qword [rax + 0x10]
mov r9b, byte [rax + 0x18]
call fcn.14009657f
mov rsi, rax
xor ecx, ecx
call fcn.14009d7ec
test rsi, rsi
je 0x140154c1e
push 1
pop rcx
mov rdx, qword [rbp - 8]
call fcn.14009679f
mov rax, rsi
mov rsi, r15
mov r13, rbx
mov r14, qword [rbp - 0x28]
mov r15, qword [rbp - 0x30]
jmp 0x140154c30
mov rsi, r15
mov r13, rbx
mov r14, qword [rbp - 0x28]
mov r15, qword [rbp - 0x30]
mov rax, qword [rbp - 8]
mov rbx, rax
mov rcx, rax
call fcn.1400e173c
cmp al, 0xd
jne 0x140154c8d
mov qword [rbp - 0x20], rbx
mov rcx, r14
lea rdx, [rbp - 0x40]
call fcn.1401543d3
mov rcx, rdi
call fcn.140149f78
mov rcx, rdi
jmp 0x140154b31
mov rax, qword [rbp - 0x10]
mov qword [rax], 2
jmp 0x140154c9c
mov rax, qword [rbp - 0x10]
mov qword [rax], 1
mov qword [rax + 8], rcx
jmp 0x140154c9c
cdqe
mov rcx, qword [rbp - 0x10]
and qword [rcx], 0
mov qword [rcx + 8], rax
jmp 0x140154c9c
mov rax, qword [rbp - 0x10]
mov qword [rax], 1
mov qword [rax + 8], rbx
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
ud2
Function at 0x140164984
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
mov qword [rsp + 0x30], rcx
xorps xmm0, xmm0
lea rsi, [rsp + 0x40]
movaps xmmword [rsi], xmm0
mov r15d, 0x10
mov r12d, 0xffffffff
mov r13, qword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov rbp, qword [sym.imp.advapi32.dll_SystemFunction036]
test r15, r15
je 0x140164a0a
mov rdi, rsi
cmp r15, r12
mov r14d, 0xffffffff
cmovb r14, r15
add rsi, r14
sub r15, r14
xor ecx, ecx
mov rdx, rdi
mov r8d, r14d
mov r9d, 2
call r13
cmp eax, 0xc0000000
jb 0x1401649c1
mov ebx, eax
mov rcx, rdi
mov edx, r14d
call rbp
test al, al
jne 0x1401649c1
xor ebx, 0x80000000
jne 0x140164a7f
movdqa xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm0
mov al, byte [rsp + 0x26]
mov cl, byte [rsp + 0x27]
mov dl, byte [rsp + 0x28]
mov r8b, byte [rsp + 0x2f]
pextrw r9d, xmm0, 2
mov r10, qword [rsp + 0x30]
movd dword [r10], xmm0
psrldq xmm0, 9
and dl, 0x3f
or dl, 0x80
and al, 0xf
or al, 0x40
mov word [r10 + 4], r9w
mov byte [r10 + 6], al
mov byte [r10 + 7], cl
mov byte [r10 + 8], dl
movd dword [r10 + 9], xmm0
mov byte [r10 + 0xf], r8b
pextrw eax, xmm0, 2
mov word [r10 + 0xd], ax
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rax, [rsp + 0x3c]
mov dword [rax], ebx
lea rdx, [rsp + 0x58]
mov qword [rdx], rax
lea rax, str.could_not_retrieve_random_bytes_for_uuid:
lea rcx, [rsp + 0x68]
mov qword [rcx], rax
mov eax, 1
mov qword [rcx + 8], rax
and qword [rcx + 0x20], 0
lea r8, [0x14006d99e]
mov qword [rdx + 8], r8
mov qword [rcx + 0x10], rdx
mov qword [rcx + 0x18], rax
lea rdx, str.C:Users_admin.cargo_registry_srcindex.crates.io_6f17d22bba15001fuuid_1.4.1_src_rng.rs
call fcn.1402816a0
ud2
Function at 0x1401b2828
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 r15d, r9d
mov r12d, 1
xor edx, edx
mov rcx, rbx
mov ebp, r9d
and r15d, 8
xor r14d, r14d
lea r8d, [r12 + 0x77]
call sub.VCRUNTIME140.dll_memset
mov r13, qword [rsp + 0x90]
lea rsi, [rdi + 0x60]
mov qword [rbx], r13
cmp qword [rsi], r14
jne 0x1401b28ac
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.140181fbc
mov r8, rax
mov rdx, rsi
mov rcx, rdi
call fcn.1401adb44
mov rsi, qword [rsi]
cmp dword [rdi + 0x34], r14d
jne 0x1401b29fb
movsxd r8, dword [r13]
mov edx, r12d
mov rcx, rsi
call fcn.14018356c
mov r9d, dword [rsp + 0x80]
mov edx, 2
mov r8, qword [rsp + 0x78]
mov rcx, rsi
and qword [rsp + 0x20], r14
call fcn.1401834a4
mov rcx, rsi
call fcn.140183c5c
cmp eax, 0x64
jne 0x1401b290b
xor edx, edx
mov rcx, rsi
call fcn.140183e90
mov r12d, eax
mov r14d, eax
sar r12d, 1
and r14d, 1
mov rcx, rsi
call fcn.1401842a0
mov edx, 2
mov dword [rdi + 0x34], eax
mov rcx, rsi
call fcn.1401835f0
mov eax, dword [r13 + 4]
xor esi, esi
cmp r12d, eax
mov rdx, rbx
mov rcx, rdi
cmovge eax, r12d
cmovge esi, r14d
dec eax
mov dword [rbx + 0xc], eax
call fcn.1401b2004
cmp qword [rbx + 0x10], 0
je 0x1401b2969
mov eax, dword [rsp + 0x80]
mov r8, rbx
mov r9, qword [rsp + 0x78]
mov edx, r15d
mov rcx, rdi
mov dword [rsp + 0x20], eax
call fcn.1401ae164
cmp dword [rdi + 0x34], 0
jne 0x1401b29cb
test r15d, r15d
jne 0x1401b29cb
mov edx, dword [rbx + 8]
mov rax, qword [rbx + 0x10]
or edx, 1
mov dword [rbx + 8], edx
test rax, rax
je 0x1401b29cb
and ebp, 2
je 0x1401b2991
or edx, 2
mov dword [rbx + 8], edx
test esi, esi
je 0x1401b29bc
mov r9d, dword [rbx + 0x30]
and edx, 2
cmp r9d, dword [rbx + 0xc]
jne 0x1401b29aa
mov eax, dword [rax + 0xc]
cmp dword [rbx + 0x3c], eax
jl 0x1401b29bc
mov rax, qword [rbx]
mov rcx, rdi
mov r8d, dword [rax]
call fcn.1401a8e1c
mov qword [rbx + 0x50], rax
test ebp, ebp
je 0x1401b29cb
mov rdx, rbx
mov rcx, rdi
call fcn.1401b22dc
test byte [rbx + 8], 2
je 0x1401b29de
lea rax, [0x1401b2258]
mov qword [rbx + 0x28], rax
jmp 0x1401b29fb
mov rax, qword [rdi]
lea rcx, [0x1401b1c50]
lea rdx, [0x1401b20a8]
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 0x1401b92cc
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 0x1401b9354
and dword [rax + 0x18], 0
lea rcx, str.PRAGMA__Q.page_size
call fcn.140181fbc
lea r8, [rsp + 0x50]
mov rdx, rax
mov rcx, rsi
mov rbp, rax
call fcn.1401b8974
mov edi, eax
test eax, eax
jne 0x1401b9340
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 0x1401b939d
mov dword [rbx + 0x20], edx
jmp 0x1401b939d
mov rcx, rsi
call fcn.140182ff8
mov rdx, rax
lea rcx, [0x14030b018]
jmp 0x1401b9395
mov r8, qword [rbx + 0x38]
lea rcx, str.SELECT_length_data__FROM__q._q_node_WHERE_nodeno__1
call fcn.140181fbc
lea r8, [rbx + 0x20]
mov rdx, rax
mov rcx, rsi
mov rbp, rax
call fcn.1401b8974
mov edi, eax
test eax, eax
jne 0x1401b9340
cmp dword [rbx + 0x20], 0x1c0
jge 0x1401b939d
mov rdx, qword [rbx + 0x38]
lea rcx, str.undersize_RTree_blobs_in___q_node_
mov edi, 0x10b
call fcn.140181fbc
mov qword [r14], rax
mov rcx, rbp
call fcn.140182348
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 0x1401c9748
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.1401f4540
test ebx, ebx
jne 0x1401c97b1
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.1401f4540
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 0x1401e9f4c
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 0x1401e9fa0
movzx r8d, byte [r11 + rbp]
lea edx, [r10*8]
xor r8d, edx
xor r10d, r8d
sub r11, 1
jns 0x1401e9f87
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 0x1401ea043
mov eax, dword [rdi + 0x1c]
inc eax
cmp esi, eax
jne 0x1401e9fd5
mov r8, rsi
lea rcx, [rdi + 0x30]
mov rdx, rbp
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1401e9fdd
mov rdi, qword [rdi]
test rdi, rdi
jne 0x1401e9fb9
test rdi, rdi
je 0x1401ea043
lea r14d, [rsi + 0x31]
mov esi, dword [rdi + 0x18]
lea eax, [r15 + 0xa]
sub esi, r14d
add eax, esi
movsxd rcx, eax
call fcn.1401822b0
mov rcx, qword [rsp + 0x60]
mov rbp, rax
mov qword [rcx], rax
test rax, rax
je 0x1401ea035
movsxd rdx, r14d
lea rcx, [r15 + rax]
add rdx, rdi
movsxd r8, esi
call sub.VCRUNTIME140.dll_memcpy
sub r15d, r14d
mov rdx, rdi
movsxd r8, r15d
mov rcx, r13
add r8, rbp
call fcn.1401abef0
lea ebx, [rsi + rax]
jmp 0x1401ea04b
mov rax, qword [rsp + 0x68]
mov dword [rax], ebx
mov eax, 7
jmp 0x1401ea054
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
Function at 0x1401ed1fc
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbp, qword [rsp + 0x70]
mov r12, r8
and dword [rsp + 0x50], 0
mov r15d, edx
movsxd rdi, r9d
mov r14, rcx
and dword [rbp], 0
test rcx, rcx
je 0x1401ed2e4
lea eax, [rdi - 1]
mov r10d, 0xd
movsxd r9, eax
test eax, eax
js 0x1401ed25d
movsx ecx, byte [r9 + r8]
lea eax, [r10*8]
xor ecx, eax
xor r10d, ecx
sub r9, 1
jns 0x1401ed245
lea esi, [r10*8]
mov eax, r10d
xor rsi, rdx
xor rsi, rax
and esi, 0x1ff
mov rbx, qword [r14 + rsi*8]
test rbx, rbx
je 0x1401ed2a9
cmp dword [rbx + 0xc], r15d
jne 0x1401ed29a
cmp dword [rbx + 8], edi
jne 0x1401ed29a
mov rcx, qword [rbx]
mov r8, rdi
mov rdx, r12
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1401ed2a0
mov rbx, qword [rbx + 0x10]
jmp 0x1401ed278
mov dword [rbp], 1
jmp 0x1401ed2e4
lea rdx, [rdi + 0x18]
lea rcx, [rsp + 0x50]
call fcn.1401eb3c4
mov rbx, rax
test rax, rax
je 0x1401ed2e4
lea rcx, [rax + 0x18]
mov dword [rax + 8], edi
mov r8, rdi
mov qword [rax], rcx
mov rdx, r12
mov dword [rax + 0xc], r15d
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [r14 + rsi*8]
mov qword [rbx + 0x10], rcx
mov qword [r14 + rsi*8], rbx
mov eax, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

Function at 0x1401ed7c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov r10d, edx
mov r8d, ecx
cmp ecx, 0x80
jge 0x1401ed7f2
lea eax, [rcx - 0x41]
add ecx, 0x20
cmp eax, 0x19
cmova ecx, r8d
mov r8d, ecx
jmp 0x1401ed8b5
cmp r8d, 0x10000
jge 0x1401ed8a6
xor r9d, r9d
lea rsi, [0x140000000]
mov edi, r9d
or r11d, 0xffffffff
mov ebx, 0xa2
lea eax, [rdi + rbx]
cdq
sub eax, edx
mov edx, r8d
sar eax, 1
movsxd rcx, eax
movzx ecx, word [rsi + rcx*4 + 0x300730]
sub edx, ecx
mov ecx, eax
cmovs ecx, r11d
test edx, edx
movsxd r11, ecx
lea ecx, [rax + 1]
cmovs ecx, edi
dec eax
test edx, edx
mov edi, ecx
cmovs ebx, eax
cmp ebx, ecx
jge 0x1401ed815
movzx ecx, word [rsi + r11*4 + 0x300730]
movzx eax, byte [rsi + r11*4 + 0x300733]
add eax, ecx
cmp r8d, eax
jge 0x1401ed889
movzx eax, byte [rsi + r11*4 + 0x300732]
xor ecx, r8d
and ecx, eax
test cl, 1
jne 0x1401ed889
shr rax, 1
movzx eax, word [rsi + rax*2 + 0x3009c0]
add eax, r8d
movzx r8d, ax
test r10d, r10d
je 0x1401ed8b5
cmp r10d, 2
mov ecx, r8d
sete r9b
mov edx, r9d
call fcn.1401b70d0
mov r8d, eax
jmp 0x1401ed8b5
lea eax, [rcx - 0x10400]
cmp eax, 0x27
ja 0x1401ed8b5
add r8d, 0x28
mov rbx, qword [rsp + 0x30]
mov eax, r8d
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14021e3f8
Capabilities:
Create thread

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, 0x30
xor ebx, ebx
mov r15, rcx
mov qword [rcx], rbx
mov rbp, r8
mov r12, rdx
lea r13d, [rbx + 0x28]
mov ecx, r13d
call fcn.1401f3e58
mov rdi, rax
test rax, rax
jne 0x14021e43e
lea ebx, [rax + 7]
jmp 0x14021e4d0
cmp byte [0x140369144], bl
je 0x14021e4a0
mov rax, qword [0x1403692d0]
test rax, rax
je 0x14021e45d
mov ecx, 0xc8
call rax
test eax, eax
jne 0x14021e4a0
lea r14, [rdi + 8]
mov qword [rdi + 0x18], rbp
lea rsi, [rdi + 0x10]
mov qword [rsp + 0x28], r14
mov r9, rdi
mov dword [rsp + 0x20], ebx
lea r8, [0x140201888]
mov qword [rsi], r12
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rdi], rax
test rax, rax
jne 0x14021e4b5
mov r8, r13
xor edx, edx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memset
jmp 0x14021e4b5
mov r8, r13
xor edx, edx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memset
lea rsi, [rdi + 0x10]
lea r14, [rdi + 8]
cmp qword [rsi], rbx
jne 0x14021e4cd
call qword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov rcx, rbp
mov dword [r14], eax
call r12
mov qword [rdi + 0x20], rax
mov qword [r15], rdi
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret