joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401f9964
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x1c0
mov rax, qword [0x140481f48]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rax, qword [rdx + 0x20]
mov rsi, rdx
mov rbx, qword [rcx + 0x10]
mov rcx, qword [rax + 0x2e8]
test dword [rcx + 0x84], 0x800
jne 0x1401f9a67
mov r8d, 0x80
lea rcx, [rsp + 0x30]
xor edx, edx
mov dword [rsp + 0x20], r8d
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rbx + 0x98]
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1401f9a15
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.1401c0de8
mov r8d, ebx
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.1401e3ae0
mov eax, 2
jmp 0x1401f9a69
mov edx, dword [rsp + 0x20]
lea r9, [rbx + 0x144]
lea r8, [rbx + 0x114]
lea rcx, [rsp + 0x30]
call fcn.1401e1bf8
test al, al
jne 0x1401f9a67
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ebx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.1401c0de8
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
jmp 0x1401f9a03
xor eax, eax
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.140330e30
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1401f9ce8
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x140481f48]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor eax, eax
mov dword [rsp + 0x20], 4
cmp byte [rcx + 0xa53], al
lea r9, [rsp + 0x50]
mov rdi, rdx
mov rbx, rcx
setne al
mov edx, 0xffff
mov r8d, 8
mov dword [rsp + 0x50], eax
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x1401f9d52
mov r8, rdi
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d
mov rcx, rbx
call fcn.1401e3bac
jmp 0x1401f9de5
mov ecx, dword [rbx + 0x9bc]
mov dword [rsp + 0x58], 1
call fcn.1401e4220
imul ecx, eax, 0x3e8
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x5c], ecx
mov ecx, dword [rbx + 0x9c0]
call fcn.1401e4220
and qword [rsp + 0x40], 0
lea r8, [rsp + 0x58]
and qword [rsp + 0x38], 0
mov r9d, recvfrom
imul ecx, eax, 0x3e8
mov edx, 0x98000004
lea rax, [rsp + 0x54]
mov qword [rsp + 0x30], rax
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x60], ecx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x1401f9de5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, edi
lea rdx, str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d
mov r9d, eax
mov rcx, rbx
call fcn.1401e3bac
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140330e30
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret
Function at 0x1401ffad4
Capabilities:
Move file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x60
mov rbx, rcx
movaps xmmword [rax - 0x18], xmm6
lea rcx, [rax - 0x38]
mov rdi, rdx
call fcn.1401d17fc
mov rcx, rbx
movups xmm6, xmmword [rax]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov rcx, rdi
mov rsi, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov rbx, rax
mov rdx, rax
mov edi, 1
jmp 0x1401ffb57
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.1401d17fc
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movdqu xmmword [rsp + 0x30], xmm0
call fcn.1401d1874
cmp rax, 0x3e8
ja 0x1401ffb9a
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rdx, rbx
mov r8d, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x1401ffb1c
test rsi, rsi
je 0x1401ffb75
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
je 0x1401ffb83
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x60
pop rdi
ret
test rsi, rsi
je 0x1401ffba8
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
je 0x1401ffbb6
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, edi
jmp 0x1401ffb85
Function at 0x140200964
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x170
mov rax, qword [0x140481f48]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov qword [rsp + 0x50], rcx
mov r15, r8
mov rcx, rdx
mov r12, rdx
xor esi, esi
xor edi, edi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov rbp, rax
test rax, rax
jne 0x1402009e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.1401c0f1c
lea rdx, str.schannel:_invalid_path_name_for_CA_file__s:__s
mov r8, r12
mov r9, rax
mov rcx, r15
call fcn.1401e3ae0
mov ebx, 0x4d
jmp 0x140200b2b
and qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, rbp
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x140200a38
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.1401c0f1c
lea rdx, str.schannel:_failed_to_open_CA_file__s:__s
jmp 0x1402009cc
lea rdx, [rsp + 0x48]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x140200a81
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.1401c0f1c
lea rdx, str.schannel:_failed_to_determine_size_of_CA_file__s:__s
mov r8, r12
mov r9, rax
mov rcx, r15
call fcn.1401e3ae0
mov ebx, 0x4d
jmp 0x140200b22
mov rbx, qword [rsp + 0x48]
mov eax, 0x100000
cmp rbx, rax
jle 0x140200aa4
mov r8d, eax
lea rdx, str.schannel:_CA_file_exceeds_max_size_of__u_bytes
mov rcx, r15
call fcn.1401e3ae0
jmp 0x140200a77
lea rcx, [rbx + 1]
call qword [0x14047b580]
mov rsi, rax
test rax, rax
jne 0x140200abb
lea ebx, [rax + 0x1b]
jmp 0x140200b22
test rbx, rbx
je 0x140200b04
and dword [rsp + 0x40], 0
lea rdx, [rsi + rdi]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, ebx
mov r13d, edi
sub r8d, edi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140200b6f
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x140200afb
mov ebx, r13d
jmp 0x140200afd
add edi, eax
mov eax, edi
cmp rax, rbx
jb 0x140200ac0
mov rcx, qword [rsp + 0x50]
mov r9, r12
mov r8, rbx
mov byte [rbx + rsi], 0
mov rdx, rsi
mov qword [rsp + 0x20], r15
call fcn.140200728
mov ebx, eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [0x14047b588]
test rbp, rbp
je 0x140200b42
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, ebx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140330e30
mov rbx, qword [rsp + 0x1c8]
add rsp, 0x170
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.1401c0f1c
lea rdx, str.schannel:_failed_to_read_from_CA_file__s:__s
jmp 0x140200a69
Function at 0x14020291c
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rdi, rcx
mov ecx, dword [rcx + 0x20]
mov r15, rdx
add rcx, 0x18
mov r14d, r8d
lea r9d, [rax + rax]
add rcx, r9
call qword [0x14047b580]
xor esi, esi
mov rbx, rax
test rax, rax
je 0x140202a31
lea rcx, [rax + 0x18]
mov qword [rax], rdi
mov qword [rax + 8], rcx
lea rbp, [rdi + 8]
mov eax, dword [rdi + 0x18]
add rax, rcx
mov qword [rbx + 0x10], rax
cmp r14d, dword [rdi + 0x1c]
jbe 0x1402029a6
call qword [rdi]
mov rcx, qword [rbx + 8]
mov r8d, r14d
mov rdx, r15
call qword [rbp]
mov r15d, dword [rdi + 0x18]
add r15, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, r15
call qword [rdi + reloc.WS2_32.dll_recv]
mov r14d, dword [rdi + 0x20]
mov rcx, qword [rbx + 8]
call qword [rdi]
mov rcx, qword [rbx + 0x10]
call qword [rdi]
test r14, r14
je 0x140202a26
mov rsi, r14
mov al, byte [r15]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rbx + 8]
call qword [rbp]
mov al, byte [r15]
lea rdx, [rsp + 0x40]
xor al, 0x5c
mov r8d, 1
mov byte [rsp + 0x40], al
inc r15
mov rcx, qword [rbx + 0x10]
call qword [rbp]
sub r14, 1
jne 0x1402029ba
jmp 0x140202a26
mov rcx, qword [rbx + 8]
lea rdx, [0x140448161]
mov r8d, 1
call qword [rbp]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x140448162]
mov r8d, 1
call qword [rbp]
inc rsi
mov eax, dword [rdi + 0x1c]
cmp rsi, rax
jb 0x1402029fb
mov rax, rbx
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x140202bbc
Capabilities:
Hash data via wincrypt

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140481f48]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rdi, rcx
mov rbp, r8
lea rcx, [rsp + 0x20]
mov rsi, rdx
call fcn.140202ac4
mov ebx, eax
test eax, eax
jne 0x140202c19
mov rcx, rbp
call fcn.1401e4228
mov rcx, qword [rsp + 0x28]
xor r9d, r9d
mov r8d, eax
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140202b40
mov eax, ebx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140330e30
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x140216270
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 0x14021612e
mov ebp, ebx
shr rbp, 3
imul rax, rbp, 0xfffffffffffffff8
add rbx, rax
cmp r14d, 1
jne 0x1402160f6
lea r8d, [r14 + 7]
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.1403318a0
mov rdx, qword [rsp + 0x50]
jmp 0x1402160f9
mov rdx, qword [rsi]
xor ecx, ecx
call fcn.140216238
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 0x1402160d8
mov ebp, 4
movabs r15, 0xc2b2ae3d27d4eb4f
movabs r12, 0x165667b19e3779f9
cmp rbx, rbp
jb 0x14021618d
cmp r14d, 1
jne 0x140216168
mov r8d, ebp
lea rcx, [rsp + 0x50]
mov rdx, rsi
call fcn.1403318a0
mov eax, dword [rsp + 0x50]
jmp 0x14021616a
mov eax, dword [rsi]
mov ecx, eax
mov edx, reloc.WS2_32.dll_socket
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 0x1402161c0
movzx eax, byte [rsi]
movabs rcx, 0x27d4eb2f165667c5
imul rcx, rax
mov edx, ntohs
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 0x140216192
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
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx], 0x20
mov rsi, rcx
jb 0x1402162fc
mov rcx, qword [rcx + 0x20]
mov edx, reloc.WS2_32.dll_select
call sub.api_ms_win_crt_utility_l1_1_0.dll__rotl64
mov rcx, qword [rsi + 0x18]
mov edx, ntohs
mov rbx, rax
call sub.api_ms_win_crt_utility_l1_1_0.dll__rotl64
mov rcx, qword [rsi + 0x10]
mov edx, 7
add rbx, rax
call sub.api_ms_win_crt_utility_l1_1_0.dll__rotl64
mov rcx, qword [rsi + 8]
mov edx, 1
add rbx, rax
call sub.api_ms_win_crt_utility_l1_1_0.dll__rotl64
mov rdx, qword [rsi + 8]
lea rcx, [rbx + rax]
call fcn.140216204
mov rdx, qword [rsi + 0x10]
mov rcx, rax
call fcn.140216204
mov rdx, qword [rsi + 0x18]
mov rcx, rax
call fcn.140216204
mov rdx, qword [rsi + 0x20]
mov rcx, rax
call fcn.140216204
jmp 0x14021630d
mov rax, qword [rcx + 0x18]
movabs rcx, 0x27d4eb2f165667c5
add rax, rcx
mov r8, qword [rsi]
lea rdx, [rsi + 0x28]
xor r9d, r9d
lea rcx, [r8 + rax]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x140216090
Function at 0x140263138
Capabilities:
Encode data using xor

