joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140199f58
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
cdqe
add rsp, 0x28
ret

Function at 0x14019ece4
Capabilities:
Hash data using djb2

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14019ed7a
call fcn.14018b54c
test al, al
jne 0x14019ed7a
mov rcx, rbx
xor edi, edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov r8, rax
lea edx, [rdi + 0x2e]
mov rcx, rbx
mov rsi, rax
call fcn.1401affb0
test rax, rax
je 0x14019ed49
sub rax, rbx
lea edx, [rdi + 0x2e]
mov r8, rax
mov rcx, rbx
call fcn.1401affb0
mov rdi, rax
test rax, rax
je 0x14019ed49
inc rdi
mov rcx, rbx
sub rcx, rdi
add rsi, rcx
test rdi, rdi
cmovne rbx, rdi
mov edi, 0x1505
add rsi, rbx
jmp 0x14019ed6f
mov cl, byte [rbx]
call fcn.1401a1808
imul rdi, rdi, 0x21
movsx rcx, al
xor rdi, rcx
inc rbx
cmp rbx, rsi
jb 0x14019ed5a
movzx eax, dil
jmp 0x14019ed7c
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14019fd8c
Capabilities:
Get common file path

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, 0x20
mov rbp, rcx
xor ebx, ebx
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
je 0x14019fec3
lea rdx, str.LoadLibraryExA
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1403e2db0]
mov rcx, rbp
mov rsi, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strpbrk]
test rax, rax
je 0x14019fe03
mov rcx, rbp
test rsi, rsi
je 0x14019fdfb
mov r8d, 8
jmp 0x14019fe26
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x14019fe2a
test rsi, rsi
je 0x14019fe32
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14019fe32
mov r8d, 0x800
mov rcx, rbp
xor edx, edx
call rsi
mov rbx, rax
jmp 0x14019fec0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r14d, eax
test eax, eax
je 0x14019fec0
mov rcx, rbp
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea ecx, [r14 + 1]
add rcx, rax
call qword [0x1404195d8]
mov rdi, rax
test rax, rax
je 0x14019feb7
mov edx, r14d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x14019feb7
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rdx, [0x1403e2dc8]
lea rcx, [rdi + rax]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov rdx, rbp
lea rcx, [rdi + rax]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
mov rcx, rdi
test rsi, rsi
je 0x14019feae
xor edx, edx
lea r8d, [rdx + 8]
call rsi
jmp 0x14019feb4
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
mov rcx, rdi
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14019fee0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x14041f880]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
test cl, 2
je 0x14019ff35
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x14019ff1c
mov eax, 2
jmp 0x14019ffa5
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x14019ff2d
shr ax, 8
cmp al, 2
je 0x14019ff35
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x14019ff12
call fcn.1401b028c
test eax, eax
jne 0x14019ffa5
lea rcx, [0x1403e2d70]
call fcn.14019fd8c
mov qword [0x14041fd50], rax
test rax, rax
je 0x14019ff72
lea rdx, str.if_nametoindex
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14019ff72
mov qword [0x14041fd48], rax
xor edx, edx
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
lea ecx, [rdx + 6]
call fcn.1401aef28
test al, al
lea rcx, [0x140420878]
setne byte [0x140420874]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1402dd7d0
add rsp, 0x1e8
ret
Function at 0x1401a5868
Capabilities:
Query environment variable

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, 0x20
xor ebp, ebp
mov r14, rcx
xor ecx, ecx
lea edi, [rbp + 1]
jmp 0x1401a58ba
mov r8d, edi
mov rdx, rbx
mov rcx, r14
mov rbp, rbx
mov esi, edi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edi, eax
test eax, eax
je 0x1401a58f4
cmp edi, esi
je 0x1401a58f4
cmp edi, 0x8000
ja 0x1401a58f4
cmp edi, esi
jb 0x1401a58d6
mov rcx, rbx
mov rdx, rdi
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov rbx, rax
test rax, rax
jne 0x1401a588d
mov rcx, rbp
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_free]
xor ebx, ebx
mov rbp, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rcx, rbx
jmp 0x1401a58ce
Function at 0x1401a8c88
Capabilities:
Resolve dns

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r12, r9
xor edi, edi
and qword [r9], rdi
xor r13d, r13d
lea r9, [rax + 0x20]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov ebp, eax
test eax, eax
jne 0x1401a8dfc
mov rbx, qword [rsp + 0x68]
test rbx, rbx
je 0x1401a8de9
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1401a8ce5
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea r14, [rax + 1]
jmp 0x1401a8ce8
xor r14d, r14d
cmp dword [rbx + 4], 2
jne 0x1401a8cf6
mov r15d, reloc.WS2_32.dll_recv
jmp 0x1401a8d06
cmp dword [rbx + 4], 0x17
jne 0x1401a8d9e
mov r15d, 0x1c
cmp qword [rbx + 0x20], 0
je 0x1401a8d9e
cmp qword [rbx + 0x10], 0
jbe 0x1401a8d9e
cmp qword [rbx + 0x10], r15
jb 0x1401a8d9e
lea rcx, [r14 + 0x30]
add rcx, r15
call qword [0x1404195d8]
mov rsi, rax
test rax, rax
je 0x1401a8dad
mov ecx, dword [rbx]
mov r8, r15
mov dword [rax], ecx
mov ecx, dword [rbx + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rbx + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rbx + 0xc]
and qword [rax + 0x18], 0
and qword [rax + 0x28], 0
mov dword [rax + 0xc], ecx
lea rcx, [rax + 0x30]
mov qword [rax + 0x20], rcx
mov dword [rax + 0x10], r15d
mov rdx, qword [rbx + 0x20]
call sub.VCRUNTIME140.dll_memcpy
test r14, r14
je 0x1401a8d8b
mov rcx, qword [rsi + 0x20]
mov r8, r14
add rcx, r15
mov qword [rsi + 0x18], rcx
mov rdx, qword [rbx + 0x18]
call sub.VCRUNTIME140.dll_memcpy
test rdi, rdi
cmove rdi, rsi
test r13, r13
je 0x1401a8d9b
mov qword [r13 + 0x28], rsi
mov r13, rsi
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x1401a8cd1
jmp 0x1401a8db2
mov ebp, 8
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1401a8dc2
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebp, ebp
je 0x1401a8de4
test rdi, rdi
je 0x1401a8de0
mov rbx, qword [rdi + 0x28]
mov rcx, rdi
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdi, rbx
test rbx, rbx
jne 0x1401a8dcb
xor edi, edi
jmp 0x1401a8df6
test rdi, rdi
jne 0x1401a8df6
mov ebp, 0x2af9
mov ecx, ebp
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov qword [r12], rdi
mov eax, ebp
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x1401a9260
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
mov r9, rdx
mov r8, rcx
mov qword [rsp + 0x28], rbx
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
test rax, rax
je 0x1401a9291
cmp rax, 0xffffffffffffffff
cmovne rbx, rax
mov rax, rbx
add rsp, 0x30
pop rbx
ret
Function at 0x1401affd0
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.14018a478
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 0x1401b0053
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.14018a478
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movdqu xmmword [rsp + 0x30], xmm0
call fcn.14018a4f0
cmp rax, 0x3e8
ja 0x1401b0096
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 0x1401b0018
test rsi, rsi
je 0x1401b0071
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
je 0x1401b007f
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 0x1401b00a4
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
je 0x1401b00b2
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, edi
jmp 0x1401b0081
Function at 0x1401b0a38
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 [0x14041f880]
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 0x1401b0ab8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.14017b19c
lea rdx, str.schannel:_invalid_path_name_for_CA_file__s:__s
mov r8, r12
mov r9, rax
mov rcx, r15
call fcn.1401991f8
mov ebx, 0x4d
jmp 0x1401b0bfd
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 0x1401b0b0c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.14017b19c
lea rdx, str.schannel:_failed_to_open_CA_file__s:__s
jmp 0x1401b0aa0
lea rdx, [rsp + 0x48]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1401b0b55
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.14017b19c
lea rdx, str.schannel:_failed_to_determine_size_of_CA_file__s:__s
mov r8, r12
mov r9, rax
mov rcx, r15
call fcn.1401991f8
mov ebx, 0x4d
jmp 0x1401b0bf4
mov rbx, qword [rsp + 0x48]
mov r8d, 0x100000
cmp rbx, r8
jle 0x1401b0b76
lea rdx, str.schannel:_CA_file_exceeds_max_size_of__u_bytes
mov rcx, r15
call fcn.1401991f8
jmp 0x1401b0b4b
lea rcx, [rbx + 1]
call qword [0x1404195d8]
mov rsi, rax
test rax, rax
jne 0x1401b0b8d
lea ebx, [rax + 0x1b]
jmp 0x1401b0bf4
test rbx, rbx
je 0x1401b0bd6
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 0x1401b0c41
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x1401b0bcd
mov ebx, r13d
jmp 0x1401b0bcf
add edi, eax
mov eax, edi
cmp rax, rbx
jb 0x1401b0b92
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.1401b07fc
mov ebx, eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbp, rbp
je 0x1401b0c14
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.1402dd7d0
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.14017b19c
lea rdx, str.schannel:_failed_to_read_from_CA_file__s:__s
jmp 0x1401b0b3d
Function at 0x1401b2d84
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 r14, rdx
add rcx, 0x18
mov r15d, r8d
lea r9d, [rax + rax]
add rcx, r9
call qword [0x1404195d8]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1401b2e98
lea rcx, [rax + 0x18]
mov qword [rax], rdi
mov qword [rax + 8], rcx
lea rsi, [rdi + 8]
mov eax, dword [rdi + 0x18]
add rax, rcx
mov qword [rbx + 0x10], rax
cmp r15d, dword [rdi + 0x1c]
jbe 0x1401b2e0d
call qword [rdi]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, r14
call qword [rsi]
mov r14d, dword [rdi + 0x18]
add r14, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, r14
call qword [rdi + reloc.WS2_32.dll_recv]
mov r15d, dword [rdi + 0x20]
mov rcx, qword [rbx + 8]
call qword [rdi]
mov rcx, qword [rbx + 0x10]
call qword [rdi]
test r15, r15
je 0x1401b2e8d
mov rbp, r15
mov al, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rbx + 8]
call qword [rsi]
mov al, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
mov r8d, 1
mov byte [rsp + 0x40], al
inc r14
mov rcx, qword [rbx + 0x10]
call qword [rsi]
sub r15, 1
jne 0x1401b2e21
lea rsi, [rdi + 8]
jmp 0x1401b2e8d
mov rcx, qword [rbx + 8]
lea rdx, [0x1403e739b]
mov r8d, 1
call qword [rsi]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x1403e739c]
mov r8d, 1
call qword [rsi]
inc rbp
mov eax, dword [rdi + 0x1c]
cmp rbp, rax
jb 0x1401b2e64
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 0x1401b3004
Capabilities:
Hash data via wincrypt

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x14041f880]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rdi, rcx
mov rbp, r8
lea rcx, [rsp + 0x20]
mov rsi, rdx
call fcn.1401b2f2c
mov ebx, eax
test eax, eax
jne 0x1401b3061
mov rcx, rbp
call fcn.140199f74
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.1401b2f88
mov eax, ebx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1402dd7d0
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401c3970
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [rcx]
cmp rbx, 0x20
jb 0x1401c3a4d
mov rdx, qword [rcx + 8]
mov r9, qword [rcx + 0x18]
mov rax, rdx
mov r8, qword [rcx + 0x10]
mov r11, r9
mov r10, qword [rcx + 0x20]
rol r11, 0xc
rol rax, 1
add r11, rax
mov qword [rsp + 0x30], rsi
movabs rsi, 0x9e3779b185ebca87
mov qword [rsp + 0x38], rdi
movabs rdi, 0xc2b2ae3d27d4eb4f
mov rax, r8
rol rax, 7
add r11, rax
mov rax, r10
imul rdx, rdi
imul r8, rdi
imul r10, rdi
imul r9, rdi
mov rdi, qword [rsp + 0x38]
rol rax, 0x12
add r11, rax
rol rdx, 0x1f
imul rdx, rsi
movabs rax, 0x7a1435883d4d519d
rol r8, 0x1f
xor r11, rdx
rol r10, 0x1f
imul r11, rsi
imul r8, rsi
imul r10, rsi
sub r11, rax
rol r9, 0x1f
xor r11, r8
imul r11, rsi
imul r9, rsi
sub r11, rax
xor r11, r9
imul r11, rsi
sub r11, rax
xor r11, r10
movabs r10, 0x85ebca77c2b2ae63
imul r11, rsi
mov rsi, qword [rsp + 0x30]
add r10, r11
jmp 0x1401c3a5e
mov r10, qword [rcx + 0x18]
movabs rdx, 0x27d4eb2f165667c5
add r10, rdx
add r10, rbx
lea rdx, [rcx + 0x28]
mov rcx, r10
xor r9d, r9d
mov r8, rbx
add rsp, 0x20
pop rbx
jmp fcn.1401c3870
Function at 0x14020ecd8
Capabilities:
Encode data using xor

Disassembly:
cmp dword [rcx + 0x60], 0
mov r8, rcx
movzx edx, byte [rcx + 0x5c]
jle 0x14020ed13
mov ecx, dword [rcx + 0x288]
mov r9d, dword [r8 + 0x60]
mov eax, ecx
lea r11, [0x14041a180]
shr rax, 0x18
xor rax, rdx
shl ecx, 8
xor ecx, dword [r11 + rax*4]
mov dword [r8 + 0x288], ecx
sub r9, 1
jne 0x14020ecef
mov eax, dword [r8 + 0x5c]
mov byte [rax + r8 + 0x80], 1
mov ecx, dword [r8 + 0x60]
sub ecx, 1
je 0x14020edbb
sub ecx, 1
je 0x14020ed9f
cmp ecx, 1
je 0x14020ed74
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 0x14020ed47
mov dl, byte [r8 + 0x60]
sub dl, 4
mov rax, qword [r8 + 0x40]
mov byte [rcx + rax + 1], dl
jmp 0x14020edc6
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 0x14020ed6a
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 0x14020eda5
ret
movsxd rcx, dword [r8 + 0x6c]
mov rax, qword [r8 + 0x40]
mov byte [rcx + rax], dl
inc dword [r8 + 0x6c]
ret
Function at 0x1402608a8
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 0x14026092c
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.140229fec
mov r8, rax
mov rdx, rsi
mov rcx, rdi
call fcn.14025bbb4
mov rsi, qword [rsi]
cmp dword [rdi + 0x34], r14d
jne 0x140260a7b
movsxd r8, dword [r13]
mov edx, r12d
mov rcx, rsi
call fcn.14022bf70
mov r9d, dword [rsp + 0x80]
mov edx, 2
mov r8, qword [rsp + 0x78]
mov rcx, rsi
and qword [rsp + 0x20], r14
call fcn.14022bb30
mov rcx, rsi
call fcn.14022c6e8
cmp eax, 0x64
jne 0x14026098b
xor edx, edx
mov rcx, rsi
call fcn.14022cab8
mov r12d, eax
mov r14d, eax
sar r12d, 1
and r14d, 1
mov rcx, rsi
call fcn.14022cdbc
mov edx, 2
mov dword [rdi + 0x34], eax
mov rcx, rsi
call fcn.14022bff4
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.140260080
cmp qword [rbx + 0x10], 0
je 0x1402609e9
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.14025c1cc
cmp dword [rdi + 0x34], 0
jne 0x140260a4b
test r15d, r15d
jne 0x140260a4b
mov edx, dword [rbx + 8]
mov rax, qword [rbx + 0x10]
or edx, 1
mov dword [rbx + 8], edx
test rax, rax
je 0x140260a4b
and ebp, 2
je 0x140260a11
or edx, 2
mov dword [rbx + 8], edx
test esi, esi
je 0x140260a3c
mov r9d, dword [rbx + 0x30]
and edx, 2
cmp r9d, dword [rbx + 0xc]
jne 0x140260a2a
mov eax, dword [rax + 0xc]
cmp dword [rbx + 0x3c], eax
jl 0x140260a3c
mov rax, qword [rbx]
mov rcx, rdi
mov r8d, dword [rax]
call fcn.14025662c
mov qword [rbx + 0x50], rax
test ebp, ebp
je 0x140260a4b
mov rdx, rbx
mov rcx, rdi
call fcn.140260358
test byte [rbx + 8], 2
je 0x140260a5e
lea rax, [0x1402602d4]
mov qword [rbx + 0x28], rax
jmp 0x140260a7b
mov rax, qword [rdi]
lea rcx, [0x14025fccc]
lea rdx, [0x140260124]
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 0x14026862c
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 0x1402686b4
and dword [rax + 0x18], 0
lea rcx, str.PRAGMA__Q.page_size
call fcn.140229fec
lea r8, [rsp + 0x50]
mov rdx, rax
mov rcx, rsi
mov rbp, rax
call fcn.140267900
mov edi, eax
test eax, eax
jne 0x1402686a0
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 0x1402686fd
mov dword [rbx + 0x20], edx
jmp 0x1402686fd
mov rcx, rsi
call fcn.14022b324
mov rdx, rax
lea rcx, [0x1403de4f0]
jmp 0x1402686f5
mov r8, qword [rbx + 0x38]
lea rcx, str.SELECT_length_data__FROM__q._q_node_WHERE_nodeno__1
call fcn.140229fec
lea r8, [rbx + 0x20]
mov rdx, rax
mov rcx, rsi
mov rbp, rax
call fcn.140267900
mov edi, eax
test eax, eax
jne 0x1402686a0
cmp dword [rbx + 0x20], 0x1c0
jge 0x1402686fd
mov rdx, qword [rbx + 0x38]
lea rcx, str.undersize_RTree_blobs_in___q_node_
mov edi, 0x10b
call fcn.140229fec
mov qword [r14], rax
mov rcx, rbp
call fcn.14022a248
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 0x140278930
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.1402a5824
test ebx, ebx
jne 0x140278999
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.1402a5824
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 0x140299cf4
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 0x140299d47
movzx edx, byte [r11 + r8]
lea ecx, [r10*8]
xor edx, ecx
xor r10d, edx
sub r11, 1
jns 0x140299d2f
xor edx, edx
mov eax, r10d
div dword [r13 + 0x14]
mov rax, qword [r13 + 0x20]
mov rdi, qword [rax + rdx*8]
test rdi, rdi
je 0x140299deb
mov eax, dword [rdi + 0x1c]
inc eax
cmp esi, eax
jne 0x140299d7d
mov r8, rsi
lea rcx, [rdi + 0x30]
mov rdx, rbp
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140299d85
mov rdi, qword [rdi]
test rdi, rdi
jne 0x140299d61
test rdi, rdi
je 0x140299deb
lea r14d, [rsi + 0x31]
mov esi, dword [rdi + 0x18]
lea eax, [r15 + 0xa]
sub esi, r14d
add eax, esi
movsxd rcx, eax
call fcn.14022a1b0
mov rcx, qword [rsp + 0x60]
mov rbp, rax
mov qword [rcx], rax
test rax, rax
je 0x140299ddd
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.140259b1c
lea ebx, [rsi + rax]
jmp 0x140299df3
mov rax, qword [rsp + 0x68]
mov dword [rax], ebx
mov eax, 7
jmp 0x140299dfc
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