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

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x1098
call fcn.1403aaf10
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1000], xmm6
mov qword [rbp + 0xff8], 0xfffffffffffffffe
mov rsi, rdx
mov rbx, rcx
mov qword [rbp + 0xfb0], rcx
mov qword [rbp + 0xfb8], rdx
lea rdi, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, rdi
xor edx, edx
call fcn.1403ac180
mov dword [rbp + 0xfe8], 0
xorps xmm6, xmm6
movaps xmmword [rbp + 0xfc0], xmm6
mov qword [rbp + 0xfd0], 0
lea rax, [rbp + 0xfe8]
mov qword [rbp + 0xfd8], rax
lea rax, [0x14024df30]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0xfc0]
mov qword [rbp + 0xfe0], rbx
mov rcx, rbx
mov rdx, rdi
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.DLL_ReadFileEx]
test eax, eax
je 0x140257d0c
mov r14, qword [sym.imp.KERNEL32.DLL_SleepEx]
mov r15d, 0xffffffff
lea r12, [rbp + 0xfc0]
mov ecx, 0xffffffff
mov edx, 1
call r14
cmp dword [rbp + 0xfe8], 1
jne 0x140257bd0
cmp dword [rbp + 0xfec], 0
jne 0x140257d11
mov eax, dword [rbp + 0xff0]
test eax, eax
je 0x140257d11
mov ebx, eax
cmp eax, 0x1000
ja 0x140257d5c
xor edi, edi
cmp rdi, rbx
ja 0x140257d41
lea rdx, [rdi + rbp]
add rdx, 0xffffffffffffffb0
mov r13, rbx
sub rbx, rdi
cmp rbx, r15
cmovae rbx, r15
mov dword [rbp + 0xfe8], 0
movaps xmmword [rbp + 0xfc0], xmm6
mov qword [rbp + 0xfd0], 0
lea rax, [rbp + 0xfe8]
mov qword [rbp + 0xfd8], rax
lea rax, [0x14024df30]
mov qword [rsp + 0x20], rax
mov rcx, rsi
mov r8d, ebx
mov r9, r12
call qword [sym.imp.KERNEL32.DLL_WriteFileEx]
test eax, eax
je 0x140257d0c
nop dword [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call r14
cmp dword [rbp + 0xfe8], 1
jne 0x140257c80
cmp dword [rbp + 0xfec], 0
jne 0x140257d11
mov eax, dword [rbp + 0xff0]
add rdi, rax
mov rbx, r13
cmp rdi, r13
jne 0x140257c10
mov dword [rbp + 0xfe8], 0
movaps xmmword [rbp + 0xfc0], xmm6
mov qword [rbp + 0xfd0], 0
lea rax, [rbp + 0xfe8]
mov qword [rbp + 0xfd8], rax
lea rax, [0x14024df30]
mov qword [rsp + 0x20], rax
mov rcx, qword [rbp + 0xfe0]
lea rdx, [rbp - 0x50]
mov r8d, 0x1000
mov r9, r12
call qword [sym.imp.KERNEL32.DLL_ReadFileEx]
test eax, eax
jne 0x140257bd0
call sub.KERNEL32.DLL_GetLastError
mov rdi, qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rcx, qword [rbp + 0xfe0]
call rdi
mov rcx, rsi
call rdi
movaps xmm6, xmmword [rbp + 0x1000]
add rsp, 0x1098
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, rdi
mov qword [rbp + 0xfe0], rbx
mov rdx, rbx
call fcn.1403afbd0
jmp 0x140257d77
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov qword [rbp + 0xfe0], rbx
mov rcx, rbx
call fcn.1403af940
ud2
Function at 0x140257e10
Capabilities:
Generate random numbers via winapi

Disassembly:
push rsi
sub rsp, 0x80
mov dword [rsp + 0x28], ecx
mov rsi, qword [0x14051f230]
mov qword [rsp + 0x30], rsi
test rsi, rsi
jne 0x140257e72
lea rdx, [0x1404c2374]
lea rcx, [rsp + 0x30]
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
test eax, eax
js 0x140257ea8
mov rcx, qword [rsp + 0x30]
xor eax, eax
lock cmpxchg qword [0x14051f230], rcx
jne 0x140257e62
mov rsi, qword [rsp + 0x30]
jmp 0x140257e72
mov rsi, rax
mov rcx, qword [rsp + 0x30]
xor edx, edx
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0x10
xor r9d, r9d
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x140257ea8
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
add rsp, 0x80
pop rsi
ret
mov dword [rsp + 0x2c], eax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x60], rax
lea rax, [0x140063050]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x2c]
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x78], rax
lea rax, [0x1404c23c8]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 2
lea rax, [0x1404c23e8]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 2
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 2
lea rdx, str.L_
lea rcx, [rsp + 0x30]
call fcn.1403af870
ud2
Function at 0x14025a910
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rdi, rdx
cmp qword [rdx], 0
jne 0x14025aa14
mov rsi, rcx
mov rbx, qword [rdi + 0x28]
mov rax, qword [rbx]
test rax, rax
jne 0x14025a947
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x14025a9fe
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x14025a9e1
sub rax, rdx
add rdx, qword [rbx + 8]
mov rbx, qword [rdi + 0x20]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x30], 0
mov rcx, qword [rdi + 0x10]
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x30]
mov r8d, eax
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x14025a99e
mov eax, dword [rsp + 0x30]
mov ecx, 2
test rax, rax
jne 0x14025a9ba
jmp 0x14025a9af
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x3e5
je 0x14025a9b5
cmp eax, 0x6d
jne 0x14025a9d1
mov byte [rsi + 1], 0
jmp 0x14025a9c5
mov ecx, 1
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
xor eax, eax
mov byte [rsi], al
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov al, 1
jmp 0x14025a9c7
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.1403b9b60
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
jmp 0x14025a954
mov r8d, 0x10
mov rcx, rbx
call fcn.1403b9b60
mov rax, qword [rbx]
jmp 0x14025a947
mov qword [rsp + 0x40], 0
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1403ba0c0
ud2

