joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140121de0
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::h071642db1926dc44
mov rax, qword [rbp - 0x28]
movabs rcx, 0x8000000000000000
cmp rax, rcx
jne 0x140121e67
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 0x140121e9d
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x140121eb1
lea rcx, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rcx
mov qword [rsi], 1
test rax, rax
je 0x140121ed1
mov r8, qword [rbp - 0x20]
mov rcx, qword [0x1403460d0]
xor edx, edx
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
jmp fcn.14013f0f4
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 0x140121ed1
mov rcx, qword [0x1403460d0]
xor edx, edx
mov r8, rdi
call fcn.14013f0f4
nop
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret

Function at 0x140121ee0
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 0x140121f43
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 0x140121f4f
lea rax, [0x14013f2dc]
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::h023124a4722a3daa
mov qword [rbp + 0x138], 0
lea rdx, [0x14030bbb8]
lea r9, str.library_std_src_syspalwindows_net.rs
lea rcx, [rbp + 0x16c]
lea r8, [rbp + 0x138]
call sym.core::panicking::assert_failed::h82260c4eb449eb0c
int3

Function at 0x140121f80
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 0x140121fe3
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 0x140121fef
lea rax, [0x14013f2dc]
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::h023124a4722a3daa
mov qword [rbp + 0x138], 0
lea rdx, [0x14030bbb8]
lea r9, str.library_std_src_syspalwindows_net.rs
lea rcx, [rbp + 0x16c]
lea r8, [rbp + 0x138]
call sym.core::panicking::assert_failed::h82260c4eb449eb0c
int3
Function at 0x1401227f0
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov rdi, r8
mov r14, rdx
mov rbx, rcx
movzx eax, byte [0x140346130]
mov edx, 0x10
xor ecx, ecx
call sym.std::sys::pal::windows::alloc::process_heap_alloc::hcc99af14aa596ba0
test rax, rax
je 0x1401228c7
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [sym.std::sys::pal::windows::thread::Thread::new::thread_start::h58c2e0e473cbe32f]
xor edi, edi
xor ecx, ecx
mov rdx, rbx
mov r9, rax
call sub.KERNEL32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x1401228b9
mov rdi, qword [rsi]
mov r14, qword [rsi + 8]
mov rax, qword [r14]
test rax, rax
je 0x140122871
mov rcx, rdi
call rax
cmp qword [r14 + 8], 0
je 0x140122894
cmp qword [r14 + 0x10], 0x11
jb 0x140122883
mov rdi, qword [rdi - 8]
mov rcx, qword [0x1403460d0]
xor edx, edx
mov r8, rdi
call fcn.14013f0f4
mov rcx, qword [0x1403460d0]
xor edx, edx
mov r8, rsi
call fcn.14013f0f4
call sub.KERNEL32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
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::ha2de6b786ec4bee4
ud2
Function at 0x140126900
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::h061985c4f04c0a06

Function at 0x140126920
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 0x14012694b
mov eax, dword [rdx + 0x10]
add rdx, 0x10
add r8, 0xfffffffffffffff0
test rax, rax
je 0x140126930
mov rdx, qword [rdx + 8]
jmp 0x140126952
mov edx, 1
xor eax, eax
mov ecx, 0xfffffff4
mov r8, rax
pop rbp
jmp sym.std::sys::pal::windows::stdio::write::h061985c4f04c0a06

Function at 0x140127f00
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rax, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x140127f42
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 4
jb 0x140127f4a
mov esi, dword [rdx]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jb 0x140127f5b
jmp 0x140127f72
xor r10d, r10d
jmp 0x140127ffd
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x140127f72
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x140127f89
movzx edi, byte [rdx + r9]
shl r9d, 3
mov ecx, r9d
shl rdi, cl
or rsi, rdi
lea ecx, [r11*8]
shl rsi, cl
or rsi, qword [rax + 0x38]
mov qword [rax + 0x38], rsi
cmp r10, r8
jbe 0x140127fa9
add r11, r8
jmp 0x1401280db
mov r11, qword [rax + 0x18]
mov r9, qword [rax + 0x10]
mov rcx, qword [rax]
add rcx, r9
rol r9, 0xd
xor r11, rsi
xor r9, rcx
rol rcx, 0x20
mov rdi, qword [rax + 8]
add rdi, r11
rol r11, 0x10
xor r11, rdi
add rcx, r11
rol r11, 0x15
xor r11, rcx
add rdi, r9
rol r9, 0x11
mov qword [rax + 0x18], r11
xor r9, rdi
rol rdi, 0x20
mov qword [rax + 0x10], r9
mov qword [rax + 8], rdi
xor rcx, rsi
mov qword [rax], rcx
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x140128072
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
nop
add rcx, rsi
rol rsi, 0xd
mov rbx, qword [rdx + r10]
xor rsi, rcx
rol rcx, 0x20
xor rdi, rbx
add r9, rdi
rol rdi, 0x10
xor rdi, r9
add rcx, rdi
rol rdi, 0x15
add r9, rsi
rol rsi, 0x11
xor rsi, r9
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x140128020
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 4
jb 0x140128090
mov r9d, dword [rdx + r10]
mov r8d, 4
mov rcx, r8
or rcx, 1
cmp rcx, r11
jb 0x1401280a2
jmp 0x1401280bd
xor r9d, r9d
xor r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x1401280bd
lea rcx, [rdx + r8]
movzx esi, word [r10 + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8, r11
jae 0x1401280d7
add r10, r8
movzx edx, byte [rdx + r10]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r9, rdx
mov qword [rax + 0x38], r9
mov qword [rax + 0x40], r11
pop rbx
pop rdi
pop rsi
ret
Function at 0x140128990
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
movaps xmmword [rsp + 0x30], xmm6
mov ecx, dword [0x1402b50f8]
test ecx, ecx
je 0x1401289bc
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x1401289d5
add rax, 8
jmp 0x140128a70
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h1761f294304f3d03
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h9998ba6ad9fe020d
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x1401289b3
je 0x140128a6e
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
mov edx, 0x10
call sub.bcryptprimitives.dll_ProcessPrng
movaps xmm6, xmmword [rsp + 0x20]
movzx eax, byte [0x140346130]
mov edx, 0x18
xor ecx, ecx
call sym.std::sys::pal::windows::alloc::process_heap_alloc::hcc99af14aa596ba0
test rax, rax
je 0x140128a9d
mov rbx, rax
mov rsi, rax
lea rax, sym.std::sys::thread_local::os_local::destroy_value::h1761f294304f3d03
mov qword [rsi], rax
movups xmmword [rsi + 8], xmm6
mov ecx, dword [0x1402b50f8]
test ecx, ecx
je 0x140128a7d
dec ecx
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, dword [0x1402b50f8]
test ecx, ecx
je 0x140128a8d
dec ecx
add rbx, 8
mov rdx, rsi
call fcn.14013efbc
test rdi, rdi
je 0x140128a69
mov rcx, qword [0x1403460d0]
xor edx, edx
mov r8, rdi
call fcn.14013f0f4
mov rax, rbx
jmp 0x140128a70
xor eax, eax
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h1761f294304f3d03
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h9998ba6ad9fe020d
mov ecx, eax
jmp 0x140128a33
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h1761f294304f3d03
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h9998ba6ad9fe020d
mov ecx, eax
jmp 0x140128a47
mov ecx, 8
mov edx, 0x18
call sym.alloc::alloc::handle_alloc_error::ha2de6b786ec4bee4
int3
Function at 0x140129230
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x1402b5120]
test ecx, ecx
je 0x140129328
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x140129321
je 0x14012931f
movzx eax, byte [0x140346130]
mov edx, 0x20
xor ecx, ecx
call sym.std::sys::pal::windows::alloc::process_heap_alloc::hcc99af14aa596ba0
test rax, rax
je 0x140129374
mov rsi, rax
mov qword [rax], 1
mov qword [rax + 8], 1
mov qword [rax + 0x10], 0
mov dword [rax + 0x18], 0
mov word [rax + 0x1c], 0
movzx eax, byte [0x140346130]
mov edx, 0x10
xor ecx, ecx
call sym.std::sys::pal::windows::alloc::process_heap_alloc::hcc99af14aa596ba0
test rax, rax
je 0x140129383
mov qword [rax], rsi
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::hde2a4c168e7e66b9
mov rsi, rax
mov qword [rax + 8], rcx
mov ecx, dword [0x1402b5120]
test ecx, ecx
je 0x140129347
dec ecx
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, dword [0x1402b5120]
test ecx, ecx
je 0x140129357
dec ecx
mov rdx, rsi
call fcn.14013efbc
test rdi, rdi
je 0x14012931a
mov rax, qword [rdi]
lock dec qword [rax]
jne 0x140129309
mov rcx, qword [rdi]
call sym.alloc::sync::Arc_T_A_::drop_slow::h51c366533f252581
mov rcx, qword [0x1403460d0]
xor edx, edx
mov r8, rdi
call fcn.14013f0f4
mov rax, rsi
jmp 0x140129321
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::hde2a4c168e7e66b9
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h9998ba6ad9fe020d
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140129255
jmp 0x140129321
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::hde2a4c168e7e66b9
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h9998ba6ad9fe020d
mov ecx, eax
jmp 0x1401292d7
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::hde2a4c168e7e66b9
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h9998ba6ad9fe020d
mov ecx, eax
mov rdx, rsi
call fcn.14013efbc
test rdi, rdi
jne 0x1401292f8
jmp 0x14012931a
mov ecx, 8
mov edx, 0x20
call sym.alloc::alloc::handle_alloc_error::ha2de6b786ec4bee4
mov ecx, 8
mov edx, 0x10
call sym.alloc::alloc::handle_alloc_error::ha2de6b786ec4bee4
int3
Function at 0x1401301c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov ecx, dword [0x1402b5148]
test ecx, ecx
je 0x1401301e7
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140130200
add rax, 8
jmp 0x1401302d0
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::hc7b6c01568a8925f
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h9998ba6ad9fe020d
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x1401301de
je 0x1401302ce
movzx eax, byte [0x140346130]
mov edx, 0x50
xor ecx, ecx
call sym.std::sys::pal::windows::alloc::process_heap_alloc::hcc99af14aa596ba0
test rax, rax
je 0x1401302f8
mov rbx, rax
mov rsi, rax
lea rax, sym.std::sys::thread_local::os_local::destroy_value::hc7b6c01568a8925f
mov qword [rsi], rax
movups xmm0, xmmword [0x14030f6c8]
movups xmmword [rsi + 8], xmm0
movups xmm0, xmmword [0x14030f6d8]
movups xmmword [rsi + 0x18], xmm0
movups xmm0, xmmword [0x14030f6e8]
movups xmmword [rsi + 0x28], xmm0
movups xmm0, xmmword [0x14030f6f8]
movups xmmword [rsi + 0x38], xmm0
movabs rax, 0x2000000000000
mov qword [rsi + 0x48], rax
mov ecx, dword [0x1402b5148]
test ecx, ecx
je 0x1401302d8
dec ecx
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, dword [0x1402b5148]
test ecx, ecx
je 0x1401302e8
dec ecx
add rbx, 8
mov rdx, rsi
call fcn.14013efbc
test rdi, rdi
je 0x1401302c9
mov rax, qword [rdi + 0x28]
test rax, rax
je 0x1401302b8
lock dec qword [rax]
jne 0x1401302b8
mov rcx, rdi
add rcx, 0x28
call sym.alloc::sync::Arc_T_A_::drop_slow::h18a0906bb5fd10d1
mov rcx, qword [0x1403460d0]
xor edx, edx
mov r8, rdi
call fcn.14013f0f4
mov rax, rbx
jmp 0x1401302d0
xor eax, eax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::hc7b6c01568a8925f
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h9998ba6ad9fe020d
mov ecx, eax
jmp 0x140130278
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::hc7b6c01568a8925f
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h9998ba6ad9fe020d
mov ecx, eax
jmp 0x14013028c
mov ecx, 8
mov edx, 0x50
call sym.alloc::alloc::handle_alloc_error::ha2de6b786ec4bee4
int3

Function at 0x140130310
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rcx
mov rsi, qword [rcx]
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x14013036e
dec ecx
mov edx, 1
call fcn.14013efbc
mov rax, qword [rdi + 0x28]
test rax, rax
je 0x140130347
lock dec qword [rax]
jne 0x140130347
lea rcx, [rdi + 0x28]
call sym.alloc::sync::Arc_T_A_::drop_slow::h18a0906bb5fd10d1
mov rcx, qword [0x1403460d0]
xor edx, edx
mov r8, rdi
call fcn.14013f0f4
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x14013037a
dec ecx
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.14013efbc
mov rcx, rsi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h9998ba6ad9fe020d
mov ecx, eax
jmp 0x140130325
mov rcx, rsi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h9998ba6ad9fe020d
mov ecx, eax
jmp 0x140130361
Function at 0x140130390
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rcx
mov rsi, qword [rcx + 8]
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x1401303e8
dec ecx
mov edx, 1
call fcn.14013efbc
mov rax, qword [rdi]
lock dec qword [rax]
jne 0x1401303c1
mov rcx, qword [rdi]
call sym.alloc::sync::Arc_T_A_::drop_slow::h51c366533f252581
mov rcx, qword [0x1403460d0]
xor edx, edx
mov r8, rdi
call fcn.14013f0f4
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x1401303f4
dec ecx
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.14013efbc
mov rcx, rsi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h9998ba6ad9fe020d
mov ecx, eax
jmp 0x1401303a6
mov rcx, rsi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h9998ba6ad9fe020d
mov ecx, eax
jmp 0x1401303db
Function at 0x140130fe0
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, 0x38
mov qword [rsp + 0x30], r8
mov rsi, rdx
mov rbx, qword [rcx + 0x10]
cmp rbx, 0xffffffffffffffff
je 0x14013117f
mov r14, qword [rcx + 8]
mov r12, qword [rcx + 0x18]
cmp r9, 0x7fffffff
mov r15d, 0x7fffffff
cmovb r15, r9
jmp 0x140131055
mov rcx, qword [0x1403460d0]
xor edx, edx
mov r8, rbp
call fcn.14013f0f4
dec r13
mov rcx, qword [0x1403460d0]
xor edx, edx
mov r8, r13
call fcn.14013f0f4
lea rcx, [rsp + 0x20]
mov rdx, r14
mov r8, rsi
mov r9b, 1
call sym.tokio::runtime::io::registration::Registration::poll_ready::h7971f7cee1df96b1
movzx eax, byte [rsp + 0x29]
cmp al, 3
je 0x14013119c
mov rbp, qword [rsp + 0x20]
cmp al, 2
je 0x1401311b6
movzx edi, byte [rsp + 0x28]
mov rcx, rbx
mov rdx, qword [rsp + 0x30]
mov r8d, r15d
xor r9d, r9d
call sub.ws2_32.dll_send
cmp eax, 0xffffffff
jne 0x1401311c0
call sub.ws2_32.dll_WSAGetLastError
mov r13d, eax
shl r13, 0x20
or r13, 2
mov rcx, r13
call sym._ZN3std2io5error5Error4kind17hf173a300131ae97bE.2638
cmp al, 0xd
jne 0x1401310f2
test r12, r12
je 0x1401310f2
mov rcx, qword [r12]
mov rdx, qword [r12 + 8]
lock inc qword [rdx]
jle 0x1401311d9
add rcx, 0x10
mov r8, qword [r12 + 0x10]
movzx r9d, byte [r12 + 0x18]
call sym.mio::sys::windows::selector::SelectorInner::reregister::hc8ce4a32ca7c3bbf
test rax, rax
cmovne r13, rax
mov rcx, r13
call sym.std::io::error::Error::kind::hf173a300131ae97b
cmp al, 0xd
jne 0x1401311af
and ebp, 0x23
mov rax, qword [r14 + 0x90]
mov ecx, edi
shl ecx, 0x10
xor rbp, 0x2f
nop word cs:[rax + rax]
mov edx, eax
shr edx, 0x10
cmp dil, dl
jne 0x14013113c
mov edx, ebp
and edx, eax
or rdx, rcx
lock cmpxchg qword [r14 + 0x90], rdx
jne 0x140131120
mov eax, r13d
and eax, 3
cmp eax, 1
jne 0x140131055
mov rbp, qword [r13 - 1]
mov rdi, qword [r13 + 7]
mov rax, qword [rdi]
test rax, rax
je 0x140131160
mov rcx, rbp
call rax
cmp qword [rdi + 8], 0
je 0x140131041
cmp qword [rdi + 0x10], 0x11
jb 0x140131030
mov rbp, qword [rbp - 8]
jmp 0x140131030
mov rdx, qword [rcx + 8]
lea rcx, [rsp + 0x20]
mov r8, rsi
mov r9b, 1
call sym.tokio::runtime::io::registration::Registration::poll_ready::h7971f7cee1df96b1
movzx eax, byte [rsp + 0x29]
cmp al, 3
jne 0x1401311a6
mov eax, 2
mov r13, rbp
jmp 0x1401311c5
cmp al, 2
jne 0x1401311db
mov r13, qword [rsp + 0x20]
mov eax, 1
jmp 0x1401311c5
mov eax, 1
mov r13, rbp
jmp 0x1401311c5
movsxd r13, eax
xor eax, eax
mov rdx, r13
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
lea rcx, [0x14030dd50]
call sym.core::option::unwrap_failed::h023124a4722a3daa
int3
Function at 0x14013ff80
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 0x14013fff0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1403461b4]
test esi, esi
mov rbx, rcx
jle 0x140140120
mov rax, qword [0x1403461b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14014003b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1401400c5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140140020
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x140140142
mov rax, qword [0x1403461b8]
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 [0x1403461b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140140127
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1401400be
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1401400d0
add dword [0x1403461b4], 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 [0x1403461b8]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1401400be
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 0x140140048
mov rax, qword [0x1403461b8]
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 0x1401406b0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140346220]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140346200]
test rbx, rbx
je 0x14014070c
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 0x140140703
test rsi, rsi
je 0x140140703
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1401406e8
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 0x140140920
Capabilities:
Parse pe header

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

Function at 0x140140930
Capabilities:
Parse pe header

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

Function at 0x140140940
Capabilities:
Parse pe header

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

Function at 0x140140970
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 0x1401409bd
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 0x1401409b4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1401409bf
add rax, 0x28
cmp rax, r9
jne 0x1401409a0
xor eax, eax
ret

Function at 0x1401409c0
Capabilities:
Parse pe header

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

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

Function at 0x140140ae0
Capabilities:
Parse pe header

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