joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14010afe0
Capabilities:
Read file via mapping

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xe0
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x50], xmm6
mov rax, r8
mov rsi, rcx
mov dword [rbp - 0x40], 0
xorps xmm6, xmm6
movups xmmword [rbp - 0x38], xmm6
mov dword [rbp - 0x28], 7
mov qword [rbp - 0x24], 0
mov word [rbp - 0x1c], 0
mov byte [rbp - 0x20], 1
lea r8, [rbp - 0x40]
mov rcx, rdx
mov rdx, rax
call sym._ZN3std3sys3pal7windows2fs4File4open17h5f3455c4c015c021E.llvm.16992393060595779045
mov rdi, rdx
test rax, rax
je 0x14010b05e
mov qword [rbp + 0x10], rax
lea rcx, [rbp + 0x18]
mov qword [rbp + 0x18], rdi
call sym._ZN4core3ptr42drop_in_place_LT_std..io..error..Error_GT_17h1101bbc27c16f6e8E.llvm.16992393060595779045
mov qword [rsi], 0
jmp 0x14010b1fa
movaps xmmword [rbp + 0x30], xmm6
movaps xmmword [rbp + 0x20], xmm6
movaps xmmword [rbp + 0x10], xmm6
mov dword [rbp + 0x40], 0
lea rdx, [rbp + 0x10]
mov rcx, rdi
call sub.kernel32.dll_GetFileInformationByHandle
test eax, eax
je 0x14010b100
test byte [rbp + 0x11], 4
je 0x14010b0aa
mov qword [rbp + 8], 0
lea r8, [rbp + 8]
mov rcx, rdi
mov edx, 9
mov r9d, 8
call sub.kernel32.dll_GetFileInformationByHandleEx
test eax, eax
je 0x14010b100
mov r12d, dword [rbp + 0x30]
mov r15d, dword [rbp + 0x34]
test rdi, rdi
je 0x14010b146
mov qword [rbp + 0x10], 0
call sub.kernel32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rbp + 0x10]
mov rcx, rax
mov rdx, rdi
mov r8, rax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
je 0x14010b1c9
mov rbx, qword [rbp + 0x10]
jmp 0x14010b148
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
lea rcx, [rbp - 0x38]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 2
call sym._ZN4core3ptr42drop_in_place_LT_std..io..error..Error_GT_17h1101bbc27c16f6e8E.llvm.16992393060595779045
mov qword [rsi], 0
mov rcx, rdi
movaps xmm6, xmmword [rbp + 0x50]
add rsp, 0xe0
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
jmp fcn.1401299dc
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 0x14010b1b8
mov r14, rax
shl r12, 0x20
or r12, r15
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.1401299dc
test r15, r15
je 0x14010b1b8
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r12
mov qword [rsi], 1
jmp 0x14010b1f2
mov qword [rsi], 0
mov rcx, rbx
call fcn.1401299dc
jmp 0x14010b1f2
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x40], 1
lea rcx, [rbp - 0x38]
mov qword [rbp - 0x38], rax
call sym._ZN4core3ptr42drop_in_place_LT_std..io..error..Error_GT_17h1101bbc27c16f6e8E.llvm.16992393060595779045
mov qword [rsi], 0
mov rcx, rdi
call fcn.1401299dc
movaps xmm6, xmmword [rbp + 0x50]
add rsp, 0xe0
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
Function at 0x14010d050
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov ecx, dword [0x14012f7b8]
test ecx, ecx
je 0x14010d118
dec ecx
call fcn.140129bfc
cmp rax, 2
jb 0x14010d086
cmp qword [rax + 8], 0
je 0x14010d086
add rax, 0x10
jmp 0x14010d111
mov ecx, dword [0x14012f7b8]
test ecx, ecx
je 0x14010d12b
dec ecx
call fcn.140129bfc
cmp rax, 1
je 0x14010d10f
test rax, rax
jne 0x14010d0f2
mov rax, qword [0x1401c96c8]
movzx eax, byte [rax]
mov r8d, 0x20
xor edx, edx
call sym.std::sys::pal::windows::alloc::process_heap_alloc::h54baaa069cfd9f2e
test rax, rax
je 0x14010d154
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h5a628db256e6f7e2
mov qword [rax], rcx
mov qword [rax + 8], 0
mov ecx, dword [0x14012f7b8]
test ecx, ecx
je 0x14010d13e
dec ecx
mov rdx, rax
mov rsi, rax
call fcn.140129c04
mov rax, rsi
mov qword [rax + 8], 1
mov rcx, rax
add rax, 0x10
mov qword [rcx + 0x10], 0
mov byte [rcx + 0x18], 0
jmp 0x14010d111
xor eax, eax
add rsp, 0x28
pop rsi
pop rbp
ret
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h5a628db256e6f7e2
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h76a98b32ece36886
mov ecx, eax
jmp 0x14010d06b
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h5a628db256e6f7e2
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h76a98b32ece36886
mov ecx, eax
jmp 0x14010d096
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h5a628db256e6f7e2
mov rsi, rax
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h76a98b32ece36886
mov ecx, eax
mov rax, rsi
jmp 0x14010d0e4
mov ecx, 8
mov edx, 0x20
call sym.alloc::alloc::handle_alloc_error::hd693885652fa1428
int3
Function at 0x14010d170
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov ecx, dword [0x14012f7d8]
test ecx, ecx
je 0x14010d211
dec ecx
call fcn.140129bfc
cmp rax, 2
jb 0x14010d19c
cmp byte [rax + 8], 0
jne 0x14010d202
mov ecx, dword [0x14012f7d8]
test ecx, ecx
je 0x14010d224
dec ecx
call fcn.140129bfc
cmp rax, 1
je 0x14010d208
test rax, rax
jne 0x14010d1fc
mov rax, qword [0x1401c96c8]
movzx eax, byte [rax]
mov r8d, 0x10
xor edx, edx
call sym.std::sys::pal::windows::alloc::process_heap_alloc::h54baaa069cfd9f2e
test rax, rax
je 0x14010d24d
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h5a628db256e6f7e2
mov qword [rax], rcx
mov byte [rax + 8], 0
mov ecx, dword [0x14012f7d8]
test ecx, ecx
je 0x14010d237
dec ecx
mov rdx, rax
mov rsi, rax
call fcn.140129c04
mov rax, rsi
mov word [rax + 8], 1
add rax, 9
jmp 0x14010d20a
xor eax, eax
add rsp, 0x28
pop rsi
pop rbp
ret
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h5a628db256e6f7e2
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h76a98b32ece36886
mov ecx, eax
jmp 0x14010d18b
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h5a628db256e6f7e2
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h76a98b32ece36886
mov ecx, eax
jmp 0x14010d1a8
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h5a628db256e6f7e2
mov rsi, rax
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h76a98b32ece36886
mov ecx, eax
mov rax, rsi
jmp 0x14010d1ee
mov ecx, 8
mov edx, 0x10
call sym.alloc::alloc::handle_alloc_error::hd693885652fa1428
int3
Function at 0x14010d260
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x40
lea rbp, [rsp + 0x40]
mov rsi, rcx
mov ecx, dword [0x14012f7f8]
test ecx, ecx
je 0x14010d37c
dec ecx
call fcn.140129bfc
cmp rax, 2
jb 0x14010d295
cmp qword [rax + 8], 0
jne 0x14010d370
mov ecx, dword [0x14012f7f8]
test ecx, ecx
je 0x14010d38f
dec ecx
call fcn.140129bfc
cmp rax, 1
je 0x14010d32f
test rax, rax
jne 0x14010d315
mov qword [rbp - 0x10], 0
lea rax, sym.std::sys::thread_local::os_local::destroy_value::ha1aef5e955f5f394
mov qword [rbp - 0x18], rax
mov rax, qword [0x1401c96c8]
movzx eax, byte [rax]
mov r8d, 0x18
xor edx, edx
call sym.std::sys::pal::windows::alloc::process_heap_alloc::h54baaa069cfd9f2e
test rax, rax
je 0x14010d3bb
mov rcx, qword [rbp - 8]
mov qword [rax + 0x10], rcx
movups xmm0, xmmword [rbp - 0x18]
movups xmmword [rax], xmm0
mov ecx, dword [0x14012f7f8]
test ecx, ecx
je 0x14010d3a2
dec ecx
mov rdx, rax
mov rdi, rax
call fcn.140129c04
mov rax, rdi
test rsi, rsi
je 0x14010d333
mov rcx, qword [rsi]
mov qword [rsi], 0
test rcx, rcx
je 0x14010d335
mov rcx, qword [rsi + 8]
jmp 0x14010d335
xor eax, eax
jmp 0x14010d374
xor ecx, ecx
mov r8, qword [rax + 8]
mov rdx, qword [rax + 0x10]
mov qword [rbp - 0x18], r8
mov qword [rbp - 0x10], rdx
mov qword [rax + 8], 1
mov qword [rax + 0x10], rcx
test r8, r8
je 0x14010d370
test rdx, rdx
je 0x14010d370
lock dec qword [rdx]
jne 0x14010d370
lea rcx, [rbp - 0x10]
mov rsi, rax
call sym._ZN5alloc4sync16Arc_LT_T_C_A_GT_9drop_slow17hf2862ae8173c2487E.llvm.16992393060595779045
mov rax, rsi
add rax, 0x10
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::ha1aef5e955f5f394
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h76a98b32ece36886
mov ecx, eax
jmp 0x14010d27f
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::ha1aef5e955f5f394
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h76a98b32ece36886
mov ecx, eax
jmp 0x14010d2a5
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::ha1aef5e955f5f394
mov rdi, rax
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h76a98b32ece36886
mov ecx, eax
mov rax, rdi
jmp 0x14010d307
mov ecx, 8
mov edx, 0x18
call sym.alloc::alloc::handle_alloc_error::hd693885652fa1428
ud2
Function at 0x14010d3f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov rsi, rcx
mov ecx, dword [0x14012f818]
test ecx, ecx
je 0x14010d4ed
dec ecx
call fcn.140129bfc
cmp rax, 2
jb 0x14010d425
cmp qword [rax + 8], 0
jne 0x14010d4dd
mov ecx, dword [0x14012f818]
test ecx, ecx
je 0x14010d500
dec ecx
call fcn.140129bfc
cmp rax, 1
je 0x14010d4e3
test rax, rax
jne 0x14010d499
mov rax, qword [0x1401c96c8]
movzx eax, byte [rax]
mov r8d, 0x20
xor edx, edx
call sym.std::sys::pal::windows::alloc::process_heap_alloc::h54baaa069cfd9f2e
test rax, rax
je 0x14010d52c
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h5a628db256e6f7e2
mov qword [rax], rcx
mov qword [rax + 8], 0
mov ecx, dword [0x14012f818]
test ecx, ecx
je 0x14010d513
dec ecx
mov rdx, rax
mov rdi, rax
call fcn.140129c04
mov rax, rdi
test rsi, rsi
je 0x14010d4b2
mov rcx, qword [rsi]
movups xmm0, xmmword [rsi + 8]
mov qword [rsi], 0
cmp rcx, 1
je 0x14010d4d1
xorps xmm0, xmm0
movaps xmmword [rbp - 0x10], xmm0
lea rcx, [rbp - 0x10]
mov edx, 0x10
mov rsi, rax
call sub.bcryptprimitives.dll_ProcessPrng
mov rax, rsi
movaps xmm0, xmmword [rbp - 0x10]
mov qword [rax + 8], 1
movups xmmword [rax + 0x10], xmm0
add rax, 0x10
jmp 0x14010d4e5
xor eax, eax
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h5a628db256e6f7e2
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h76a98b32ece36886
mov ecx, eax
jmp 0x14010d40f
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h5a628db256e6f7e2
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h76a98b32ece36886
mov ecx, eax
jmp 0x14010d435
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h5a628db256e6f7e2
mov rdi, rax
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h76a98b32ece36886
mov ecx, eax
mov rax, rdi
jmp 0x14010d48b
mov ecx, 8
mov edx, 0x20
call sym.alloc::alloc::handle_alloc_error::hd693885652fa1428
int3
Function at 0x14010d540
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x40
lea rbp, [rsp + 0x40]
mov rsi, rcx
mov ecx, dword [0x14012f838]
test ecx, ecx
je 0x14010d65c
dec ecx
call fcn.140129bfc
cmp rax, 2
jb 0x14010d575
cmp qword [rax + 8], 0
jne 0x14010d650
mov ecx, dword [0x14012f838]
test ecx, ecx
je 0x14010d66f
dec ecx
call fcn.140129bfc
cmp rax, 1
je 0x14010d60f
test rax, rax
jne 0x14010d5f5
mov qword [rbp - 0x10], 0
lea rax, sym.std::sys::thread_local::os_local::destroy_value::hb43234836f7f391f
mov qword [rbp - 0x18], rax
mov rax, qword [0x1401c96c8]
movzx eax, byte [rax]
mov r8d, 0x18
xor edx, edx
call sym.std::sys::pal::windows::alloc::process_heap_alloc::h54baaa069cfd9f2e
test rax, rax
je 0x14010d69b
mov rcx, qword [rbp - 8]
mov qword [rax + 0x10], rcx
movups xmm0, xmmword [rbp - 0x18]
movups xmmword [rax], xmm0
mov ecx, dword [0x14012f838]
test ecx, ecx
je 0x14010d682
dec ecx
mov rdx, rax
mov rdi, rax
call fcn.140129c04
mov rax, rdi
test rsi, rsi
je 0x14010d613
mov rcx, qword [rsi]
mov qword [rsi], 0
test rcx, rcx
je 0x14010d615
mov rcx, qword [rsi + 8]
jmp 0x14010d615
xor eax, eax
jmp 0x14010d654
xor ecx, ecx
mov r8, qword [rax + 8]
mov rdx, qword [rax + 0x10]
mov qword [rbp - 0x18], r8
mov qword [rbp - 0x10], rdx
mov qword [rax + 8], 1
mov qword [rax + 0x10], rcx
test r8, r8
je 0x14010d650
test rdx, rdx
je 0x14010d650
lock dec qword [rdx]
jne 0x14010d650
lea rcx, [rbp - 0x10]
mov rsi, rax
call sym._ZN5alloc4sync16Arc_LT_T_C_A_GT_9drop_slow17h5b4d1ff3152dafd5E.llvm.16992393060595779045
mov rax, rsi
add rax, 0x10
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::hb43234836f7f391f
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h76a98b32ece36886
mov ecx, eax
jmp 0x14010d55f
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::hb43234836f7f391f
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h76a98b32ece36886
mov ecx, eax
jmp 0x14010d585
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::hb43234836f7f391f
mov rdi, rax
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h76a98b32ece36886
mov ecx, eax
mov rax, rdi
jmp 0x14010d5e7
mov ecx, 8
mov edx, 0x18
call sym.alloc::alloc::handle_alloc_error::hd693885652fa1428
ud2

Function at 0x14010ed3e
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
call sym.__tokio::io::poll_evented::PollEvented_E__as_core::ops::deref::Deref_::deref::h0d7534284aeb1e16
mov rcx, rax
mov edx, ebx
add rsp, 0x20
pop rbx
jmp sym.std::net::tcp::TcpStream::set_nodelay::hb78cc09013e0ab96
Function at 0x14011390a
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 0x140113911
test al, 1
je 0x140113930
test al, 2
jne 0x140113948
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x1401a10f0]
mov edx, 0x23
call sym.core::panicking::panic::hf6fd3ad2f9225230
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x1401a1130]
mov edx, 0x25
call sym.core::panicking::panic::hf6fd3ad2f9225230
int3

Function at 0x14011ca7f
Capabilities:
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rdx
mov rax, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x14011caa0
dec ecx
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp fcn.140129c04
mov rcx, rax
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h76a98b32ece36886
mov ecx, eax
jmp 0x14011ca93

Function at 0x14011dbac
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov rax, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x14011dbc5
dec ecx
add rsp, 0x28
jmp fcn.140129bfc
mov rcx, rax
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h76a98b32ece36886
mov ecx, eax
jmp 0x14011dbbc

Function at 0x14011dbd1
Capabilities:
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rdx
mov rax, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x14011dbf2
dec ecx
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp fcn.140129c04
mov rcx, rax
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h76a98b32ece36886
mov ecx, eax
jmp 0x14011dbe5

Function at 0x14011f4de
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h0c4647c149578eba
jmp sym.std::sys::thread_local::os_local::Key_T_::get::hec48a2572b0d74da

Function at 0x14011f528
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
call sym._ZN3std3sys3pal7windows16thread_local_key9StaticKey3get17h925b4958bebb8582E.llvm.8106606732113604990
test rax, rax
je 0x14011f552
mov rdi, rax
cmp rax, 1
jne 0x14011f58b
xor eax, eax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
mov rax, qword [0x1401c96c8]
mov al, byte [rax]
mov ecx, 0x38
mov edx, 8
call sym.__rdl_alloc
test rax, rax
je 0x14011f5ad
mov rdi, rax
mov qword [rax], rbx
and qword [rax + 8], 0
mov ecx, dword [rbx + 0x18]
test ecx, ecx
je 0x14011f5a1
dec ecx
mov rdx, rdi
call fcn.140129c04
add rdi, 8
mov rcx, rdi
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp sym.std::sys::thread_local::lazy::LazyKeyInner_T_::initialize::h1c2950d7c9dc56ae
mov rcx, rbx
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h76a98b32ece36886
mov ecx, eax
jmp 0x14011f583
mov ecx, 8
mov edx, 0x38
call sym.alloc::alloc::handle_alloc_error::hd693885652fa1428
int3
Function at 0x14011f5bd
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
call sym._ZN3std3sys3pal7windows16thread_local_key9StaticKey3get17h925b4958bebb8582E.llvm.8106606732113604990
cmp rax, 2
jb 0x14011f5e6
cmp qword [rax + 8], 0
je 0x14011f5e6
add rax, 0x10
add rsp, 0x28
pop rdi
pop rsi
ret
mov rcx, rdi
mov rdx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp sym.std::sys::thread_local::os_local::Key_T_::try_initialize::hc3ede5f3ace2839b

Function at 0x14011f663
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov rax, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x14011f67c
dec ecx
add rsp, 0x28
jmp fcn.140129bfc
mov rcx, rax
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h76a98b32ece36886
mov ecx, eax
jmp 0x14011f673

Function at 0x14012026f
Capabilities:
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rdx
mov rax, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x140120290
dec ecx
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp fcn.140129c04
mov rcx, rax
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h76a98b32ece36886
mov ecx, eax
jmp 0x140120283
Function at 0x14012b240
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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 rbx, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x14012b2b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x1401ec214]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x14012b460
mov rax, qword [0x1401ec218]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14012b2fc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x14012b387
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x14012b2e0
mov rcx, r12
call sym.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x14012b4bd
mov rax, qword [0x1401ec218]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1401ec218]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14012b4a2
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14012b380
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14012b410
add dword [0x1401ec214], 1
cmp ebx, 8
jae 0x14012b3b8
test bl, 4
jne 0x14012b470
test ebx, ebx
je 0x14012b3a9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x14012b490
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x14012b3a9
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x14012b3ea
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x1401ec218]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14012b380
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
xor edi, edi
jmp 0x14012b307
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x14012b3a9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x14012b3a9
mov rax, qword [0x1401ec218]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call sym.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call sym.__report_error
nop
nop dword [rax]
Function at 0x14012b9d0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1401ec280]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1401ec260]
test rbx, rbx
je 0x14012ba24
mov rdi, qword [sym.imp.kernel32.dll_TlsGetValue]
mov rsi, qword [sym.imp.kernel32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14012ba1b
test r12, r12
je 0x14012ba1b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14012ba00
lea rcx, [0x1401ec280]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x14012bc50
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x14012bc60
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x14012bc70
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x14012bcb5
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x14012bcac
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x14012bcb7
add rax, 0x28
cmp rax, r9
jne 0x14012bc98
xor eax, eax
ret

Function at 0x14012bd60
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x1401c9640]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x14012bdd9
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x14012bdd9
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x14012bdd6
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x14012bdcd
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x14012bdd9
add r8, 0x28
cmp r8, r9
jne 0x14012bdb8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x14012bec0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1401c9640]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x14012bf2f
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x14012bf2f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x14012bf2d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14012bf24
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14012bf38
add rax, 0x28
cmp rax, r9
jne 0x14012bf10
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret