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

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov ecx, dword [0x140213128]
test ecx, ecx
je 0x14014b961
dec ecx
call fcn.14016173c
cmp rax, 1
jbe 0x14014b8c1
add rax, 8
jmp 0x14014b958
je 0x14014b956
movzx eax, byte [0x14032b170]
mov edx, 0x10
xor ecx, ecx
call sym.std::sys::pal::windows::alloc::process_heap_alloc::h5a8f05db6a24897c
test rax, rax
je 0x14014b994
mov rbx, rax
mov rsi, rax
lea rax, sym.std::sys::thread_local::os_local::destroy_value::h3bcd1088f2e29d9a
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x140213128]
test ecx, ecx
je 0x14014b974
dec ecx
call fcn.14016173c
mov rdi, rax
mov ecx, dword [0x140213128]
test ecx, ecx
je 0x14014b984
dec ecx
add rbx, 8
mov rdx, rsi
call fcn.140161744
test rdi, rdi
je 0x14014b951
mov rax, qword [rdi + 8]
test rax, rax
je 0x14014b944
lock dec qword [rax]
jne 0x14014b944
mov rcx, qword [rdi + 8]
call sym.alloc::sync::Arc_T_A_::drop_slow::hc2f8f36dcfa7d17a
mov edx, 8
mov rcx, rdi
call sym.__rust_dealloc
mov rax, rbx
jmp 0x14014b958
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h3bcd1088f2e29d9a
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h3a56cd97d8b2cb6b
mov ecx, eax
jmp 0x14014b8ad
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h3bcd1088f2e29d9a
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h3a56cd97d8b2cb6b
mov ecx, eax
jmp 0x14014b907
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h3bcd1088f2e29d9a
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h3a56cd97d8b2cb6b
mov ecx, eax
jmp 0x14014b91b
mov ecx, 8
mov edx, 0x10
call sym.alloc::alloc::handle_alloc_error::h033f15fcf3b32b44
int3

Function at 0x14014ba00
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rdi, rcx
mov rsi, qword [rcx]
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x14014ba1d
dec ecx
jmp 0x14014ba27
mov rcx, rsi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h3a56cd97d8b2cb6b
mov ecx, eax
mov edx, 1
call fcn.140161744
mov rax, qword [rdi + 8]
test rax, rax
je 0x14014ba49
lock dec qword [rax]
jne 0x14014ba49
mov rcx, qword [rdi + 8]
call sym.alloc::sync::Arc_T_A_::drop_slow::hc2f8f36dcfa7d17a
mov edx, 8
mov rcx, rdi
call sym.__rust_dealloc
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x14014ba61
dec ecx
jmp 0x14014ba6b
mov rcx, rsi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h3a56cd97d8b2cb6b
mov ecx, eax
xor edx, edx
add rsp, 0x20
pop rdi
pop rsi
pop rbp
jmp fcn.140161744
Function at 0x14014bc50
Capabilities:
Resolve dns

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x1e8
lea rbp, [rsp + 0x80]
mov rax, rdx
mov rsi, rcx
mov rdx, qword [rdx]
mov rdi, qword [rax + 8]
movzx eax, word [rax + 0x10]
mov word [rbp + 0x166], ax
mov rax, qword [0x14032b118]
cmp rax, 3
jne 0x14014be40
lea rax, [rbp + 0x166]
mov qword [rbp + 0x150], rax
cmp rdi, 0x17f
ja 0x14014be50
lea rbx, [rbp - 0x60]
mov rcx, rbx
mov r8, rdi
call sym.memcpy
mov byte [rbp + rdi - 0x60], 0
lea rax, [rdi + 1]
cmp rdi, 0xe
ja 0x14014bce8
xor edx, edx
nop word [rax + rax]
cmp byte [rbp + rdx - 0x60], 0
je 0x14014bda4
inc rdx
cmp rax, rdx
jne 0x14014bcd0
jmp 0x14014be0b
lea rcx, [rbp - 0x59]
and rcx, 0xfffffffffffffff8
sub rcx, rbx
je 0x14014bd1e
xor edx, edx
nop word [rax + rax]
cmp byte [rbp + rdx - 0x60], 0
je 0x14014bda4
inc rdx
cmp rcx, rdx
jne 0x14014bd00
lea rdx, [rdi - 0xf]
cmp rcx, rdx
jbe 0x14014bd22
jmp 0x14014bd6e
lea rdx, [rdi - 0xf]
movdqa xmm0, xmmword [0x14021d100]
movabs r8, 0x8080808080808080
nop word cs:[rax + rax]
movdqu xmm1, xmmword [rbp + rcx - 0x60]
movdqa xmm2, xmm1
paddq xmm2, xmm0
pandn xmm1, xmm2
pshufd xmm2, xmm1, 0xee
por xmm2, xmm1
movq r9, xmm2
test r9, r8
jne 0x14014bd6e
add rcx, 0x10
cmp rcx, rdx
jbe 0x14014bd40
sub rax, rcx
je 0x14014be0b
lea r8, [rcx + rbp]
add r8, 0xffffffffffffffa0
xor edx, edx
nop word cs:[rax + rax]
cmp byte [r8 + rdx], 0
je 0x14014bda1
inc rdx
cmp rax, rdx
jne 0x14014bd90
jmp 0x14014be0b
add rdx, rcx
cmp rdx, rdi
jne 0x14014be0b
pxor xmm0, xmm0
movdqa xmmword [rbp + 0x120], xmm0
movdqa xmmword [rbp + 0x140], xmm0
movdqa xmmword [rbp + 0x130], xmm0
mov dword [rbp + 0x128], 1
mov qword [rbp + 0x158], 0
lea rcx, [rbp - 0x60]
lea r8, [rbp + 0x120]
lea r9, [rbp + 0x158]
xor edx, edx
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x14014be1f
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x14014be37
lea rax, [0x1402c1fa0]
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x14014be62
mov rax, qword [rbp + 0x158]
movzx ecx, word [rbp + 0x166]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
jmp 0x14014be62
mov rbx, rdx
call sym.std::sync::once_lock::OnceLock_T_::initialize::he6a547af765b607b
mov rdx, rbx
jmp 0x14014bc8c
lea r9, [rbp + 0x150]
mov rcx, rsi
mov r8, rdi
call sym.std::sys::pal::common::small_c_string::run_with_cstr_allocating::h7b44a4d7be12da09
nop
add rsp, 0x1e8
pop rbx
pop rdi
pop rsi
pop rbp
ret
Function at 0x14014c370
Capabilities:
Resolve dns

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov rbx, r9
mov rsi, rcx
lea rcx, [rbp - 0x28]
call sym.__str_as_alloc::ffi::c_str::CString::new::SpecNewImpl_::spec_new_impl::hb8d24153a434d2ca
mov rax, qword [rbp - 0x28]
movabs rcx, 0x8000000000000000
cmp rax, rcx
jne 0x14014c3f7
mov rdi, qword [rbp - 0x20]
mov r14, qword [rbp - 0x18]
xorps xmm0, xmm0
movaps xmmword [rbp - 0x60], xmm0
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x50], xmm0
mov dword [rbp - 0x58], 1
mov qword [rbp - 8], 0
lea r8, [rbp - 0x60]
lea r9, [rbp - 8]
mov rcx, rdi
xor edx, edx
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x14014c429
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x14014c43d
lea rcx, [0x1402c1fa0]
mov qword [rsi + 8], rcx
mov qword [rsi], 1
test rax, rax
je 0x14014c459
mov rcx, qword [rbp - 0x20]
mov edx, 1
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
jmp sym.__rust_dealloc
mov rcx, qword [rbx]
mov rax, qword [rbp - 8]
movzx ecx, word [rcx]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
mov byte [rdi], 0
test r14, r14
je 0x14014c459
mov edx, 1
mov rcx, rdi
call sym.__rust_dealloc
nop
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret

Function at 0x14014c470
Capabilities:
Initialize winsock library

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x1f0
lea rbp, [rsp + 0x80]
mov rax, qword [rcx]
mov rdi, qword [rax]
mov qword [rax], 0
test rdi, rdi
je 0x14014c4d3
lea rsi, [rbp - 0x60]
mov r8d, 0x198
mov rcx, rsi
xor edx, edx
call sub.msvcrt.dll_memset
mov cx, 0x202
mov rdx, rsi
call sub.ws2_32.dll_WSAStartup
mov dword [rbp + 0x16c], eax
test eax, eax
jne 0x14014c4df
lea rax, [0x140161314]
mov qword [rdi], rax
add rsp, 0x1f0
pop rdi
pop rsi
pop rbp
ret
lea rcx, str.library_std_src_synconce.rs
call sym.core::option::unwrap_failed::hec1ab125882a5e1e
mov qword [rbp + 0x138], 0
lea rdx, [0x1402c29c8]
lea r9, str.library_std_src_syspalwindows_net.rs
lea rcx, [rbp + 0x16c]
lea r8, [rbp + 0x138]
call sym.core::panicking::assert_failed::h8a98e51c055d6f66
int3

Function at 0x14014c510
Capabilities:
Initialize winsock library

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x1f0
lea rbp, [rsp + 0x80]
mov rax, qword [rcx]
mov rdi, qword [rax]
mov qword [rax], 0
test rdi, rdi
je 0x14014c573
lea rsi, [rbp - 0x60]
mov r8d, 0x198
mov rcx, rsi
xor edx, edx
call sub.msvcrt.dll_memset
mov cx, 0x202
mov rdx, rsi
call sub.ws2_32.dll_WSAStartup
mov dword [rbp + 0x16c], eax
test eax, eax
jne 0x14014c57f
lea rax, [0x140161314]
mov qword [rdi], rax
add rsp, 0x1f0
pop rdi
pop rsi
pop rbp
ret
lea rcx, str.library_std_src_synconce.rs
call sym.core::option::unwrap_failed::hec1ab125882a5e1e
mov qword [rbp + 0x138], 0
lea rdx, [0x1402c29c8]
lea r9, str.library_std_src_syspalwindows_net.rs
lea rcx, [rbp + 0x16c]
lea r8, [rbp + 0x138]
call sym.core::panicking::assert_failed::h8a98e51c055d6f66
int3
Function at 0x14014c970
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov rbx, r8
mov r14, rdx
mov rdi, rcx
movzx eax, byte [0x14032b170]
mov edx, 0x10
xor ecx, ecx
call sym.std::sys::pal::windows::alloc::process_heap_alloc::h5a8f05db6a24897c
test rax, rax
je 0x14014ca33
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rbx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [sym.std::sys::pal::windows::thread::Thread::new::thread_start::hefabc2546a0319c1]
xor ebx, ebx
xor ecx, ecx
mov rdx, rdi
mov r9, rax
call sub.kernel32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x14014ca25
mov rbx, qword [rsi]
mov r14, qword [rsi + 8]
mov rax, qword [r14]
test rax, rax
je 0x14014c9f1
mov rcx, rbx
call rax
cmp qword [r14 + 8], 0
je 0x14014ca04
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, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov ecx, 8
mov edx, 0x10
call sym.alloc::alloc::handle_alloc_error::h033f15fcf3b32b44
ud2
Function at 0x140150cc0
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
mov r9, rcx
mov ecx, 0xfffffff4
pop rbp
jmp sym.std::sys::pal::windows::stdio::write::h51f0a5f743bad205

Function at 0x140150ce0
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
mov r9, rcx
add rdx, 0xfffffffffffffff0
shl r8, 4
nop
test r8, r8
je 0x140150d0b
mov eax, dword [rdx + 0x10]
add rdx, 0x10
add r8, 0xfffffffffffffff0
test rax, rax
je 0x140150cf0
mov rdx, qword [rdx + 8]
jmp 0x140150d12
mov edx, 1
xor eax, eax
mov ecx, 0xfffffff4
mov r8, rax
pop rbp
jmp sym.std::sys::pal::windows::stdio::write::h51f0a5f743bad205
Function at 0x140153a29
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 0x140153a30
test al, 1
je 0x140153a4f
test al, 2
jne 0x140153a67
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x1402c4298]
mov edx, 0x23
call sym.core::panicking::panic::h8ea5606244902eff
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x1402c42d8]
mov edx, 0x25
call sym.core::panicking::panic::h8ea5606244902eff
int3

Function at 0x140155aff
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov rdi, qword [rcx]
mov edx, 1
mov rcx, rdi
call sym._ZN3std3sys3pal7windows16thread_local_key9StaticKey3set17h435cd6814f741fe9E.3355
mov rcx, rsi
call sym._ZN4core3ptr125drop_in_place_LT_alloc..boxed..Box_LT_std..sys..thread_local..os_local..Value_LT_tokio..runtime..context..Conte
mov rcx, rdi
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp sym._ZN3std3sys3pal7windows16thread_local_key9StaticKey3set17h435cd6814f741fe9E.3355

Function at 0x140155b30
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov rdi, qword [rcx + 8]
mov edx, 1
mov rcx, rdi
call sym._ZN3std3sys3pal7windows16thread_local_key9StaticKey3set17h435cd6814f741fe9E.3355
mov rcx, rsi
call sym._ZN4core3ptr125drop_in_place_LT_alloc..boxed..Box_LT_std..sys..thread_local..os_local..Value_LT_tokio..runtime..park..ParkThre
mov rcx, rdi
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp sym._ZN3std3sys3pal7windows16thread_local_key9StaticKey3set17h435cd6814f741fe9E.3355

Function at 0x1401583c2
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, edx
call sym.__tokio::io::poll_evented::PollEvented_E__as_core::ops::deref::Deref_::deref::hc3f68638ebd81a56
mov rcx, qword [rax]
movzx eax, bl
lea r9, [rsp + 0x2c]
mov dword [r9], eax
mov dword [rsp + 0x20], 4
mov edx, 6
mov r8d, 1
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x1401583fd
xor eax, eax
jmp 0x14015840a
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rbx
ret
Function at 0x140158668
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 r13, r8
mov rdi, rdx
mov rbx, rcx
lea r14, [rsp + 0x32]
lea r15, [rsp + 0x42]
mov r12, qword [rcx + 8]
mov esi, 0x7fffffff
cmp r9, rsi
cmovb rsi, r9
mov rax, qword [rcx + 0x10]
mov qword [rsp + 0x50], rax
mov rax, qword [rcx + 0x18]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x20], rsi
lea rcx, [rsp + 0x28]
mov rdx, r12
mov r8, rdi
call sym.tokio::runtime::io::registration::Registration::poll_write_ready::h94078c8b2a385e80
mov al, byte [rsp + 0x31]
cmp al, 3
je 0x1401587cc
mov rbp, qword [rsp + 0x28]
cmp al, 2
je 0x1401587c5
mov cl, byte [rsp + 0x30]
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 0x1401587ec
mov rdx, r13
mov r8d, esi
xor r9d, r9d
call sub.ws2_32.dll_send
cmp eax, 0xffffffff
jne 0x1401587d3
call sub.ws2_32.dll_WSAGetLastError
mov ebp, eax
shl rbp, 0x20
or rbp, 2
mov rcx, rbp
call sym._ZN3std2io5error5Error4kind17hc2039d206deb488fE.2986
cmp al, 0xd
jne 0x14015879f
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x14015879f
mov rcx, qword [rax]
mov rdx, qword [rax + 8]
lock inc qword [rdx]
jle 0x1401587f8
mov rsi, 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::h50b9c9ee40e9a9f5
mov r14, rax
xor ecx, ecx
call sym.core::ptr::drop_in_place_core::result::Result____std::io::error::Error__::h4dbd8c6779da4f84
test r14, r14
je 0x140158791
mov ecx, 1
mov rdx, rbp
call sym.core::ptr::drop_in_place_core::result::Result_usize_std::io::error::Error__::h6198c2875591f34a
mov rbp, r14
mov r14, rbx
mov rbx, r12
mov r12, rsi
mov rsi, qword [rsp + 0x20]
mov rcx, rbp
call sym._ZN3std2io5error5Error4kind17hc2039d206deb488fE.7307
cmp al, 0xd
jne 0x1401587c5
mov rcx, rbx
lea rdx, [rsp + 0x38]
call sym.tokio::runtime::io::registration::Registration::clear_readiness::hdcaf66658fc3ef82
mov rcx, rbp
call sym._ZN4core3ptr42drop_in_place_LT_std..io..error..Error_GT_17he2d2f4b2dcdddf6eE.7638
jmp 0x1401586b2
mov eax, 1
jmp 0x1401587d8
mov eax, 2
jmp 0x1401587d8
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.C:UsersAdministrator.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.39.2_srciopoll_evented.rs
call sym.core::option::unwrap_failed::hec1ab125882a5e1e
ud2
Function at 0x1401623a0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x140162410
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14032b1f4]
test esi, esi
mov rbx, rcx
jle 0x140162540
mov rax, qword [0x14032b1f8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14016245b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1401624e5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140162440
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x140162562
mov rax, qword [0x14032b1f8]
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 [0x14032b1f8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140162547
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1401624de
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1401624f0
add dword [0x14032b1f4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x14032b1f8]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1401624de
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 0x140162468
mov rax, qword [0x14032b1f8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140162ad0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14032b260]
mov rcx, r12
call qword [sym.imp.kernel32.dll_EnterCriticalSection]
mov rbx, qword [0x14032b240]
test rbx, rbx
je 0x140162b2c
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 0x140162b23
test rsi, rsi
je 0x140162b23
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140162b08
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 0x140162d40
Capabilities:
Parse pe header

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

Function at 0x140162d50
Capabilities:
Parse pe header

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

Function at 0x140162d60
Capabilities:
Parse pe header

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

Function at 0x140162d90
Capabilities:
Enumerate pe sections

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

Function at 0x140162de0
Capabilities:
Parse pe header

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

Disassembly:
mov rdx, qword [0x1402f7090]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140162ea0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140162ea8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140162ea0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140162efd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x140162ef4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140162ea0
add rax, 0x28
cmp rax, r9
jne 0x140162ee0
xor eax, eax
ret

Function at 0x140162f00
Capabilities:
Parse pe header

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

Disassembly:
mov r8, qword [0x1402f7090]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140162f60
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140162f68
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140162f60
movzx r8d, word [rdx + 6]
movzx eax, word [rdx + 0x14]
test r8w, r8w
lea rax, [rdx + rax + 0x18]
je 0x140162fb0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140162fa7
test rcx, rcx
je 0x140162f60
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140162f98
xor eax, eax
ret

Function at 0x140162fc0
Capabilities:
Parse pe header

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

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

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

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

Disassembly:
mov r11, qword [0x1402f7090]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1401630b2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1401630c0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1401630b2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1401630b2
movzx r10d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
test r10w, r10w
lea rdx, [r8 + rdx + 0x18]
je 0x1401630b2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
cmp rax, r9
mov r8, r9
jb 0x140163115
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140163128
add rdx, 0x28
cmp rdx, r10
jne 0x140163100
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140163137
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140163147
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14016311e
test ecx, ecx
jg 0x140163130
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret