joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14019cdc0
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rbx, r8
mov r14, rdx
mov rdi, rcx
movzx eax, byte [0x14039f278]
mov edx, 0x10
xor ecx, ecx
call dbg.process_heap_alloc
test rax, rax
je 0x14019ce75
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rbx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [dbg.thread_start]
xor ebx, ebx
xor ecx, ecx
mov rdx, rdi
mov r9, rax
call sub.KERNEL32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x14019ce68
mov rbx, qword [rsi]
mov r14, qword [rsi + 8]
mov rcx, rbx
call qword [r14]
cmp qword [r14 + 8], 0
je 0x14019ce47
mov rdx, qword [r14 + 0x10]
mov rcx, rbx
call sym.__rust_dealloc
mov edx, 8
mov rcx, rsi
call sym.__rust_dealloc
call sub.KERNEL32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov ebx, 1
mov rax, rbx
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov ecx, 8
mov edx, 0x10
call dbg.handle_alloc_error
ud2

Function at 0x14019d110
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov eax, 0x1098
call dbg.___chkstk_ms
sub rsp, rax
movaps xmmword [rsp + 0x1080], xmm6
mov rsi, rdx
mov rdi, rcx
lea r14, [rsp + 0x80]
mov r8d, 0x1000
mov rcx, r14
xor edx, edx
call sub.msvcrt.dll_memset
xorps xmm6, xmm6
lea r15, [rsp + 0x34]
lea rbx, [dbg.callback]
lea r12, [rsp + 0x60]
mov r8d, 0x1000
mov rcx, rdi
mov rdx, r14
call dbg.read
mov r13, rdx
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rdx
test rax, rax
jne 0x14019d2a9
test r13, r13
je 0x14019d27d
cmp r13, 0x1000
ja 0x14019d2b5
xor ebp, ebp
nop word cs:[rax + rax]
mov r8d, r13d
sub r8d, ebp
lea rdx, [rsp + rbp]
add rdx, 0x80
mov dword [rsp + 0x34], 0
movaps xmmword [rsp + 0x60], xmm6
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], r15
mov qword [rsp + 0x20], rbx
mov rcx, rsi
mov r9, r12
call sub.KERNEL32.dll_WriteFileEx
test eax, eax
je 0x14019d258
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rsp + 0x34], 0
je 0x14019d1f0
mov ecx, dword [rsp + 0x38]
mov eax, dword [rsp + 0x3c]
mov rdx, rcx
shl rdx, 0x20
or rdx, 2
xor r8d, r8d
test ecx, ecx
setne r8b
cmove rdx, rax
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x48], rdx
jne 0x14019d273
add rbp, rax
cmp rbp, r13
je 0x14019d163
jbe 0x14019d1b0
lea r8, str.library_std_src_syspalwindowspipe.rs
mov rcx, rbp
mov rdx, r13
call dbg.slice_index_order_fail
jmp 0x14019d2c9
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x40], 1
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x48]
call dbg.drop_in_place<std::io::error::Error>
mov rcx, rdi
call fcn.1401c0754
mov rcx, rsi
call fcn.1401c0754
movaps xmm6, xmmword [rsp + 0x1080]
add rsp, 0x1098
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [rsp + 0x58]
call dbg.drop_in_place<std::io::error::Error>
jmp 0x14019d27d
lea r8, str.library_std_src_syspalwindowspipe.rs
mov edx, 0x1000
mov rcx, r13
call dbg.slice_end_index_len_fail
ud2
Function at 0x14019f300
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
cmp qword [rdx], 0
jne 0x14019f469
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx]
test rax, rax
jne 0x14019f337
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x14019f453
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x14019f436
sub rax, rdx
add rdx, qword [rbx + 8]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x2c], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x2c]
mov r8d, eax
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x14019f398
mov eax, dword [rsp + 0x2c]
mov ecx, 2
test rax, rax
je 0x14019f3dc
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
jmp 0x14019f3e0
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x40], rax
movabs rcx, 0xffffffff00000000
and rcx, rax
movabs rdx, 0x6d00000000
cmp rcx, rdx
je 0x14019f3e4
movabs rdx, 0x3e500000000
cmp rcx, rdx
jne 0x14019f413
lea rax, [rsp + 0x30]
jmp 0x14019f3f2
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x14019f419
mov qword [rsp + 0x30], 1
lea rax, [rsp + 0x38]
mov qword [rax], 0
lea rcx, [rsp + 0x40]
call dbg.drop_in_place<std::io::error::Error>
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
cmp rcx, 2
jne 0x14019f423
mov qword [rsi + 8], rax
mov al, 1
mov byte [rsi], al
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
test rcx, rcx
jne 0x14019f381
mov ecx, 1
jmp 0x14019f38b
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call dbg.do_reserve_and_handle<u8, alloc::alloc::Global>
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
jmp 0x14019f344
mov r8d, 0x10
mov rcx, rbx
call dbg.do_reserve_and_handle<u8, alloc::alloc::Global>
mov rax, qword [rbx]
jmp 0x14019f337
mov qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call dbg.assert_failed<std::sys::pal::windows::pipe::State, std::sys::pal::windows::pipe::State>
int3

Function at 0x1401a2de0
Capabilities:
Delete file

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov r8, rdx
mov rdx, rcx
movabs rdi, 0x8000000000000000
lea rcx, [rsp + 0x28]
call sym.std::sys::pal::windows::to_u16s::inner::h4c9a51427fa9952c
mov rax, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
cmp rax, rdi
je 0x1401a2e45
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x40]
mov r8b, 1
call dbg.get_long_path
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
cmp rbx, rdi
jne 0x1401a2e50
mov rax, rsi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
mov rcx, rsi
call sub.KERNEL32.dll_DeleteFileW
test eax, eax
je 0x1401a2e72
test rbx, rbx
je 0x1401a2e96
mov edx, 2
mov rcx, rsi
call sym.__rust_dealloc
xor eax, eax
jmp 0x1401a2e48
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
test rbx, rbx
je 0x1401a2e48
mov edx, 2
mov rcx, rsi
mov rsi, rax
call sym.__rust_dealloc
jmp 0x1401a2e45
xor eax, eax
jmp 0x1401a2e48
Function at 0x1401a3840
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x30
mov ecx, dword [0x140273210]
test ecx, ecx
je 0x1401a390c
dec ecx
call fcn.1401c03bc
cmp rax, 2
jb 0x1401a386b
cmp qword [rax + 8], 0
jne 0x1401a38fe
mov ecx, dword [0x140273210]
test ecx, ecx
je 0x1401a391f
dec ecx
call fcn.1401c03bc
cmp rax, 1
je 0x1401a3904
mov rsi, rax
test rax, rax
jne 0x1401a38d3
movzx eax, byte [0x14039f278]
mov edx, 0x20
xor ecx, ecx
call dbg.process_heap_alloc
test rax, rax
je 0x1401a3948
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
mov qword [rax], rcx
mov qword [rax + 8], 0
mov ecx, dword [0x140273210]
test ecx, ecx
je 0x1401a3932
dec ecx
mov rsi, rax
mov rdx, rax
call fcn.1401c03b4
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
mov edx, 0x10
call sub.bcryptprimitives.dll_ProcessPrng
movaps xmm0, xmmword [rsp + 0x20]
mov rax, rsi
mov qword [rsi + 8], 1
movups xmmword [rsi + 0x10], xmm0
add rax, 0x10
jmp 0x1401a3906
xor eax, eax
add rsp, 0x30
pop rsi
ret
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
call dbg.init
mov ecx, eax
jmp 0x1401a3855
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
call dbg.init
mov ecx, eax
jmp 0x1401a387b
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
mov rsi, rax
call dbg.init
mov ecx, eax
mov rax, rsi
jmp 0x1401a38c8
mov ecx, 8
mov edx, 0x20
call dbg.handle_alloc_error
int3

Function at 0x1401a3dad
Capabilities:
Encode data using xor

Disassembly:
sub rdx, rcx
cmp rdx, 0x20
jb sym.core::str::count::char_count_general_case::hce1828266e934a3a
jmp dbg.do_count_chars

Function at 0x1401a6234
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov rax, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x1401a624d
dec ecx
add rsp, 0x28
jmp fcn.1401c03bc
mov rcx, rax
call dbg.init
mov ecx, eax
jmp 0x1401a6244

Function at 0x1401aa880
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 0x1401aa887
test al, 1
je 0x1401aa8a6
test al, 2
jne 0x1401aa8be
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x14032ffe8]
mov edx, 0x23
call dbg.panic
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x140330028]
mov edx, 0x25
call dbg.panic
int3
Function at 0x1401ab5d2
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 rsi, r8
mov rdi, rdx
mov rbx, rcx
lea r14, [rsp + 0x2a]
lea r15, [rsp + 0x42]
mov r12, qword [rcx + 0x10]
mov r13d, 0x7fffffff
cmp r9, r13
cmovb r13, r9
mov rax, qword [rcx + 0x18]
mov qword [rsp + 0x50], rax
mov rax, qword [rcx + 0x20]
mov qword [rsp + 0x48], rax
lea rbp, [rsp + 0x20]
mov qword [rsp + 0x30], r13
mov rcx, rbp
mov rdx, r12
mov r8, rdi
call sym.tokio::runtime::io::registration::Registration::poll_write_ready::h33e72e0c06b55f58
mov al, byte [rsp + 0x29]
cmp al, 3
je 0x1401ab744
mov rbp, qword [rsp + 0x20]
cmp al, 2
je 0x1401ab73d
mov cl, byte [rsp + 0x28]
movzx edx, word [r14 + 4]
mov word [r15 + 4], dx
mov edx, dword [r14]
mov dword [r15], edx
mov qword [rsp + 0x38], rbp
mov byte [rsp + 0x40], cl
mov byte [rsp + 0x41], al
mov rcx, qword [rsp + 0x50]
cmp rcx, 0xffffffffffffffff
je 0x1401ab764
mov rdx, rsi
mov r8d, r13d
xor r9d, r9d
call sub.ws2_32.dll_send
cmp eax, 0xffffffff
jne 0x1401ab74b
call sub.ws2_32.dll_WSAGetLastError
mov ebp, eax
shl rbp, 0x20
or rbp, 2
mov rcx, rbp
call sym._ZN3std2io5error5Error4kind17hc7978a4119a3c2fcE.1196
cmp al, 0xd
jne 0x1401ab70d
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x1401ab70d
mov rcx, qword [rax]
mov rdx, qword [rax + 8]
lock inc qword [rdx]
jle 0x1401ab770
mov r13, r12
mov r12, rbx
mov rbx, r14
add rcx, 0x10
mov r8, qword [rax + 0x10]
mov r9b, byte [rax + 0x18]
call sym.mio::sys::windows::selector::SelectorInner::reregister::hbeac8499d96e92c9
mov r14, rax
xor ecx, ecx
call sym.core::ptr::drop_in_place_core::option::Option_std::io::error::Error__::hf865ec44489aa6dc
test r14, r14
je 0x1401ab6ff
mov ecx, 1
mov rdx, rbp
call sym.core::ptr::drop_in_place_core::result::Result_usize_std::io::error::Error__::h84ba9da0a59e678a
mov rbp, r14
mov r14, rbx
mov rbx, r12
mov r12, r13
mov r13, qword [rsp + 0x30]
mov rcx, rbp
call sym._ZN3std2io5error5Error4kind17hc7978a4119a3c2fcE.1917
cmp al, 0xd
jne 0x1401ab73d
mov qword [rsp + 0x20], rbp
mov rcx, rbx
lea rdx, [rsp + 0x38]
call sym.tokio::runtime::io::registration::Registration::clear_readiness::h10373547f72e2ca0
lea rbp, [rsp + 0x20]
mov rcx, rbp
call sym.core::ptr::drop_in_place_std::io::error::Error_::h92491c6b599e0828
jmp 0x1401ab622
mov eax, 1
jmp 0x1401ab750
mov eax, 2
jmp 0x1401ab750
movsxd rbp, eax
xor eax, eax
mov rdx, rbp
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str._root_.cargo_registry_src_index.crates.io_6f17d22bba15001f_tokio_1.36.0_src_io_poll_evented.rs
call dbg.unwrap_failed
ud2
Function at 0x1401ab772
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, 0x98
movaps xmmword [rsp + 0x80], xmm6
mov rsi, r8
mov r15, rdx
mov rbx, rcx
lea r13, [rsp + 0x4a]
lea r12, [rsp + 0x5a]
lea rdi, [rsp + 0x48]
mov rax, qword [rcx + 0x10]
mov qword [rsp + 0x78], rax
mov rbp, qword [rcx + 0x18]
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
mov qword [rsp + 0x70], rax
mov rax, qword [rcx + 0x20]
mov qword [rsp + 0x60], rax
xorps xmm6, xmm6
mov qword [rsp + 0x68], rbp
lea rcx, [rsp + 0x40]
mov rdx, qword [rsp + 0x78]
mov r8, r15
mov r9b, 1
call sym.tokio::runtime::io::registration::Registration::poll_ready::hedd3fffc5f32e488
mov al, byte [rsp + 0x49]
cmp al, 3
je 0x1401ab91b
mov r14, qword [rsp + 0x40]
cmp al, 2
je 0x1401ab922
mov cl, byte [rsp + 0x48]
movzx edx, word [r13 + 4]
mov word [r12 + 4], dx
mov edx, dword [r13]
mov dword [r12], edx
mov qword [rsp + 0x50], r14
mov byte [rsp + 0x58], cl
mov byte [rsp + 0x59], al
cmp rbp, 0xffffffffffffffff
je 0x1401ab952
and dword [rsp + 0x3c], 0
movups xmmword [rsp + 0x28], xmm6
and dword [rsp + 0x20], 0
mov rcx, rbp
mov rdx, rsi
mov r8, qword [rsp + 0x70]
lea r9, [rsp + 0x3c]
call sub.ws2_32.dll_WSASend
cmp eax, 0xffffffff
jne 0x1401ab929
mov r14d, eax
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
xor ebp, ebp
cmp r14d, 0xffffffff
sete bpl
mov r14d, dword [rsp + 0x3c]
cmove r14, rax
mov rcx, r14
call sym._ZN3std2io5error5Error4kind17hc7978a4119a3c2fcE.1196
cmp al, 0xd
jne 0x1401ab8e6
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x1401ab8e6
mov rcx, qword [rax]
mov rdx, qword [rax + 8]
lock inc qword [rdx]
jle 0x1401ab95e
mov rdi, r13
mov r13, rbx
add rcx, 0x10
mov r8, qword [rax + 0x10]
mov r9b, byte [rax + 0x18]
call sym.mio::sys::windows::selector::SelectorInner::reregister::hbeac8499d96e92c9
mov rbx, rax
xor ecx, ecx
call sym.core::ptr::drop_in_place_core::option::Option_std::io::error::Error__::hf865ec44489aa6dc
test rbx, rbx
je 0x1401ab8db
mov rcx, rbp
mov rdx, r14
call sym.core::ptr::drop_in_place_core::result::Result_usize_std::io::error::Error__::h84ba9da0a59e678a
mov r14, rbx
mov rbx, r13
mov r13, rdi
lea rdi, [rsp + 0x48]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], r14
mov rcx, r14
call sym._ZN3std2io5error5Error4kind17hc7978a4119a3c2fcE.1917
cmp al, 0xd
jne 0x1401ab930
mov rcx, rbx
lea rdx, [rsp + 0x50]
call sym.tokio::runtime::io::registration::Registration::clear_readiness::h10373547f72e2ca0
mov rcx, rdi
call sym.core::ptr::drop_in_place_std::io::error::Error_::h92491c6b599e0828
mov rbp, qword [rsp + 0x68]
jmp 0x1401ab7d4
mov ebp, 2
jmp 0x1401ab930
mov ebp, 1
jmp 0x1401ab930
mov r14d, dword [rsp + 0x3c]
xor ebp, ebp
mov rax, rbp
mov rdx, r14
movaps xmm6, xmmword [rsp + 0x80]
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str._root_.cargo_registry_src_index.crates.io_6f17d22bba15001f_tokio_1.36.0_src_io_poll_evented.rs
call dbg.unwrap_failed
ud2
Function at 0x1401c1f40
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 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 0x1401c1fb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14039f2f4]
mov rbx, rcx
test esi, esi
jle 0x1401c20e0
mov rax, qword [0x14039f2f8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1401c1ffb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1401c2085
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1401c1fe0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x1401c2102
mov rax, qword [0x14039f2f8]
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 [0x14039f2f8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1401c20e7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1401c207e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1401c2090
add dword [0x14039f2f4], 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 [0x14039f2f8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1401c207e
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 0x1401c2008
mov rax, qword [0x14039f2f8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1401c2690
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14039f360]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14039f340]
test rbx, rbx
je 0x1401c26ec
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 rsi, rsi
je 0x1401c26e3
test eax, eax
jne 0x1401c26e3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1401c26c8
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 0x1401c2900
Capabilities:
Parse pe header

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

Function at 0x1401c2930
Capabilities:
Enumerate pe sections

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

Function at 0x1401c2980
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1401c2a10
mov rdx, qword [0x140364510]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1401c29fe
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1401c29fe
cmp word [rax + 0x18], 0x20b
jne 0x1401c29fe
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1401c2a10
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1401c29e9
add rbx, 0x28
cmp rbx, rdi
je 0x1401c2a10
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1401c29e0
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 0x1401c2a20
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x1401c2aa0
Capabilities:
Parse pe header

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

Disassembly:
mov r8, qword [0x140364510]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1401c2b00
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1401c2b08
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1401c2b00
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1401c2b50
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1401c2b47
test rcx, rcx
je 0x1401c2b00
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x1401c2b38
xor eax, eax
ret

Function at 0x1401c2b60
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x140364510]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1401c2bc0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1401c2bc8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1401c2bc0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1401c2bc0
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]
mov rax, r8
cmp rcx, r8
jb 0x1401c2c14
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1401c2c20
add rdx, 0x28
cmp rdx, r9
jne 0x1401c2c00
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x140364510]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1401c2c52
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1401c2c60
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1401c2c52
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1401c2c52
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1401c2c52
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]
mov r8, r9
cmp rax, r9
jb 0x1401c2cb5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1401c2cc8
add rdx, 0x28
cmp r10, rdx
jne 0x1401c2ca0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1401c2cd7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1401c2ce7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1401c2cbe
test ecx, ecx
jg 0x1401c2cd0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x1401c88b0
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 0x1401c894f
mov r12, qword [rcx + 0x80]
mov qword [rsp + 0x28], rdx
mov rcx, r12
call sym.sqlite3VdbeAllocUnpackedRecord
mov rbx, rax
mov eax, 7
test rbx, rbx
je 0x1401c8962
mov rdx, qword [rsp + 0x28]
mov r9, rbx
mov r8, rbp
mov rcx, r12
call sym.sqlite3VdbeRecordUnpack
mov eax, dword [rbx + 0x1c]
test ax, ax
je 0x1401c8918
cmp word [r12 + 8], ax
jae 0x1401c8924
mov ecx, 0x113a8
call sym.sqlite3CorruptError
jmp 0x1401c8932
mov r8, r13
mov rdx, rbx
mov rcx, rsi
call sym.sqlite3BtreeIndexMoveto
mov rdx, qword [rsi + 0x80]
mov dword [rsp + 0x28], eax
mov rcx, qword [rdx + 0x10]
mov rdx, rbx
call sym.sqlite3DbFree
mov eax, dword [rsp + 0x28]
jmp 0x1401c8962
mov r9, r13
add rsp, 0x30
pop rbx
pop rsi
pop rbp
pop r12
pop r13
jmp sym.sqlite3BtreeTableMoveto
add rsp, 0x30
pop rbx
pop rsi
pop rbp
pop r12
pop r13
ret