joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140111d50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov ecx, dword [0x1402ae0f0]
test ecx, ecx
je 0x140111d7d
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x140111d96
add rax, 8
jmp 0x140111e34
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h38e6cd0858e0f355
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h3a56cd97d8b2cb6b
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x140111d74
je 0x140111e32
movzx eax, byte [0x14035b110]
mov edx, 0x10
xor ecx, ecx
call sym.std::sys::pal::windows::alloc::process_heap_alloc::h5a8f05db6a24897c
test rax, rax
je 0x140111e5d
mov rbx, rax
mov rsi, rax
lea rax, sym.std::sys::thread_local::os_local::destroy_value::h38e6cd0858e0f355
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1402ae0f0]
test ecx, ecx
je 0x140111e3d
dec ecx
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, dword [0x1402ae0f0]
test ecx, ecx
je 0x140111e4d
dec ecx
add rbx, 8
mov rdx, rsi
call fcn.1401380cc
test rdi, rdi
je 0x140111e2d
mov rax, qword [rdi + 8]
test rax, rax
je 0x140111e1c
lock dec qword [rax]
jne 0x140111e1c
mov rcx, rdi
add rcx, 8
call sym.alloc::sync::Arc_T_A_::drop_slow::h6c489d886f08e611
mov rcx, qword [0x14035b0d0]
xor edx, edx
mov r8, rdi
call fcn.140137fbc
mov rax, rbx
jmp 0x140111e34
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h38e6cd0858e0f355
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h3a56cd97d8b2cb6b
mov ecx, eax
jmp 0x140111ddc
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h38e6cd0858e0f355
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h3a56cd97d8b2cb6b
mov ecx, eax
jmp 0x140111df0
mov ecx, 8
mov edx, 0x10
call sym.alloc::alloc::handle_alloc_error::h033f15fcf3b32b44
int3

Function at 0x140111f70
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rdi, rcx
mov rsi, qword [rcx]
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x140111f8d
dec ecx
jmp 0x140111f97
mov rcx, rsi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h3a56cd97d8b2cb6b
mov ecx, eax
mov edx, 1
call fcn.1401380cc
mov rax, qword [rdi + 8]
test rax, rax
je 0x140111fb9
lock dec qword [rax]
jne 0x140111fb9
lea rcx, [rdi + 8]
call sym.alloc::sync::Arc_T_A_::drop_slow::h6c489d886f08e611
mov rcx, qword [0x14035b0d0]
xor edx, edx
mov r8, rdi
call fcn.140137fbc
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x140111fd5
dec ecx
jmp 0x140111fdf
mov rcx, rsi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h3a56cd97d8b2cb6b
mov ecx, eax
xor edx, edx
add rsp, 0x20
pop rdi
pop rsi
pop rbp
jmp fcn.1401380cc
Function at 0x140112320
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov ecx, dword [0x1402ae0d0]
test ecx, ecx
je 0x14011234d
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x140112366
add rax, 8
jmp 0x1401123e1
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h11c5ff2709c8df73
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h3a56cd97d8b2cb6b
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x140112344
je 0x1401123df
movzx eax, byte [0x14035b110]
mov edx, 0x10
xor ecx, ecx
call sym.std::sys::pal::windows::alloc::process_heap_alloc::h5a8f05db6a24897c
test rax, rax
je 0x14011240a
mov rbx, rax
mov rsi, rax
lea rax, sym.std::sys::thread_local::os_local::destroy_value::h11c5ff2709c8df73
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x1402ae0d0]
test ecx, ecx
je 0x1401123ea
dec ecx
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, dword [0x1402ae0d0]
test ecx, ecx
je 0x1401123fa
dec ecx
add rbx, 8
mov rdx, rsi
call fcn.1401380cc
test rdi, rdi
je 0x1401123da
mov rcx, qword [0x14035b0d0]
xor edx, edx
mov r8, rdi
call fcn.140137fbc
mov rax, rbx
jmp 0x1401123e1
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h11c5ff2709c8df73
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h3a56cd97d8b2cb6b
mov ecx, eax
jmp 0x1401123a4
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h11c5ff2709c8df73
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h3a56cd97d8b2cb6b
mov ecx, eax
jmp 0x1401123b8
mov ecx, 8
mov edx, 0x10
call sym.alloc::alloc::handle_alloc_error::h033f15fcf3b32b44
int3
Function at 0x140112800
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov ecx, dword [0x1402ae0b0]
test ecx, ecx
je 0x14011282d
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x140112846
add rax, 8
jmp 0x1401128c9
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h11c5ff2709c8df73
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h3a56cd97d8b2cb6b
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x140112824
je 0x1401128c7
movzx eax, byte [0x14035b110]
mov edx, 0x18
xor ecx, ecx
call sym.std::sys::pal::windows::alloc::process_heap_alloc::h5a8f05db6a24897c
test rax, rax
je 0x1401128f2
mov rbx, rax
mov rsi, rax
lea rax, sym.std::sys::thread_local::os_local::destroy_value::h11c5ff2709c8df73
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov byte [rsi + 0x10], 0
mov ecx, dword [0x1402ae0b0]
test ecx, ecx
je 0x1401128d2
dec ecx
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, dword [0x1402ae0b0]
test ecx, ecx
je 0x1401128e2
dec ecx
add rbx, 8
mov rdx, rsi
call fcn.1401380cc
test rdi, rdi
je 0x1401128c2
mov rcx, qword [0x14035b0d0]
xor edx, edx
mov r8, rdi
call fcn.140137fbc
mov rax, rbx
jmp 0x1401128c9
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h11c5ff2709c8df73
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h3a56cd97d8b2cb6b
mov ecx, eax
jmp 0x14011288c
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h11c5ff2709c8df73
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h3a56cd97d8b2cb6b
mov ecx, eax
jmp 0x1401128a0
mov ecx, 8
mov edx, 0x18
add al, ch
xor r10b, r14b
dec esp
Function at 0x140115c10
Capabilities:
Read file via mapping

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov rax, r8
mov rsi, rcx
mov dword [rbp - 0x48], 0
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
mov dword [rbp - 0x30], 7
mov qword [rbp - 0x2c], 0
mov word [rbp - 0x24], 0
mov byte [rbp - 0x28], 1
lea r8, [rbp - 0x48]
mov rcx, rdx
mov rdx, rax
call sym.std::sys::pal::windows::fs::File::open::h3a6cfbd342f96e23
mov rdi, rdx
test rax, rax
je 0x140115c81
mov rcx, rdi
call sym.core::ptr::drop_in_place_std::io::error::Error_::hbbf69de94c165ea1
mov qword [rsi], 0
jmp 0x140115da7
lea rcx, [rbp - 0x48]
mov rdx, rdi
call sym.std::sys::pal::windows::fs::File::file_attr::h4fcaaad4960f1471
cmp dword [rbp - 0x48], 2
jne 0x140115cbc
mov rcx, qword [rbp - 0x40]
call sym.core::ptr::drop_in_place_std::io::error::Error_::hbbf69de94c165ea1
mov qword [rsi], 0
mov rcx, rdi
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
jmp fcn.140137e0c
mov r12, qword [rbp - 0x10]
test rdi, rdi
je 0x140115d0a
mov qword [rbp - 0x48], 0
call sub.kernel32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rbp - 0x48]
mov rcx, rax
mov rdx, rdi
mov r8, rax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
je 0x140115d86
mov rbx, qword [rbp - 0x48]
jmp 0x140115d0c
xor ebx, ebx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rbx
xor edx, edx
mov r8d, 2
xor r9d, r9d
call sub.kernel32.dll_CreateFileMappingA
test rax, rax
je 0x140115d75
mov r14, rax
mov qword [rsp + 0x20], r12
mov rcx, rax
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call sub.kernel32.dll_MapViewOfFile
mov r15, rax
mov rcx, r14
call fcn.140137e0c
test r15, r15
je 0x140115d75
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r12
mov qword [rsi], 1
jmp 0x140115d9f
mov qword [rsi], 0
mov rcx, rbx
call fcn.140137e0c
jmp 0x140115d9f
call sub.kernel32.dll_GetLastError
shl rax, 0x20
lea rcx, [rax + 2]
call sym.core::ptr::drop_in_place_std::io::error::Error_::hbbf69de94c165ea1
mov qword [rsi], 0
mov rcx, rdi
call fcn.140137e0c
nop
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
Function at 0x140130810
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
lea ebp, [rsp + 0x80]
Function at 0x140138cb0
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 sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x140138d20
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14035b194]
test esi, esi
mov rbx, rcx
jle 0x140138e50
mov rax, qword [0x14035b198]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140138d6b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140138df5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140138d50
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x140138e72
mov rax, qword [0x14035b198]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14035b198]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140138e57
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140138dee
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140138e00
add dword [0x14035b194], 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 [0x14035b198]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140138dee
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140138d78
mov rax, qword [0x14035b198]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1401393e0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14035b200]
mov rcx, r12
call qword [sym.imp.kernel32.dll_EnterCriticalSection]
mov rbx, qword [0x14035b1e0]
test rbx, rbx
je 0x14013943c
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 0x140139433
test rsi, rsi
je 0x140139433
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140139418
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 0x140139650
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop

Function at 0x140139660
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop

Function at 0x140139670
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140139688
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140139690
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1401396a0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx r8d, word [rcx + 6]
movzx eax, word [rcx + 0x14]
test r8w, r8w
lea rax, [rcx + rax + 0x18]
je 0x1401396ed
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rdx, r8
mov rcx, r8
jb 0x1401396e4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1401396ef
add rax, 0x28
cmp rax, r9
jne 0x1401396d0
xor eax, eax
ret

Function at 0x1401396f0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140139780
mov rdx, qword [0x140336770]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14013976e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14013976e
cmp word [rax + 0x18], 0x20b
jne 0x14013976e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140139780
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140139759
add rbx, 0x28
cmp rbx, rdi
je 0x140139780
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140139750
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

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

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

Function at 0x140139810
Capabilities:
Parse pe header

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

Disassembly:
mov r8, qword [0x140336770]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140139870
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140139878
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140139870
movzx r8d, word [rdx + 6]
movzx eax, word [rdx + 0x14]
test r8w, r8w
lea rax, [rdx + rax + 0x18]
je 0x1401398c0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1401398b7
test rcx, rcx
je 0x140139870
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1401398a8
xor eax, eax
ret

Function at 0x1401398d0
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x140336770]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140139930
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140139938
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140139930
movzx r9d, word [r8 + 6]
sub rcx, rdx
movzx edx, word [r8 + 0x14]
test r9w, r9w
lea rdx, [r8 + rdx + 0x18]
je 0x140139930
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x140139984
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140139990
add rdx, 0x28
cmp r9, rdx
jne 0x140139970
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x140336770]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1401399c2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1401399d0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1401399c2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1401399c2
movzx r10d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
test r10w, r10w
lea rdx, [r8 + rdx + 0x18]
je 0x1401399c2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
cmp rax, r9
mov r8, r9
jb 0x140139a25
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140139a38
add rdx, 0x28
cmp rdx, r10
jne 0x140139a10
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140139a47
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140139a57
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140139a2e
test ecx, ecx
jg 0x140139a40
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140148cd0
Capabilities:
Encode data using xor

Disassembly:
push rbx
mov r9d, dword [rcx + 0x60]
mov ebx, dword [rcx + 0x5c]
test r9d, r9d
mov r8, rcx
jle 0x140148d98
mov r10, qword [0x1403366f0]
movzx r11d, bl
mov edx, dword [rcx + 0x288]
xor ecx, ecx
nop word [rax + rax]
mov eax, edx
add ecx, 1
shl edx, 8
shr eax, 0x18
xor eax, r11d
xor edx, dword [r10 + rax*4]
cmp ecx, r9d
jne 0x140148d00
mov eax, ebx
mov dword [r8 + 0x288], edx
mov byte [r8 + rax + 0x80], 1
movsxd rax, dword [r8 + 0x6c]
add rax, qword [r8 + 0x40]
cmp ecx, 2
je 0x140148d90
cmp ecx, 3
je 0x140148d50
cmp ecx, 1
jne 0x140148da2
mov byte [rax], bl
mov eax, dword [r8 + 0x6c]
add eax, 1
mov dword [r8 + 0x6c], eax
pop rbx
ret
mov byte [rax], bl
mov eax, dword [r8 + 0x6c]
mov rdx, qword [r8 + 0x40]
add eax, 1
mov dword [r8 + 0x6c], eax
cdqe
mov byte [rdx + rax], bl
mov eax, dword [r8 + 0x6c]
mov rdx, qword [r8 + 0x40]
add eax, 1
mov dword [r8 + 0x6c], eax
cdqe
mov byte [rdx + rax], bl
mov eax, dword [r8 + 0x6c]
add eax, 1
mov dword [r8 + 0x6c], eax
pop rbx
ret
mov byte [rax], bl
jmp 0x140148d66
mov eax, ebx
mov byte [rcx + rax + 0x80], 1
sub r9d, 4
movsxd r9, r9d
mov byte [r8 + r9 + 0x80], 1
movsxd rax, dword [r8 + 0x6c]
mov rdx, qword [r8 + 0x40]
mov byte [rdx + rax], bl
mov eax, dword [r8 + 0x6c]
mov rdx, qword [r8 + 0x40]
add eax, 1
mov dword [r8 + 0x6c], eax
cdqe
mov byte [rdx + rax], bl
mov eax, dword [r8 + 0x6c]
mov rdx, qword [r8 + 0x40]
add eax, 1
mov dword [r8 + 0x6c], eax
cdqe
mov byte [rdx + rax], bl
mov eax, dword [r8 + 0x6c]
mov rdx, qword [r8 + 0x40]
add eax, 1
mov dword [r8 + 0x6c], eax
cdqe
mov byte [rdx + rax], bl
mov eax, dword [r8 + 0x6c]
mov edx, dword [r8 + 0x60]
mov rcx, qword [r8 + 0x40]
add eax, 1
mov dword [r8 + 0x6c], eax
sub edx, 4
cdqe
mov byte [rcx + rax], dl
mov eax, dword [r8 + 0x6c]
add eax, 1
mov dword [r8 + 0x6c], eax
pop rbx
ret
Function at 0x14014d0d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
lea rbp, [0x14033a300]
mov r13, qword [rcx + 0xa0]
mov rdi, qword [rcx + 0x10]
mov r12, qword [rcx]
test r13, r13
mov rsi, rcx
jne 0x14014d1eb
jmp 0x14014d240
sub eax, 1
mov byte [rsi + 0x1f], al
movzx eax, al
mov r14d, dword [rsi + rax*4 + 0xe4]
movsxd rax, dword [rdi + 0x90]
lea edx, [rbx + 2]
cmp eax, dword [rdi + 0x94]
lea r9d, [rax + 7]
jge 0x14014d220
lea ecx, [rax + 1]
mov dword [rdi + 0x90], ecx
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 0x88]
lea rax, [rax + rcx*8]
mov dword [rax + 4], edx
mov dword [rax + 8], r9d
mov dword [rax + 0xc], ebx
mov qword [rax + 0x10], 0
mov dword [rax], 0x37
mov rax, qword [r15 + 0x18]
xor edx, edx
mov rcx, rsi
mov r9, qword [rax + 0x68]
mov dword [rsp + 0x20], 0x71
call sym.sqlite3OpenTable
mov rdx, rbp
mov rcx, rdi
call sym.sqlite3VdbeAddOpList.constprop.1
test rax, rax
je 0x14014d240
lea edx, [rbx + 1]
movd xmm0, r14d
sub ebx, 1
mov dword [rax + 0x3c], r14d
movd xmm1, edx
mov dword [rax + 4], edx
test r14d, r14d
mov dword [rax + 0x20], edx
mov edx, 8
punpckldq xmm0, xmm1
mov dword [rax + 0x34], ebx
movq qword [rax + 0x50], xmm0
mov word [rax + 0x4a], dx
je 0x14014d1e2
movzx eax, byte [rsi + 0x1f]
cmp al, 7
ja 0x14014d1e2
lea edx, [rax + 1]
mov byte [rsi + 0x1f], dl
mov dword [rsi + rax*4 + 0xe4], r14d
mov r13, qword [r13]
test r13, r13
je 0x14014d240
movsxd r15, dword [r13 + 0x10]
movzx eax, byte [rsi + 0x1f]
mov ebx, dword [r13 + 0x14]
mov r8, r15
shl r15, 5
add r15, qword [r12 + 0x20]
test al, al
jne 0x14014d110
mov eax, dword [rsi + 0x38]
lea r14d, [rax + 1]
mov dword [rsi + 0x38], r14d
jmp 0x14014d121
mov r8d, edx
mov dword [rsp + 0x20], ebx
mov edx, 0x37
mov rcx, rdi
call sym.growOp3
mov r8d, dword [r13 + 0x10]
jmp 0x14014d16b
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140163770
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x78
movaps xmmword [rsp + 0x60], xmm6
movzx eax, byte [rdx]
cmp al, 0xb0
mov rdi, rdx
mov rsi, rcx
mov edx, eax
jne 0x140163798
movzx edx, byte [rdi + 2]
cmp dl, 0xb1
je 0x140163928
cmp dl, 0x8a
je 0x1401637d0
movaps xmm6, xmmword [rsp + 0x60]
mov rdx, rdi
mov rcx, rsi
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp sym.sqlite3ExprCodeTemp
mov rdx, qword [rdi + 0x20]
mov rcx, qword [rdx + 0x20]
mov ebp, dword [rcx]
cmp ebp, 1
je 0x1401637a6
cmp al, 0x8a
mov dword [r8], 0
je 0x140163938
mov eax, dword [rsi + 0x38]
lea r13d, [rax + 1]
add eax, ebp
test ebp, ebp
mov dword [rsi + 0x38], eax
jle 0x14016390a
lea rax, [sym.sqlite3SelectWalkFail]
xor ebx, ebx
lea rcx, [sym.exprNodeIsConstant]
movq xmm0, rax
lea r14, [rsp + 0x30]
movq xmm6, rcx
punpcklqdq xmm6, xmm0
jmp 0x1401638b7
mov eax, 2
test rdx, rdx
movups xmmword [rsp + 0x38], xmm6
mov word [rsp + 0x54], ax
mov dword [rsp + 0x58], 0
je 0x1401638f8
mov rcx, r14
mov qword [rsp + 0x28], rdx
call sym.walkExpr
cmp word [rsp + 0x54], 0
mov rdx, qword [rsp + 0x28]
jne 0x1401638f8
mov r15, qword [rsi]
mov rcx, r15
call sym.exprDup.constprop.0
cmp byte [r15 + 0x67], 0
mov rdx, rax
jne 0x14016389f
cmp qword [rsi + 0x10], 0
je 0x14016389f
mov r8d, r12d
mov rcx, rsi
mov qword [rsp + 0x28], rax
call sym.sqlite3ExprCode.part.0
mov rdx, qword [rsp + 0x28]
test rdx, rdx
je 0x1401638ac
mov rcx, r15
call sym.sqlite3ExprDeleteNN
add ebx, 1
cmp ebx, ebp
je 0x14016390a
mov rdx, qword [rdi + 0x20]
lea r12d, [r13 + rbx]
movsxd rax, ebx
shl rax, 5
cmp byte [rsi + 0x23], 0
mov rdx, qword [rdx + rax + 8]
jne 0x140163830
test rdx, rdx
mov r15, qword [rsi]
jne 0x140163871
cmp byte [r15 + 0x67], 0
jne 0x1401638ac
cmp qword [rsi + 0x10], 0
je 0x1401638ac
mov r8d, r12d
mov rcx, rsi
call sym.sqlite3ExprCode.part.0
jmp 0x1401638ac
mov r8d, r12d
mov rcx, rsi
add ebx, 1
call sym.sqlite3ExprCodeRunJustOnce
cmp ebx, ebp
jne 0x1401638b3
movaps xmm6, xmmword [rsp + 0x60]
mov eax, r13d
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rdx, qword [rdi + 0x20]
mov ebp, dword [rdx]
jmp 0x1401637da
movaps xmm6, xmmword [rsp + 0x60]
mov rdx, rdi
mov rcx, rsi
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp sym.sqlite3CodeSubselect

Function at 0x14016c540
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
jle 0x14016c570
mov edx, edx
xor eax, eax
lea r9, [rcx + rdx]
nop dword [rax]
movsx r8d, byte [rcx]
lea edx, [rax*8]
add rcx, 1
xor eax, r8d
xor eax, edx
cmp rcx, r9
jne 0x14016c550
and eax, 0x7fffffff
ret
xor eax, eax
ret