joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140196570
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [rcx + 0x640]
lea rdx, [rsp + 0x30]
dec eax
mov rbx, rcx
mov r8d, 1
cmp dword [rcx + 0x644], eax
jne 0x14019659b
mov byte [rsp + 0x30], 0x86
jmp 0x1401965c6
mov byte [rsp + 0x30], 6
mov byte [rsp + 0x38], 0x80
call fcn.140196680
mov eax, dword [rbx + 0x640]
lea rdx, [rsp + 0x38]
dec eax
mov r8d, 1
mov dword [rbx + 0x644], eax
mov rcx, rbx
call fcn.140196680
mov ecx, dword [rbx + 0x640]
xor r8d, r8d
test ecx, ecx
je 0x140196604
nop dword [rax + rax]
mov edx, dword [rbx + 0x648]
add ecx, r8d
mov eax, r8d
inc r8d
xor rdx, rax
movzx eax, byte [rdx + rbx]
mov byte [rcx + rbx], al
mov ecx, dword [rbx + 0x640]
cmp r8d, ecx
jb 0x1401965e0
mov eax, ecx
add rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x140196ce0
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x14039e2e8]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbx, rcx
xor ebp, ebp
mov rcx, rdx
mov qword [rsp + 0x50], rbp
mov rdi, rdx
call fcn.1401ad140
mov esi, eax
test eax, eax
je 0x140196e39
mov rcx, qword [rbx]
lea r9, [0x1402eaf48]
mov qword [rsp + 0x40], rbp
lea r8, str.sqlite_parameters
mov qword [rsp + 0x38], rbp
lea rdx, str.TEMP
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
call fcn.1401aeff0
test eax, eax
jne 0x140196e39
mov rcx, qword [rbx]
lea r9, [rsp + 0x50]
lea r8d, [rbp - 1]
mov qword [rsp + 0x20], rbp
lea rdx, str.SELECT_value_FROM_temp.sqlite_parameters_WHERE_key_1
call fcn.1401bb160
test eax, eax
jne 0x140196e39
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140196e39
mov ebx, 1
cmp esi, ebx
jl 0x140196e34
nop dword [rax + rax]
mov edx, ebx
mov rcx, rdi
call fcn.1401ad150
test rax, rax
jne 0x140196dcb
mov r9d, ebx
lea r8, [0x1402eafa8]
lea rdx, [rsp + 0x58]
lea ecx, [rax + 0x1e]
call fcn.1401ba4c0
lea rax, [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov r9d, 0xffffffff
mov r8, rax
mov qword [rsp + 0x20], rbp
lea edx, [r9 + 2]
call fcn.1401ace40
mov rcx, qword [rsp + 0x50]
call fcn.1401ad290
cmp eax, 0x64
jne 0x140196e11
mov rcx, qword [rsp + 0x50]
xor edx, edx
call fcn.1401ad560
mov r8, rax
mov edx, ebx
mov rcx, rdi
call fcn.1401aced0
jmp 0x140196e1b
mov edx, ebx
mov rcx, rdi
call fcn.1401ace00
mov rcx, qword [rsp + 0x50]
call fcn.1401ad700
inc ebx
cmp ebx, esi
jle 0x140196da0
mov rcx, qword [rsp + 0x50]
call fcn.1401ad670
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1402654f0
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret

Function at 0x1401971d0
Capabilities:
Terminate process

Disassembly:
push rdi
sub rsp, 0x20
mov rdi, rdx
cmp r8d, ecx
jne 0x140197218
mov qword [rsp + 0x30], rbx
movsxd rbx, ecx
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, qword [rdi + rbx*8 - 8]
lea rdx, str._s:_Error:_missing_argument_to__s_n
mov r8, qword [rdi]
mov rcx, rax
call fcn.1401ab380
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov rbx, qword [rsp + 0x30]
movsxd rax, r8d
mov rax, qword [rdx + rax*8]
add rsp, 0x20
pop rdi
ret
Function at 0x140197280
Capabilities:
Reference sql statements

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov qword [rsp + 0x40], 0
mov rcx, qword [rcx]
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x20], rax
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__
call fcn.1401b9870
cmp qword [rsp + 0x40], 0
je 0x1401972e2
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [rsp + 0x40]
lea rdx, str.SELFTEST_initialization_failure:__s_n
mov rcx, rax
call fcn.1401ab380
mov rcx, qword [rsp + 0x40]
call fcn.1401ba620
mov rcx, qword [rbx]
lea rdx, str.RELEASE_selftest_init
xor r9d, r9d
mov qword [rsp + 0x20], 0
xor r8d, r8d
call fcn.1401b9870
add rsp, 0x30
pop rbx
ret
Function at 0x140197fc0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0xa0
mov rax, qword [0x14039e2e8]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov ebp, edx
mov r14, rcx
lea rdx, [0x1402e9884]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
xor edi, edi
mov rsi, rax
test rax, rax
jne 0x140198039
test ebp, ebp
je 0x14019802f
xor r8d, r8d
lea rcx, str._.zip
mov rdx, r14
call fcn.1401b2970
test eax, eax
mov ebx, 1
mov edi, 3
cmove ebx, edi
mov eax, ebx
jmp 0x14019816a
mov eax, 1
jmp 0x14019816a
mov ebx, 1
lea rcx, [rsp + 0x20]
mov r9, rsi
mov r8d, ebx
lea edx, [rbx + 0xf]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, rbx
jne 0x140198089
movabs rax, 0x66206574694c5153
cmp qword [rsp + 0x20], rax
jne 0x140198089
movabs rax, 0x332074616d726f
cmp qword [rsp + 0x28], rax
jne 0x140198089
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, ebx
jmp 0x14019816a
mov edx, 0xffffffe7
mov rcx, rsi
lea r8d, [rdx + 0x1b]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov r9, rsi
lea rcx, [rsp + 0x20]
mov r8, rbx
mov edx, SafeArrayCopy
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, rbx
jne 0x1401980e6
movabs rax, 0x664f2d7472617453
cmp qword [rsp + 0x20], rax
jne 0x1401980e6
movabs rax, 0x336574694c51532d
cmp qword [rsp + 0x28], rax
jne 0x1401980e6
cmp byte [rsp + 0x30], 0x2d
jne 0x1401980e6
mov edi, 2
jmp 0x14019815f
mov edx, 0xffffffea
mov rcx, rsi
lea r8d, [rdx + 0x18]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov r9, rsi
lea rcx, [rsp + 0x20]
mov r8, rbx
mov edx, socket
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, rbx
jne 0x140198136
cmp byte [rsp + 0x20], 0x50
jne 0x14019815f
cmp byte [rsp + 0x21], 0x4b
jne 0x14019815f
cmp byte [rsp + 0x22], 5
jne 0x14019815f
cmp byte [rsp + 0x23], 6
jne 0x14019815f
mov edi, 3
jmp 0x14019815f
test rax, rax
jne 0x14019815f
test ebp, ebp
je 0x14019815f
xor r8d, r8d
lea rcx, str._.zip
mov rdx, r14
call fcn.1401b2970
mov ecx, edi
test eax, eax
mov edi, 3
cmove ecx, edi
mov edi, ecx
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, edi
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1402654f0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1401a0730
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x38
test ecx, ecx
je 0x1401a0757
mov rcx, qword [0x1403cdd00]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
mov qword [0x1403cdd00], 0
add rsp, 0x38
ret
mov rax, qword [0x1403cdd00]
test rax, rax
jne 0x1401a0815
mov qword [rsp + 0x40], rbx
lea rcx, str.USERPROFILE
mov qword [rsp + 0x30], rdi
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov qword [0x1403cdd00], rax
test rax, rax
jne 0x1401a085c
lea rcx, str.HOME
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov qword [0x1403cdd00], rax
test rax, rax
jne 0x1401a085c
lea rcx, str.HOMEDRIVE
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
lea rcx, str.HOMEPATH
mov rdi, rax
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rbx, rax
test rdi, rdi
je 0x1401a084e
test rax, rax
je 0x1401a084e
mov rcx, rax
mov qword [rsp + 0x48], rsi
call fcn.1401aa000
mov rcx, rdi
mov edx, eax
call fcn.1401aa000
lea esi, [rax + 1]
add esi, edx
movsxd rcx, esi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [0x1403cdd00], rax
test rax, rax
jne 0x1401a081a
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x30]
add rsp, 0x38
ret
mov r9, rdi
mov qword [rsp + 0x20], rbx
lea r8, [0x1402ea390]
mov rdx, rax
mov ecx, esi
call fcn.1401ba4c0
mov rax, qword [0x1403cdd00]
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x30]
add rsp, 0x38
ret
lea rax, [0x1402ee234]
mov qword [0x1403cdd00], rax
mov rcx, rax
call fcn.1401aa000
inc eax
movsxd rdi, eax
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x1401a088c
mov rdx, qword [0x1403cdd00]
mov r8, rdi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rdi, qword [rsp + 0x30]
mov rax, rbx
mov qword [0x1403cdd00], rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x38
ret
Function at 0x1401a1280
Capabilities:
Reference sql statements

Disassembly:
push rbp
push r14
sub rsp, 0x58
mov r14, rdx
mov rbp, rcx
call fcn.1401a2d20
mov rcx, qword [rbp + 8]
lea r9, str.SELECT_type__name__sql__1_FROM_sqlite_schema_WHERE_type_IN__table_view__AND_name_NOT_LIKE_sqlite_____UNION_ALL_SELECT_type__name__sql__2_FROM_sqlite_schema_WHERE_type__trigger__AND_tbl_name_IN_SELECT_name_FROM_sqlite_schema_WHERE_type__view__ORDER_BY_4__1
mov r8, r14
mov qword [rsp + 0x80], 0
lea rdx, [rsp + 0x80]
call fcn.1401a2910
mov dword [rsp + 0x70], eax
test eax, eax
jne 0x1401a1499
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], r12
lea r12, [0x1402b04e8]
mov qword [rsp + 0x30], r15
nop word [rax + rax]
mov rcx, qword [rsp + 0x80]
call fcn.1401ad290
cmp eax, 0x64
jne 0x1401a1480
mov rcx, qword [rsp + 0x80]
xor edx, edx
call fcn.1401ad4e0
mov rcx, qword [rsp + 0x80]
mov edx, 1
mov rbx, rax
call fcn.1401ad4e0
mov rcx, qword [rsp + 0x80]
mov edx, 2
mov r15, rax
call fcn.1401ad4e0
cmp byte [rbx], 0x76
je 0x1401a145b
cmp byte [rbx + 1], 0x72
je 0x1401a145b
mov rcx, qword [rbp + 8]
lea r8, [rsp + 0x88]
mov r9, r14
mov rdx, r15
call fcn.1401a19f0
mov dword [rsp + 0x70], eax
test eax, eax
jne 0x1401a1480
mov rax, qword [rbp + 0x20]
lea r8, str.CREATE_TABLE_x_
mov rbx, qword [rsp + 0x88]
lea rcx, [rsp + 0x70]
xor edx, edx
mov qword [rbx + 0x18], rax
mov qword [rbp + 0x20], rbx
call fcn.1401a0cb0
xor edi, edi
mov rdx, rax
cmp dword [rbx], edi
jle 0x1401a13f2
xor esi, esi
nop word [rax + rax]
mov rcx, qword [rbx + 0x10]
lea r9, [0x1402b0b5c]
test edi, edi
lea r8, str._s_Q_COLLATE__s
cmove r9, r12
mov rax, qword [rsi + rcx + 8]
mov qword [rsp + 0x28], rax
mov rax, qword [rsi + rcx]
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x20], rax
call fcn.1401a0cb0
inc edi
lea rsi, [rsi + 0x18]
mov rdx, rax
cmp edi, dword [rbx]
jl 0x1401a13b0
lea r8, [0x1402b11b4]
lea rcx, [rsp + 0x70]
call fcn.1401a0cb0
mov r9, r15
mov qword [rsp + 0x20], rax
lea r8, str.CREATE_VIRTUAL_TABLE__Q_USING_expert__Q_
xor edx, edx
lea rcx, [rsp + 0x70]
mov rsi, rax
call fcn.1401a0cb0
mov ebx, dword [rsp + 0x70]
mov rdi, rax
test ebx, ebx
jne 0x1401a1449
mov rcx, qword [rbp + 0x18]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r14
mov rdx, rax
call fcn.1401b9870
mov ebx, eax
mov dword [rsp + 0x70], eax
mov rcx, rsi
call fcn.1401ba620
mov rcx, rdi
call fcn.1401ba620
jmp 0x1401a1478
mov rcx, qword [rbp + 0x18]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r14
mov rdx, rax
call fcn.1401b9870
mov ebx, eax
mov dword [rsp + 0x70], eax
test ebx, ebx
je 0x1401a12f0
mov r15, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
mov r12, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x70]
call fcn.1401a14f0
mov eax, dword [rsp + 0x70]
add rsp, 0x58
pop r14
pop rbp
ret
Function at 0x1401a2010
Capabilities:
Reference sql statements

Disassembly:
push rbx
sub rsp, 0x20
xor eax, eax
lea r9, 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 dword [rdx], eax
mov rbx, rdx
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x48], rax
call fcn.1401a2910
mov dword [rsp + 0x38], eax
test eax, eax
jne 0x1401a205a
mov rcx, qword [rsp + 0x48]
call fcn.1401ad290
cmp eax, 0x64
jne 0x1401a205a
mov rcx, qword [rsp + 0x48]
xor edx, edx
call fcn.1401ad460
inc eax
mov dword [rbx], eax
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x38]
call fcn.1401a14f0
mov eax, dword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
Function at 0x1401a3290
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1403c5cb8]
inc eax
mov dword [0x1403c5cb8], eax
mov eax, dword [0x1403c5cb8]
cmp eax, 2
jle 0x1401a32b9
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, qword [0x1403c5cb0]
test rcx, rcx
je 0x1401a32ce
add rsp, 0x28
jmp 0x1401b9d10
add rsp, 0x28
ret
mov dword [rcx + 0x170], 1
ret
Function at 0x1401a3d90
Capabilities:
Create directory

Disassembly:
push rbp
push rdi
sub rsp, 0x78
mov rax, qword [0x14039e2e8]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdx, rcx
lea rcx, [0x1402e94ac]
call fcn.1401ba3f0
xor ebp, ebp
mov rdi, rax
test rax, rax
jne 0x1401a3dc7
lea eax, [rdi + 7]
jmp 0x1401a3e96
mov qword [rsp + 0x98], rbx
mov rax, 0xffffffffffffffff
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x60], r15
nop dword [rax]
inc rax
cmp byte [rdi + rax], bpl
jne 0x1401a3df0
mov r14d, 1
movsxd rsi, eax
mov ebx, r14d
mov r15d, 0xf000
mov r12d, 0x4000
cmp byte [rbx + rdi], 0x2f
je 0x1401a3e25
cmp rbx, rsi
jge 0x1401a3e28
inc rbx
cmp byte [rbx + rdi], 0x2f
jne 0x1401a3e17
cmp rbx, rsi
je 0x1401a3e6d
lea rdx, [rsp + 0x20]
mov byte [rbx + rdi], 0
mov rcx, rdi
call fcn.1401a0660
test eax, eax
je 0x1401a3e51
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir]
test eax, eax
je 0x1401a3e62
mov ebp, r14d
jmp 0x1401a3e62
movzx ecx, word [rsp + 0x26]
and cx, r15w
cmp cx, r12w
cmovne ebp, r14d
mov byte [rbx + rdi], 0x2f
inc rbx
test ebp, ebp
je 0x1401a3e11
mov rcx, rdi
call fcn.1401ba620
mov r15, qword [rsp + 0x60]
mov eax, ebp
mov r14, qword [rsp + 0x68]
mov r12, qword [rsp + 0x70]
mov rsi, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1402654f0
add rsp, 0x78
pop rdi
pop rbp
ret

Function at 0x1401a3eb0
Capabilities:
Query environment variable
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
call fcn.1401970e0
mov rcx, qword [rbx + 0x88]
call fcn.1401ba620
mov rcx, qword [rbx]
mov qword [rbx + 0x88], 0
test rcx, rcx
je 0x1401a3efb
xor edx, edx
lea r9, [rbx + 0x88]
lea r8d, [rdx + 0x10]
call fcn.1401b0250
mov rdx, qword [rbx + 0x88]
test rdx, rdx
jne 0x1401a3f5c
lea rdx, [rsp + 0x30]
mov ecx, 8
call fcn.1401ba710
lea rcx, str.TEMP
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rdx, rax
test rax, rax
jne 0x1401a3f46
lea rcx, [0x1402eb9bc]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
lea rdx, str._tmp
cmovne rdx, rax
mov r8, qword [rsp + 0x30]
lea rcx, str._s_temp_llx._s
mov r9, rsi
call fcn.1401ba3f0
jmp 0x1401a3f6b
mov r8, rsi
lea rcx, str._z._s
call fcn.1401ba3f0
mov qword [rbx + 0x88], rax
test rax, rax
jne 0x1401a3f9b
lea ecx, [rax + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.out_of_memory_n
call fcn.1401a08b0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1401a4f50
Capabilities:
Execute command

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x30]
cmp byte [rbx + 0x128], 0x7c
jne 0x1401a4f6e
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__pclose]
jmp 0x1401a4fea
call fcn.1401a4830
cmp byte [rbx + 0xf], 0
je 0x1401a4fea
mov r8, qword [rbx + 0x88]
lea rdx, str.start
lea rcx, [0x1402eb83c]
mov qword [rsp + 0x30], rdi
call fcn.1401ba3f0
mov rcx, rax
mov rdi, rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
test eax, eax
je 0x1401a4fc7
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rdi
lea rdx, str.Failed:___s__n
mov rcx, rax
call fcn.1401ab380
jmp 0x1401a4fd1
mov ecx, 0x7d0
call fcn.1401aebe0
mov rcx, rdi
call fcn.1401ba620
mov rcx, rbx
call fcn.1401a4550
mov rdi, qword [rsp + 0x30]
mov byte [rbx + 0xf], 0
mov ecx, 1
mov byte [rbx + 0x128], 0
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov qword [rbx + 0x30], rax
add rsp, 0x20
pop rbx
ret

Function at 0x1401a59c0
Capabilities:
Read file on windows

Disassembly:
push rsi
push r14
sub rsp, 0x28
mov r14, rdx
lea rdx, [0x1402e9884]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rsi, rax
test rax, rax
jne 0x1401a59e8
add rsp, 0x28
pop r14
pop rsi
ret
xor edx, edx
mov qword [rsp + 0x48], rbp
mov rcx, rsi
mov qword [rsp + 0x50], rdi
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov rcx, rsi
movsxd rbp, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_rewind]
lea ecx, [rbp + 1]
movsxd rcx, ecx
call fcn.1401ba560
mov rdi, rax
test rax, rax
jne 0x1401a5a46
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbp, qword [rsp + 0x48]
xor eax, eax
mov rdi, qword [rsp + 0x50]
add rsp, 0x28
pop r14
pop rsi
ret
mov qword [rsp + 0x40], rbx
mov r9, rsi
mov r8d, 1
mov qword [rsp + 0x20], r15
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
cmp rbx, 1
mov rbx, qword [rsp + 0x40]
je 0x1401a5a88
mov rcx, rdi
call fcn.1401ba620
xor eax, eax
jmp 0x1401a5a98
mov byte [rbp + rdi], 0
test r14, r14
je 0x1401a5a95
mov dword [r14], ebp
mov rax, rdi
mov r15, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x28
pop r14
pop rsi
ret
Function at 0x1401a5ab0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rax, rdx
mov rdi, rcx
mov rcx, rax
lea rdx, [0x1402e9884]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rbx, rax
test rax, rax
je 0x1401a5bc6
xor edx, edx
mov qword [rsp + 0x38], rsi
mov rcx, rax
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov rcx, rbx
movsxd rsi, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_rewind]
mov rcx, rdi
call fcn.1401add00
xor edx, edx
mov rcx, rax
lea r8d, [rdx - 1]
call fcn.1401bb0f0
movsxd rcx, eax
cmp rsi, rcx
jle 0x1401a5b49
mov edx, reloc.WS2_32.dll_select
mov rcx, rdi
call fcn.1401ae170
mov rcx, rbx
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
mov qword [rsp + 0x30], rbp
mov ecx, 1
cmovne rcx, rsi
call fcn.1401ba560
mov rbp, rax
test rax, rax
jne 0x1401a5b71
mov rcx, rdi
call fcn.1401ae140
jmp 0x1401a5bb3
mov r9, rbx
mov r8, rsi
mov edx, 1
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rdi
cmp rsi, rax
jne 0x1401a5ba1
lea r9, [fcn.1401ba620]
mov r8, rsi
mov rdx, rbp
call fcn.1401adfb0
jmp 0x1401a5bb3
mov edx, 0xa
call fcn.1401ae170
mov rcx, rbp
call fcn.1401ba620
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1401a9150
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Error:_out_of_memory_n
call fcn.1401a08b0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x1401a98e0
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 8], rbx
push rsi
push rdi
push r14
sub rsp, 0x30
mov rdi, rdx
mov dword [rsp + 0x60], 0
mov rsi, rcx
mov edx, 0x2060
lea rcx, [rsp + 0x60]
call fcn.1401a2080
cmp dword [rsp + 0x60], 0
mov rbx, rax
jne 0x1401a9a13
lea rdx, [rax + 0x18]
mov qword [rax + 8], rsi
lea rcx, str.:memory:
mov dword [rax], 0x64
call fcn.1401bab10
test eax, eax
jne 0x1401a9a13
lea rdx, [rbx + 0x10]
lea rcx, str.:memory:
call fcn.1401bab10
test eax, eax
jne 0x1401a9a13
mov rcx, qword [rbx + 0x10]
lea r8d, [rax + 1]
xor r9d, r9d
mov edx, 0x3f0
call fcn.1401b9b80
mov rcx, qword [rbx + 8]
lea r9, str.SELECT_sql_FROM_sqlite_schema_WHERE_name_NOT_LIKE_sqlite____AND_sql_NOT_LIKE_CREATE_VIRTUAL___
mov r8, rdi
lea rdx, [rsp + 0x68]
call fcn.1401a2980
mov dword [rsp + 0x60], eax
test eax, eax
jne 0x1401a99ca
nop word [rax + rax]
mov rcx, qword [rsp + 0x68]
call fcn.1401ad290
cmp eax, 0x64
jne 0x1401a99ca
mov rcx, qword [rsp + 0x68]
xor edx, edx
call fcn.1401ad4e0
mov rcx, qword [rbx + 0x10]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rdx, rax
call fcn.1401b9870
mov dword [rsp + 0x60], eax
test eax, eax
je 0x1401a9990
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x60]
call fcn.1401a14f0
cmp dword [rsp + 0x60], 0
jne 0x1401a9a13
mov rdx, rdi
mov rcx, rbx
call fcn.1401a1280
test eax, eax
jne 0x1401a9a13
mov rcx, qword [rbx + 0x18]
lea rdx, [0x1401a0d90]
mov r8, rbx
call fcn.1401ba8d0
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
mov rcx, rbx
call fcn.1401a9870
mov rbx, qword [rsp + 0x50]
xor eax, eax
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret