joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a4710
Capabilities:
Query environment variable

Disassembly:
lea rdx, str.RUST_MIN_STACKthere_is_no_such_thing_as_a_release_load
mov r8d, 0xe
jmp fcn.140099ed0

Function at 0x1400a479f
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rcx
mov ebx, dword [0x14016b248]
test ebx, ebx
je 0x1400a4860
dec ebx
mov ecx, ebx
call sub.kernel32.dll_TlsGetValue
mov r14, rax
cmp rax, 1
ja 0x1400a4851
je 0x1400a47f1
test rdi, rdi
je 0x1400a47f6
cmp qword [rdi], 0
lea rax, [rdi + 8]
lea rsi, [0x14018f798]
cmovne rsi, rax
and qword [rdi], 0
jmp 0x1400a47fd
xor r14d, r14d
jmp 0x1400a4851
lea rsi, [0x14018f798]
lea r15, [rsp + 0x28]
mov ecx, 9
mov rdi, r15
rep movsq qword [rdi], qword [rsi]
mov ecx, 0x50
mov edx, 8
call case.0x14009b9b0.296
mov r14, rax
mov ecx, 9
mov rdi, rax
mov rsi, r15
rep movsq qword [rdi], qword [rsi]
mov dword [rax + 0x48], ebx
mov ecx, ebx
call sub.kernel32.dll_TlsGetValue
mov rsi, rax
mov ecx, ebx
mov rdx, r14
call sub.kernel32.dll_TlsSetValue
test rsi, rsi
je 0x1400a4851
mov rcx, rsi
call fcn.1400a32d1
mov rax, r14
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
lea rcx, [0x14016b230]
call fcn.140079770
mov ebx, eax
jmp 0x1400a47bd
jmp 0x1400a479f

Function at 0x1400a5148
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rcx
mov ebx, dword [0x14016b248]
test ebx, ebx
je 0x1400a4860
dec ebx
mov ecx, ebx
call sub.kernel32.dll_TlsGetValue
mov r14, rax
cmp rax, 1
ja 0x1400a4851
je 0x1400a47f1
test rdi, rdi
je 0x1400a47f6
cmp qword [rdi], 0
lea rax, [rdi + 8]
lea rsi, [0x14018f798]
cmovne rsi, rax
and qword [rdi], 0
jmp 0x1400a47fd
xor r14d, r14d
jmp 0x1400a4851
lea rsi, [0x14018f798]
lea r15, [rsp + 0x28]
mov ecx, 9
mov rdi, r15
rep movsq qword [rdi], qword [rsi]
mov ecx, 0x50
mov edx, 8
call case.0x14009b9b0.296
mov r14, rax
mov ecx, 9
mov rdi, rax
mov rsi, r15
rep movsq qword [rdi], qword [rsi]
mov dword [rax + 0x48], ebx
mov ecx, ebx
call sub.kernel32.dll_TlsGetValue
mov rsi, rax
mov ecx, ebx
mov rdx, r14
call sub.kernel32.dll_TlsSetValue
test rsi, rsi
je 0x1400a4851
mov rcx, rsi
call fcn.1400a32d1
mov rax, r14
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
lea rcx, [0x14016b230]
call fcn.140079770
mov ebx, eax
jmp 0x1400a47bd
jmp 0x1400a479f
Function at 0x1400a5741
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rdi, rcx
mov esi, dword [0x14016b298]
test esi, esi
je 0x1400a5800
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
mov rbx, rax
cmp rax, 1
ja 0x1400a57f3
je 0x1400a57f1
test rdi, rdi
je 0x1400a578e
mov rax, qword [rdi]
and qword [rdi], 0
test rax, rax
je 0x1400a578e
mov r14, qword [rdi + 8]
mov rdi, qword [rdi + 0x10]
jmp 0x1400a57ad
xorps xmm0, xmm0
lea rdi, [rsp + 0x20]
movaps xmmword [rdi], xmm0
mov edx, 0x10
mov rcx, rdi
call sub.bcryptprimitives.dll_ProcessPrng
mov r14, qword [rdi]
mov rdi, qword [rdi + 8]
mov ecx, 0x18
mov edx, 8
call case.0x14009b9b0.296
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov dword [rax + 0x10], esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rdx, rbx
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x1400a57f3
mov edx, 8
mov rcx, rdi
call fcn.140029560
jmp 0x1400a57f3
xor ebx, ebx
mov rax, rbx
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x14016b280]
call fcn.140079770
mov esi, eax
jmp 0x1400a575d

Function at 0x1400a8c55
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov esi, dword [0x14016b268]
test esi, esi
je 0x1400a8cca
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
cmp rax, 1
ja 0x1400a8cbf
je 0x1400a8cbd
call fcn.1400a4770
mov rbx, rax
mov ecx, 0x10
mov edx, 8
call case.0x14009b9b0.296
mov rdi, rax
mov qword [rax], rbx
mov dword [rax + 8], esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
mov rbx, rax
mov ecx, esi
mov rdx, rdi
call sub.kernel32.dll_TlsSetValue
test rbx, rbx
je 0x1400a8cbf
mov rcx, rbx
call fcn.1400a4751
jmp 0x1400a8cbf
xor edi, edi
mov rax, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, str._G_n_
call fcn.140079770
mov esi, eax
jmp 0x1400a8c68
Function at 0x1400b56e0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.1400b64a0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]

Function at 0x1400b5750
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1401ca194]
test esi, esi
mov rbx, rcx
jle 0x1400b5880
mov rax, qword [0x1401ca198]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400b579b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400b5825
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400b5780
mov rcx, rbx
call fcn.1400b61c0
test rax, rax
mov rdi, rax
je 0x1400b58a2
mov rax, qword [0x1401ca198]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400b6300
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1401ca198]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400b5887
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400b581e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400b5830
add dword [0x1401ca194], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x1401ca198]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400b581e
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400b56e0
nop dword [rax]
xor esi, esi
jmp 0x1400b57a8
mov rax, qword [0x1401ca198]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.1400b56e0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.1400b56e0
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x1400b5e10
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1401ca200]
mov rcx, r12
call qword [sym.imp.kernel32.dll_EnterCriticalSection]
mov rbx, qword [0x1401ca1e0]
test rbx, rbx
je 0x1400b5e6c
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 0x1400b5e63
test rsi, rsi
je 0x1400b5e63
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400b5e48
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 0x1400b6080
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400b60b8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400b60c0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400b6090
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400b60b8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400b60c0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400b60a0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400b60b8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400b60c0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400b61c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1401a0ef0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400b61e0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400b61e8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400b61e0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400b623d
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]
cmp rcx, r8
mov rdx, r8
jb 0x1400b6234
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400b61e0
add rax, 0x28
cmp rax, r9
jne 0x1400b6220
xor eax, eax
ret

Function at 0x1400b6240
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1401a0ef0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400b625f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400b6268
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400b625f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x1400b6300
Capabilities:
Parse pe header

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

Function at 0x1400bc0e0
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
test rbp, rbp
mov r8d, r9d
je 0x1400bc17f
mov r12, qword [rcx + 0x80]
mov qword [rsp + 0x28], rdx
mov rcx, r12
call fcn.14013d4b0
mov rbx, rax
mov eax, 7
test rbx, rbx
je 0x1400bc192
mov rdx, qword [rsp + 0x28]
mov r9, rbx
mov r8, rbp
mov rcx, r12
call fcn.1401466b0
mov eax, dword [rbx + 0x1c]
test ax, ax
je 0x1400bc148
cmp word [r12 + 8], ax
jae 0x1400bc154
mov ecx, 0x116fc
call fcn.14010e7b0
jmp 0x1400bc162
mov r8, r13
mov rdx, rbx
mov rcx, rsi
call fcn.14010a070
mov rdx, qword [rsi + 0x80]
mov dword [rsp + 0x28], eax
mov rcx, qword [rdx + 0x10]
mov rdx, rbx
call fcn.14010fd50
mov eax, dword [rsp + 0x28]
jmp 0x1400bc192
mov r9, r13
add rsp, 0x30
pop rbx
pop rsi
pop rbp
pop r12
pop r13
jmp fcn.14010c5f0
add rsp, 0x30
pop rbx
pop rsi
pop rbp
pop r12
pop r13
ret
Function at 0x1400de100
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov eax, dword [rdx + 0x48]
lea edi, [rax - 1]
mov rsi, rcx
mov rbx, rdx
test edi, edi
jle 0x1400de15b
mov edx, edi
mov rcx, rbx
call fcn.1400de030
test eax, eax
mov ebp, eax
je 0x1400de157
cmp dword [rsi + 0x3c], 0
jne 0x1400de146
cdqe
xor r8d, r8d
mov rcx, rsi
shl rax, 7
lea rdx, [rbx + rax + 0x68]
call qword [rbx + rax + 0x98]
mov r9d, edi
mov r8d, ebp
mov rdx, rbx
mov rcx, rsi
call fcn.1400ddf50
dec edi
jmp 0x1400de114
mov rcx, rbx
call fcn.1400ded00
cmp byte [rbx + 0x50], 0
je 0x1400de191
mov ecx, dword [rsi + 0x3c]
mov rdx, rbx
call fcn.1400de400
test eax, eax
je 0x1400de191
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.1400de8d0
mov rcx, rbx
call fcn.1400de2a0
test eax, eax
jne 0x1400de178
cmp byte [rbx + 0x14], 0
jne 0x1400de1c6
mov rax, qword [rbx + 0x60]
mov rcx, rbx
movzx eax, word [rax + 4]
shl rax, 7
lea rdx, [rbx + rax + 0x68]
mov rax, qword [rbx + 0x40]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x1400e2760
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
cmp qword [rcx + r12*8 + 0x28], 0
mov r15, r12
mov r13, r9
jne 0x1400e299a
lea rdi, [rsp + 0x38]
cmp r12d, 0xa
mov ecx, 0x16
lea rsi, str.SELECT__s_FROM__s_T_WHERE_T._Q_____AND_T._Q_____ORDER_BY_T._Q_ASC
rep movsd dword [rdi], dword [rsi]
mov rsi, qword [rbp]
ja case.0x1400e27c2.5
lea rdx, [0x140199c5c]
mov eax, r12d
movsxd rax, dword [rdx + rax*4]
add rax, rdx
jmp rax
mov rdx, qword [rsi + 0x68]
lea rcx, str.SELECT__s_FROM__s_AS_T
mov r8, qword [rsi + 0x48]
call fcn.140151f20
jmp 0x1400e28ed
mov r9, qword [rsi + 0x50]
mov r8, qword [rsi + 0x48]
mov rdx, qword [rsi + 0x68]
mov rcx, qword [rsp + r12*8 + 0x38]
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], r9
call fcn.140151f20
jmp 0x1400e2817
mov rdx, qword [rsi + 0x68]
lea rcx, str.SELECT__s_FROM__s_T_WHERE_T._Q_
mov r9, qword [rsi + 0x50]
mov r8, qword [rsi + 0x48]
call fcn.140151f20
test rax, rax
mov rbx, rax
mov r9d, 1
jne 0x1400e2926
jmp 0x1400e284a
mov r15d, dword [rsi + 0x18]
lea ecx, [r15 + r15 + 3]
lea ebx, [r15 + 1]
movsxd rcx, ecx
call fcn.140151e80
mov rdi, rax
xor eax, eax
test rdi, rdi
jne 0x1400e2854
mov edi, 7
jmp 0x1400e299a
cmp ebx, eax
jle 0x1400e2866
mov byte [rdi + rax*2], 0x3f
mov byte [rdi + rax*2 + 1], 0x2c
inc rax
jmp 0x1400e2854
xor eax, eax
add rbx, rbx
inc r15d
mov rcx, qword [rsp + r12*8 + 0x38]
cmovl rbx, rax
mov r9, rdi
mov byte [rdi + rbx - 1], 0
mov rdx, qword [rsi + 8]
mov r8, qword [rsi + 0x10]
call fcn.140151f20
mov rcx, rdi
mov rbx, rax
call fcn.140150f20
jmp 0x1400e298a
cmp dword [rsi + 0x44], 0
lea r9, [0x140195800]
mov rdx, qword [rsi + 8]
lea rax, [0x140199a73]
mov r8, qword [rsi + 0x10]
lea rcx, str.REPLACE_INTO__Q._q_docsize_VALUES_____s_
cmovne r9, rax
jmp 0x1400e28e8
cmp dword [rsi + 0x44], 0
lea rdx, [0x140195800]
mov r9, qword [rsi + 0x10]
mov r8, qword [rsi + 8]
lea rax, str._origin
lea rcx, str.SELECT_sz_s_FROM__Q._q_docsize_WHERE_id_
cmovne rdx, rax
call fcn.140151f20
mov rbx, rax
jmp 0x1400e298a
mov rdx, qword [rsi + 8]
mov rcx, qword [rsp + r12*8 + 0x38]
mov r8, qword [rsi + 0x10]
call fcn.140151f20
test rax, rax
mov rbx, rax
je 0x1400e284a
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 + 0x80]
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.140152350
mov rcx, rbx
mov edi, eax
mov rax, qword [rbp]
dec dword [rax + 0x80]
call fcn.140150f20
test edi, edi
je 0x1400e299a
test r13, r13
je 0x1400e299a
mov rcx, qword [rsi]
call fcn.140150720
lea rcx, [0x1401968f0]
mov rdx, rax
call fcn.140151f20
mov qword [r13], rax
jmp 0x1400e299a
test rbx, rbx
mov r9d, 5
jne 0x1400e2926
jmp 0x1400e284a
mov rcx, qword [rbp + r12*8 + 0x28]
mov qword [r14], rcx
call fcn.140152950
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 0x1400f49e0
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.140133030
test rax, rax
mov r8, rax
jne 0x1400f4a16
mov eax, 7
jmp 0x1400f4ab2
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 0x1400f4ab0
mov rax, qword [rbx + 0x50]
mov ecx, dword [rbx + 0x20]
cmp qword [rax], 0
mov dword [rdi + 0x18], ecx
je 0x1400f4a57
mov rax, qword [rbx + 0x60]
test rax, rax
jg 0x1400f4a5d
mov eax, dword [rbx + 0xb8]
mov qword [rdi], rax
mov eax, dword [rbx + 0x3c]
mov dword [rdi + 0x1c], eax
call fcn.140108f90
mov dword [rdi + 0x20], 1
test rax, rax
mov qword [rdi + 0x10], rax
je 0x1400f4a0c
mov rax, qword [rbx + 0x128]
test rax, rax
je 0x1400f4aa2
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 0x1400f4a3a
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp dword [rcx + 0x80], edx
jge 0x14012a5a3
cmp byte [rcx + 0xa], 0
je 0x14012a5a3
jmp 0x1400f49e0
xor eax, eax
ret

Function at 0x1400fc380
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
mov dword [rsp + 0x30], r12d
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 qword [rsp + 0x48], rcx
call fcn.140129970
test ebp, ebp
mov rcx, qword [rsp + 0x48]
jne 0x1400fc3f0
mov r9, rdi
mov r8, rsi
mov dword [rsp + 0xa0], r12d
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
add rsp, 0x58
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.140129970
add rsp, 0x58
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x1400ff830
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
cmp qword [rcx + r12*8 + 0x28], 0
lea rax, str.SELECT_nodeno_FROM__Q._q_rowid_WHERE_rowid_1
mov rbp, r12
mov rdi, r9
mov qword [rsp + 0x48], rax
lea r13, [r12 + 4]
jne 0x1400ff887
mov rdx, qword [rsp + r12*8 + 0x40]
mov r9, qword [rcx + 0x10]
mov r8, qword [rcx + 8]
call fcn.1400ffc80
mov qword [rbx + r13*8 + 8], rax
cmp dword [rbx + 0x40], 0
jne 0x1400ff940
mov r12, qword [rbx + r12*8 + 0x28]
mov r8, rsi
mov edx, 1
mov rcx, r12
call fcn.14014dd80
mov rcx, r12
call fcn.1401538e0
cmp eax, 0x65
jne 0x1400ff8e3
test ebp, ebp
mov r9, rdi
mov r8, rsi
lea rdx, str.__rowid
mov rcx, rbx
lea rax, str.__parent
cmovne rax, rdx
lea rdx, str.Mapping___lld_____lld__missing_from__s_table
mov qword [rsp + 0x20], rax
call fcn.1400ff730
jmp 0x1400ff92f
cmp eax, 0x64
jne 0x1400ff92f
xor edx, edx
mov rcx, r12
call fcn.14014ebf0
cmp rdi, rax
mov r9, rax
je 0x1400ff92f
test ebp, ebp
mov qword [rsp + 0x30], rdi
mov r8, rsi
mov rcx, rbx
lea rdx, str.__rowid
mov qword [rsp + 0x28], rsi
lea rax, str.__parent
cmovne rax, rdx
lea rdx, str.Found___lld_____lld__in__s_table__expected___lld_____lld_
mov qword [rsp + 0x20], rax
call fcn.1400ff730
mov rcx, r12
call fcn.140152950
cmp dword [rbx + 0x40], 0
jne 0x1400ff940
mov dword [rbx + 0x40], eax
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x140122960
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rbx
cmp ecx, 0x7f
mov r9d, edx
jg 0x14012297e
lea eax, [rcx - 0x41]
cmp eax, 0x19
ja 0x140122a25
add ecx, 0x20
jmp 0x140122a25
cmp ecx, 0xffff
jg 0x140122a17
or r8d, 0xffffffff
xor r11d, r11d
mov ebx, 0xa2
lea r10, [0x1401a11c0]
mov esi, 2
lea eax, [rbx + r11]
cdq
idiv esi
movsxd rdx, eax
movzx edx, word [r10 + rdx*4]
cmp ecx, edx
jl 0x1401229be
lea r11d, [rax + 1]
mov r8d, eax
jmp 0x1401229c1
lea ebx, [rax - 1]
cmp ebx, r11d
jge 0x1401229a2
movsxd rax, r8d
movzx edx, word [r10 + rax*4]
movzx r8d, byte [r10 + rax*4 + 3]
add r8d, edx
cmp ecx, r8d
jge 0x140122a02
mov al, byte [r10 + rax*4 + 2]
xor edx, ecx
mov r8d, eax
and r8d, 1
test r8d, edx
jne 0x140122a02
lea rdx, [0x1401a49c0]
shr al, 1
and eax, 0x7f
add cx, word [rdx + rax*2]
movzx ecx, cx
test r9d, r9d
je 0x140122a25
xor edx, edx
cmp r9d, 2
sete dl
pop rbx
pop rsi
jmp fcn.1400fa9d0
lea eax, [rcx - 0x10400]
cmp eax, 0x27
ja 0x140122a25
add ecx, 0x28
mov eax, ecx
pop rbx
pop rsi
ret

Function at 0x14012a590
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.140133030
test rax, rax
mov r8, rax
jne 0x1400f4a16
mov eax, 7
jmp 0x1400f4ab2
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 0x1400f4ab0
mov rax, qword [rbx + 0x50]
mov ecx, dword [rbx + 0x20]
cmp qword [rax], 0
mov dword [rdi + 0x18], ecx
je 0x1400f4a57
mov rax, qword [rbx + 0x60]
test rax, rax
jg 0x1400f4a5d
mov eax, dword [rbx + 0xb8]
mov qword [rdi], rax
mov eax, dword [rbx + 0x3c]
mov dword [rdi + 0x1c], eax
call fcn.140108f90
mov dword [rdi + 0x20], 1
test rax, rax
mov qword [rdi + 0x10], rax
je 0x1400f4a0c
mov rax, qword [rbx + 0x128]
test rax, rax
je 0x1400f4aa2
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 0x1400f4a3a
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp dword [rcx + 0x80], edx
jge 0x14012a5a3
cmp byte [rcx + 0xa], 0
je 0x14012a5a3
jmp 0x1400f49e0
xor eax, eax
ret