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

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x004840d0]
test ecx, ecx
je 0x453aaf
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x453a39
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x453a9e
mov ecx, dword [0x004840d0]
test ecx, ecx
je 0x453ac2
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x453aa4
mov rsi, rax
test rax, rax
jne 0x453a98
movzx eax, byte [0x004a0170]
mov ecx, 0x10
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x453ae5
mov rsi, rax
lea rax, dbg.destroy_value_u8_
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x004840d0]
test ecx, ecx
leave
je 0x453ad5
dec ecx
mov rdx, rsi
call fcn.004824b4
mov word [rsi + 8], 1
add rsi, 9
jmp 0x453aa6
xor esi, esi
mov rax, rsi
add rsp, 0x20
pop rsi
ret
lea rcx, dbg.destroy_value_u8_
call dbg.init
mov ecx, eax
jmp 0x453a25
invalid
invalid
invalid
lea rcx, dbg.destroy_value_u8_
call dbg.init
mov ecx, eax
jmp 0x453a45
lea rcx, dbg.destroy_value_u8_
call dbg.init
mov ecx, eax
jmp 0x453a90
mov ecx, 8
mov edx, 0x10
call dbg.handle_alloc_error
int3

Function at 0x454050
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x00492900]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtWriteFile
cmp eax, 0x103
jne 0x4540c1
mov rcx, rdi
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x4540f7
test eax, eax
js 0x4540d2
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x4540ea
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call sym.std::io::Write::write_fmt::h3d21beac8e0d2508
mov rcx, rax
call sym.core::ptr::drop_in_place_core::result::Result____std::io::error::Error__::h3d52a3d6c45c6b2b
mov ecx, 7
int 0x29
ud2

Function at 0x4545c0
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rsi, rcx
mov rdi, qword [rcx]
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x4545d7
dec ecx
jmp 0x4545e1
mov rcx, rdi
call dbg.init
mov ecx, eax
mov edx, 1
call fcn.004824b4
mov rcx, qword [0x004a0128]
xor edx, edx
mov r8, rsi
call fcn.0048256c
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x454607
dec ecx
jmp 0x454611
mov rcx, rdi
call dbg.init
mov ecx, eax
xor edx, edx
add rsp, 0x68
pop rdi
pop rsi
jmp fcn.004824b4
Function at 0x4547e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x00484090]
test ecx, ecx
je 0x45489d
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x454810
cmp qword [rax + 8], 0
je 0x454810
add rax, 0x10
jmp 0x454897
mov ecx, dword [0x00484090]
test ecx, ecx
je 0x4548b0
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x454895
mov rsi, rax
test rax, rax
jne 0x45487b
movzx eax, byte [0x004a0170]
mov ecx, 0x20
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x4548d3
mov rsi, rax
lea rax, dbg.destroy_value_u8_
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x00484090]
test ecx, ecx
je 0x4548c3
dec ecx
mov rdx, rsi
call fcn.004824b4
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], 0
mov byte [rsi + 0x18], 0
jmp 0x454897
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, dbg.destroy_value_u8_
call dbg.init
mov ecx, eax
jmp 0x4547f5
lea rcx, dbg.destroy_value_u8_
call dbg.init
mov ecx, eax
jmp 0x454820
lea rcx, dbg.destroy_value_u8_
call dbg.init
mov ecx, eax
jmp 0x454873
mov ecx, 8
mov edx, 0x20
call dbg.handle_alloc_error
int3
Function at 0x457db0
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x88
mov rax, r8
mov rsi, rcx
mov dword [rsp + 0x40], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov dword [rsp + 0x58], 7
mov qword [rsp + 0x5c], 0
mov word [rsp + 0x64], 0
mov byte [rsp + 0x60], 1
lea r8, [rsp + 0x40]
mov rcx, rdx
mov rdx, rax
call dbg.open
mov rdi, rdx
test rax, rax
je 0x457e1f
mov rcx, rdi
call dbg.drop_in_place<std::io::error::Error>
mov qword [rsi], 0
jmp 0x457f4b
lea rcx, [rsp + 0x40]
mov rdx, rdi
call dbg.file_attr
cmp dword [rsp + 0x40], 2
jne 0x457e5c
mov rcx, qword [rsp + 0x48]
call dbg.drop_in_place<std::io::error::Error>
mov qword [rsi], 0
mov rcx, rdi
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp sub.KERNEL32.dll_CloseHandle
mov r12, qword [rsp + 0x78]
test rdi, rdi
je 0x457eae
mov qword [rsp + 0x40], 0
call sub.KERNEL32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, rax
mov rdx, rdi
mov r8, rax
call sub.KERNEL32.dll_DuplicateHandle
test eax, eax
je 0x457f2a
mov rbx, qword [rsp + 0x40]
jmp 0x457eb0
xor ebx, ebx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rbx
xor edx, edx
mov r8d, 2
xor r9d, r9d
call sub.KERNEL32.dll_CreateFileMappingA
test rax, rax
je 0x457f19
mov r14, rax
mov qword [rsp + 0x20], r12
mov rcx, rax
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call sub.KERNEL32.dll_MapViewOfFile
mov r15, rax
mov rcx, r14
call sub.KERNEL32.dll_CloseHandle
test r15, r15
je 0x457f19
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r12
mov qword [rsi], 1
jmp 0x457f43
mov qword [rsi], 0
mov rcx, rbx
call sub.KERNEL32.dll_CloseHandle
jmp 0x457f43
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
lea rcx, [rax + 2]
call dbg.drop_in_place<std::io::error::Error>
mov qword [rsi], 0
mov rcx, rdi
call sub.KERNEL32.dll_CloseHandle
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x471370
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x498
mov rsi, rcx
movabs rdi, 0x8000000000000000
lea rcx, [rsp + 0x98]
call dbg.inner
mov rax, qword [rsp + 0x98]
cmp rax, rdi
jne 0x4713bf
mov rcx, qword [rsp + 0xa0]
call dbg.drop_in_place<std::io::error::Error>
mov qword [rsi], rdi
jmp 0x47157d
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 2
mov qword [rsp + 0x58], 0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x28], rax
xor ebx, ebx
mov esi, 0xffffffff
xor r14d, r14d
xor r13d, r13d
cmp r8, 0x201
jae 0x471450
jmp 0x47142f
jae 0x4714fb
cmp r8, 0x201
jae 0x471450
mov edi, 0x200
lea rbp, [rsp + 0x98]
mov r12, r8
jmp 0x471497
sub r8, r13
sub r14, r13
cmp r14, r8
jae 0x471477
lea rcx, [rsp + 0x48]
mov rdx, r13
call dbg.do_reserve_and_handle<u16, alloc::alloc::Global>
mov rbx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
cmp rbx, rsi
mov r13d, 0xffffffff
cmovb r13, rbx
mov qword [rsp + 0x58], r13
mov r14, rbx
mov rdi, r13
mov rbp, qword [rsp + 0x28]
mov r12, r13
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, qword [rsp + 0x30]
mov rdx, rbp
mov r8d, r12d
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov r15d, eax
test eax, eax
jne 0x4714c2
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x4715b1
mov r8d, r15d
cmp r12, r8
jne 0x471420
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x4715db
add r12, r12
cmp r12, rsi
cmovae r12, rsi
mov r8, r12
cmp r8, 0x201
jb 0x47142f
jmp 0x471450
cmp rdi, r8
jb 0x4715f5
lea rcx, [rsp + 0x78]
mov rdx, rbp
call dbg.from_wide
movabs r14, 0x8000000000000000
mov rsi, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
movups xmm0, xmmword [rsp + 0x88]
movaps xmmword [rsp + 0x60], xmm0
test rbx, rbx
je 0x47154d
mov rcx, qword [0x004a0128]
xor edx, edx
mov r8, qword [rsp + 0x28]
call fcn.0048256c
cmp rsi, r14
jne 0x471592
mov rax, qword [rsp + 0x38]
mov qword [rax], r14
mov rcx, rdi
call dbg.drop_in_place<std::io::error::Error>
cmp qword [rsp + 0x40], 0
je 0x47157d
mov rcx, qword [0x004a0128]
xor edx, edx
mov r8, qword [rsp + 0x30]
call fcn.0048256c
nop
add rsp, 0x498
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rsp + 0x38]
mov qword [rax], rsi
mov qword [rax + 8], rdi
movaps xmm0, xmmword [rsp + 0x60]
movups xmmword [rax + 0x10], xmm0
cmp qword [rsp + 0x40], 0
jne 0x47156a
jmp 0x47157d
call sub.KERNEL32.dll_GetLastError
mov edi, eax
shl rdi, 0x20
or rdi, 2
movabs r14, 0x8000000000000000
mov rsi, r14
test rbx, rbx
jne 0x47153a
jmp 0x47154d
lea rcx, str.internal_error:_entered_unreachable_codefailed_to_write_the_buffered_data
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call dbg.panic
jmp 0x47160a
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rdi
mov r8, rax
call dbg.slice_end_index_len_fail
ud2
Function at 0x472830
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x00492900]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtReadFile
cmp eax, 0x103
jne 0x47289a
mov rcx, rdi
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x4728a5
xor eax, eax
jmp 0x4728b5
cmp eax, 0x103
je 0x472904
test eax, eax
js 0x4728ca
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
add rsp, 0xa8
pop rdi
pop rsi
ret
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov rdi, rax
shl rdi, 0x20
or rdi, 2
mov ecx, eax
call dbg.decode_error_kind
cmp al, 0xb
jne 0x4728f7
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov rcx, rdi
call dbg.drop_in_place<std::io::error::Error>
jmp 0x4728c0
mov qword [rsi + 8], rdi
mov qword [rsi], 1
jmp 0x4728c0
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call sym.std::io::Write::write_fmt::h3d21beac8e0d2508
mov rcx, rax
call sym.core::ptr::drop_in_place_core::result::Result____std::io::error::Error__::h3d52a3d6c45c6b2b
mov ecx, 7
int 0x29
ud2
Function at 0x474640
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x004840f0]
test ecx, ecx
je 0x474720
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x474674
mov rdi, rax
cmp qword [rax + 8], 0
je 0x474674
add rdi, 0x10
jmp 0x474716
mov ecx, dword [0x004840f0]
test ecx, ecx
je 0x474733
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x474714
mov rsi, rax
test rax, rax
jne 0x4746e3
movzx eax, byte [0x004a0170]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x474756
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 [0x004840f0]
test ecx, ecx
je 0x474746
dec ecx
mov rdx, rsi
call fcn.004824b4
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 0x474716
test rcx, rcx
je 0x474716
lock dec qword [rcx]
jne 0x474716
call dbg.drop_slow<std::sync::mutex::Mutex<alloc::vec::Vec<u8, alloc::alloc::Global>>, alloc::alloc::Global>
jmp 0x474716
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 0x474656
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 0x474684
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 0x4746db
mov ecx, 8
mov edx, 0x18
call dbg.handle_alloc_error
int3

Function at 0x4747c0
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rsi, rcx
mov rdi, qword [rcx]
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x4747d7
dec ecx
jmp 0x4747e1
mov rcx, rdi
call dbg.init
mov ecx, eax
mov edx, 1
call fcn.004824b4
cmp qword [rsi + 8], 0
je 0x47480a
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x47480a
lock dec qword [rax]
jne 0x47480a
mov rcx, qword [rsi + 0x10]
call dbg.drop_slow<std::sync::mutex::Mutex<alloc::vec::Vec<u8, alloc::alloc::Global>>, alloc::alloc::Global>
mov rcx, qword [0x004a0128]
xor edx, edx
mov r8, rsi
call fcn.0048256c
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x474826
dec ecx
jmp 0x474830
mov rcx, rdi
call dbg.init
mov ecx, eax
xor edx, edx
add rsp, 0x68
pop rdi
pop rsi
jmp fcn.004824b4
Function at 0x475020
Capabilities:
Resolve dns

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
mov ebx, r9d
mov rsi, rcx
lea rcx, [rsp + 0x30]
call dbg.spec_new_impl
mov rax, qword [rsp + 0x30]
movabs rcx, 0x8000000000000000
cmp rax, rcx
jne 0x4750ad
mov rdi, qword [rsp + 0x38]
mov r14, qword [rsp + 0x40]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x50]
lea r9, [rsp + 0x28]
mov rcx, rdi
xor edx, edx
call sub.WS2_32.dll_getaddrinfo
test eax, eax
je 0x4750e3
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x4750f6
lea rcx, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rcx
mov qword [rsi], 1
test rax, rax
je 0x475112
mov r8, qword [rsp + 0x38]
mov rcx, qword [0x004a0128]
xor edx, edx
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.0048256c
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], bx
xor eax, eax
mov qword [rsi], rax
mov byte [rdi], 0
test r14, r14
je 0x475112
mov rcx, qword [0x004a0128]
xor edx, edx
mov r8, rdi
call fcn.0048256c
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x475120
Capabilities:
Initialize winsock library

Disassembly:
push rsi
push rdi
sub rsp, 0x1f8
mov rax, qword [rcx]
mov rdi, qword [rax]
mov qword [rax], 0
test rdi, rdi
je 0x475178
lea rsi, [rsp + 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 [rsp + 0x2c], eax
test eax, eax
jne 0x475190
lea rax, [0x00482724]
mov qword [rdi], rax
add rsp, 0x1f8
pop rdi
pop rsi
ret
lea rcx, str.called__Option::unwrap____on_a__None__value
lea r8, str.library_std_src_synconce.rs
mov edx, 0x2b
call dbg.panic
mov qword [rsp + 0x30], 0
lea rdx, [0x00492970]
lea r9, str.library_std_src_syswindows_net.rs
lea rcx, [rsp + 0x2c]
lea r8, [rsp + 0x30]
call dbg.assert_failed<i32, i32>
int3

Function at 0x4751c0
Capabilities:
Initialize winsock library

Disassembly:
push rsi
push rdi
sub rsp, 0x1f8
mov rax, qword [rcx]
mov rdi, qword [rax]
mov qword [rax], 0
test rdi, rdi
je 0x475218
lea rsi, [rsp + 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 [rsp + 0x2c], eax
test eax, eax
jne 0x475230
lea rax, [0x00482724]
mov qword [rdi], rax
add rsp, 0x1f8
pop rdi
pop rsi
ret
lea rcx, str.called__Option::unwrap____on_a__None__value
lea r8, str.library_std_src_synconce.rs
mov edx, 0x2b
call dbg.panic
mov qword [rsp + 0x30], 0
lea rdx, [0x00492970]
lea r9, str.library_std_src_syswindows_net.rs
lea rcx, [rsp + 0x2c]
lea r8, [rsp + 0x30]
call dbg.assert_failed<i32, i32>
int3
Function at 0x475d20
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
test dx, dx
mov eax, 2
mov edi, 0x17
cmove edi, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
mov ecx, edi
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call sub.WS2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x475d6e
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x475dde
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2726
je 0x475d81
cmp eax, 0x2739
jne 0x475dcb
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, edi
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call sub.WS2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x475dc6
mov rdi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call sub.KERNEL32.dll_SetHandleInformation
test eax, eax
je 0x475de5
mov qword [rsi + 8], rdi
jmp 0x475d65
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0x38
pop rdi
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, rdi
add rsp, 0x38
pop rdi
pop rsi
jmp fcn.004826ec

Function at 0x475f50
Capabilities:
Send data
Send data on socket

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
mov rcx, rdx
mov rdx, rax
xor r9d, r9d
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
je 0x475f89
cdqe
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x475f9f
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0x20
pop rsi
ret

Function at 0x475fb0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
mov rcx, rdx
mov rdx, rax
xor r9d, r9d
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
je 0x475fe3
cdqe
jmp 0x475ff1
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x475ff9
xor eax, eax
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x47600a
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0x20
pop rsi
ret

Function at 0x476690
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rdi, r8
mov r14, rdx
mov rbx, rcx
movzx eax, byte [0x004a0170]
mov ecx, 0x10
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x47675c
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [dbg.thread_start]
xor edi, edi
xor ecx, ecx
mov rdx, rbx
mov r9, rax
call sub.KERNEL32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x47674f
mov rdi, qword [rsi]
mov r14, qword [rsi + 8]
mov rcx, rdi
call qword [r14]
cmp qword [r14 + 8], 0
je 0x47672a
cmp qword [r14 + 0x10], 0x11
jb 0x476719
mov rdi, qword [rdi - 8]
mov rcx, qword [0x004a0128]
xor edx, edx
mov r8, rdi
call fcn.0048256c
mov rcx, qword [0x004a0128]
xor edx, edx
mov r8, rsi
call fcn.0048256c
call sub.KERNEL32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
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 0x4768c0
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 0x4768f6
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 0x47b7f0
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 [0x00484110]
test ecx, ecx
je 0x47b8e9
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x47b820
cmp qword [rax + 8], 0
je 0x47b820
add rax, 0x10
jmp 0x47b8e3
mov ecx, dword [0x00484110]
test ecx, ecx
je 0x47b8fc
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x47b8c3
mov rsi, rax
test rax, rax
jne 0x47b893
movzx eax, byte [0x004a0170]
mov ecx, 0x20
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x47b922
mov rsi, rax
lea rax, dbg.destroy_value_u8_
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x00484110]
test ecx, ecx
je 0x47b90f
dec ecx
mov rdx, rsi
call fcn.004824b4
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 0x47b8c7
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x47b8cf
xor eax, eax
jmp 0x47b8e3
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 0x47b805
lea rcx, dbg.destroy_value_u8_
call dbg.init
mov ecx, eax
jmp 0x47b830
lea rcx, dbg.destroy_value_u8_
call dbg.init
mov ecx, eax
jmp 0x47b88b
mov ecx, 8
mov edx, 0x20
call dbg.handle_alloc_error
int3