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

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov ecx, dword [0x1401c0088]
test ecx, ecx
je 0x14017e670
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14017e689
cmp qword [rax + 8], 0
je 0x14017e689
add rax, 0x10
jmp 0x14017e751
lea rcx, dbg.destroy_value_core::cell::Cell__usize__bool___
call sym.std::sys::windows::thread_local_key::StaticKey::init::h6a94beccf240c3a3
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x14017e660
mov ecx, dword [0x1401c0088]
test ecx, ecx
je 0x14017e732
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14017e74f
mov rdi, rax
test rax, rax
jne 0x14017e6fb
mov rax, qword [0x1401e5ac8]
movzx eax, byte [rax]
mov ecx, 0x20
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14017e768
mov rdi, rax
lea rax, dbg.destroy_value_core::cell::Cell__usize__bool___
mov qword [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x1401c0088]
test ecx, ecx
je 0x14017e758
dec ecx
mov rdx, rdi
call fcn.1401be294
xor ecx, ecx
test rsi, rsi
je 0x14017e71b
mov rax, qword [rsi]
mov qword [rsi], 0
cmp rax, 1
jne 0x14017e71b
mov rdx, qword [rsi + 8]
mov ecx, dword [rsi + 0x10]
jmp 0x14017e71d
xor edx, edx
mov qword [rdi + 8], 1
lea rax, [rdi + 0x10]
mov qword [rdi + 0x10], rdx
mov byte [rdi + 0x18], cl
jmp 0x14017e751
lea rcx, dbg.destroy_value_core::cell::Cell__usize__bool___
call sym.std::sys::windows::thread_local_key::StaticKey::init::h6a94beccf240c3a3
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14017e6a8
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, dbg.destroy_value_core::cell::Cell__usize__bool___
call sym.std::sys::windows::thread_local_key::StaticKey::init::h6a94beccf240c3a3
mov ecx, eax
jmp 0x14017e6f3
mov ecx, 8
mov edx, 0x20
call dbg.handle_alloc_error
int3
Function at 0x14017e780
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov ecx, dword [0x1401c00a8]
test ecx, ecx
je 0x14017e882
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14017e7b2
mov rdi, rax
cmp qword [rax + 8], 0
jne 0x14017e87c
mov ecx, dword [0x1401c00a8]
test ecx, ecx
je 0x14017e8a4
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14017e8c1
mov rdi, rax
test rax, rax
jne 0x14017e828
mov rax, qword [0x1401e5ac8]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14017e8e0
mov rdi, rax
lea rax, dbg.destroy_value_std::sys_common::thread_info::ThreadInfo_
mov qword [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x1401c00a8]
test ecx, ecx
je 0x14017e8cd
dec ecx
mov rdx, rdi
call fcn.1401be294
test rsi, rsi
je 0x14017e842
mov rax, qword [rsi]
mov qword [rsi], 0
test rax, rax
je 0x14017e844
mov rax, qword [rsi + 8]
jmp 0x14017e844
xor eax, eax
mov rdx, qword [rdi + 8]
mov rcx, qword [rdi + 0x10]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], rcx
mov qword [rdi + 8], 1
mov qword [rdi + 0x10], rax
test rdx, rdx
je 0x14017e87c
test rcx, rcx
je 0x14017e87c
lock dec qword [rcx]
jne 0x14017e87c
lea rcx, [rsp + 0x30]
call dbg.drop_slow<std::thread::Inner, alloc::alloc::Global>
add rdi, 0x10
jmp 0x14017e8c3
lea rcx, dbg.destroy_value_std::sys_common::thread_info::ThreadInfo_
call sym.std::sys::windows::thread_local_key::StaticKey::init::h6a94beccf240c3a3
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x14017e7a4
jmp 0x14017e7b2
lea rcx, dbg.destroy_value_std::sys_common::thread_info::ThreadInfo_
call sym.std::sys::windows::thread_local_key::StaticKey::init::h6a94beccf240c3a3
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14017e7d1
xor edi, edi
mov rax, rdi
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, dbg.destroy_value_std::sys_common::thread_info::ThreadInfo_
call sym.std::sys::windows::thread_local_key::StaticKey::init::h6a94beccf240c3a3
mov ecx, eax
jmp 0x14017e820
mov ecx, 8
mov edx, 0x18
call dbg.handle_alloc_error
int3
Function at 0x14017e8f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov ecx, dword [0x1401c00c8]
test ecx, ecx
je 0x14017e91f
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14017e938
cmp byte [rax + 8], 0
je 0x14017e938
add rax, 9
jmp 0x14017e9e0
lea rcx, dbg.destroy_value_u8_
call sym.std::sys::windows::thread_local_key::StaticKey::init::h6a94beccf240c3a3
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x14017e910
mov ecx, dword [0x1401c00c8]
test ecx, ecx
je 0x14017e9c1
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14017e9de
mov rdi, rax
test rax, rax
jne 0x14017e99e
mov rax, qword [0x1401e5ac8]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14017e9f7
mov rdi, rax
lea rax, dbg.destroy_value_u8_
mov qword [rdi], rax
mov byte [rdi + 8], 0
mov ecx, dword [0x1401c00c8]
test ecx, ecx
je 0x14017e9e7
dec ecx
mov rdx, rdi
call fcn.1401be294
xor ecx, ecx
test rsi, rsi
je 0x14017e9b4
cmp byte [rsi], 0
mov byte [rsi], 0
movzx eax, byte [rsi + 1]
cmove eax, ecx
mov ecx, eax
lea rax, [rdi + 9]
mov byte [rdi + 8], 1
mov byte [rdi + 9], cl
jmp 0x14017e9e0
lea rcx, dbg.destroy_value_u8_
call sym.std::sys::windows::thread_local_key::StaticKey::init::h6a94beccf240c3a3
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14017e953
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, dbg.destroy_value_u8_
call sym.std::sys::windows::thread_local_key::StaticKey::init::h6a94beccf240c3a3
mov ecx, eax
jmp 0x14017e996
mov ecx, 8
mov edx, 0x10
call dbg.handle_alloc_error
int3
Function at 0x14017ea10
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov ecx, dword [0x1401c00e8]
test ecx, ecx
je 0x14017ea3f
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14017ea58
cmp byte [rax + 8], 0
je 0x14017ea58
add rax, 9
jmp 0x14017eb00
lea rcx, dbg.destroy_value_u8_
call sym.std::sys::windows::thread_local_key::StaticKey::init::h6a94beccf240c3a3
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x14017ea30
mov ecx, dword [0x1401c00e8]
test ecx, ecx
je 0x14017eae1
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14017eafe
mov rdi, rax
test rax, rax
jne 0x14017eabe
mov rax, qword [0x1401e5ac8]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14017eb17
mov rdi, rax
lea rax, dbg.destroy_value_u8_
mov qword [rdi], rax
mov byte [rdi + 8], 0
mov ecx, dword [0x1401c00e8]
test ecx, ecx
je 0x14017eb07
dec ecx
mov rdx, rdi
call fcn.1401be294
xor ecx, ecx
test rsi, rsi
je 0x14017ead4
cmp byte [rsi], 0
mov byte [rsi], 0
movzx eax, byte [rsi + 1]
cmove eax, ecx
mov ecx, eax
lea rax, [rdi + 9]
mov byte [rdi + 8], 1
mov byte [rdi + 9], cl
jmp 0x14017eb00
lea rcx, dbg.destroy_value_u8_
call sym.std::sys::windows::thread_local_key::StaticKey::init::h6a94beccf240c3a3
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14017ea73
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, dbg.destroy_value_u8_
call sym.std::sys::windows::thread_local_key::StaticKey::init::h6a94beccf240c3a3
mov ecx, eax
jmp 0x14017eab6
mov ecx, 8
mov edx, 0x10
call dbg.handle_alloc_error
int3
Function at 0x14017eb30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov ecx, dword [0x1401c0108]
test ecx, ecx
je 0x14017ec2c
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14017eb62
mov rdi, rax
cmp qword [rax + 8], 0
jne 0x14017ec26
mov ecx, dword [0x1401c0108]
test ecx, ecx
je 0x14017ec55
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14017ec72
mov rdi, rax
test rax, rax
jne 0x14017ebd8
mov rax, qword [0x1401e5ac8]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14017ec91
mov rdi, rax
lea rax, dbg.destroy_value_core::cell::Cell_core::option::Option_std::sync::mpmc::context::Context___
mov qword [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x1401c0108]
test ecx, ecx
je 0x14017ec7e
dec ecx
mov rdx, rdi
call fcn.1401be294
test rsi, rsi
je 0x14017ec4e
mov rax, qword [rsi + 8]
cmp qword [rsi], 0
mov qword [rsi], 0
je 0x14017ec4e
mov rdx, qword [rdi + 8]
mov rcx, qword [rdi + 0x10]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], rcx
mov qword [rdi + 8], 1
mov qword [rdi + 0x10], rax
test rdx, rdx
je 0x14017ec26
test rcx, rcx
je 0x14017ec26
lock dec qword [rcx]
jne 0x14017ec26
lea rcx, [rsp + 0x30]
call dbg.drop_slow<std::sync::mpmc::context::Inner, alloc::alloc::Global>
add rdi, 0x10
jmp 0x14017ec74
lea rcx, dbg.destroy_value_core::cell::Cell_core::option::Option_std::sync::mpmc::context::Context___
call sym.std::sys::windows::thread_local_key::StaticKey::init::h6a94beccf240c3a3
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x14017eb54
jmp 0x14017eb62
call sym.std::sync::mpmc::context::Context::new::ha223b89a47f34037
jmp 0x14017ebee
lea rcx, dbg.destroy_value_core::cell::Cell_core::option::Option_std::sync::mpmc::context::Context___
call sym.std::sys::windows::thread_local_key::StaticKey::init::h6a94beccf240c3a3
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14017eb81
xor edi, edi
mov rax, rdi
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, dbg.destroy_value_core::cell::Cell_core::option::Option_std::sync::mpmc::context::Context___
call sym.std::sys::windows::thread_local_key::StaticKey::init::h6a94beccf240c3a3
mov ecx, eax
jmp 0x14017ebd0
mov ecx, 8
mov edx, 0x18
call dbg.handle_alloc_error
int3
Function at 0x14017ecb0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov ecx, dword [0x1401c0128]
test ecx, ecx
je 0x14017edb2
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14017ece2
mov rdi, rax
cmp qword [rax + 8], 0
jne 0x14017edac
mov ecx, dword [0x1401c0128]
test ecx, ecx
je 0x14017edd4
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14017edf1
mov rdi, rax
test rax, rax
jne 0x14017ed58
mov rax, qword [0x1401e5ac8]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14017ee10
mov rdi, 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 [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x1401c0128]
test ecx, ecx
je 0x14017edfd
dec ecx
mov rdx, rdi
call fcn.1401be294
test rsi, rsi
je 0x14017ed72
mov rax, qword [rsi]
mov qword [rsi], 0
test rax, rax
je 0x14017ed74
mov rax, qword [rsi + 8]
jmp 0x14017ed74
xor eax, eax
mov rdx, qword [rdi + 8]
mov rcx, qword [rdi + 0x10]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], rcx
mov qword [rdi + 8], 1
mov qword [rdi + 0x10], rax
test rdx, rdx
je 0x14017edac
test rcx, rcx
je 0x14017edac
lock dec qword [rcx]
jne 0x14017edac
lea rcx, [rsp + 0x30]
call dbg.drop_slow<std::sync::mutex::Mutex<alloc::vec::Vec<u8, alloc::alloc::Global>>, alloc::alloc::Global>
add rdi, 0x10
jmp 0x14017edf3
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 sym.std::sys::windows::thread_local_key::StaticKey::init::h6a94beccf240c3a3
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x14017ecd4
jmp 0x14017ece2
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 sym.std::sys::windows::thread_local_key::StaticKey::init::h6a94beccf240c3a3
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14017ed01
xor edi, edi
mov rax, rdi
add rsp, 0x38
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 sym.std::sys::windows::thread_local_key::StaticKey::init::h6a94beccf240c3a3
mov ecx, eax
jmp 0x14017ed50
mov ecx, 8
mov edx, 0x18
call dbg.handle_alloc_error
int3
Function at 0x14017ee20
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov ecx, dword [0x1401c0148]
test ecx, ecx
je 0x14017ee53
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14017ee6c
mov rcx, rax
cmp qword [rax + 8], 0
je 0x14017ee6c
add rcx, 0x10
jmp 0x14017ef69
lea rcx, dbg.destroy_value_core::cell::Cell__usize__bool___
call sym.std::sys::windows::thread_local_key::StaticKey::init::h6a94beccf240c3a3
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x14017ee40
mov ecx, dword [0x1401c0148]
test ecx, ecx
je 0x14017ef4a
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14017ef67
mov rdi, rax
test rax, rax
jne 0x14017eee2
mov rax, qword [0x1401e5ac8]
movzx eax, byte [rax]
mov ecx, 0x20
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14017ef86
mov rdi, rax
lea rax, dbg.destroy_value_core::cell::Cell__usize__bool___
mov qword [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x1401c0148]
test ecx, ecx
je 0x14017ef73
dec ecx
mov rdx, rdi
call fcn.1401be294
test rsi, rsi
je 0x14017eeff
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
mov rdx, qword [rsi + 0x10]
mov qword [rsi], 0
cmp rcx, 1
je 0x14017ef34
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 0x14017ef2f
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x14017ef34
call dbg.fallback_rng
mov qword [rdi + 8], 1
lea rcx, [rdi + 0x10]
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rdx
jmp 0x14017ef69
lea rcx, dbg.destroy_value_core::cell::Cell__usize__bool___
call sym.std::sys::windows::thread_local_key::StaticKey::init::h6a94beccf240c3a3
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14017ee8b
xor ecx, ecx
mov rax, rcx
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, dbg.destroy_value_core::cell::Cell__usize__bool___
call sym.std::sys::windows::thread_local_key::StaticKey::init::h6a94beccf240c3a3
mov ecx, eax
jmp 0x14017eeda
mov ecx, 8
mov edx, 0x20
call dbg.handle_alloc_error
int3
Function at 0x1401b3540
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x1401b35ba
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x1401b35b0
cmp r11, r10
ja 0x1401b3651
cmp r10, rdx
ja 0x1401b3663
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x1401b35b2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x1401b3590
jmp 0x1401b3627
ja 0x1401b35ba
mov r11, r10
cmp rax, r8
jne 0x1401b3562
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x1401b362b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x1401b3600
mov r8, r10
sub ecx, r9d
jns 0x1401b361e
jmp 0x1401b362d
cmp r10, rdx
je 0x1401b3639
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x1401b362d
xor al, 1
cmp r8, rdx
jne 0x1401b35e0
jmp 0x1401b362d
xor eax, eax
jmp 0x1401b362d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x1401d8cd1]
lea r8, [0x1401dab20]
mov edx, 0x2b
call dbg.panic
lea r8, [0x1401dab38]
mov rcx, r11
mov rdx, r10
call dbg.slice_index_order_fail
lea r8, [0x1401dab38]
mov rcx, r10
call dbg.slice_end_index_len_fail
int3
Function at 0x1401bf080
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 0x1401bf0f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1401f3244]
mov rbx, rcx
test esi, esi
jle 0x1401bf220
mov rax, qword [0x1401f3248]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1401bf13b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1401bf1c5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1401bf120
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x1401bf242
mov rax, qword [0x1401f3248]
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 [0x1401f3248]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1401bf227
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1401bf1be
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1401bf1d0
add dword [0x1401f3244], 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 [0x1401f3248]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1401bf1be
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 0x1401bf148
mov rax, qword [0x1401f3248]
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 0x1401bf7b0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1401f32a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1401f3280]
test rbx, rbx
je 0x1401bf80c
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 0x1401bf803
test rsi, rsi
je 0x1401bf803
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1401bf7e8
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 0x1401bfa20
Capabilities:
Parse pe header

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

Function at 0x1401bfa50
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 0x1401bfa9d
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 0x1401bfa94
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1401bfa9f
add rax, 0x28
cmp rax, r9
jne 0x1401bfa80
xor eax, eax
ret

Function at 0x1401bfaa0
Capabilities:
Parse pe header

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

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

Function at 0x1401bfbc0
Capabilities:
Parse pe header

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

Disassembly:
mov r8, qword [0x1401e5a10]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1401bfc20
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1401bfc28
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1401bfc20
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1401bfc70
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1401bfc67
test rcx, rcx
je 0x1401bfc20
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1401bfc58
xor eax, eax
ret

Function at 0x1401bfc80
Capabilities:
Parse pe header

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

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

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

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

Disassembly:
mov r11, qword [0x1401e5a10]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1401bfd72
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1401bfd80
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1401bfd72
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1401bfd72
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1401bfd72
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 0x1401bfdd5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1401bfde8
add rdx, 0x28
cmp rdx, r10
jne 0x1401bfdc0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1401bfdf7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1401bfe07
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1401bfdde
test ecx, ecx
jg 0x1401bfdf0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret