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

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov rdi, rdx
cmp qword [rdx], 0
jne 0x14014f463
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov r8, qword [rbx]
mov rdx, qword [rbx + 0x10]
cmp r8, rdx
je 0x14014f438
sub r8, rdx
add rdx, qword [rbx + 8]
mov rax, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp r8, rcx
cmovae r8, rcx
mov dword [rbp - 0x38], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x38]
call qword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x14014f3a0
mov eax, dword [rbp - 0x38]
mov ecx, 2
test rax, rax
je 0x14014f3e2
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
jmp 0x14014f3e6
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x38], rax
movabs rcx, 0xffffffff00000000
and rcx, rax
movabs rdx, 0x6d00000000
cmp rcx, rdx
je 0x14014f3ea
movabs rdx, 0x3e500000000
cmp rcx, rdx
jne 0x14014f414
mov rax, rbp
jmp 0x14014f3f6
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x14014f41a
mov qword [rbp], 1
lea rax, [rbp - 8]
mov qword [rax], 0
lea rcx, [rbp - 0x38]
call fcn.140135760
mov rcx, qword [rbp]
mov rax, qword [rbp - 8]
cmp rcx, 2
jne 0x14014f425
mov qword [rsi + 8], rax
mov al, 1
mov byte [rsi], al
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop rbp
ret
test rcx, rcx
jne 0x14014f389
mov ecx, 1
jmp 0x14014f393
test r8, r8
mov ecx, 0x10
mov eax, 1
cmove rax, rcx
mov rcx, rbx
mov rdx, r8
mov r8, rax
call case.0x14013c7bb.451
mov r8, qword [rbx]
mov rdx, qword [rbx + 0x10]
jmp 0x14014f351
mov qword [rbp - 0x38], 0
lea rdx, [rbp - 0x38]
mov rcx, rdi
call fcn.1402475e0
int3
Function at 0x140154b50
Capabilities:
Copy file

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x90
lea rbp, [rsp + 0x80]
mov qword [rbp + 8], 0xfffffffffffffffe
mov rsi, r9
mov rdi, r8
mov r8, rdx
mov rdx, rcx
lea rcx, [rbp - 0x38]
call fcn.14013a730
mov rax, qword [rbp - 0x38]
mov rdx, qword [rbp - 0x30]
movabs rbx, 0x8000000000000000
cmp rax, rbx
je 0x140154bc6
mov rcx, qword [rbp - 0x28]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rdx
mov qword [rbp - 0x10], rcx
lea rcx, [rbp - 0x50]
lea rdx, [rbp - 0x20]
mov r8b, 1
call fcn.14013cb80
mov rax, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x48]
cmp rax, rbx
jne 0x140154bd9
mov eax, 1
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 8], rax
mov qword [rbp], rdx
lea rcx, [rbp - 0x38]
mov rdx, rdi
mov r8, rsi
call fcn.14013a730
mov rax, qword [rbp - 0x38]
mov rsi, qword [rbp - 0x30]
cmp rax, rbx
je 0x140154c2a
mov rcx, qword [rbp - 0x28]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rsi
mov qword [rbp - 0x10], rcx
lea rcx, [rbp - 0x50]
lea rdx, [rbp - 0x20]
mov r8b, 1
call fcn.14013cb80
mov rdi, qword [rbp - 0x50]
mov rsi, qword [rbp - 0x48]
cmp rdi, rbx
jne 0x140154c59
mov rcx, qword [rbp]
mov r14, qword [rbp - 8]
mov rdx, rsi
mov eax, 1
test r14, r14
je 0x140154bcb
mov rsi, rdx
mov edx, 2
call fcn.140029620
mov eax, 1
mov rdx, rsi
jmp 0x140154bcb
mov qword [rbp - 0x20], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [0x140154d40]
lea r9, [rbp - 0x20]
mov rcx, qword [rbp]
mov rbx, rcx
mov rdx, rsi
call qword [sym.imp.kernel32.dll_CopyFileExW]
test eax, eax
mov r14, qword [rbp - 8]
je 0x140154cd0
mov rdx, qword [rbp - 0x20]
test rdi, rdi
je 0x140154cb1
mov rdi, rdx
mov edx, 2
mov rcx, rsi
call fcn.140029620
mov rdx, rdi
test r14, r14
je 0x140154cc9
mov rsi, rdx
mov edx, 2
mov rcx, rbx
call fcn.140029620
mov rdx, rsi
xor eax, eax
jmp 0x140154bcb
call qword [sym.imp.kernel32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
test rdi, rdi
je 0x140154cf8
mov rdi, rdx
mov edx, 2
mov rcx, rsi
call fcn.140029620
mov rdx, rdi
mov rcx, rbx
jmp 0x140154c35
Function at 0x140158fb6
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rax, rdx
mov rsi, rcx
lea rdx, [rsp + 0x2c]
mov rcx, rax
call sub.shell32.dll_CommandLineToArgvW
test rax, rax
je 0x140159053
mov rdi, rax
lea rbx, [rsp + 0x30]
and qword [rbx], 0
mov qword [rbx + 8], 8
and qword [rbx + 0x10], 0
movsxd r12, dword [rsp + 0x2c]
shl r12, 3
xor r13d, r13d
lea r14, [rsp + 0x48]
cmp r12, r13
je 0x140159037
mov r15, qword [rdi + r13]
mov rcx, r15
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
mov rcx, r14
mov rdx, r15
mov r8, rax
call fcn.1401559c0
mov rcx, rbx
mov rdx, r14
call fcn.140009fda
add r13, 8
jmp 0x140159007
mov rcx, rdi
call qword [sym.imp.kernel32.dll_LocalFree]
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
mov rax, qword [rsp + 0x40]
mov qword [rsi + 0x10], rax
jmp 0x140159064
and qword [rsi], 0
mov qword [rsi + 8], 8
and qword [rsi + 0x10], 0
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x14015a519
Capabilities:
Get memory capacity

Disassembly:
push rsi
push rdi
sub rsp, 0xe8
movaps xmmword [rsp + 0xd0], xmm6
mov rsi, rcx
xorps xmm6, xmm6
lea rdi, [rsp + 0x90]
movaps xmmword [rdi], xmm6
movaps xmmword [rdi + 0x30], xmm6
movaps xmmword [rdi + 0x20], xmm6
movaps xmmword [rdi + 0x10], xmm6
mov dword [rdi], 0x40
mov rcx, rdi
call sub.kernel32.dll_GlobalMemoryStatusEx
mov rax, qword [rdi + 8]
mov qword [rsi + 0x138], rax
mov rax, qword [rdi + 0x10]
mov qword [rsi + 0x140], rax
lea rcx, [rsp + 0x20]
movaps xmmword [rcx + 0x50], xmm6
movaps xmmword [rcx + 0x40], xmm6
movaps xmmword [rcx + 0x30], xmm6
movaps xmmword [rcx + 0x20], xmm6
movaps xmmword [rcx + 0x10], xmm6
movaps xmmword [rcx], xmm6
and qword [rcx + 0x60], 0
mov edx, 0x68
call sub.psapi.dll_GetPerformanceInfo
cmp eax, 1
jne 0x14015a5ec
mov rdx, qword [rsp + 0x30]
mov r9, qword [rsp + 0x40]
xor r10d, r10d
sub rdx, r9
cmovb rdx, r10
mov rcx, qword [rsp + 0x70]
mov rax, rcx
mul rdx
mov r8, rax
mov r11, 0xffffffffffffffff
cmovo r8, r11
mov rdx, qword [rsp + 0x28]
sub rdx, r9
cmovb rdx, r10
mov rax, rcx
mul rdx
cmovo rax, r11
mov qword [rsi + 0x148], r8
mov qword [rsi + 0x150], rax
movaps xmm6, xmmword [rsp + 0xd0]
add rsp, 0xe8
pop rdi
pop rsi
ret

Function at 0x14015ad47
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x388
mov esi, edx
mov qword [rsp + 0x68], rcx
mov word [rsp + 0x48], si
mov eax, edx
shr eax, 0x10
mov byte [rsp + 0x4a], al
call fcn.14014fd70
mov r8d, edx
lea rdi, [rsp + 0x100]
mov rcx, rdi
mov edx, eax
call fcn.14014fda0
cmp qword [rdi], 0
jne 0x14015ad99
mov rax, qword [rsp + 0x108]
jmp 0x14015ad9b
xor eax, eax
mov qword [rsp + 0xb8], rax
mov r12d, 0x80000
lea r14, [rsp + 0x78]
lea r15, [rsp + 0x4c]
mov r13, qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
Function at 0x14015b481
Capabilities:
Get disk size

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
imul rbx, rdx, 0x90
xor r14d, r14d
lea rdi, [rsp + 0x28]
mov r15, rcx
cmp rbx, r14
je 0x14015b4e6
cmp qword [r15 + 0x78], 0
je 0x14015b4d6
and qword [rsp + 0x28], 0
mov rcx, qword [rsi + r14 + 0x50]
xor edx, edx
xor r8d, r8d
mov r9, rdi
call sub.kernel32.dll_GetDiskFreeSpaceExW
test eax, eax
je 0x14015b4d6
mov rax, qword [rsp + 0x28]
mov qword [rsi + r14 + 0x80], rax
add r15, 0x90
add r14, 0x90
jmp 0x14015b4a1
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x14015b4f2
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi

Function at 0x14015bfa5
Capabilities:
Reference wmi statements

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
and qword [rsp + 0x38], 0
mov rsi, rdx
mov rdi, rcx
cmp qword [rdx + 0x10], 0
je 0x14015c069
lea rcx, [0x1402eeb42]
call sub.oleaut32.dll_SysAllocString
mov rbx, rax
lea rcx, str.SELECT__FROM_MSAcpi_ThermalZoneTemperature
call sub.oleaut32.dll_SysAllocString
mov r14, rax
mov rcx, qword [rsi + 0x18]
mov rax, qword [rcx]
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x28], rdx
and qword [rsp + 0x20], 0
mov rdx, rbx
mov r8, r14
mov r9d, 0x30
call qword [rax + 0xa0]
mov ebp, eax
mov rcx, rbx
call sub.oleaut32.dll_SysFreeString
mov rcx, r14
call sub.oleaut32.dll_SysFreeString
test ebp, ebp
js 0x14015c069
mov rbx, qword [rsp + 0x38]
mov rcx, qword [rsi + 0x20]
mov rdx, qword [rsi + 0x28]
call fcn.14015a11b
mov qword [rsi + 0x20], 1
mov qword [rsi + 0x28], rbx
mov rax, qword [rsi + 0x30]
mov qword [rdi + 0x30], rax
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [rdi + 0x10], xmm1
movups xmmword [rdi], xmm0
mov rax, qword [rsi + 0x20]
mov qword [rdi + 0x20], rax
mov rax, qword [rsi + 0x28]
mov qword [rdi + 0x28], rax
jmp 0x14015c078
mov qword [rdi], 2
mov rcx, rsi
call fcn.14015a09f
nop
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

Function at 0x1401624bc
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 0x1401624c3
test al, 1
je 0x1401624e2
test al, 2
jne 0x1401624fa
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x1402f16b8]
mov edx, 0x23
call fcn.1402418d0
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x1402f16f8]
mov edx, 0x25
call fcn.1402418d0
int3

Function at 0x140162da9
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, edx
call fcn.140161cb2
mov rcx, qword [rax]
movzx eax, bl
lea r9, [rsp + 0x2c]
mov dword [r9], eax
mov dword [rsp + 0x20], 4
mov edx, 6
mov r8d, 1
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x140162de5
xor eax, eax
jmp 0x140162df3
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rbx
ret
Function at 0x14016305d
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, 0x58
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
lea r14, [rsp + 0x2a]
lea r12, [rsp + 0x42]
mov r13, qword [rcx + 0x10]
mov r15, qword [rcx + 0x18]
mov eax, 0x7fffffff
cmp r9, rax
cmovb rax, r9
mov qword [rsp + 0x50], rax
mov rax, qword [rcx + 0x20]
mov qword [rsp + 0x48], rax
lea rbp, [rsp + 0x20]
mov qword [rsp + 0x30], r13
mov rcx, rbp
mov rdx, r13
mov r8, rdi
call fcn.140162da1
mov al, byte [rsp + 0x29]
cmp al, 3
je 0x1401631d2
mov rbp, qword [rsp + 0x20]
cmp al, 2
je 0x1401631cb
mov cl, byte [rsp + 0x28]
movzx edx, word [r14 + 4]
mov word [r12 + 4], dx
mov edx, dword [r14]
mov dword [r12], edx
mov qword [rsp + 0x38], rbp
mov byte [rsp + 0x40], cl
mov byte [rsp + 0x41], al
cmp r15, 0xffffffffffffffff
je 0x1401631f2
mov rcx, r15
mov rdx, rsi
mov r8, qword [rsp + 0x50]
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_send]
cmp eax, 0xffffffff
jne 0x1401631d9
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov ebp, eax
shl rbp, 0x20
or rbp, 2
mov rcx, rbp
call fcn.14005ed8f
cmp al, 0xd
jne 0x14016319b
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x14016319b
mov rcx, qword [rax]
mov rdx, qword [rax + 8]
lock inc qword [rdx]
jle 0x1401631fe
mov r13, r15
mov r15, rbx
mov rbx, r14
add rcx, 0x10
mov r8, qword [rax + 0x10]
mov r9b, byte [rax + 0x18]
call fcn.14007c0e8
mov r14, rax
xor ecx, ecx
call fcn.1401350c6
test r14, r14
je 0x14016318d
mov ecx, 1
mov rdx, rbp
call fcn.14007c2aa
mov rbp, r14
mov r14, rbx
mov rbx, r15
mov r15, r13
mov r13, qword [rsp + 0x30]
mov rcx, rbp
call fcn.14015d606
cmp al, 0xd
jne 0x1401631cb
mov qword [rsp + 0x20], rbp
mov rcx, rbx
lea rdx, [rsp + 0x38]
call fcn.140162b9b
lea rbp, [rsp + 0x20]
mov rcx, rbp
call fcn.14015d88e
jmp 0x1401630ac
mov eax, 1
jmp 0x1401631de
mov eax, 2
jmp 0x1401631de
movsxd rbp, eax
xor eax, eax
mov rdx, rbp
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str.C:Userselena.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.36.0_srciopoll_evented.rs
call fcn.140241cb0
ud2
Function at 0x1401827ac
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rdx
mov edi, ecx
call fcn.14022905c
test eax, eax
jne 0x140182942
cmp byte [0x14033e0f4], al
jne 0x1401827de
xor ebx, ebx
jmp 0x1401827fa
mov ecx, 5
call qword [0x14033e160]
mov rbx, rax
test rax, rax
je 0x1401827fa
mov rcx, rax
call qword [0x14033e170]
test edi, edi
jle 0x14018292d
test rbp, rbp
je 0x14018292d
cmp dword [0x140343d80], 0
jne 0x1401828b9
xor ecx, ecx
call fcn.140188b20
mov r8d, 0x10
lea rdx, str.expand_32_byte_k
lea rcx, [0x140343d80]
mov rsi, rax
call fcn.140240685
test rsi, rsi
jne 0x140182854
xor edx, edx
lea r8d, [rsi + 0x2c]
lea rcx, [0x140343d90]
call sub.VCRUNTIME140.dll_memset
jmp 0x14018289c
cmp dword [0x14033e2a0], 0
je 0x14018288a
xor edx, edx
lea rcx, [0x140343d90]
lea r8d, [rdx + 0x2c]
call sub.VCRUNTIME140.dll_memset
mov r8d, 4
lea rdx, [0x14033e2a0]
lea rcx, [0x140343d90]
call fcn.140240685
jmp 0x14018289c
lea r8, [0x140343d90]
mov edx, 0x2c
mov rcx, rsi
call qword [rsi + 0x68]
mov eax, dword [0x140343db0]
and dword [0x140343db0], 0
xor cl, cl
mov dword [0x140343dbc], eax
mov byte [0x140343e00], cl
jmp 0x1401828bf
mov cl, byte [0x140343e00]
movzx eax, cl
lea rsi, [0x140343dc0]
cmp edi, eax
jle 0x14018290e
test cl, cl
je 0x1401828ec
movzx r8d, cl
mov rdx, rsi
mov rcx, rbp
call fcn.140240685
movzx ecx, byte [0x140343e00]
sub edi, ecx
add rbp, rcx
inc dword [0x140343db0]
lea rdx, [0x140343d80]
mov rcx, rsi
call fcn.140194348
mov cl, 0x40
mov byte [0x140343e00], cl
cmp edi, 0x40
jg 0x1401828cd
movzx eax, cl
mov rcx, rbp
sub eax, edi
movsxd r8, edi
movsxd rdx, eax
add rdx, rsi
call fcn.140240685
sub byte [0x140343e00], dil
jmp 0x140182934
and dword [0x140343d80], 0
test rbx, rbx
je 0x140182942
mov rcx, rbx
call qword [0x14033e180]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1401b9ba0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], r9
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd rsi, dword [rsp + 0x90]
lea rbp, [rcx + 0x3c]
xor ebx, ebx
xor r13d, r13d
mov r12d, r8d
mov r15, rdx
mov r14, rcx
cmp dword [rbp], ebx
jne 0x1401b9c14
test esi, esi
jns 0x1401b9bfe
mov ebx, dword [rdx + 0x18]
cmp qword [rcx + 0x18], r13
je 0x1401b9bf8
test r12b, 0x40
jne 0x1401b9bf8
lea eax, [r13 + 1]
jmp 0x1401b9bfa
xor eax, eax
add ebx, eax
jmp 0x1401b9c14
mov ebx, dword [rsp + 0x98]
mov rax, rsi
add rax, rax
cmp dword [rdx + rax*8 + 0x24], ebx
cmovl ebx, dword [rdx + rax*8 + 0x24]
mov edx, ebx
call fcn.1401b97a8
mov rdi, rax
mov rax, qword [rsp + 0xa0]
mov qword [rax], rdi
test rdi, rdi
je 0x1401b9da6
mov rax, qword [rsp + 0x78]
mov ecx, r12d
shr ecx, 1
and ecx, 1
mov qword [rdi + 0x38], rax
mov dword [rdi + 0x4c], ecx
mov ecx, r12d
shr ecx, 4
and cl, 1
mov byte [rdi + 0x50], cl
test r12b, 0x20
jne 0x1401b9c63
mov rdx, rdi
mov rcx, rbp
call fcn.1401b841c
cmp dword [rbp], r13d
jne 0x1401b9d3d
test esi, esi
jns 0x1401b9d50
movsxd rbp, dword [r15 + 0x1c]
add rbp, 2
shl rbp, 4
add rbp, r15
cmp qword [r14 + 0x18], r13
je 0x1401b9cba
test r12b, 0x40
jne 0x1401b9cba
mov r8d, dword [rsp + 0x88]
lea rax, [rdi + 0x68]
mov rdx, qword [rsp + 0x80]
mov r9d, r12d
mov rcx, r14
mov qword [rsp + 0x20], rax
mov r13d, 1
call fcn.1401bc5f4
lea rbx, [r15 + 0x20]
jmp 0x1401b9d34
mov esi, dword [rbx + 4]
sub esi, 1
js 0x1401b9d30
movsxd rax, esi
imul r15, rax, 0x38
mov rcx, qword [rbx + 8]
lea rdx, [rdi + 0x68]
movsxd rax, r13d
add rcx, r15
shl rax, 7
inc r13d
add rdx, rax
cmp qword [rsp + 0x80], 0
jne 0x1401b9d02
mov r8, rdx
mov rdx, rcx
mov rcx, r14
call fcn.1401bc788
jmp 0x1401b9d27
mov r8d, dword [rsp + 0x88]
mov r9d, r12d
mov qword [rsp + 0x28], rdx
mov rdx, qword [rsp + 0x80]
mov qword [rsp + 0x20], rcx
mov rcx, r14
call fcn.1401bd7d8
sub r15, 0x38
sub esi, 1
jns 0x1401b9ccf
add rbx, 0x10
cmp rbx, rbp
jb 0x1401b9cc0
lea rbp, [r14 + 0x3c]
cmp dword [rbp], 0
jne 0x1401b9d92
mov rdx, rdi
mov rcx, r14
call fcn.1401b9900
jmp 0x1401b9da6
add rsi, 2
shl rsi, 4
add rsi, r15
sub ebx, 1
js 0x1401b9d3d
movsxd rax, ebx
imul r15, rax, 0x38
mov rdx, qword [rsi + 8]
mov rcx, r14
movsxd r8, r13d
add rdx, r15
shl r8, 7
add r8, 0x68
add r8, rdi
call fcn.1401bc788
inc r13d
add r15, 0xffffffffffffffc8
sub ebx, 1
jns 0x1401b9d67
jmp 0x1401b9d3d
mov rcx, rdi
call fcn.1401b9a08
mov rax, qword [rsp + 0xa0]
and qword [rax], 0
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1401bce74
Capabilities:
Reference sql statements

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, 0x30
lea rdi, [rcx + 0x78]
or ebp, 0xffffffff
mov rbx, qword [rdi]
xor r14d, r14d
mov r15, r9
mov r12d, r8d
mov r13, rdx
mov rsi, rcx
test rbx, rbx
jne 0x1401bced6
mov rdx, qword [rcx]
lea rcx, str.SELECT_pgno_FROM__q._q_idx_WHERE_segid__AND_term___ORDER_BY_term_ASC_LIMIT_1
mov r8, qword [rdx + 0x10]
mov rdx, qword [rdx + 8]
call fcn.14018233c
mov r8, rax
mov rdx, rdi
mov rcx, rsi
call fcn.1401b77b8
mov rbx, qword [rdi]
mov edi, 2
test rbx, rbx
je 0x1401bcf46
movsxd r8, dword [r15]
lea edx, [rdi - 1]
mov rcx, rbx
call fcn.140184150
and qword [rsp + 0x20], r14
mov r9d, r12d
mov r8, r13
mov edx, edi
mov rcx, rbx
call fcn.140184054
mov rcx, rbx
call fcn.140184e1c
cmp eax, 0x64
jne 0x1401bcf27
xor edx, edx
mov rcx, rbx
call fcn.140185008
mov rbp, rax
mov r14, rax
sar rbp, 1
and r14d, 1
mov rcx, rbx
call fcn.140185248
mov edx, edi
mov dword [rsi + 0x3c], eax
mov rcx, rbx
call fcn.1401841d8
cmp dword [rsi + 0x3c], 0
jne 0x1401bd02a
mov rdi, qword [rsp + 0x80]
xor edx, edx
mov rcx, rdi
mov r8d, 0x80
call sub.VCRUNTIME140.dll_memset
or dword [rdi + 8], 1
mov qword [rdi], r15
test ebp, ebp
js 0x1401bcfaa
lea eax, [rbp - 1]
mov rdx, rdi
mov rcx, rsi
mov dword [rdi + 0xc], eax
call fcn.1401bd048
test byte [rdi + 8], 2
je 0x1401bcf8d
lea rax, [0x1401bd2e0]
mov qword [rdi + 0x30], rax
jmp 0x1401bcfaa
mov rax, qword [rsi]
lea rcx, [0x1401bca84]
lea rdx, [0x1401bd0ec]
cmp dword [rax + 0x60], 1
cmove rcx, rdx
mov qword [rdi + 0x30], rcx
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x1401bd02a
mov rax, qword [rcx]
lea rdx, [rsp + 0x60]
movsxd rbx, dword [rcx + 0xc]
and dword [rsp + 0x60], 0
mov dword [rdi + 0x40], ebx
lea rcx, [rax + rbx]
call fcn.1401fa1dc
add eax, ebx
xor r8d, r8d
mov dword [rdi + 0x40], eax
mov rdx, rdi
movsxd rax, dword [rsp + 0x60]
mov rcx, rsi
mov qword [rdi + 0x20], rax
call fcn.1401bc9ac
mov rdx, rdi
mov rcx, rsi
call fcn.1401bc870
test r14d, r14d
je 0x1401bd02a
mov edx, dword [rdi + 8]
mov r9d, dword [rdi + 0x38]
and edx, 2
cmp r9d, dword [rdi + 0xc]
jne 0x1401bd018
mov rax, qword [rdi + 0x10]
mov ecx, dword [rax + 0xc]
cmp dword [rdi + 0x44], ecx
jl 0x1401bd02a
mov rax, qword [rdi]
mov rcx, rsi
mov r8d, dword [rax]
call fcn.1401b149c
mov qword [rdi + 0x58], rax
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1401bd364
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor r12d, r12d
mov rsi, rcx
mov rcx, qword [rdx + 0x58]
mov rbx, rdx
mov edi, r12d
mov r14d, r12d
lea edx, [r12 + 4]
test rcx, rcx
je 0x1401bd3c9
mov rax, qword [rsi]
cmp dword [rax + 0x88], edx
jne 0x1401bd3c9
movsxd r14, dword [rcx + 0x1c]
mov rcx, rsi
mov rax, qword [rbx]
movsxd rdx, dword [rax]
shl rdx, 0x25
add rdx, r14
call fcn.1401b899c
mov rdi, rax
jmp 0x1401bd492
mov ebp, dword [rbx + 0xc]
mov r8, qword [rbx + 0x10]
cmp dword [rbx + 0x38], ebp
jne 0x1401bd3d8
mov edx, dword [rbx + 0x3c]
mov r10, qword [r8]
lea eax, [rdx + 9]
movsxd r9, eax
movsxd rcx, edx
mov al, byte [r10 + rcx]
inc edx
inc rcx
test al, al
jns 0x1401bd3f6
cmp rcx, r9
jl 0x1401bd3e4
movsxd rax, edx
mov qword [rbx + 0x20], rax
mov eax, dword [r8 + 0xc]
cmp dword [rbx + 0x44], eax
jl 0x1401bd502
mov r15, qword [rbx]
inc ebp
cmp dword [rsi + 0x3c], r12d
jne 0x1401bd502
cmp ebp, dword [r15 + 8]
jg 0x1401bd492
movsxd rdx, dword [r15]
mov rcx, rsi
shl rdx, 0x25
movsxd rax, ebp
add rdx, rax
call fcn.1401b899c
mov r9, rax
test rax, rax
je 0x1401bd48a
mov r8, qword [rax]
mov r13d, dword [rax + 0xc]
mov eax, dword [rax + 8]
mov dword [rsp + 0x58], eax
mov eax, 0x100
movzx r12d, byte [r8]
movzx ecx, byte [r8 + 1]
imul r12d, eax
add r12w, cx
je 0x1401bd46b
mov rax, r9
mov r9, rdi
mov rdi, rax
mov rcx, r9
call fcn.1401825f0
test r12w, r12w
mov eax, ebp
cmove eax, r14d
mov r14d, eax
cmp r13d, dword [rsp + 0x58]
jl 0x1401bd492
xor r12d, r12d
inc ebp
cmp dword [rsi + 0x3c], r12d
je 0x1401bd419
test rdi, rdi
je 0x1401bd502
mov rcx, qword [rbx + 0x10]
call fcn.1401825f0
mov qword [rbx + 0x10], rdi
mov dword [rbx + 0xc], r14d
mov r8, qword [rdi]
movzx ebp, byte [r8]
movzx eax, byte [r8 + 1]
shl ebp, 8
add ebp, eax
cmp ebp, dword [rdi + 0xc]
jle 0x1401bd4c7
mov dword [rsi + 0x3c], 0x10b
jmp 0x1401bd50d
mov ecx, ebp
lea rdx, [rbx + 0x70]
add rcx, r8
call fcn.1401fa020
movzx eax, al
add eax, ebp
mov qword [rbx + 0x20], rax
mov eax, dword [rdi + 8]
cmp dword [rdi + 0xc], eax
jl 0x1401bd4ea
inc eax
jmp 0x1401bd4ff
movsxd rcx, dword [rdi + 0xc]
lea rdx, [rsp + 0x58]
add rcx, qword [rdi]
call fcn.1401fa1dc
mov eax, dword [rsp + 0x58]
mov dword [rbx + 0x44], eax
mov rdx, rbx
mov rcx, rsi
call fcn.1401bd52c
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret