joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45f300
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push eax
xor ecx, ecx
xor edx, edx
cmp dword [ebp + 0x18], 0x3b9aca00
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
setne bl
je 0x45f31f
mov ecx, dword [ebp + 0x10]
mov eax, dword [eax]
mov dl, bl
mov word [ebp - 0xc], dx
mov word [ebp - 0xa], cx
lea ecx, [ebp - 0xc]
push 4
push ecx
push pe_nt_image_headers32
push 0xffff
push eax
call sub.ws2_32.dll_setsockopt
mov cl, 4
cmp eax, 0xffffffff
jne 0x45f35c
call sub.ws2_32.dll_WSAGetLastError
xor ecx, ecx
mov byte [esi + 3], 0
mov word [esi + 1], 0
mov dword [esi + 4], eax
mov byte [esi], cl
mov eax, esi
add esp, 4
pop esi
pop ebx
pop ebp
ret

Function at 0x45f3f0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push eax
mov eax, dword [ebp + 0xc]
movzx ecx, byte [ebp + 0x10]
mov esi, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 8], ecx
lea ecx, [ebp - 8]
push 4
push ecx
push 1
push 6
push eax
call sub.ws2_32.dll_setsockopt
mov cl, 4
cmp eax, 0xffffffff
jne 0x45f42f
call sub.ws2_32.dll_WSAGetLastError
xor ecx, ecx
mov byte [esi + 3], 0
mov word [esi + 1], 0
mov dword [esi + 4], eax
mov byte [esi], cl
mov eax, esi
add esp, 4
pop esi
pop ebp
ret

Function at 0x460010
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
add ecx, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
mov word [ebp - 0x1c], 0
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x24]
call sym.__ZN98__LT_alloc..vec..Vec_LT_T_GT__u20_as_u20_alloc..vec..spec_from_iter..SpecFromIter_LT_T_C_I_GT__GT_9from_iter17hd17698b25
mov ebx, dword [ebp - 0x10]
cmp ebx, dword [ebp - 0x18]
jne 0x460048
lea ecx, [ebp - 0x18]
call sym.alloc::raw_vec::RawVec_LT_T_C_A_GT_::grow_one::h6756b7192074e1c7
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp + 8]
mov word [edi + ebx*2], 0
push edi
call sub.kernel32.dll_SetCurrentDirectoryW
test eax, eax
je 0x460080
mov byte [esi], 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x460076
add eax, eax
push 2
push eax
push edi
call sym.___rust_dealloc
add esp, 0xc
mov eax, esi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
call sub.kernel32.dll_GetLastError
mov dword [esi + 4], eax
mov dword [esi], 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x460068
jmp 0x460076
Function at 0x4600c0
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
push dword [ebp + 0x10]
call sym.std::sys::pal::windows::to_u16s::inner::h9c1ce760b5043b66
add esp, 4
mov edi, dword [ebp - 0x1c]
cmp edi, 0x80000000
jne 0x4600f3
movsd xmm0, qword [ebp - 0x18]
movsd qword [esi], xmm0
jmp 0x46015e
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x1c]
push dword [ebp + 0x18]
call sym.std::sys::pal::windows::to_u16s::inner::h9c1ce760b5043b66
add esp, 4
mov ebx, dword [ebp - 0x1c]
cmp ebx, 0x80000000
jne 0x460120
movsd xmm0, qword [ebp - 0x18]
movsd qword [esi], xmm0
jmp 0x46014a
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
push eax
push dword [ebp - 0x10]
call sub.kernel32.dll_SetEnvironmentVariableW
test eax, eax
je 0x460168
mov byte [esi], 4
test ebx, ebx
je 0x46014a
add ebx, ebx
push 2
push ebx
push dword [ebp - 0x20]
call sym.___rust_dealloc
add esp, 0xc
test edi, edi
je 0x46015e
add edi, edi
push 2
push edi
push dword [ebp - 0x10]
call sym.___rust_dealloc
add esp, 0xc
mov eax, esi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
call sub.kernel32.dll_GetLastError
mov dword [esi + 4], eax
mov dword [esi], 0
test ebx, ebx
jne 0x46013a
jmp 0x46014a

Function at 0x4601a0
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
push dword [ebp + 0x10]
call sym.std::sys::pal::windows::to_u16s::inner::h9c1ce760b5043b66
add esp, 4
mov edi, dword [ebp - 0x18]
cmp edi, 0x80000000
jne 0x4601d3
movsd xmm0, qword [ebp - 0x14]
movsd qword [esi], xmm0
jmp 0x4601f7
mov ebx, dword [ebp - 0x14]
push 0
push ebx
call sub.kernel32.dll_SetEnvironmentVariableW
test eax, eax
je 0x460201
mov byte [esi], 4
test edi, edi
je 0x4601f7
add edi, edi
push 2
push edi
push ebx
call sym.___rust_dealloc
add esp, 0xc
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
call sub.kernel32.dll_GetLastError
mov dword [esi + 4], eax
mov dword [esi], 0
test edi, edi
jne 0x4601e9
jmp 0x4601f7
Function at 0x460970
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
lea edi, [ebp - 0x30]
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], ecx
mov esi, dword [ebx + 8]
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
sub eax, esi
add ecx, esi
push sym.__ZN3std3sys3pal7windows4pipe8AnonPipe21alertable_io_internal8callback17hdaf1fc9f919f56e3E_12
push edi
push eax
push ecx
push edx
call sub.kernel32.dll_ReadFileEx
test eax, eax
je 0x4609e3
nop word cs:[eax + eax]
nop
push 1
push 0xffffffffffffffff
call sub.kernel32.dll_SleepEx
cmp dword [ebp - 0x1c], 0
je 0x4609c0
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x460a03
mov ecx, edi
call sym.std::sys::pal::windows::decode_error_kind::h7329ed9b84dd3c75
cmp al, 0xb
jne 0x4609f5
jmp 0x460a14
call sub.kernel32.dll_GetLastError
mov edi, eax
mov ecx, edi
call sym.std::sys::pal::windows::decode_error_kind::h7329ed9b84dd3c75
cmp al, 0xb
je 0x460a14
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], edi
mov dword [eax], 0
jmp 0x460a1a
add esi, dword [ebp - 0x14]
mov dword [ebx + 8], esi
mov eax, dword [ebx + 0xc]
cmp eax, esi
cmova esi, eax
mov dword [ebx + 0xc], esi
mov eax, dword [ebp - 0x10]
mov byte [eax], 4
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x461030
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
cmp dword [edx], 0
mov edi, edx
jne 0x461111
mov ebx, dword [edi + 0xc]
mov esi, ecx
mov edx, dword [ebx]
mov eax, dword [ebx + 8]
cmp edx, eax
je 0x4610ed
mov ecx, dword [edi + 8]
sub edx, eax
add eax, dword [ebx + 4]
mov dword [ebp - 0x2c], 0
lea ebx, [ebp - 0x2c]
push ecx
push ebx
push edx
push eax
push dword [edi + 0x10]
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x461090
mov eax, dword [ebp - 0x2c]
mov ecx, 2
test eax, eax
je 0x4610bc
mov dword [edi], ecx
mov dword [edi + 4], eax
mov word [esi], 0x104
jmp 0x4610e5
call sub.kernel32.dll_GetLastError
cmp eax, 0x3e5
je 0x4610c3
cmp eax, 0x6d
jne 0x4610dc
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 1
mov dword [eax], 0
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x10], 0
jne 0x46107b
jmp 0x4610d5
mov word [esi], 4
jmp 0x4610e5
lea eax, [ebp - 0x10]
mov dword [eax], 0
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x10], 0
jne 0x46107b
mov ecx, 1
jmp 0x461084
mov dword [esi], 0
mov dword [esi + 4], eax
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
test edx, edx
mov ecx, 0x10
mov eax, 1
cmove eax, ecx
mov ecx, ebx
push eax
call sym.alloc::raw_vec::RawVec_LT_T_C_A_GT_::reserve::do_reserve_and_handle::h60541cfa6e0f43e5
add esp, 4
mov edx, dword [ebx]
mov eax, dword [ebx + 8]
jmp 0x461056
lea edx, [ebp - 0x2c]
mov ecx, edi
mov dword [ebp - 0x2c], 0
call sym.core::panicking::assert_failed::h032372a534388610
nop word cs:[eax + eax]
nop dword [eax]
Function at 0x465d40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov esi, ecx
lea ecx, [ebp - 0x28]
push dword [ebp + 8]
call sym.std::sys::pal::windows::to_u16s::inner::h9c1ce760b5043b66
add esp, 4
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
cmp ecx, 0x80000000
je 0x465d90
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edi
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x34]
call sym.std::sys::pal::windows::args::from_wide_to_user_path::h58c82b563bb2fec0
mov edi, dword [ebp - 0x1c]
cmp edi, 0x80000000
jne 0x465dd7
movzx eax, byte [ebp - 0x18]
mov edi, dword [ebp - 0x14]
cmp al, 3
jne 0x465dcc
mov ebx, dword [edi + 4]
mov dword [ebp - 0x10], esi
mov esi, dword [edi]
mov eax, dword [ebx]
test eax, eax
je 0x465da8
push esi
call eax
add esp, 4
mov eax, dword [ebx + 4]
test eax, eax
je 0x465dbc
push dword [ebx + 8]
push eax
push esi
call sym.___rust_dealloc
add esp, 0xc
push 4
push 0xc
push edi
call sym.___rust_dealloc
add esp, 0xc
mov esi, dword [ebp - 0x10]
mov dword [esi], 0x80000000
add esp, 0x28
jmp 0x465e13
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
push ebx
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x465dfb
mov eax, dword [ebp - 0x10]
mov dword [esi], edi
mov dword [esi + 4], ebx
mov dword [esi + 8], eax
add esp, 0x28
jmp 0x465e13
test edi, edi
mov dword [esi], 0x80000000
je 0x465df6
add edi, edi
push 2
push edi
push ebx
call sym.___rust_dealloc
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4674f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [0x4dacf8]
mov ebx, dword [ebp + 0x10]
movzx eax, byte [eax]
push 4
push 8
call sym.___rust_alloc
add esp, 8
test eax, eax
je 0x467589
mov esi, eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov dword [esi], ebx
mov dword [esi + 4], ecx
push 0
push 0x10000
push esi
push sym.__ZN3std3sys3pal7windows6thread6Thread3new12thread_start17hece27fff71d5dbd9E_4
push eax
push 0
call sub.kernel32.dll_CreateThread
test eax, eax
je 0x467542
mov dword [edi + 4], eax
mov byte [edi], 4
jmp 0x467582
mov ebx, dword [esi + 4]
mov edi, dword [esi]
mov eax, dword [ebx]
test eax, eax
je 0x467553
push edi
call eax
add esp, 4
mov eax, dword [ebx + 4]
test eax, eax
je 0x467567
push dword [ebx + 8]
push eax
push edi
call sym.___rust_dealloc
add esp, 0xc
push 4
push 8
push esi
call sym.___rust_dealloc
add esp, 0xc
call sub.kernel32.dll_GetLastError
mov edi, dword [ebp + 8]
mov byte [edi], 0
mov dword [edi + 4], eax
mov eax, edi
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, ebx
mov ebx, dword [ebp + 0x14]
push 8
push 4
call sym.alloc::alloc::handle_alloc_error::h9a0385ddba01e206
add esp, 8
ud2

Function at 0x46bd20
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 8]
push 1
push esi
call sub.kernel32.dll_TlsSetValue
push 8
push 0x10
push edi
call sym.___rust_dealloc
add esp, 0xc
push 0
push esi
call sub.kernel32.dll_TlsSetValue
pop esi
pop edi
pop ebp
ret

Function at 0x46bd50
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x10]
push 1
push esi
call sub.kernel32.dll_TlsSetValue
push 8
push 0x18
push edi
call sym.___rust_dealloc
add esp, 0xc
push 0
push esi
call sub.kernel32.dll_TlsSetValue
pop esi
pop edi
pop ebp
ret

Function at 0x46bd80
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, dword [ebp + 8]
mov edi, dword [esi + 4]
push 1
push edi
call sub.kernel32.dll_TlsSetValue
mov eax, dword [esi]
test eax, eax
je 0x46bda5
lock dec dword [eax]
jne 0x46bda5
mov ecx, esi
call sym.alloc::sync::Arc_LT_T_C_A_GT_::drop_slow::h3a11afd8e6612759
push 4
push 8
push esi
call sym.___rust_dealloc
add esp, 0xc
push 0
push edi
call sub.kernel32.dll_TlsSetValue
pop esi
pop edi
pop ebp
ret

Function at 0x46bdc0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, dword [ebp + 8]
mov edi, dword [esi + 4]
push 1
push edi
call sub.kernel32.dll_TlsSetValue
mov eax, dword [esi]
test eax, eax
je 0x46bde5
lock dec dword [eax]
jne 0x46bde5
mov ecx, esi
call sym.alloc::sync::Arc_LT_T_C_A_GT_::drop_slow::hc39c94033ce122a6
push 4
push 8
push esi
call sym.___rust_dealloc
add esp, 0xc
push 0
push edi
call sub.kernel32.dll_TlsSetValue
pop esi
pop edi
pop ebp
ret
Function at 0x46be00
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 8]
push 1
push esi
call sub.kernel32.dll_TlsSetValue
push 4
push 0xc
push edi
call sym.___rust_dealloc
add esp, 0xc
push 0
push esi
call sub.kernel32.dll_TlsSetValue
pop esi
pop edi
pop ebp
ret

Function at 0x46be30
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov edi, dword [ebp + 8]
mov esi, dword [edi]
push 1
push esi
call sub.kernel32.dll_TlsSetValue
push 4
push 8
push edi
call sym.___rust_dealloc
add esp, 0xc
push 0
push esi
call sub.kernel32.dll_TlsSetValue
pop esi
pop edi
pop ebp
ret

Function at 0x46be60
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, dword [ebp + 8]
mov edi, dword [esi + 4]
push 1
push edi
call sub.kernel32.dll_TlsSetValue
mov eax, dword [esi]
test eax, eax
je 0x46be85
lock dec dword [eax]
jne 0x46be85
mov ecx, esi
call sym.alloc::sync::Arc_LT_T_C_A_GT_::drop_slow::h39c803f4a20ab912
push 4
push 8
push esi
call sym.___rust_dealloc
add esp, 0xc
push 0
push edi
call sub.kernel32.dll_TlsSetValue
pop esi
pop edi
pop ebp
ret
Function at 0x46bea0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov eax, dword [ebp + 0xc]
cmp eax, 3
je 0x46beb7
test eax, eax
jne 0x46bfee
mov esi, dword [0x4f6128]
mov cl, 1
nop
test esi, esi
je 0x46befd
mov ebx, dword [esi]
mov edi, dword [esi + 4]
test edi, edi
je 0x46c031
mov esi, dword [esi + 8]
test ebx, ebx
je 0x46bec0
dec ebx
push ebx
mov dword [ebp - 0x10], ecx
call sub.kernel32.dll_TlsGetValue
mov ecx, dword [ebp - 0x10]
test eax, eax
je 0x46bec0
push 0
push ebx
mov ebx, eax
call sub.kernel32.dll_TlsSetValue
push ebx
call edi
add esp, 4
xor ecx, ecx
jmp 0x46bec0
test cl, 1
jne 0x46bfee
mov esi, dword [0x4f6128]
mov cl, 1
nop
test esi, esi
je 0x46bf4d
mov ebx, dword [esi]
mov edi, dword [esi + 4]
test edi, edi
je 0x46c031
mov esi, dword [esi + 8]
test ebx, ebx
je 0x46bf10
dec ebx
push ebx
mov dword [ebp - 0x10], ecx
call sub.kernel32.dll_TlsGetValue
mov ecx, dword [ebp - 0x10]
test eax, eax
je 0x46bf10
push 0
push ebx
mov ebx, eax
call sub.kernel32.dll_TlsSetValue
push ebx
call edi
add esp, 4
xor ecx, ecx
jmp 0x46bf10
test cl, 1
jne 0x46bfee
mov esi, dword [0x4f6128]
mov cl, 1
nop
test esi, esi
je 0x46bf9d
mov ebx, dword [esi]
mov edi, dword [esi + 4]
test edi, edi
je 0x46c031
mov esi, dword [esi + 8]
test ebx, ebx
je 0x46bf60
dec ebx
push ebx
mov dword [ebp - 0x10], ecx
call sub.kernel32.dll_TlsGetValue
mov ecx, dword [ebp - 0x10]
test eax, eax
je 0x46bf60
push 0
push ebx
mov ebx, eax
call sub.kernel32.dll_TlsSetValue
push ebx
call edi
add esp, 4
xor ecx, ecx
jmp 0x46bf60
test cl, 1
jne 0x46bfee
mov esi, dword [0x4f6128]
mov cl, 1
nop word [eax + eax]
test esi, esi
je 0x46bfe9
mov ebx, dword [esi]
mov edi, dword [esi + 4]
test edi, edi
je 0x46c031
mov esi, dword [esi + 8]
test ebx, ebx
je 0x46bfb0
dec ebx
push ebx
mov dword [ebp - 0x10], ecx
call sub.kernel32.dll_TlsGetValue
mov ecx, dword [ebp - 0x10]
test eax, eax
je 0x46bfb0
push 0
push ebx
mov ebx, eax
call sub.kernel32.dll_TlsSetValue
push ebx
call edi
add esp, 4
xor ecx, ecx
jmp 0x46bfb0
test cl, 1
je 0x46bff8
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov edi, dword [0x4f6128]
nop
test edi, edi
je 0x46bfee
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x46c031
mov edi, dword [edi + 8]
test esi, esi
je 0x46c000
dec esi
push esi
call sub.kernel32.dll_TlsGetValue
test eax, eax
je 0x46c000
push 0
push esi
mov esi, eax
call sub.kernel32.dll_TlsSetValue
push esi
call ebx
add esp, 4
jmp 0x46c000
push 0x4c2cf8
call sym.core::option::unwrap_failed::h400a3d34e496ce4a
add esp, 4
ud2
Function at 0x46c050
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov edi, dword [ebp + 8]
cmp dword [edi + 4], 0
je 0x46c0ce
lea ebx, [edi + 0xc]
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push 0
push eax
push 0
push ebx
call sub.kernel32.dll_InitOnceBeginInitialize
cmp eax, 1
mov dword [ebp - 0x30], eax
jne 0x46c108
cmp dword [ebp - 0x14], 0
je 0x46c0ef
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x46c125
mov esi, eax
mov eax, dword [entry1]
mov eax, dword [0x4f6128]
nop word cs:[eax + eax]
mov dword [edi + 8], eax
lock cmpxchg dword [0x4f6128], edi
jne 0x46c0b0
mov eax, esi
inc eax
mov dword [edi], eax
push 0
push 0
push ebx
call sub.kernel32.dll_InitOnceComplete
jmp 0x46c0fe
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x46c160
mov ecx, eax
xor eax, eax
inc ecx
lock cmpxchg dword [edi], ecx
jne 0x46c0f3
mov esi, dword [ebp - 0x10]
jmp 0x46c0fe
mov esi, dword [edi]
jmp 0x46c0fd
mov esi, eax
push dword [ebp - 0x10]
call sub.kernel32.dll_TlsFree
dec esi
mov eax, esi
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x30]
mov edx, 0x4c2318
push 0x4c2cd4
push eax
call sym.core::panicking::assert_failed::hb8c648543f8d8a15
push 0
push 4
push ebx
call sub.kernel32.dll_InitOnceComplete
mov dword [ebp - 0x2c], 0x4c2c8c
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], 4
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x2c]
push 0x4c2cc4
push eax
call sym.core::panicking::panic_fmt::h653fda680bf9012e
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x4c2c8c
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], 4
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call sym.core::panicking::assert_failed::h62a725424a957060
nop
Function at 0x46c390
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1b8
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [eax]
mov ebx, dword [eax + 4]
movzx eax, word [eax + 8]
mov word [ebp - 0xe], ax
mov eax, dword [0x4f610c]
cmp eax, 4
jne 0x46c47e
lea eax, [ebp - 0xe]
cmp ebx, 0x17f
mov dword [ebp - 0x18], eax
ja 0x46c495
lea esi, [ebp - 0x1c4]
push ebx
push edi
push esi
call sym._memcpy
add esp, 0xc
mov byte [ebp + ebx - 0x1c4], 0
inc ebx
lea eax, [ebp - 0x24]
push ebx
push esi
push eax
call sym.core::ffi::c_str::CStr::from_bytes_with_nul::hb9aff93770f97fb9
add esp, 0xc
cmp dword [ebp - 0x24], 0
je 0x46c41c
mov eax, dword [0x4c11a0]
mov esi, dword [ebp + 8]
mov ecx, dword [0x4c11a4]
mov dword [esi + 8], ecx
mov dword [esi + 4], eax
mov dword [esi], 1
jmp 0x46c4a6
mov eax, dword [ebp - 0x20]
xorps xmm0, xmm0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x44]
movups xmmword [ebp - 0x44], xmm0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x3c], 1
push ecx
push edx
push 0
push eax
call sub.ws2_32.dll_getaddrinfo
mov esi, dword [ebp + 8]
test eax, eax
je 0x46c467
call sub.ws2_32.dll_WSAGetLastError
mov ecx, 1
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov dword [esi], ecx
jmp 0x46c4a6
mov eax, dword [ebp - 0x14]
movzx ecx, word [ebp - 0xe]
mov dword [esi + 4], eax
mov dword [esi + 8], eax
xor eax, eax
mov word [esi + 0xc], cx
mov dword [esi], eax
jmp 0x46c4a6
call sym.std::sync::once_lock::OnceLock_LT_T_GT_::initialize::h265ad4195d8cf096
lea eax, [ebp - 0xe]
cmp ebx, 0x17f
mov dword [ebp - 0x18], eax
jbe 0x46c3cf
lea eax, [ebp - 0x18]
mov ecx, esi
mov edx, edi
push eax
push ebx
call sym.std::sys::pal::common::small_c_string::run_with_cstr_allocating::hf9c0a8f116d16976
add esp, 8
mov eax, esi
add esp, 0x1b8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x46c4c0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
movzx ecx, byte [eax]
cmp cl, 4
jne 0x46c528
mov ebx, dword [eax + 4]
mov eax, dword [0x4f610c]
cmp eax, 4
jne 0x46c5cf
lea eax, [ebp - 0x34]
push 1
push ebx
push eax
call sym.std::sys::pal::windows::net::Socket::new::h108fc50ba3e954c8
add esp, 0xc
movzx eax, byte [ebp - 0x34]
cmp al, 4
jne 0x46c544
mov eax, dword [ebp - 0x30]
cmp word [ebx], 0
mov dword [ebp - 0x18], eax
je 0x46c55d
mov ecx, dword [ebx + 0x18]
movups xmm0, xmmword [ebx + 4]
lea eax, [ebx + 0x14]
mov edi, 0x1c
mov edx, 0x1c
mov dword [ebp - 0x14], ecx
mov cx, 0x17
jmp 0x46c577
movzx edx, byte [eax + 3]
movzx edi, word [eax + 1]
mov eax, dword [eax + 4]
mov byte [esi + 3], dl
mov word [esi + 1], di
mov byte [esi], cl
mov dword [esi + 4], eax
jmp 0x46c5c5
movzx ecx, byte [ebp - 0x31]
movzx edi, word [ebp - 0x33]
mov edx, dword [ebp - 0x30]
mov byte [esi + 3], cl
mov word [esi + 1], di
mov byte [esi], al
mov dword [esi + 4], edx
jmp 0x46c5c5
lea eax, [ebx + 2]
xorps xmm0, xmm0
mov edx, 0x10
mov cx, 2
mov edi, 6
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx edi, word [ebx + edi]
mov eax, dword [eax]
mov word [ebp - 0x34], cx
rol di, 8
mov word [ebp - 0x32], di
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x14]
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], eax
push edx
lea eax, [ebp - 0x34]
push eax
mov edi, dword [ebp - 0x18]
push edi
call sub.ws2_32.dll_connect
cmp eax, 0xffffffff
je 0x46c5b1
mov dword [esi + 4], edi
mov byte [esi], 4
jmp 0x46c5c5
call sub.ws2_32.dll_WSAGetLastError
mov dword [esi + 4], eax
mov dword [esi], 0
push edi
call sub.ws2_32.dll_closesocket
mov eax, esi
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
call sym.std::sync::once_lock::OnceLock_LT_T_GT_::initialize::h265ad4195d8cf096
jmp 0x46c4e8