Function at 0x14025f1a0
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
test rcx, rcx
je 0x14025f1c1
mov r8, qword [rcx]
mov rax, qword [rcx + 8]
mov rdx, qword [rcx + 0x10]
mov qword [rcx], 0
cmp r8, 1
je 0x14025f1f9
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 0x14025f1f2
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x14025f1f9
mov ecx, eax
call fcn.140257e10
mov r8d, dword [0x14051f7b8]
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx + r8*8]
mov qword [rcx + 0xb8], 1
mov qword [rcx + 0xc0], rax
mov qword [rcx + 0xc8], rdx
add rsp, 0x38
ret

Function at 0x14025f9c0
Capabilities:
Delete file

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x28]
call fcn.140245580
mov rdi, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
test rsi, rsi
je 0x14025fa14
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
je 0x14025fa1f
xor ebx, ebx
test rdi, rdi
mov edi, 0
je 0x14025fa14
mov rcx, qword [0x14051f200]
xor edx, edx
mov r8, rsi
call qword [sym.imp.KERNEL32.DLL_HeapFree]
mov rdi, rbx
mov rax, rdi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rdi, rdi
mov rdi, rbx
jne 0x14025f9ff
jmp 0x14025fa14
Function at 0x14025fa40
Capabilities:
Copy file

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x60
lea rbp, [rsp + 0x60]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r9
mov rsi, rcx
lea rcx, [rbp - 0x30]
call fcn.140245580
mov rcx, qword [rbp - 0x30]
mov rax, qword [rbp - 0x28]
test rax, rax
je 0x14025fae6
mov qword [rbp - 0x10], rcx
mov qword [rbp - 0x18], rax
mov r8, qword [rbp + 0x50]
lea rcx, [rbp - 0x30]
mov rdx, rdi
call fcn.140245580
mov rbx, qword [rbp - 0x30]
mov rdi, qword [rbp - 0x28]
test rdi, rdi
je 0x14025faf3
mov qword [rbp - 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [0x14025fb90]
lea r9, [rbp - 0x30]
mov r14, qword [rbp - 0x18]
mov rcx, r14
mov rdx, rdi
call qword [sym.imp.KERNEL32.DLL_CopyFileExW]
test eax, eax
je 0x14025fb04
mov rax, qword [rbp - 0x30]
mov qword [rsi + 8], rax
mov qword [rsi], 0
test rbx, rbx
jne 0x14025fb21
jmp 0x14025fb33
mov qword [rsi + 8], rcx
mov qword [rsi], 1
jmp 0x14025fb4c
mov qword [rsi + 8], rbx
mov qword [rsi], 1
mov r14, qword [rbp - 0x18]
jmp 0x14025fb33
call sub.KERNEL32.DLL_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
test rbx, rbx
je 0x14025fb33
mov rcx, qword [0x14051f200]
xor edx, edx
mov r8, rdi
call qword [sym.imp.KERNEL32.DLL_HeapFree]
cmp qword [rbp - 0x10], 0
je 0x14025fb4c
mov rcx, qword [0x14051f200]
xor edx, edx
mov r8, r14
call qword [sym.imp.KERNEL32.DLL_HeapFree]
nop
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
Function at 0x140269d08
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp qword [rcx], 0
je 0x140269d1d
add rcx, 8
xor r8d, r8d
xor r9d, r9d
jmp fcn.140269d29
add rcx, 8
xor r8d, r8d
jmp 0x14026d3cb

Function at 0x14026c31e
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
cmp rcx, 0xffffffffffffffff
je 0x14026c368
movzx eax, dl
lea r9, [rsp + 0x34]
mov dword [r9], eax
mov dword [rsp + 0x20], 4
mov edx, 6
mov r8d, 1
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14026c355
xor eax, eax
jmp 0x14026c363
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret
lea rcx, str.called__Option::unwrap____on_a__None__valuecalled__Result::unwrap____on_an__Err__value
lea r8, str.C:Usersuser1.cargo_registry_srcgithub.com_1ecc6299db9ec823_tokio_1.34.0_srciopoll_evented.rs
mov edx, 0x2b
call fcn.1403af950
ud2
Function at 0x14026c684
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov qword [rsp + 0x60], r9
mov qword [rsp + 0x70], r8
mov qword [rsp + 0x30], rcx
mov rax, qword [rsp + 0xe0]
lea rcx, [rdx + 0x10]
mov qword [rsp + 0x50], rcx
lea rbp, [rsp + 0x42]
mov rcx, qword [rdx + 0x20]
mov qword [rsp + 0x68], rcx
mov rcx, qword [rdx]
mov qword [rsp + 0x48], rcx
mov rsi, qword [rdx + 8]
mov ecx, 0x7fffffff
cmp rax, rcx
cmovb rcx, rax
mov qword [rsp + 0x58], rcx
lea rdi, [rsp + 0x38]
mov rcx, rdi
mov rdx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x70]
mov r9b, 1
call fcn.14026970d
mov r13b, byte [rsp + 0x41]
cmp r13b, 3
je 0x14026c840
mov r12, qword [rsp + 0x38]
cmp r13b, 2
je 0x14026c84e
mov bl, byte [rsp + 0x40]
movzx eax, word [rbp + 4]
mov word [rsp + 0x2c], ax
mov eax, dword [rbp]
mov dword [rsp + 0x28], eax
cmp rsi, 0xffffffffffffffff
je 0x14026c896
mov rcx, rsi
mov rdx, qword [rsp + 0x60]
mov r8, qword [rsp + 0x58]
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_send]
cmp eax, 0xffffffff
jne 0x14026c860
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov r14, rax
shl r14, 0x20
or r14, 2
mov ecx, eax
call fcn.14023d1e0
cmp al, 0xd
jne 0x14026c7c8
cmp qword [rsp + 0x48], 0
je 0x14026c7c8
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax + 8]
mov rdx, qword [rax + 0x10]
lock inc qword [rdx]
jle 0x14026c8b0
add rcx, 0x10
mov r8, qword [rax]
mov r9b, byte [rax + 0x18]
call fcn.140126b95
test rax, rax
je 0x14026c7c8
mov r15, rax
mov rcx, r14
call fcn.14007eeac
mov eax, r15d
and eax, 3
lea rcx, [0x14026c8b4]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
mov r14, r15
jmp rax
mov eax, r14d
and eax, 3
lea rcx, [0x14026c8b4]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
mov al, byte [r14 + 0x10]
jmp 0x14026c7f6
mov al, byte [r14 + 0xf]
jmp 0x14026c7f6
mov rcx, r14
shr rcx, 0x20
call fcn.14023d1e0
cmp al, 0xd
je 0x14026c808
jmp 0x14026c875
mov rax, r14
shr rax, 0x20
cmp eax, 0xd
jne 0x14026c875
mov qword [rsp + 0x38], r12
mov byte [rsp + 0x40], bl
mov byte [rsp + 0x41], r13b
movzx eax, word [rsp + 0x2c]
mov word [rbp + 4], ax
mov eax, dword [rsp + 0x28]
mov dword [rbp], eax
mov rcx, qword [rsp + 0x50]
mov rdx, rdi
call fcn.140269959
mov rcx, r14
call fcn.14007eeac
jmp 0x14026c6e4
mov rax, qword [rsp + 0x30]
mov qword [rax], 2
jmp 0x14026c885
mov rax, qword [rsp + 0x30]
mov qword [rax], 1
mov qword [rax + 8], r12
jmp 0x14026c885
movsxd rcx, eax
mov rax, qword [rsp + 0x30]
mov qword [rax], 0
mov qword [rax + 8], rcx
jmp 0x14026c885
mov rax, qword [rsp + 0x30]
mov qword [rax], 1
mov qword [rax + 8], r14
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str.called__Option::unwrap____on_a__None__valuecalled__Result::unwrap____on_an__Err__value
lea r8, str.PL_
mov edx, 0x2b
call fcn.1403af950
ud2
ud2
Function at 0x14026da1b
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 0x14026da22
test al, 1
je 0x14026da41
test al, 2
jne 0x14026da56
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x1404c8418]
mov edx, 0x23
jmp 0x14026da69
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x1404c8458]
mov edx, 0x25
call fcn.1403af950
ud2
Function at 0x140281347
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb0
mov r14, r8
mov rdi, rdx
mov rsi, rcx
lea rax, [rsp + 0x60]
mov qword [rax], 0
mov qword [rsp + 0x20], rax
lea rcx, [0x1404ede08]
lea r9, [0x1404ede18]
xor edx, edx
mov r8d, 1
call sub.ole32.dll_CoCreateInstance
test eax, eax
js 0x140281464
mov r15, qword [rsp + 0x60]
test r15, r15
je 0x140281511
mov qword [rsp + 0x58], 0
lea rbx, [rsp + 0x60]
mov rcx, rbx
mov rdx, rdi
mov r8, r14
call fcn.140281133
mov al, byte [rbx]
cmp al, 0x14
jne 0x14028146f
mov r14, qword [rsp + 0x68]
mov rax, qword [r15]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x40], rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], 0
mov rcx, r15
mov rdx, r14
xor r8d, r8d
xor r9d, r9d
call qword [rax + 0x18]
test eax, eax
js 0x1402814a9
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x140281521
mov rcx, r14
call qword [sym.imp.oleaut32.dll_SysFreeString]
mov eax, 3
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov rcx, rbx
mov edx, 0xa
xor r8d, r8d
xor r9d, r9d
call sub.ole32.dll_CoSetProxyBlanket
test eax, eax
js 0x140281500
mov qword [rsi + 8], rbx
mov byte [rsi], 0x14
jmp 0x1402814e7
mov byte [rsi], 0
mov dword [rsi + 4], eax
jmp 0x1402814f0
mov cl, byte [rsp + 0x63]
mov byte [rsp + 0x56], cl
movzx ecx, word [rsp + 0x61]
mov word [rsp + 0x54], cx
mov ebx, dword [rsp + 0x64]
mov rcx, qword [rsp + 0x68]
movups xmm0, xmmword [rsp + 0x70]
movaps xmmword [rsp + 0x90], xmm0
movups xmm0, xmmword [rsp + 0x80]
movaps xmmword [rsp + 0xa0], xmm0
jmp 0x1402814b6
mov ebx, eax
mov rcx, r14
call qword [sym.imp.oleaut32.dll_SysFreeString]
xor eax, eax
mov dl, byte [rsp + 0x56]
mov byte [rsi + 3], dl
movzx edx, word [rsp + 0x54]
mov word [rsi + 1], dx
movaps xmm0, xmmword [rsp + 0x90]
movaps xmm1, xmmword [rsp + 0xa0]
movups xmmword [rsi + 0x10], xmm0
movups xmmword [rsi + 0x20], xmm1
mov byte [rsi], al
mov dword [rsi + 4], ebx
mov qword [rsi + 8], rcx
mov rax, qword [r15]
mov rcx, r15
call qword [rax + 0x10]
nop
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov byte [rsi], 0
mov dword [rsi + 4], eax
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
jmp 0x1402814e7
lea rcx, str.called__Option::unwrap____on_a__None__valuecalled__Result::unwrap____on_an__Err__value
lea r8, str.C:Usersuser1.cargo_registry_srcgithub.com_1ecc6299db9ec823wmi_0.11.5_srcconnection.rsROOTCIMV2
jmp 0x14028152f
lea rcx, str.called__Option::unwrap____on_a__None__valuecalled__Result::unwrap____on_an__Err__value
lea r8, str.C:Usersuser1.cargo_registry_srcgithub.com_1ecc6299db9ec823wmi_0.11.5_srcconnection.rsROOTCIMV2
mov edx, 0x2b
call fcn.1403af950
ud2
Function at 0x14028dae0
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 0x14028d99e
mov ebp, ebx
shr rbp, 3
imul rax, rbp, 0xfffffffffffffff8
add rbx, rax
cmp r14d, 1
jne 0x14028d966
lea r8d, [r14 + 7]
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.1403abad0
mov rdx, qword [rsp + 0x50]
jmp 0x14028d969
mov rdx, qword [rsi]
xor ecx, ecx
call fcn.14028daa8
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 0x14028d948
mov ebp, 4
movabs r15, 0xc2b2ae3d27d4eb4f
movabs r12, 0x165667b19e3779f9
cmp rbx, rbp
jb 0x14028d9fd
cmp r14d, 1
jne 0x14028d9d8
mov r8d, ebp
lea rcx, [rsp + 0x50]
mov rdx, rsi
call fcn.1403abad0
mov eax, dword [rsp + 0x50]
jmp 0x14028d9da
mov eax, dword [rsi]
mov ecx, eax
mov edx, 0x17
imul rcx, r13
add rsi, rbp
xor rcx, rdi
call sub.api_ms_win_crt_utility_l1_1_0.dll__rotl64
mov rdi, rax
imul rdi, r15
add rdi, r12
sub rbx, rbp
test rbx, rbx
je 0x14028da30
movzx eax, byte [rsi]
movabs rcx, 0x27d4eb2f165667c5
imul rcx, rax
mov edx, 0xb
inc rsi
xor rcx, rdi
call sub.api_ms_win_crt_utility_l1_1_0.dll__rotl64
mov rdi, rax
imul rdi, r13
sub rbx, 1
jne 0x14028da02
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 0x14028db6c
mov rcx, qword [rcx + 0x20]
mov edx, 0x12
call sub.api_ms_win_crt_utility_l1_1_0.dll__rotl64
mov rcx, qword [rsi + 0x18]
mov edx, 0xc
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.14028da74
mov rdx, qword [rsi + 0x10]
mov rcx, rax
call fcn.14028da74
mov rdx, qword [rsi + 0x18]
mov rcx, rax
call fcn.14028da74
mov rdx, qword [rsi + 0x20]
mov rcx, rax
call fcn.14028da74
jmp 0x14028db7d
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 0x14028d900
Function at 0x1402dab0c
Capabilities:
Encode data using xor

Disassembly:
cmp dword [rcx + 0x60], 0
mov r8, rcx
movzx edx, byte [rcx + 0x5c]
jle 0x1402dab47
mov ecx, dword [rcx + 0x288]
mov r9d, dword [r8 + 0x60]
mov eax, ecx
lea r11, [0x140519930]
shr rax, 0x18
xor rax, rdx
shl ecx, 8
xor ecx, dword [r11 + rax*4]
mov dword [r8 + 0x288], ecx
sub r9, 1
jne 0x1402dab23
mov eax, dword [r8 + 0x5c]
mov byte [rax + r8 + 0x80], 1
mov ecx, dword [r8 + 0x60]
sub ecx, 1
je 0x1402dabef
sub ecx, 1
je 0x1402dabd3
cmp ecx, 1
je 0x1402daba8
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 0x1402dab7b
mov dl, byte [r8 + 0x60]
sub dl, 4
mov rax, qword [r8 + 0x40]
mov byte [rcx + rax + 1], dl
jmp 0x1402dabfa
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 0x1402dab9e
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 0x1402dabd9
ret
movsxd rcx, dword [r8 + 0x6c]
mov rax, qword [r8 + 0x40]
mov byte [rcx + rax], dl
inc dword [r8 + 0x6c]
ret
Function at 0x14032d2f8
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rbx, qword [rsp + 0x98]
mov rdi, rcx
mov r14d, r9d
mov r12d, 1
xor edx, edx
mov rcx, rbx
mov ebp, r9d
and r14d, 8
xor r15d, r15d
lea r8d, [r12 + 0x77]
call fcn.1403ac180
mov r13, qword [rsp + 0x90]
lea rsi, [rdi + 0x60]
mov qword [rbx], r13
cmp qword [rsi], r15
jne 0x14032d37c
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.1402f240c
mov r8, rax
mov rdx, rsi
mov rcx, rdi
call fcn.14032862c
mov rsi, qword [rsi]
cmp dword [rdi + 0x34], r15d
jne 0x14032d4cb
movsxd r8, dword [r13]
mov edx, r12d
mov rcx, rsi
call fcn.1402f4224
mov r9d, dword [rsp + 0x80]
mov edx, 2
mov r8, qword [rsp + 0x78]
mov rcx, rsi
and qword [rsp + 0x20], r15
call fcn.1402f400c
mov rcx, rsi
call fcn.1402f4a00
cmp eax, 0x64
jne 0x14032d3db
xor edx, edx
mov rcx, rsi
call fcn.1402f4db8
movsxd r15, eax
mov r12, r15
sar r12, 1
and r15d, 1
mov rcx, rsi
call fcn.1402f5950
mov edx, 2
mov dword [rdi + 0x34], eax
mov rcx, rsi
call fcn.1402f42ac
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.14032caec
cmp qword [rbx + 0x10], 0
je 0x14032d439
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.140328c4c
cmp dword [rdi + 0x34], 0
jne 0x14032d49b
test r14d, r14d
jne 0x14032d49b
mov edx, dword [rbx + 8]
mov rax, qword [rbx + 0x10]
or edx, 1
mov dword [rbx + 8], edx
test rax, rax
je 0x14032d49b
and ebp, 2
je 0x14032d461
or edx, 2
mov dword [rbx + 8], edx
test esi, esi
je 0x14032d48c
mov r9d, dword [rbx + 0x30]
and edx, 2
cmp r9d, dword [rbx + 0xc]
jne 0x14032d47a
mov eax, dword [rax + 0xc]
cmp dword [rbx + 0x3c], eax
jl 0x14032d48c
mov rax, qword [rbx]
mov rcx, rdi
mov r8d, dword [rax]
call fcn.14032315c
mov qword [rbx + 0x50], rax
test ebp, ebp
je 0x14032d49b
mov rdx, rbx
mov rcx, rdi
call fcn.14032cdc4
test byte [rbx + 8], 2
je 0x14032d4ae
lea rax, [0x14032cd40]
mov qword [rbx + 0x28], rax
jmp 0x14032d4cb
mov rax, qword [rdi]
lea rcx, [0x14032c730]
lea rdx, [0x14032cb90]
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 0x140335048
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 0x1403350d0
and dword [rax + 0x18], 0
lea rcx, str.PRAGMA__Q.page_size
call fcn.1402f240c
lea r8, [rsp + 0x50]
mov rdx, rax
mov rcx, rsi
mov rbp, rax
call fcn.140334310
mov edi, eax
test eax, eax
jne 0x1403350bc
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 0x140335119
mov dword [rbx + 0x20], edx
jmp 0x140335119
mov rcx, rsi
call fcn.1402f3668
mov rdx, rax
lea rcx, [0x140500a50]
jmp 0x140335111
mov r8, qword [rbx + 0x38]
lea rcx, str.SELECT_length_data__FROM__q._q_node_WHERE_nodeno__1
call fcn.1402f240c
lea r8, [rbx + 0x20]
mov rdx, rax
mov rcx, rsi
mov rbp, rax
call fcn.140334310
mov edi, eax
test eax, eax
jne 0x1403350bc
cmp dword [rbx + 0x20], 0x1c0
jge 0x140335119
mov rdx, qword [rbx + 0x38]
lea rcx, str.undersize_RTree_blobs_in___q_node_
mov edi, 0x10b
call fcn.1402f240c
mov qword [r14], rax
mov rcx, rbp
call fcn.1402f27a0
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