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

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x1401371c8]
test ecx, ecx
je 0x140118b10
dec ecx
call fcn.140134cb4
cmp rax, 2
jb 0x140118a64
mov rdi, rax
cmp qword [rax + 8], 0
je 0x140118a64
add rdi, 0x10
jmp 0x140118b06
mov ecx, dword [0x1401371c8]
test ecx, ecx
je 0x140118b23
dec ecx
call fcn.140134cb4
cmp rax, 1
je 0x140118b04
mov rsi, rax
test rax, rax
jne 0x140118ad3
movzx eax, byte [0x1401d0208]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x140118b46
mov rsi, rax
lea rax, dbg.destroy_value_core::cell::Cell_core::option::Option_alloc::sync::Arc_std::sync::mutex::Mutex_alloc::vec::Vec_u8__alloc::alloc::Global____alloc::alloc::Global____
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1401371c8]
test ecx, ecx
je 0x140118b36
dec ecx
mov rdx, rsi
call fcn.140134cac
lea rdi, [rsi + 0x10]
mov rcx, qword [rsi + 0x10]
cmp qword [rsi + 8], 0
mov qword [rsi + 8], 1
mov qword [rsi + 0x10], 0
je 0x140118b06
test rcx, rcx
je 0x140118b06
lock dec qword [rcx]
jne 0x140118b06
call dbg.drop_slow<std::sync::mutex::Mutex<alloc::vec::Vec<u8, alloc::alloc::Global>>, alloc::alloc::Global>
jmp 0x140118b06
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, dbg.destroy_value_core::cell::Cell_core::option::Option_alloc::sync::Arc_std::sync::mutex::Mutex_alloc::vec::Vec_u8__alloc::alloc::Global____alloc::alloc::Global____
call dbg.init
mov ecx, eax
jmp 0x140118a46
lea rcx, dbg.destroy_value_core::cell::Cell_core::option::Option_alloc::sync::Arc_std::sync::mutex::Mutex_alloc::vec::Vec_u8__alloc::alloc::Global____alloc::alloc::Global____
call dbg.init
mov ecx, eax
jmp 0x140118a74
lea rcx, dbg.destroy_value_core::cell::Cell_core::option::Option_alloc::sync::Arc_std::sync::mutex::Mutex_alloc::vec::Vec_u8__alloc::alloc::Global____alloc::alloc::Global____
call dbg.init
mov ecx, eax
jmp 0x140118acb
mov ecx, 8
mov edx, 0x18
call dbg.handle_alloc_error
int3

Function at 0x140118bb0
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov rdi, qword [rcx]
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x140118bc7
dec ecx
jmp 0x140118bd1
mov rcx, rdi
call dbg.init
mov ecx, eax
mov edx, 1
call fcn.140134cac
cmp qword [rsi + 8], 0
je 0x140118bfa
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x140118bfa
lock dec qword [rax]
jne 0x140118bfa
mov rcx, qword [rsi + 0x10]
call dbg.drop_slow<std::sync::mutex::Mutex<alloc::vec::Vec<u8, alloc::alloc::Global>>, alloc::alloc::Global>
mov edx, 8
mov rcx, rsi
call sym.__rust_dealloc
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x140118c12
dec ecx
jmp 0x140118c1c
mov rcx, rdi
call dbg.init
mov ecx, eax
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.140134cac
Function at 0x14011fac0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rsi, rcx
movabs rbx, 0x8000000000000000
lea rcx, [rsp + 0x40]
call dbg.inner
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
cmp rcx, rbx
jne 0x14011fafd
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
jmp 0x14011fb2a
mov rdx, qword [rsp + 0x50]
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdx
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x58]
call dbg.from_wide_to_user_path
mov r14, qword [rsp + 0x28]
cmp r14, rbx
jne 0x14011fb43
lea rcx, [rsp + 0x30]
call dbg.drop_in_place<std::io::error::Error>
mov qword [rsi], rbx
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rdi, qword [rsp + 0x30]
mov r15, qword [rsp + 0x38]
mov rcx, rdi
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x14011fb67
mov qword [rsi], r14
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r15
jmp 0x14011fb37
mov qword [rsi], rbx
test r14, r14
je 0x14011fb37
mov edx, 2
mov rcx, rdi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp sym.__rust_dealloc
Function at 0x140121640
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 [0x1401d0208]
mov ecx, 0x10
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x1401216f8
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 0x1401216eb
mov rbx, qword [rsi]
mov r14, qword [rsi + 8]
mov rcx, rbx
call qword [r14]
cmp qword [r14 + 8], 0
je 0x1401216ca
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 0x1401219f0
Capabilities:
Read file on windows
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 + 0x3c]
lea rbx, [dbg.callback]
lea r13, [rsp + 0x60]
lea r12, [0x14013bf08]
mov qword [rsp + 0x48], rdi

Function at 0x140121ef0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
sub rsp, 0x80
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
mov edx, 0x10
call sub.advapi32.dll_SystemFunction036
test al, al
je 0x140121f26
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
add rsp, 0x80
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x40], rax
lea rax, [sym.__std::io::error::Error_as_core::fmt::Display_::fmt::h0ae59b4b5a93ace0]
mov qword [rsp + 0x48], rax
lea rax, str.fallback_RNG_broken:
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 1
mov qword [rsp + 0x70], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rsp + 0x50]
call dbg.panic_fmt
ud2
Function at 0x140123aa0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
cmp qword [rdx], 0
jne 0x140123be9
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx]
test rax, rax
jne 0x140123ad7
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x140123bd3
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x140123bb6
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 0x140123b38
mov ecx, dword [rsp + 0x2c]
mov eax, 2
test rcx, rcx
je 0x140123b69
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov byte [rsi + 1], 1
jmp 0x140123b6d
call sub.KERNEL32.dll_GetLastError
mov rcx, rax
shl rcx, 0x20
or rcx, 2
mov qword [rsp + 0x40], rcx
cmp eax, 0x3e5
je 0x140123b71
cmp eax, 0x6d
jne 0x140123b9c
mov qword [rsp + 0x30], 1
lea rax, [rsp + 0x38]
jmp 0x140123b76
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x140123ba2
lea rax, [rsp + 0x30]
mov qword [rax], 0
lea rcx, [rsp + 0x40]
call dbg.drop_in_place<std::io::error::Error>
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
test rax, rax
je 0x140123bac
cmp rax, 1
je 0x140123b21
mov qword [rsi + 8], rcx
mov al, 1
mov byte [rsi], al
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
mov eax, 1
jmp 0x140123b2b
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 0x140123ae4
mov r8d, 0x10
mov rcx, rbx
call dbg.do_reserve_and_handle<u8, alloc::alloc::Global>
mov rax, qword [rbx]
jmp 0x140123ad7
mov qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call dbg.assert_failed<std::sys::windows::pipe::State, std::sys::windows::pipe::State>
int3
Function at 0x140126e30
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x30
mov ecx, dword [0x1401371e8]
test ecx, ecx
je 0x140126f29
dec ecx
call fcn.140134cb4
cmp rax, 2
jb 0x140126e60
cmp qword [rax + 8], 0
je 0x140126e60
add rax, 0x10
jmp 0x140126f23
mov ecx, dword [0x1401371e8]
test ecx, ecx
je 0x140126f3c
dec ecx
call fcn.140134cb4
cmp rax, 1
je 0x140126f03
mov rsi, rax
test rax, rax
jne 0x140126ed3
movzx eax, byte [0x1401d0208]
mov ecx, 0x20
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x140126f62
mov rsi, rax
lea rax, dbg.destroy_value_u8_
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1401371e8]
test ecx, ecx
je 0x140126f4f
dec ecx
mov rdx, rsi
call fcn.140134cac
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x140126f07
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x140126f0f
xor eax, eax
jmp 0x140126f23
call dbg.fallback_rng
mov rcx, rax
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], rcx
mov qword [rsi + 0x18], rdx
add rsp, 0x30
pop rsi
ret
lea rcx, dbg.destroy_value_u8_
call dbg.init
mov ecx, eax
jmp 0x140126e45
lea rcx, dbg.destroy_value_u8_
call dbg.init
mov ecx, eax
jmp 0x140126e70
lea rcx, dbg.destroy_value_u8_
call dbg.init
mov ecx, eax
jmp 0x140126ecb
mov ecx, 8
mov edx, 0x20
call dbg.handle_alloc_error
int3

Function at 0x1401273dd
Capabilities:
Encode data using xor

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

Function at 0x140127a4c
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rax, rdx
mov rsi, rcx
lea rdx, [rsp + 0x2c]
mov rcx, rax
call sub.shell32.dll_CommandLineToArgvW
test rax, rax
je 0x140127b02
mov rdi, rax
movsxd r13, dword [rsp + 0x2c]
lea rbx, [rsp + 0x48]
and qword [rbx], 0
mov qword [rbx + 8], 8
and qword [rbx + 0x10], 0
shl r13, 3
xor ebp, ebp
lea r14, [rsp + 0x60]
lea r15, [rsp + 0x30]
cmp r13, rbp
je 0x140127ae7
mov r12, qword [rdi + rbp]
mov rcx, r12
call sub.msvcrt.dll_wcslen
lea rax, [r12 + rax*2]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], rax
and word [rsp + 0x40], 0
mov rcx, r14
mov rdx, r15
call sym._ZN95__LT_alloc..string..String_u20_as_u20_core..iter..traits..collect..FromIterator_LT_char_GT__GT_9from_iter17hb0909c8bb5a8b
mov rcx, rbx
mov rdx, r14
call sym.alloc::vec::Vec_T_A_::push::h23294d7fc7697382
add rbp, 8
jmp 0x140127aa6
mov rcx, rdi
call sub.KERNEL32.dll_LocalFree
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rsi], xmm0
mov rax, qword [rsp + 0x58]
mov qword [rsi + 0x10], rax
jmp 0x140127b13
and qword [rsi], 0
mov qword [rsi + 8], 8
and qword [rsi + 0x10], 0
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140127e6f
Capabilities:
Check os version

Disassembly:
push rsi
sub rsp, 0x140
lea rsi, [rsp + 0x28]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call sub.msvcrt.dll_memset
mov dword [rsi - 4], 0x11c
lea rcx, [rsp + 0x24]
call sub.ntdll.dll_RtlGetVersion
test eax, eax
js 0x140127eb8
mov ecx, dword [rsp + 0x28]
mov al, 1
cmp ecx, 6
ja 0x140127ebe
jne 0x140127ebc
cmp dword [rsp + 0x2c], 3
setae al
jmp 0x140127ebe
mov al, 1
jmp 0x140127ebe
xor eax, eax
add rsp, 0x140
pop rsi
ret
Function at 0x140130d0b
Capabilities:
Reference wmi statements

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
and qword [rsp + 0x38], 0
mov rsi, rdx
mov rdi, rcx
cmp qword [rdx + 0x10], 0
je 0x140130dcf
lea rcx, [0x1401b963a]
call sub.oleaut32.dll_SysAllocString
mov rbx, rax
lea rcx, str.SELECT__FROM_MSAcpi_ThermalZoneTemperature
call sub.oleaut32.dll_SysAllocString
mov r14, rax
mov rcx, qword [rsi + 0x18]
mov rax, qword [rcx]
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x28], rdx
and qword [rsp + 0x20], 0
mov rdx, rbx
mov r8, r14
mov r9d, 0x30
call qword [rax + 0xa0]
mov ebp, eax
mov rcx, rbx
call sub.oleaut32.dll_SysFreeString
mov rcx, r14
call sub.oleaut32.dll_SysFreeString
test ebp, ebp
js 0x140130dcf
mov rbx, qword [rsp + 0x38]
mov rcx, qword [rsi + 0x20]
mov rdx, qword [rsi + 0x28]
call sym.core::ptr::drop_in_place_core::option::Option_sysinfo::windows::component::Instance__::h8a2515af2b9c138e
mov qword [rsi + 0x20], 1
mov qword [rsi + 0x28], rbx
mov rax, qword [rsi + 0x30]
mov qword [rdi + 0x30], rax
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [rdi + 0x10], xmm1
movups xmmword [rdi], xmm0
mov rax, qword [rsi + 0x20]
mov qword [rdi + 0x20], rax
mov rax, qword [rsi + 0x28]
mov qword [rdi + 0x28], rax
jmp 0x140130dde
mov qword [rdi], 2
mov rcx, rsi
call sym.core::ptr::drop_in_place_sysinfo::windows::component::Connection_::h3d1cae3e11c44ce0
nop
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x140134354
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov eax, 0x10b8
call dbg.___chkstk_ms
sub rsp, rax
mov qword [rsp + 0x50], rcx
mov rdi, qword [rdx]
mov qword [rsp + 0x60], rdx
mov eax, dword [rdx + 8]
mov dword [rsp + 0x44], eax
mov ebx, 0x800
lea r12, [rsp + 0x48]
mov dword [r12], ebx
lea r13, [rsp + 0xb8]
mov r8d, 0x1000
mov rcx, r13
xor edx, edx
call sub.msvcrt.dll_memset
lea rsi, [rsp + 0x4c]
mov dword [rsi], ebx
lea rbx, [rsp + 0x5c]
and dword [rbx], 0
mov ecx, 0x800
call sym.alloc::raw_vec::RawVec_T_A_::allocate_in::h2ccd5f9f23e87e72
mov r14, rdx
lea rbp, [rsp + 0x68]
mov qword [rbp], rax
mov qword [rbp + 8], rdx
and qword [rbp + 0x10], 0
mov rdi, qword [rdi]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], rbx
and qword [rsp + 0x20], 0
mov rcx, rdi
mov edx, dword [rsp + 0x44]
mov r8, r13
mov r9, r12
call sub.advapi32.dll_RegEnumValueW
cmp eax, 0xea
jne 0x14013441d
inc dword [rsp + 0x48]
mov edx, dword [rsp + 0x4c]
mov rcx, rbp
call sym.alloc::vec::Vec_T_A_::reserve::h7d6c9da9cd502c3c
mov r14, qword [rsp + 0x70]
jmp 0x1401343d8
mov r15d, eax
test eax, eax
je 0x14013443d
cmp r15d, 0x103
jne 0x14013448d
movabs rdi, 0x8000000000000000
lea r12, [rdi + 1]
jmp 0x1401344a2
mov edx, dword [rsp + 0x48]
lea r8, str._home_thor_.cargo_registry_src_index.crates.io_6f17d22bba15001f_winreg_0.10.1_src_lib.rs_b
lea rcx, [rsp + 0xb8]
call sym.core::array::__impl_core::ops::index::Index_I__for__T__N__::index::h935b349b668a0e77
mov r8, rdx
lea rdi, [rsp + 0xa0]
mov rcx, rdi
mov rdx, rax
call dbg.from_utf16
mov r12, qword [rdi]
movabs rdi, 0x8000000000000000
cmp r12, rdi
jne 0x14013450a
movabs r15, 0xd00000002
jmp 0x14013449f
shl r15, 0x20
or r15, 2
movabs rdi, 0x8000000000000000
mov r12, rdi
mov rsi, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x68]
mov rdx, r14
call sym.core::ptr::drop_in_place_alloc::vec::Vec_u8__::h93df36056228766e
inc rdi
cmp r12, rdi
je 0x1401344d0
mov r8d, dword [rsp + 0x44]
inc r8d
mov rdx, qword [rsp + 0x60]
mov dword [rdx + 8], r8d
mov rdi, r12
mov qword [rsi], rdi
mov qword [rsi + 8], r15
mov qword [rsi + 0x10], rcx
movaps xmm0, xmmword [rsp + 0x80]
movups xmmword [rsi + 0x18], xmm0
mov rcx, qword [rsp + 0x90]
mov qword [rsi + 0x28], rcx
mov byte [rsi + 0x30], al
add rsp, 0x10b8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r15, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xb0]
mov eax, dword [rsp + 0x4c]
mov qword [rsp + 0x78], rax
mov eax, dword [rsp + 0x5c]
cmp eax, 0xc
mov rsi, qword [rsp + 0x50]
jae 0x140134550
mov rdx, qword [rsp + 0x78]
mov qword [rsp + 0x90], rdx
movups xmm0, xmmword [rsp + 0x68]
movaps xmmword [rsp + 0x80], xmm0
jmp 0x1401344bc
mov rcx, r12
mov rdx, r15
call sym.core::ptr::drop_in_place_alloc::vec::Vec_u8__::h93df36056228766e
movabs r15, 0xde00000002
mov r12, rdi
jmp 0x1401344a7
Function at 0x140135d00
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 dbg.__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 dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x140135d70
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1401d0294]
mov rbx, rcx
test esi, esi
jle 0x140135ea0
mov rax, qword [0x1401d0298]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140135dbb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140135e45
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140135da0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140135ec2
mov rax, qword [0x1401d0298]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1401d0298]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140135ea7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140135e3e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140135e50
add dword [0x1401d0294], 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 [0x1401d0298]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140135e3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140135dc8
mov rax, qword [0x1401d0298]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140136430
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1401d0300]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1401d02e0]
test rbx, rbx
je 0x14013648c
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 0x140136483
test rsi, rsi
je 0x140136483
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140136468
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 0x1401366a0
Capabilities:
Parse pe header

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

Function at 0x1401366d0
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 0x14013671d
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 0x140136714
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14013671f
add rax, 0x28
cmp rax, r9
jne 0x140136700
xor eax, eax
ret

Function at 0x140136720
Capabilities:
Parse pe header

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

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

Function at 0x140136840
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1401bb090]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14013685f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140136868
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14013685f
movzx ecx, word [rax + 6]
mov eax, ecx
ret