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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov eax, 0x1078
call fcn.1401b7370
sub rsp, rax
movaps xmmword [rsp + 0x1060], xmm6
mov rsi, rdx
mov rdi, rcx
lea rbx, [rsp + 0x60]
mov r8d, 0x1000
mov rcx, rbx
xor edx, edx
call sub.msvcrt.dll_memset
mov dword [rsp + 0x34], 0
xorps xmm6, xmm6
movaps xmmword [rsp + 0x40], xmm6
mov qword [rsp + 0x50], 0
lea r13, [rsp + 0x34]
mov qword [rsp + 0x58], r13
lea rbp, case.0x1401783e3.66
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
mov r8d, 0x1000
call sub.kernel32.dll_ReadFileEx
test eax, eax
je 0x140183a45
lea rbx, [rsp + 0x40]
lea r14, [rsp + 0x60]
mov ecx, 0xffffffff
mov edx, 1
call sub.kernel32.dll_SleepEx
cmp dword [rsp + 0x34], 0
je 0x140183943
cmp dword [rsp + 0x38], 0
jne 0x140183a4a
mov r15d, dword [rsp + 0x3c]
test r15, r15
je 0x140183a4a
cmp r15d, 0x1000
ja 0x140183a8a
xor r12d, r12d
nop word cs:[rax + rax]
cmp r12, r15
ja 0x140183a76
lea rdx, [rsp + r12]
add rdx, 0x60
mov r8d, r15d
sub r8d, r12d
mov dword [rsp + 0x34], 0
movaps xmmword [rsp + 0x40], xmm6
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x20], rbp
mov rcx, rsi
mov r9, rbx
call sub.kernel32.dll_WriteFileEx
test eax, eax
je 0x140183a45
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call sub.kernel32.dll_SleepEx
cmp dword [rsp + 0x34], 0
je 0x1401839e0
cmp dword [rsp + 0x38], 0
jne 0x140183a4a
mov eax, dword [rsp + 0x3c]
add r12, rax
cmp r12, r15
jne 0x140183990
mov dword [rsp + 0x34], 0
movaps xmmword [rsp + 0x40], xmm6
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x20], rbp
mov rcx, rdi
mov rdx, r14
mov r8d, 0x1000
mov r9, rbx
call sub.kernel32.dll_ReadFileEx
test eax, eax
jne 0x140183943
call sub.kernel32.dll_GetLastError
mov rcx, rdi
call sub.kernel32.dll_CloseHandle
mov rcx, rsi
call sub.kernel32.dll_CloseHandle
movaps xmm6, xmmword [rsp + 0x1060]
add rsp, 0x1078
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, r12
mov rdx, r15
call fcn.140055020
jmp 0x140183a9e
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov rcx, r15
call fcn.140050440
ud2

Function at 0x140183ad0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
sub rsp, 0x80
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
mov edx, 0x10
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x140183b06
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
add rsp, 0x80
pop rsi
ret
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x40], rax
lea rax, [fcn.1401743a0]
mov qword [rsp + 0x48], rax
lea rax, [0x14031c740]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 1
mov qword [rsp + 0x70], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rsp + 0x50]
call fcn.14004f100
ud2
Function at 0x140185d40
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rdi, rdx
cmp qword [rdx], 0
jne 0x140185e45
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx + 8]
test rax, rax
jne 0x140185d78
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x140185e2e
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x140185e10
sub rax, rdx
add rdx, qword [rbx]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x30], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x30]
mov r8d, eax
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x140185dcd
mov eax, dword [rsp + 0x30]
mov ecx, 2
test rax, rax
jne 0x140185de9
jmp 0x140185dde
call sub.kernel32.dll_GetLastError
cmp eax, 0x3e5
je 0x140185de4
cmp eax, 0x6d
jne 0x140185e00
mov byte [rsi + 1], 0
jmp 0x140185df4
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 0x140185df6
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.140159ec0
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
jmp 0x140185d85
mov r8d, 0x10
mov rcx, rbx
call fcn.140159ec0
mov rax, qword [rbx + 8]
jmp 0x140185d78
mov qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140185e60
ud2
Function at 0x14018baf0
Capabilities:
Delete file

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.1401572f0
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
test rax, rax
je 0x14018bb91
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x20]
mov r8b, 1
call fcn.140173030
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
test rdi, rdi
je 0x14018bb91
mov rcx, rdi
call sub.kernel32.dll_DeleteFileW
test eax, eax
je 0x14018bb6d
test rsi, rsi
je 0x14018bb69
mov edx, 2
mov rcx, rdi
call fcn.14002a3e0
xor esi, esi
jmp 0x14018bb91
call sub.kernel32.dll_GetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x14018bb8e
mov edx, 2
mov rcx, rdi
call fcn.14002a3e0
mov rsi, rbx
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret

Function at 0x14018be70
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x30
mov ecx, dword [0x1402651f8]
test ecx, ecx
je 0x14018bf69
dec ecx
call fcn.1401b7924
cmp rax, 1
jbe 0x14018bea0
cmp qword [rax + 8], 0
je 0x14018bea0
add rax, 0x10
jmp 0x14018bf63
mov ecx, dword [0x1402651f8]
test ecx, ecx
je 0x14018bf7c
dec ecx
call fcn.1401b7924
cmp rax, 1
je 0x14018bf43
mov rsi, rax
test rax, rax
jne 0x14018bf13
movzx eax, byte [0x14038d300]
mov ecx, 0x20
mov edx, 8
call fcn.14002a350
test rax, rax
je 0x14018bfa2
mov rsi, rax
lea rax, [0x1402651e0]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1402651f8]
test ecx, ecx
je 0x14018bf8f
dec ecx
mov rdx, rsi
call fcn.1401b792c
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x14018bf47
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x14018bf4f
xor eax, eax
jmp 0x14018bf63
call fcn.140183ad0
mov rcx, rax
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], rcx
mov qword [rsi + 0x18], rdx
add rsp, 0x30
pop rsi
ret
lea rcx, [0x1402651e0]
call fcn.1401552d0
mov ecx, eax
jmp 0x14018be85
lea rcx, [0x1402651e0]
call fcn.1401552d0
mov ecx, eax
jmp 0x14018beb0
lea rcx, [0x1402651e0]
call fcn.1401552d0
mov ecx, eax
jmp 0x14018bf0b
mov ecx, 8
mov edx, 0x20
call fcn.14004a310
ud2

Function at 0x14018dad2
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov rax, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x14018daeb
dec ecx
add rsp, 0x28
jmp fcn.1401b7924
mov rcx, rax
call fcn.1401552d0
mov ecx, eax
jmp 0x14018dae2

Function at 0x140193041
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 0x140193048
test al, 1
je 0x140193067
test al, 2
jne 0x14019307c
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x1403202f8]
mov edx, 0x23
jmp 0x14019308f
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x1403202b8]
mov edx, 0x25
call fcn.140050c60
ud2
Function at 0x1401939e5
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, edx
call fcn.14019257d
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 sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x140193a20
xor eax, eax
jmp 0x140193a2d
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rbx
ret
Function at 0x140193c88
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 rbp, r9
mov rbx, r8
mov r14, rdx
mov qword [rsp + 0x28], rcx
mov rax, qword [rsp + 0xc0]
lea rdi, [rsp + 0x3a]
lea r15, [rdx + 0x18]
xor ecx, ecx
cmp qword [rdx + 0x18], 0xffffffffffffffff
cmove r15, rcx
mov r12d, 0x7fffffff
cmp rax, r12
cmovb r12, rax
lea r13, [rsp + 0x52]
lea rsi, [rsp + 0x30]
mov qword [rsp + 0x40], r15
mov rdx, qword [r14 + 0x10]
mov rcx, rsi
mov r8, rbx
call fcn.1401939dd
mov al, byte [rsp + 0x39]
cmp al, 3
je 0x140193df7
mov rcx, qword [rsp + 0x30]
cmp al, 2
je 0x140193e05
mov dl, byte [rsp + 0x38]
movzx r8d, word [rdi + 4]
mov word [r13 + 4], r8w
mov r8d, dword [rdi]
mov dword [r13], r8d
mov qword [rsp + 0x48], rcx
mov byte [rsp + 0x50], dl
mov byte [rsp + 0x51], al
mov rcx, r15
lea rdx, str._usr_local_cargo_registry_src_index.crates.io_6f17d22bba15001f_tokio_1.33.0_src_io_poll_evented.rs
call fcn.14019259b
mov rcx, qword [r15]
mov rdx, rbp
mov r8d, r12d
xor r9d, r9d
call sub.ws2_32.dll_send
cmp eax, 0xffffffff
jne 0x140193e17
call sub.ws2_32.dll_WSAGetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rcx, rsi
call fcn.1400913a6
cmp al, 0xd
jne 0x140193dc7
mov rax, qword [r15 + 8]
test rax, rax
je 0x140193dc7
mov rcx, qword [rax]
mov rdx, qword [rax + 8]
lock inc qword [rdx]
jle 0x140193e49
mov r15, r14
mov r14, rbx
add rcx, 0x10
mov r8, qword [rax + 0x10]
mov r9b, byte [rax + 0x18]
call fcn.140091281
mov rbx, rax
xor ecx, ecx
call fcn.140153684
test rbx, rbx
je 0x140193dbc
mov ecx, 1
mov rdx, rsi
call fcn.1400913f0
mov rsi, rbx
mov rbx, r14
mov r14, r15
mov r15, qword [rsp + 0x40]
mov rcx, rsi
call fcn.14000af57
cmp al, 0xd
jne 0x140193e28
mov qword [rsp + 0x30], rsi
mov rcx, r14
lea rdx, [rsp + 0x48]
call fcn.1401937a3
lea rsi, [rsp + 0x30]
mov rcx, rsi
call fcn.14018daf7
jmp 0x140193cde
mov rax, qword [rsp + 0x28]
mov qword [rax], 2
jmp 0x140193e38
mov rax, qword [rsp + 0x28]
mov qword [rax], 1
mov qword [rax + 8], rcx
jmp 0x140193e38
cdqe
mov rcx, qword [rsp + 0x28]
and qword [rcx], 0
mov qword [rcx + 8], rax
jmp 0x140193e38
mov rax, qword [rsp + 0x28]
mov qword [rax], 1
mov qword [rax + 8], rsi
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
Function at 0x14019d569
Capabilities:
Get session user name

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
lea rdx, [rsp + 0x24]
and dword [rdx], 0
xor ecx, ecx
call sub.ADVAPI32.dll_GetUserNameW
test eax, eax
jne 0x14019d60d
lea r14, [rsp + 0x24]
mov ecx, dword [r14]
call fcn.14019d365
mov rbx, rax
mov rdi, rdx
mov dword [r14], edi
mov rcx, rax
mov rdx, r14
call sub.ADVAPI32.dll_GetUserNameW
test eax, eax
je 0x14019d5cd
mov eax, dword [rsp + 0x24]
lea r8, [rax - 1]
test rax, rax
cmove r8, rax
mov rcx, rsi
mov rdx, rbx
call fcn.140158840
jmp 0x14019d5f7
mov ecx, 7
call fcn.14019d3bb
mov dword [rax], 0x6e6b6e75
mov dword [rax + 3], 0x6e776f6e
mov qword [rsi], rax
mov qword [rsi + 8], rdx
mov qword [rsi + 0x10], 7
mov byte [rsi + 0x18], 1
mov rcx, rbx
mov rdx, rdi
call fcn.14019d415
nop
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x140345427]
lea r8, str._T4_
mov edx, 0x19
call fcn.140050c60
ud2

Function at 0x1401b90d0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.1401b9e70
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.1401b9e70
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x1401b9140
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14038d384]
mov rbx, rcx
test esi, esi
jle 0x1401b9270
mov rax, qword [0x14038d388]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1401b918b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1401b9215
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1401b9170
mov rcx, rbx
call fcn.1401b9b90
mov rdi, rax
test rax, rax
je 0x1401b9292
mov rax, qword [0x14038d388]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1401b9cd0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14038d388]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1401b9277
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1401b920e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1401b9220
add dword [0x14038d384], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14038d388]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1401b920e
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1401b90d0
nop dword [rax]
xor esi, esi
jmp 0x1401b9198
mov rax, qword [0x14038d388]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1401b90d0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1401b90d0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1401b9800
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14038d3e0]
mov rcx, r12
call qword [sym.imp.kernel32.dll_EnterCriticalSection]
mov rbx, qword [0x14038d3c0]
test rbx, rbx
je 0x1401b985c
mov rbp, qword [sym.imp.kernel32.dll_TlsGetValue]
mov rdi, qword [sym.imp.kernel32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1401b9853
test rsi, rsi
je 0x1401b9853
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1401b9838
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.kernel32.dll_LeaveCriticalSection]
Function at 0x1401b9b90
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140355b90]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1401b9bb0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1401b9bb8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1401b9bb0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1401b9c0d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1401b9c04
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1401b9bb0
add rax, 0x28
cmp rax, r9
jne 0x1401b9bf0
xor eax, eax
ret

Function at 0x1401b9c10
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140355b90]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1401b9c2f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1401b9c38
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1401b9c2f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1401b9cd0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140355b90]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1401b9cef
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1401b9cf8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x1401bf2d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r13
push r12
push rbp
push rsi
push rbx
sub rsp, 0x30
mov r13, qword [rsp + 0x80]
mov rbp, rdx
mov rsi, rcx
mov rdx, r8
mov r8d, r9d
test rbp, rbp
je 0x1401bf36f
mov r12, qword [rcx + 0x80]
mov qword [rsp + 0x28], rdx
mov rcx, r12
call fcn.140238f60
mov rbx, rax
mov eax, 7
test rbx, rbx
je 0x1401bf382
mov rdx, qword [rsp + 0x28]
mov r9, rbx
mov r8, rbp
mov rcx, r12
call fcn.1402420c0
mov eax, dword [rbx + 0x1c]
test ax, ax
je 0x1401bf338
cmp word [r12 + 8], ax
jae 0x1401bf344
mov ecx, 0x10e85
call fcn.14020d050
jmp 0x1401bf352
mov r8, r13
mov rdx, rbx
mov rcx, rsi
call fcn.140208b10
mov rdx, qword [rsi + 0x80]
mov dword [rsp + 0x28], eax
mov rcx, qword [rdx + 0x10]
mov rdx, rbx
call fcn.14020e680
mov eax, dword [rsp + 0x28]
jmp 0x1401bf382
mov r9, r13
add rsp, 0x30
pop rbx
pop rsi
pop rbp
pop r12
pop r13
jmp fcn.14020ae10
add rsp, 0x30
pop rbx
pop rsi
pop rbp
pop r12
pop r13
ret
Function at 0x1401e3a20
Capabilities:
Reference sql statements

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
xor edi, edi
movsxd r12, edx
mov rbp, rcx
mov r14, r8
mov r13, r9
cmp qword [rcx + r12*8 + 0x28], 0
mov r15, r12
jne 0x1401e3c08
lea rdi, [rsp + 0x38]
lea rsi, str.SELECT__s_FROM__s_T_WHERE_T._Q_____AND_T._Q_____ORDER_BY_T._Q_ASC
mov ecx, 0x16
rep movsd dword [rdi], dword [rsi]
mov rsi, qword [rbp]
cmp r12d, 4
jg 0x1401e3aa4
cmp r12d, 2
jg 0x1401e3b0a
je 0x1401e3ade
test r12d, r12d
js 0x1401e3b7b
mov r9, qword [rsi + 0x50]
mov r8, qword [rsi + 0x48]
mov rdx, qword [rsi + 0x60]
mov rcx, qword [rsp + r12*8 + 0x38]
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], r9
call fcn.14024d770
jmp 0x1401e3af6
cmp r12d, 0xa
jne 0x1401e3b7b
mov rdx, qword [rsi + 0x60]
mov r8, qword [rsi + 0x48]
lea rcx, str.SELECT__s_FROM__s_AS_T
call fcn.14024d770
mov r9d, 5
mov rbx, rax
test rax, rax
jne 0x1401e3bac
mov edi, 7
jmp 0x1401e3c08
mov rdx, qword [rsi + 0x60]
mov r9, qword [rsi + 0x50]
lea rcx, str.SELECT__s_FROM__s_T_WHERE_T._Q_
mov r8, qword [rsi + 0x48]
call fcn.14024d770
mov rbx, rax
mov r9d, 1
test rax, rax
jne 0x1401e3bac
jmp 0x1401e3ad4
mov edi, dword [rsi + 0x18]
lea ecx, [rdi + rdi + 3]
lea ebx, [rdi + 1]
movsxd rcx, ecx
call fcn.14024d6d0
mov r15, rax
xor eax, eax
test r15, r15
je 0x1401e3ad4
cmp ebx, eax
jle 0x1401e3b3a
mov byte [r15 + rax*2], 0x3f
mov byte [r15 + rax*2 + 1], 0x2c
inc rax
jmp 0x1401e3b26
xor eax, eax
add rbx, rbx
inc edi
mov rcx, qword [rsp + r12*8 + 0x38]
cmovl rbx, rax
mov r9, r15
mov byte [r15 + rbx - 1], 0
mov rdx, qword [rsi + 8]
mov r8, qword [rsi + 0x10]
call fcn.14024d770
mov rcx, r15
mov rbx, rax
call fcn.14024c7d0
mov r9d, 5
test rbx, rbx
jne 0x1401e3bac
jmp 0x1401e3ad4
mov rdx, qword [rsi + 8]
mov rcx, qword [rsp + r12*8 + 0x38]
mov r8, qword [rsi + 0x10]
call fcn.14024d770
mov rbx, rax
test rax, rax
je 0x1401e3ad4
xor r9d, r9d
cmp r15d, 2
setg r9b
lea r9d, [r9*4 + 1]
mov rax, qword [rbp]
or r8d, 0xffffffff
mov rdx, rbx
inc dword [rax + 0x78]
xor eax, eax
mov qword [rsp + 0x28], rax
lea rax, [rbp + r12*8 + 0x28]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsi]
call fcn.14024dba0
mov rcx, rbx
mov edi, eax
mov rax, qword [rbp]
dec dword [rax + 0x78]
call fcn.14024c7d0
test edi, edi
je 0x1401e3c08
test r13, r13
je 0x1401e3c08
mov rcx, qword [rsi]
call fcn.14024bff0
lea rcx, [0x14034be33]
mov rdx, rax
call fcn.14024d770
mov qword [r13], rax
mov rcx, qword [rbp + r12*8 + 0x28]
mov qword [r14], rcx
call fcn.14024e1c0
mov eax, edi
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1401f2fa0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov ebp, dword [rcx + 0x80]
movsxd rdx, edx
mov rbx, rcx
mov rcx, qword [rcx + 0x78]
mov rsi, rdx
imul rdx, rdx, 0x38
call fcn.14022f2e0
mov r8, rax
test rax, rax
jne 0x1401f2fd6
mov eax, 7
jmp 0x1401f3072
movsxd rdi, ebp
mov ecx, esi
imul rdi, rdi, 0x38
sub ecx, ebp
movsxd rcx, ecx
imul rcx, rcx, 0x38
lea rdx, [rax + rdi]
xor eax, eax
mov rdi, rdx
rep stosb byte [rdi], al
mov qword [rbx + 0x78], r8
mov rdi, rdx
cmp ebp, esi
jge 0x1401f3070
mov rax, qword [rbx + 0x50]
mov ecx, dword [rbx + 0x20]
cmp qword [rax], 0
mov dword [rdi + 0x18], ecx
je 0x1401f3017
mov rax, qword [rbx + 0x60]
test rax, rax
jg 0x1401f301d
mov eax, dword [rbx + 0xb8]
mov qword [rdi], rax
mov eax, dword [rbx + 0x3c]
mov dword [rdi + 0x1c], eax
call fcn.140207450
mov dword [rdi + 0x20], 1
mov qword [rdi + 0x10], rax
test rax, rax
je 0x1401f2fcc
mov rax, qword [rbx + 0x128]
test rax, rax
je 0x1401f3062
mov edx, dword [rax + 0x58]
mov dword [rdi + 0x24], edx
mov edx, dword [rax + 0x60]
mov dword [rdi + 0x28], edx
mov edx, dword [rax + 0x64]
mov dword [rdi + 0x2c], edx
mov eax, dword [rax + 0x88]
mov dword [rdi + 0x30], eax
inc ebp
add rdi, 0x38
mov dword [rbx + 0x80], ebp
jmp 0x1401f2ffa
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp dword [rcx + 0x80], edx
jge 0x1402269b3
cmp byte [rcx + 0xa], 0
je 0x1402269b3
jmp 0x1401f2fa0
xor eax, eax
ret

Function at 0x1401fa980
Capabilities:
Reference sql statements

Disassembly:
push r12
push rbp
push rdi
push rsi
sub rsp, 0x58
mov r12d, dword [rsp + 0xa0]
mov byte [rcx + 0x1c], 1
mov ebp, r8d
mov rsi, rdx
mov rdi, r9
mov qword [rsp + 0x28], r9
mov r9, rdx
mov dword [rsp + 0x20], r8d
mov r8, rdx
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 dword [rsp + 0x30], r12d
mov qword [rsp + 0x48], rcx
call fcn.140225d90
test ebp, ebp
mov rcx, qword [rsp + 0x48]
jne 0x1401fa9f0
mov r9, rdi
mov r8, rsi
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 dword [rsp + 0xa0], r12d
add rsp, 0x58
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.140225d90
add rsp, 0x58
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x1401fde20
Capabilities:
Reference sql statements

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rax, str.SELECT_parentnode_FROM__Q._q_parent_WHERE_nodeno_1
movsxd r12, edx
mov qword [rsp + 0x40], rax
mov rbx, rcx
mov rsi, r8
lea rax, str.SELECT_nodeno_FROM__Q._q_rowid_WHERE_rowid_1
cmp qword [rcx + r12*8 + 0x28], 0
mov rbp, r12
mov rdi, r9
mov qword [rsp + 0x48], rax
lea r13, [r12 + 4]
jne 0x1401fde77
mov rdx, qword [rsp + r12*8 + 0x40]
mov r9, qword [rcx + 0x10]
mov r8, qword [rcx + 8]
call fcn.1401fe270
mov qword [rbx + r13*8 + 8], rax
cmp dword [rbx + 0x40], 0
jne 0x1401fdf30
mov r12, qword [rbx + r12*8 + 0x28]
mov r8, rsi
mov edx, 1
mov rcx, r12
call fcn.140249760
mov rcx, r12
call fcn.14024eef0
cmp eax, 0x65
jne 0x1401fded3
test ebp, ebp
lea rdx, str.__rowid
mov r9, rdi
mov r8, rsi
lea rax, str.__parent
mov rcx, rbx
cmovne rax, rdx
lea rdx, str.Mapping___lld_____lld__missing_from__s_table
mov qword [rsp + 0x20], rax
call fcn.1401fdd20
jmp 0x1401fdf1f
cmp eax, 0x64
jne 0x1401fdf1f
xor edx, edx
mov rcx, r12
call fcn.14024a570
mov r9, rax
cmp rdi, rax
je 0x1401fdf1f
lea rdx, str.__rowid
test ebp, ebp
mov r8, rsi
mov rcx, rbx
lea rax, str.__parent
mov qword [rsp + 0x30], rdi
cmovne rax, rdx
mov qword [rsp + 0x28], rsi
lea rdx, str.Found___lld_____lld__in__s_table__expected___lld_____lld_
mov qword [rsp + 0x20], rax
call fcn.1401fdd20
mov rcx, r12
call fcn.14024e1c0
cmp dword [rbx + 0x40], 0
jne 0x1401fdf30
mov dword [rbx + 0x40], eax
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret