joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401a2fc0
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 0x1401a7d4c
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 0x1401a7de2
call fcn.1401945b0
test al, al
jne 0x1401a7de2
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.1401b8fe0
test rax, rax
je 0x1401a7db1
sub rax, rbx
lea edx, [rdi + 0x2e]
mov r8, rax
mov rcx, rbx
call fcn.1401b8fe0
mov rdi, rax
test rax, rax
je 0x1401a7db1
inc rdi
mov rcx, rbx
sub rcx, rdi
add rsi, rcx
test rdi, rdi
cmovne rbx, rdi
mov edi, 0x1505
add rsi, rbx
jmp 0x1401a7dd7
mov cl, byte [rbx]
call fcn.1401aa870
imul rdi, rdi, 0x21
movsx rcx, al
xor rdi, rcx
inc rbx
cmp rbx, rsi
jb 0x1401a7dc2
movzx eax, dil
jmp 0x1401a7de4
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1401a8df4
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 0x1401a8f2b
lea rdx, str.LoadLibraryExA
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1403ee6a0]
mov rcx, rbp
mov rsi, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strpbrk]
test rax, rax
je 0x1401a8e6b
mov rcx, rbp
test rsi, rsi
je 0x1401a8e63
mov r8d, 8
jmp 0x1401a8e8e
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x1401a8e92
test rsi, rsi
je 0x1401a8e9a
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1401a8e9a
mov r8d, 0x800
mov rcx, rbp
xor edx, edx
call rsi
mov rbx, rax
jmp 0x1401a8f28
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r14d, eax
test eax, eax
je 0x1401a8f28
mov rcx, rbp
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea ecx, [r14 + 1]
add rcx, rax
call qword [0x1404255b8]
mov rdi, rax
test rax, rax
je 0x1401a8f1f
mov edx, r14d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1401a8f1f
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rdx, [0x1403ee6b8]
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 0x1401a8f16
xor edx, edx
lea r8d, [rdx + 8]
call rsi
jmp 0x1401a8f1c
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
mov rcx, rdi
call qword [0x1404255c0]
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 0x1401a8f48
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x14042b840]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
test cl, 2
je 0x1401a8f9d
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.ws2_32.dll_WSAStartup]
test eax, eax
je 0x1401a8f84
mov eax, 2
jmp 0x1401a900d
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x1401a8f95
shr ax, 8
cmp al, 2
je 0x1401a8f9d
call qword [sym.imp.ws2_32.dll_WSACleanup]
jmp 0x1401a8f7a
call fcn.1401b92bc
test eax, eax
jne 0x1401a900d
lea rcx, str.iphlpapi.dll
call fcn.1401a8df4
mov qword [0x14042bd30], rax
test rax, rax
je 0x1401a8fda
lea rdx, str.if_nametoindex
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1401a8fda
mov qword [0x14042bd28], rax
xor edx, edx
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
lea ecx, [rdx + 6]
call fcn.1401b7f58
test al, al
lea rcx, [0x14042c858]
setne byte [0x14042c854]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1402e63c0
add rsp, 0x1e8
ret

