joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005866c
Capabilities:
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, 0x30
movsxd r15, ecx
lea r9, [0x1400f1ab0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400586c3
cmp word [rdx], r13w
jne 0x1400586c3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400586c8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400587ed
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14005880e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140058701
mov rdx, r9
mov word [rbx], cx
jmp 0x140058728
cmp r9, r8
jae 0x140058738
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1400586e2
jmp 0x1400587ed
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400587e2
cmp dword [rsp + 0x80], esi
je 0x1400587e2
lea r8, [0x1400f1ab0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400587ba
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14005878a
mov word [rbx], r13w
jmp 0x1400587ea
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140058797
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400587ea
cmp word [rsp + 0x70], r13w
jne 0x1400587c7
cmp rbx, r14
je 0x140058784
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14005c080
cmp word [rsp + 0x70], r13w
je 0x1400587ed
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400f1ab0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400587e7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400587ed
Function at 0x14005a428
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14005a43e
mov al, 1
jmp 0x14005a49e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14005a44f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14005a49c
mov ecx, dword [rcx + 0x18]
nop
call fcn.14005f90c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14005a49c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14005a49c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14005a49c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14005a49e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14005bb90
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140040550
sub rsp, rax
mov rax, qword [0x1400ee020]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14005750c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14005bbdf
mov rax, rbp
jmp 0x14005bce7
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xf1ab0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14005c078
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xf1ab0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14005bce3
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14005bce3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14005c078
test rax, rax
js 0x14005bce3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14005bce3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14005bcd5
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14005bcd5
cmp byte [rcx], 0xd
jne 0x14005bcbb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14005bcca
cmp byte [rcx + 1], 0xa
jne 0x14005bcca
inc rcx
jmp 0x14005bcca
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xee440]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14005bc9d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14005bce7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14003f9c0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14005eef0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14005ef77
mov rsi, rbx
cmp word [rax], bp
je 0x14005ef36
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14005ef20
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14005ef1c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140056100
mov rdi, rax
test rax, rax
je 0x14005ef64
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140041c90
mov rbp, rdi
xor ecx, ecx
call fcn.1400559ec
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140061e60
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140055da0
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140061f01
cmp ebx, dword [rsp + 0x30]
je 0x140061efa
test esi, esi
je 0x140061efa
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140061ed5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140061ee2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140061ebf
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140061ee6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140061f03
mov eax, 1
jmp 0x140061f03
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1407d7058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1407d71df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1407d7089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407d706f
add dl, dl
jne 0x1407d7096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407d70f6
xor eax, eax
add dl, dl
jne 0x1407d70a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407d71ad
add dl, dl
jne 0x1407d70b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407d70c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407d70d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407d70dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1407d70ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1407d707e
mov eax, 1
add dl, dl
jne 0x1407d7106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407d7113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407d70fb
sub eax, ebx
mov ebx, 1
jne 0x1407d714c
mov ecx, 1
add dl, dl
jne 0x1407d712e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407d713b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407d7123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407d707e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1407d7168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407d7175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407d715d
cmp eax, 0x7d00
jae 0x1407d719b
cmp eax, 0x500
jb 0x1407d7196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407d707e
cmp eax, 0x7f
ja 0x1407d719e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407d707e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1407d71d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1407d707e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1406e2058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1406e21df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1406e2089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406e206f
add dl, dl
jne 0x1406e2096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406e20f6
xor eax, eax
add dl, dl
jne 0x1406e20a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406e21ad
add dl, dl
jne 0x1406e20b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406e20c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406e20d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406e20dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406e20ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1406e207e
mov eax, 1
add dl, dl
jne 0x1406e2106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406e2113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406e20fb
sub eax, ebx
mov ebx, 1
jne 0x1406e214c
mov ecx, 1
add dl, dl
jne 0x1406e212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406e213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406e2123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406e207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1406e2168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406e2175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406e215d
cmp eax, 0x7d00
jae 0x1406e219b
cmp eax, 0x500
jb 0x1406e2196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406e207e
cmp eax, 0x7f
ja 0x1406e219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406e207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406e21d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1406e207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140005740
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140005774
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140005760
ret
Function at 0x14000ace0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x14000adac
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14000adac
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x14000adc5
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x14000ad9c
cmp byte [rax], 0x5c
jne 0x14000ad96
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x14000ad96
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14000ad82
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x14000ad93
test r8b, 0x10
jne 0x14000ad96
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x14000ad96
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.140007270
test edi, edi
jne 0x14000ad00
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.140007260
int3
Function at 0x1400112fc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140011346
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140011346
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140011346
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140011346
cmp dword [rcx + 0x84], 0xe
jbe 0x140011346
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140011348
xor al, al
add rsp, 0x28
ret
Function at 0x140002b50
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x20], 0x8000
mov r8d, 0x8000
xor edx, edx
lea rcx, [0x1401b7d40]
call fcn.140159140
mov r8d, dword [rsp + 0x20]
lea rdx, [0x1401b7d40]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x140002ba1
mov eax, dword [rsp + 0x20]
cmp dword [rsp + 0x24], eax
jbe 0x140002ba7
xor eax, eax
jmp 0x140002bae
lea rax, [0x1401b7d40]
add rsp, 0x38
ret
Function at 0x14000dce0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea rdx, [0x14019fd64]
mov rcx, qword [rsp + 0x68]
call fcn.14015c570
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14000dd11
jmp 0x14000de37
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x28]
call fcn.14015cda4
mov rcx, qword [rsp + 0x28]
call fcn.14015d2a0
cdqe
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x28]
call fcn.14015df90
mov rcx, qword [rsp + 0x60]
call sym.sqlite3.exe_sqlite3_context_db_handle
mov qword [rsp + 0x48], rax
mov r8d, 0xffffffff
xor edx, edx
mov rcx, qword [rsp + 0x48]
call sym.sqlite3.exe_sqlite3_limit
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
cmp qword [rsp + 0x30], rax
jle 0x14000dd8d
mov edx, 0x12
mov rcx, qword [rsp + 0x60]
call sym.sqlite3.exe_sqlite3_result_error_code
mov rcx, qword [rsp + 0x28]
call fcn.14015be10
jmp 0x14000de37
cmp qword [rsp + 0x30], 0
je 0x14000dda1
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x40], rax
jmp 0x14000ddaa
mov qword [rsp + 0x40], 1
mov rcx, qword [rsp + 0x40]
call sym.sqlite3.exe_sqlite3_malloc64
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x14000ddd7
mov rcx, qword [rsp + 0x60]
call sym.sqlite3.exe_sqlite3_result_error_nomem
mov rcx, qword [rsp + 0x28]
call fcn.14015be10
jmp 0x14000de37
mov r9, qword [rsp + 0x28]
mov r8, qword [rsp + 0x30]
mov edx, 1
mov rcx, qword [rsp + 0x38]
call fcn.14015cad4
cmp qword [rsp + 0x30], rax
jne 0x14000de14
lea r9, [sym.sqlite3.exe_sqlite3_free]
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call sym.sqlite3.exe_sqlite3_result_blob64
jmp 0x14000de2d
mov edx, 0xa
mov rcx, qword [rsp + 0x60]
call sym.sqlite3.exe_sqlite3_result_error_code
mov rcx, qword [rsp + 0x38]
call sym.sqlite3.exe_sqlite3_free
mov rcx, qword [rsp + 0x28]
call fcn.14015be10
add rsp, 0x58
ret
Function at 0x14000e180
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x1401b7098]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rdx, qword [rsp + 0x80]
lea rcx, [0x14019fd84]
call sym.sqlite3.exe_sqlite3_mprintf
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x24], 0
cmp qword [rsp + 0x28], 0
jne 0x14000e1ce
mov dword [rsp + 0x24], 7
jmp 0x14000e2a6
mov rcx, qword [rsp + 0x28]
call fcn.14015b930
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x20], 1
cmp dword [rsp + 0x24], 0
jne 0x14000e29c
jmp 0x14000e1fb
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
movsx eax, byte [rcx + rax]
cmp eax, 0x2f
je 0x14000e21a
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x20], eax
jge 0x14000e21a
jmp 0x14000e1f1
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x20], eax
jne 0x14000e226
jmp 0x14000e29c
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov byte [rcx + rax], 0
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
call fcn.14000e0e0
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x14000e266
mov rcx, qword [rsp + 0x28]
call fcn.1401697ec
test eax, eax
je 0x14000e264
mov dword [rsp + 0x24], 1
jmp 0x14000e27f
movzx eax, word [rsp + 0x3e]
and eax, 0xf000
cmp eax, 0x4000
je 0x14000e27f
mov dword [rsp + 0x24], 1
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov byte [rcx + rax], 0x2f
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
jmp 0x14000e1e4
mov rcx, qword [rsp + 0x28]
call sym.sqlite3.exe_sqlite3_free
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140157ff0
add rsp, 0x78
ret
Function at 0x140011410
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x30], 0
mov edx, 0x2060
lea rcx, [rsp + 0x30]
call fcn.140011be0
mov qword [rsp + 0x38], rax
cmp dword [rsp + 0x30], 0
jne 0x140011476
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x38]
mov dword [rax], 0x64
mov rax, qword [rsp + 0x38]
add rax, 0x18
mov rdx, rax
lea rcx, [0x1401a1630]
call sym.sqlite3.exe_sqlite3_open
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x1400114bc
mov rax, qword [rsp + 0x38]
add rax, 0x10
mov rdx, rax
lea rcx, [0x1401a1648]
call sym.sqlite3.exe_sqlite3_open
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x1400114bc
xor r9d, r9d
mov r8d, 1
mov edx, 0x3f0
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x10]
call sym.sqlite3.exe_sqlite3_db_config
cmp dword [rsp + 0x30], 0
jne 0x14001155a
mov qword [rsp + 0x40], 0
lea r9, str.SELECT_sql_FROM_sqlite_schema_WHERE_name_NOT_LIKE_sqlite____AND_sql_NOT_LIKE_CREATE_VIRTUAL___
mov r8, qword [rsp + 0x68]
lea rdx, [rsp + 0x40]
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 8]
call fcn.140012230
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x14001154b
mov rcx, qword [rsp + 0x40]
call sym.sqlite3.exe_sqlite3_step
cmp eax, 0x64
jne 0x14001154b
xor edx, edx
mov rcx, qword [rsp + 0x40]
call sym.sqlite3.exe_sqlite3_column_text
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x140011549
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x10]
call sym.sqlite3.exe_sqlite3_exec
mov dword [rsp + 0x30], eax
jmp 0x1400114f3
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.140012bd0
cmp dword [rsp + 0x30], 0
jne 0x140011574
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x38]
call fcn.140014a70
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x140011595
mov r8, qword [rsp + 0x38]
lea rdx, [0x140014450]
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x18]
call sym.sqlite3.exe_sqlite3_set_authorizer
cmp dword [rsp + 0x30], 0
je 0x1400115af
mov rcx, qword [rsp + 0x38]
call fcn.140011b30
mov qword [rsp + 0x38], 0
mov rax, qword [rsp + 0x38]
add rsp, 0x58
ret
Function at 0x1400151c0
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x20], 0
lea rax, str.SELECT_max_i.seqno__FROM___sqlite_schema_AS_s____pragma_index_list_s.name__AS_l____pragma_index_info_l.name__AS_i_WHERE_s.type__table
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x58]
mov dword [rax], 0
mov r9, qword [rsp + 0x30]
mov r8, qword [rsp + 0x60]
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
call fcn.1400121c0
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x140015243
mov rcx, qword [rsp + 0x28]
call sym.sqlite3.exe_sqlite3_step
cmp eax, 0x64
jne 0x140015243
xor edx, edx
mov rcx, qword [rsp + 0x28]
call sym.sqlite3.exe_sqlite3_column_int
inc eax
mov rcx, qword [rsp + 0x58]
mov dword [rcx], eax
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x20]
call fcn.140012bd0
mov eax, dword [rsp + 0x20]
add rsp, 0x48
ret
Function at 0x14001a270
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SAVEPOINT_selftest_init__nCREATE_TABLE_IF_NOT_EXISTS_selftest__n__tno_INTEGER_PRIMARY_KEY__n__op_TEXT__n__cmd_TEXT__n__ans_TEXT_n__CREATE_TEMP_TABLE___shell_self__op_cmd_ans___nINSERT_INTO___shell_self__rowid_op_cmd__n__VALUES_coalesce__SELECT__max_tno_100__10_FROM_selftest__10___n_________memo_Tests_generated_by___init___nINSERT_INTO___shell_self__n__SELECT_run__n____SELECT_hex_sha3_query_SELECT_type_name_tbl_name_sql_FROM_sqlite_schema_ORDER_BY_2_224____n____hex_sha3_query_SELECT_type_name_tbl_name_sql_FROM_sqlite_schema_ORDER_BY_2_224____nINSERT_INTO___shell_self__n__SELECT_run_____SELECT_hex_sha3_query_SELECT__FROM___________printf__w_name_____NOT_INDEXED_224____n____hex_sha3_query_printf_SELECT__FROM___w__NOT_INDEXED_name__224___n__FROM___n____SELECT_name_FROM_sqlite_schema_n_____WHERE_typetable_n_______AND_name__selftest_n_______AND_coalesce_rootpage_0__0_n____n_ORDER_BY_name__nINSERT_INTO___shell_self__n__VALUES_run_PRAGMA_integrity_check_ok___nINSERT_INTO_selftest_tno_op_cmd_ans___SELECT_rowid10_op_cmd_ans_FROM___shell_self___nDROP_TABLE___shell_self__
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
call sym.sqlite3.exe_sqlite3_exec
cmp qword [rsp + 0x30], 0
je 0x14001a2d6
mov ecx, 2
call fcn.14015bd04
mov r8, qword [rsp + 0x30]
lea rdx, str.SELFTEST_initialization_failure:__s_n
mov rcx, rax
call fcn.140001700
mov rcx, qword [rsp + 0x30]
call sym.sqlite3.exe_sqlite3_free
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, str.RELEASE_selftest_init
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
call sym.sqlite3.exe_sqlite3_exec
add rsp, 0x48
ret