Disassembly:
cmp dword [rcx + 0x60], 0
mov r8, rcx
movzx edx, byte [rcx + 0x5c]
jle 0x140263173
mov ecx, dword [rcx + 0x288]
mov r9d, dword [r8 + 0x60]
mov eax, ecx
lea r11, [0x14047c8b0]
shr rax, 0x18
xor rax, rdx
shl ecx, 8
xor ecx, dword [r11 + rax*4]
mov dword [r8 + 0x288], ecx
sub r9, 1
jne 0x14026314f
mov eax, dword [r8 + 0x5c]
mov byte [rax + r8 + 0x80], 1
mov ecx, dword [r8 + 0x60]
sub ecx, 1
je 0x14026321b
sub ecx, 1
je 0x1402631ff
cmp ecx, 1
je 0x1402631d4
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 0x1402631a7
mov dl, byte [r8 + 0x60]
sub dl, 4
mov rax, qword [r8 + 0x40]
mov byte [rcx + rax + 1], dl
jmp 0x140263226
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 0x1402631ca
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 0x140263205
ret
movsxd rcx, dword [r8 + 0x6c]
mov rax, qword [r8 + 0x40]
mov byte [rcx + rax], dl
inc dword [r8 + 0x6c]
ret
Function at 0x1402b49bc
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 sub.VCRUNTIME140.dll_memset
mov r13, qword [rsp + 0x90]
lea rsi, [rdi + 0x60]
mov qword [rbx], r13
cmp qword [rsi], r15
jne 0x1402b4a40
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.14027cfec
mov r8, rax
mov rdx, rsi
mov rcx, rdi
call fcn.1402afcf0
mov rsi, qword [rsi]
cmp dword [rdi + 0x34], r15d
jne 0x1402b4b8f
movsxd r8, dword [r13]
mov edx, r12d
mov rcx, rsi
call fcn.14027e214
mov r9d, dword [rsp + 0x80]
mov edx, 2
mov r8, qword [rsp + 0x78]
mov rcx, rsi
and qword [rsp + 0x20], r15
call fcn.14027e14c
mov rcx, rsi
call fcn.14027e7b0
cmp eax, 0x64
jne 0x1402b4a9f
xor edx, edx
mov rcx, rsi
call fcn.14027eb5c
movsxd r15, eax
mov r12, r15
sar r12, 1
and r15d, 1
mov rcx, rsi
call fcn.14027f230
mov edx, 2
mov dword [rdi + 0x34], eax
mov rcx, rsi
call fcn.14027e29c
mov eax, dword [r13 + 4]
xor esi, esi
cmp r12d, eax
mov rdx, rbx
mov rcx, rdi
cmovge eax, r12d
cmovge esi, r15d
dec eax
mov dword [rbx + 0xc], eax
call fcn.1402b41b0
cmp qword [rbx + 0x10], 0
je 0x1402b4afd
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.1402b0310
cmp dword [rdi + 0x34], 0
jne 0x1402b4b5f
test r14d, r14d
jne 0x1402b4b5f
mov edx, dword [rbx + 8]
mov rax, qword [rbx + 0x10]
or edx, 1
mov dword [rbx + 8], edx
test rax, rax
je 0x1402b4b5f
and ebp, 2
je 0x1402b4b25
or edx, 2
mov dword [rbx + 8], edx
test esi, esi
je 0x1402b4b50
mov r9d, dword [rbx + 0x30]
and edx, 2
cmp r9d, dword [rbx + 0xc]
jne 0x1402b4b3e
mov eax, dword [rax + 0xc]
cmp dword [rbx + 0x3c], eax
jl 0x1402b4b50
mov rax, qword [rbx]
mov rcx, rdi
mov r8d, dword [rax]
call fcn.1402aa7f8
mov qword [rbx + 0x50], rax
test ebp, ebp
je 0x1402b4b5f
mov rdx, rbx
mov rcx, rdi
call fcn.1402b4488
test byte [rbx + 8], 2
je 0x1402b4b72
lea rax, [0x1402b4404]
mov qword [rbx + 0x28], rax
jmp 0x1402b4b8f
mov rax, qword [rdi]
lea rcx, [0x1402b3df4]
lea rdx, [0x1402b4254]
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 0x1402bc6a4
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 0x1402bc72c
and dword [rax + 0x18], 0
lea rcx, str.PRAGMA__Q.page_size
call fcn.14027cfec
lea r8, [rsp + 0x50]
mov rdx, rax
mov rcx, rsi
mov rbp, rax
call fcn.1402bb97c
mov edi, eax
test eax, eax
jne 0x1402bc718
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 0x1402bc775
mov dword [rbx + 0x20], edx
jmp 0x1402bc775
mov rcx, rsi
call fcn.14027dd58
mov rdx, rax
lea rcx, [0x14043d364]
jmp 0x1402bc76d
mov r8, qword [rbx + 0x38]
lea rcx, str.SELECT_length_data__FROM__q._q_node_WHERE_nodeno__1
call fcn.14027cfec
lea r8, [rbx + 0x20]
mov rdx, rax
mov rcx, rsi
mov rbp, rax
call fcn.1402bb97c
mov edi, eax
test eax, eax
jne 0x1402bc718
cmp dword [rbx + 0x20], 0x1c0
jge 0x1402bc775
mov rdx, qword [rbx + 0x38]
lea rcx, str.undersize_RTree_blobs_in___q_node_
mov edi, 0x10b
call fcn.14027cfec
mov qword [r14], rax
mov rcx, rbp
call fcn.14027d248
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 0x1402cb584
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rsi, qword [rcx]
xor r15d, r15d
movsxd rbp, edx
mov r10, r9
mov qword [rsp + 0x20], rsi
mov r12, rcx
test r9, r9
je 0x1402cb5e1
xor r9d, r9d
xor r8d, r8d
mov rdx, r10
mov rcx, rsi
call fcn.1402910a0
mov r10, qword [rsp + 0x88]
mov rdi, rax
mov r8, qword [rsp + 0x80]
jmp 0x1402cb5e4
mov rdi, r15
cmp byte [rsi + 0x67], r15b
jne 0x1402cb7b5
mov rax, qword [rdi + 0x20]
mov r14, r15
mov rbx, r15
mov rdx, qword [rax + 0x20]
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x70], rdx
mov r13, qword [rax + 0x20]
movzx eax, word [r8 + 0x3c]
cmp ebp, eax
jge 0x1402cb73a
lea rsi, [rbp*8]
mov rax, qword [r8 + 0x48]
mov rcx, qword [rsi + rax]
cmp qword [rcx], r10
jne 0x1402cb71f
movsxd r15, dword [rcx + 0x24]
shl r15, 5
mov rcx, qword [r15 + rdx - 0x18]
test rcx, rcx
je 0x1402cb71f
test r14, r14
jne 0x1402cb660
mov rdx, rcx
mov rcx, qword [r12]
call fcn.1402e421c
mov rdx, qword [rsp + 0x70]
mov r14, rax
jmp 0x1402cb6a4
movsxd rax, dword [r14]
lea r8d, [rax + 1]
cmp dword [r14 + 4], r8d
jge 0x1402cb67e
mov r8, rcx
mov rdx, r14
mov rcx, qword [r12]
call fcn.1402e4184
jmp 0x1402cb656
movups xmm0, xmmword [0x14045d840]
shl rax, 5
movups xmm1, xmmword [0x14045d850]
mov dword [r14], r8d
movups xmmword [rax + r14 + 8], xmm0
movups xmmword [rax + r14 + 0x18], xmm1
mov qword [rax + r14 + 8], rcx
and qword [r15 + rdx - 0x18], 0
mov rcx, qword [r15 + r13 - 0x18]
test rbx, rbx
jne 0x1402cb6c5
mov rdx, rcx
mov rcx, qword [r12]
call fcn.1402e421c
mov rbx, rax
jmp 0x1402cb704
movsxd rax, dword [rbx]
lea edx, [rax + 1]
cmp dword [rbx + 4], edx
jge 0x1402cb6e1
mov r8, rcx
mov rdx, rbx
mov rcx, qword [r12]
call fcn.1402e4184
jmp 0x1402cb6c0
movups xmm0, xmmword [0x14045d840]
shl rax, 5
movups xmm1, xmmword [0x14045d850]
mov dword [rbx], edx
movups xmmword [rax + rbx + 8], xmm0
movups xmmword [rax + rbx + 0x18], xmm1
mov qword [rax + rbx + 8], rcx
and qword [r15 + r13 - 0x18], 0
mov r10, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x70]
mov r8, qword [rsp + 0x80]
movzx eax, word [r8 + 0x3c]
inc ebp
add rsi, 8
cmp ebp, eax
jl 0x1402cb61e
mov rsi, qword [rsp + 0x20]
xor r15d, r15d
test rdx, rdx
je 0x1402cb747
mov rcx, rsi
call fcn.1402917d0
test r13, r13
je 0x1402cb757
mov rdx, r13
mov rcx, rsi
call fcn.1402917d0
mov rax, qword [rdi + 0x10]
mov qword [rax + 0x20], rbx
mov rax, qword [rdi + 0x20]
mov qword [rax + 0x20], r14
test rbx, rbx
je 0x1402cb78e
cmp dword [rbx], 1
jne 0x1402cb78e
mov rbp, qword [rbx + 8]
mov qword [rbx + 8], r15
mov rdx, qword [rdi + 0x10]
test rdx, rdx
je 0x1402cb78a
mov rcx, rsi
call fcn.1402e3590
mov qword [rdi + 0x10], rbp
mov rax, qword [rdi + 0x20]
mov rcx, qword [rax + 0x48]
test rcx, rcx
je 0x1402cb7b5
mov edx, r15d
cmp dword [rcx], r15d
jle 0x1402cb7b5
lea rax, [rcx + 0x20]
mov word [rax], r15w
inc edx
lea rax, [rax + 0x20]
cmp edx, dword [rcx]
jl 0x1402cb7a7
mov rbx, qword [rsp + 0x78]
mov rax, rdi
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1402cc31c
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.1402f90b4
test ebx, ebx
jne 0x1402cc385
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.1402f90b4
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 0x1402ed880
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, reloc.WS2_32.dll_listen
lea eax, [rsi - 1]
movsxd r11, eax
test eax, eax
js 0x1402ed8d4
movzx r8d, byte [r11 + rbp]
lea edx, [r10*8]
xor r8d, edx
xor r10d, r8d
sub r11, 1
jns 0x1402ed8bb
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 0x1402ed977
mov eax, dword [rdi + 0x1c]
inc eax
cmp esi, eax
jne 0x1402ed909
mov r8, rsi
lea rcx, [rdi + 0x30]
mov rdx, rbp
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1402ed911
mov rdi, qword [rdi]
test rdi, rdi
jne 0x1402ed8ed
test rdi, rdi
je 0x1402ed977
lea r14d, [rsi + 0x31]
mov esi, dword [rdi + 0x18]
lea eax, [r15 + 0xa]
sub esi, r14d
add eax, esi
movsxd rcx, eax
call fcn.14027d1b0
mov rcx, qword [rsp + 0x60]
mov rbp, rax
mov qword [rcx], rax
test rax, rax
je 0x1402ed969
movsxd rdx, r14d
lea rcx, [r15 + rax]
add rdx, rdi
movsxd r8, esi
call fcn.1403318a0
sub r15d, r14d
mov rdx, rdi
movsxd r8, r15d
mov rcx, r13
add r8, rbp
call fcn.1402adc84
lea ebx, [rsi + rax]
jmp 0x1402ed97f
mov rax, qword [rsp + 0x68]
mov dword [rax], ebx
mov eax, 7
jmp 0x1402ed988
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