Function at 0x1401ae8bc
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 0x1401ae90e
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 0x1401ae948
cmp edi, esi
je 0x1401ae948
cmp edi, 0x8000
ja 0x1401ae948
cmp edi, esi
jb 0x1401ae92a
mov rcx, rbx
mov rdx, rdi
call qword [0x1404255c8]
mov rbx, rax
test rax, rax
jne 0x1401ae8e1
mov rcx, rbp
call qword [0x1404255c0]
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 0x1401ae922
Function at 0x1401b1ccc
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 0x1401b1e40
mov rbx, qword [rsp + 0x68]
test rbx, rbx
je 0x1401b1e2d
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1401b1d29
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea r14, [rax + 1]
jmp 0x1401b1d2c
xor r14d, r14d
cmp dword [rbx + 4], 2
jne 0x1401b1d3a
mov r15d, 0x10
jmp 0x1401b1d4a
cmp dword [rbx + 4], 0x17
jne 0x1401b1de2
mov r15d, 0x1c
cmp qword [rbx + 0x20], 0
je 0x1401b1de2
cmp qword [rbx + 0x10], 0
jbe 0x1401b1de2
cmp qword [rbx + 0x10], r15
jb 0x1401b1de2
lea rcx, [r14 + 0x30]
add rcx, r15
call qword [0x1404255b8]
mov rsi, rax
test rax, rax
je 0x1401b1df1
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 fcn.1402e6f51
test r14, r14
je 0x1401b1dcf
mov rcx, qword [rsi + 0x20]
mov r8, r14
add rcx, r15
mov qword [rsi + 0x18], rcx
mov rdx, qword [rbx + 0x18]
call fcn.1402e6f51
test rdi, rdi
cmove rdi, rsi
test r13, r13
je 0x1401b1ddf
mov qword [r13 + 0x28], rsi
mov r13, rsi
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x1401b1d15
jmp 0x1401b1df6
mov ebp, 8
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1401b1e06
call qword [sym.imp.ws2_32.dll_freeaddrinfo]
test ebp, ebp
je 0x1401b1e28
test rdi, rdi
je 0x1401b1e24
mov rbx, qword [rdi + 0x28]
mov rcx, rdi
call qword [0x1404255c0]
mov rdi, rbx
test rbx, rbx
jne 0x1401b1e0f
xor edi, edi
jmp 0x1401b1e3a
test rdi, rdi
jne 0x1401b1e3a
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 0x1401b22a4
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 0x1401b22d5
cmp rax, 0xffffffffffffffff
cmovne rbx, rax
mov rax, rbx
add rsp, 0x30
pop rbx
ret
Function at 0x1401b9000
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.1401934dc
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 0x1401b9083
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.1401934dc
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movdqu xmmword [rsp + 0x30], xmm0
call fcn.140193554
cmp rax, 0x3e8
ja 0x1401b90c6
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 0x1401b9048
test rsi, rsi
je 0x1401b90a1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
je 0x1401b90af
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 0x1401b90d4
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
je 0x1401b90e2
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, edi
jmp 0x1401b90b1
Function at 0x1401b9a68
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 [0x14042b840]
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 0x1401b9ae8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.14018420c
lea rdx, str.schannel:_invalid_path_name_for_CA_file__s:__s
mov r8, r12
mov r9, rax
mov rcx, r15
call fcn.1401a225c
mov ebx, 0x4d
jmp 0x1401b9c2d
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 0x1401b9b3c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.14018420c
lea rdx, str.schannel:_failed_to_open_CA_file__s:__s
jmp 0x1401b9ad0
lea rdx, [rsp + 0x48]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1401b9b85
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.14018420c
lea rdx, str.schannel:_failed_to_determine_size_of_CA_file__s:__s
mov r8, r12
mov r9, rax
mov rcx, r15
call fcn.1401a225c
mov ebx, 0x4d
jmp 0x1401b9c24
mov rbx, qword [rsp + 0x48]
mov r8d, 0x100000
cmp rbx, r8
jle 0x1401b9ba6
lea rdx, str.schannel:_CA_file_exceeds_max_size_of__u_bytes
mov rcx, r15
call fcn.1401a225c
jmp 0x1401b9b7b
lea rcx, [rbx + 1]
call qword [0x1404255b8]
mov rsi, rax
test rax, rax
jne 0x1401b9bbd
lea ebx, [rax + 0x1b]
jmp 0x1401b9c24
test rbx, rbx
je 0x1401b9c06
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 0x1401b9c71
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x1401b9bfd
mov ebx, r13d
jmp 0x1401b9bff
add edi, eax
mov eax, edi
cmp rax, rbx
jb 0x1401b9bc2
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.1401b982c
mov ebx, eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [0x1404255c0]
test rbp, rbp
je 0x1401b9c44
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.1402e63c0
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.14018420c
lea rdx, str.schannel:_failed_to_read_from_CA_file__s:__s
jmp 0x1401b9b6d
Function at 0x1401bbdb4
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 [0x1404255b8]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1401bbec8
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 0x1401bbe3d
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 + 0x10]
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 0x1401bbebd
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 0x1401bbe51
lea rsi, [rdi + 8]
jmp 0x1401bbebd
mov rcx, qword [rbx + 8]
lea rdx, [0x1403f2c8b]
mov r8d, 1
call qword [rsi]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x1403f2c8c]
mov r8d, 1
call qword [rsi]
inc rbp
mov eax, dword [rdi + 0x1c]
cmp rbp, rax
jb 0x1401bbe94
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 0x1401bc034
Capabilities:
Hash data via wincrypt

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x14042b840]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rdi, rcx
mov rbp, r8
lea rcx, [rsp + 0x20]
mov rsi, rdx
call fcn.1401bbf5c
mov ebx, eax
test eax, eax
jne 0x1401bc091
mov rcx, rbp
call fcn.1401a2fdc
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.1401bbfb8
mov eax, ebx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1402e63c0
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401cc990
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [rcx]
cmp rbx, 0x20
jb 0x1401cca6d
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 0x1401cca7e
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.1401cc890
Function at 0x140217c18
Capabilities:
Encode data using xor

Disassembly:
cmp dword [rcx + 0x60], 0
mov r8, rcx
movzx edx, byte [rcx + 0x5c]
jle 0x140217c53
mov ecx, dword [rcx + 0x288]
mov r9d, dword [r8 + 0x60]
mov eax, ecx
lea r11, [0x140426160]
shr rax, 0x18
xor rax, rdx
shl ecx, 8
xor ecx, dword [r11 + rax*4]
mov dword [r8 + 0x288], ecx
sub r9, 1
jne 0x140217c2f
mov eax, dword [r8 + 0x5c]
mov byte [rax + r8 + 0x80], 1
mov ecx, dword [r8 + 0x60]
sub ecx, 1
je 0x140217cfb
sub ecx, 1
je 0x140217cdf
cmp ecx, 1
je 0x140217cb4
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 0x140217c87
mov dl, byte [r8 + 0x60]
sub dl, 4
mov rax, qword [r8 + 0x40]
mov byte [rcx + rax + 1], dl
jmp 0x140217d06
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 0x140217caa
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 0x140217ce5
ret
movsxd rcx, dword [r8 + 0x6c]
mov rax, qword [r8 + 0x40]
mov byte [rcx + rax], dl
inc dword [r8 + 0x6c]
ret
Function at 0x140269760
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 0x1402697e4
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.1402332c8
mov r8, rax
mov rdx, rsi
mov rcx, rdi
call fcn.140264a6c
mov rsi, qword [rsi]
cmp dword [rdi + 0x34], r14d
jne 0x140269933
movsxd r8, dword [r13]
mov edx, r12d
mov rcx, rsi
call fcn.140235230
mov r9d, dword [rsp + 0x80]
mov edx, 2
mov r8, qword [rsp + 0x78]
mov rcx, rsi
and qword [rsp + 0x20], r14
call fcn.140234fcc
mov rcx, rsi
call fcn.140235920
cmp eax, 0x64
jne 0x140269843
xor edx, edx
mov rcx, rsi
call fcn.140235cfc
mov r12d, eax
mov r14d, eax
sar r12d, 1
and r14d, 1
mov rcx, rsi
call fcn.140235f58
mov edx, 2
mov dword [rdi + 0x34], eax
mov rcx, rsi
call fcn.1402352b4
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.140268f38
cmp qword [rbx + 0x10], 0
je 0x1402698a1
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.140265084
cmp dword [rdi + 0x34], 0
jne 0x140269903
test r15d, r15d
jne 0x140269903
mov edx, dword [rbx + 8]
mov rax, qword [rbx + 0x10]
or edx, 1
mov dword [rbx + 8], edx
test rax, rax
je 0x140269903
and ebp, 2
je 0x1402698c9
or edx, 2
mov dword [rbx + 8], edx
test esi, esi
je 0x1402698f4
mov r9d, dword [rbx + 0x30]
and edx, 2
cmp r9d, dword [rbx + 0xc]
jne 0x1402698e2
mov eax, dword [rax + 0xc]
cmp dword [rbx + 0x3c], eax
jl 0x1402698f4
mov rax, qword [rbx]
mov rcx, rdi
mov r8d, dword [rax]
call fcn.14025f4ec
mov qword [rbx + 0x50], rax
test ebp, ebp
je 0x140269903
mov rdx, rbx
mov rcx, rdi
call fcn.140269210
test byte [rbx + 8], 2
je 0x140269916
lea rax, [0x14026918c]
mov qword [rbx + 0x28], rax
jmp 0x140269933
mov rax, qword [rdi]
lea rcx, [0x140268b84]
lea rdx, [0x140268fdc]
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 0x1402714c4
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 0x14027154c
and dword [rax + 0x18], 0
lea rcx, str.PRAGMA__Q.page_size
call fcn.1402332c8
lea r8, [rsp + 0x50]
mov rdx, rax
mov rcx, rsi
mov rbp, rax
call fcn.140270798
mov edi, eax
test eax, eax
jne 0x140271538
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 0x140271595
mov dword [rbx + 0x20], edx
jmp 0x140271595
mov rcx, rsi
call fcn.1402348bc
mov rdx, rax
lea rcx, [0x1403e9de0]
jmp 0x14027158d
mov r8, qword [rbx + 0x38]
lea rcx, str.SELECT_length_data__FROM__q._q_node_WHERE_nodeno__1
call fcn.1402332c8
lea r8, [rbx + 0x20]
mov rdx, rax
mov rcx, rsi
mov rbp, rax
call fcn.140270798
mov edi, eax
test eax, eax
jne 0x140271538
cmp dword [rbx + 0x20], 0x1c0
jge 0x140271595
mov rdx, qword [rbx + 0x38]
lea rcx, str.undersize_RTree_blobs_in___q_node_
mov edi, 0x10b
call fcn.1402332c8
mov qword [r14], rax
mov rcx, rbp
call fcn.14023352c
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 0x1402817e4
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.1402ae628
test ebx, ebx
jne 0x14028184d
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.1402ae628
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 0x1402a2b5c
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 0x1402a2baf
movzx edx, byte [r11 + r8]
lea ecx, [r10*8]
xor edx, ecx
xor r10d, edx
sub r11, 1
jns 0x1402a2b97
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 0x1402a2c53
mov eax, dword [rdi + 0x1c]
inc eax
cmp esi, eax
jne 0x1402a2be5
mov r8, rsi
lea rcx, [rdi + 0x30]
mov rdx, rbp
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1402a2bed
mov rdi, qword [rdi]
test rdi, rdi
jne 0x1402a2bc9
test rdi, rdi
je 0x1402a2c53
lea r14d, [rsi + 0x31]
mov esi, dword [rdi + 0x18]
lea eax, [r15 + 0xa]
sub esi, r14d
add eax, esi
movsxd rcx, eax
call fcn.140233494
mov rcx, qword [rsp + 0x60]
mov rbp, rax
mov qword [rcx], rax
test rax, rax
je 0x1402a2c45
movsxd rdx, r14d
lea rcx, [r15 + rax]
add rdx, rdi
movsxd r8, esi
call fcn.1402e6f51
sub r15d, r14d
mov rdx, rdi
movsxd r8, r15d
mov rcx, r13
add r8, rbp
call fcn.1402629dc
lea ebx, [rsi + rax]
jmp 0x1402a2c5b
mov rax, qword [rsp + 0x68]
mov dword [rax], ebx
mov eax, 7
jmp 0x1402a2c64
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