joyce8/EMBER2024-capa huggingface dataset:
Function at 0x528b00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x38
movzx eax, byte [edx + 0xc]
mov byte [edx + 0xc], 0
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x30], 2
mov dword [ebp - 0x14], edx
mov ecx, dword [edx + 4]
movzx edi, word [edx + 8]
mov esi, dword [edx]
mov byte [ebp - 0xd], al
mov eax, edx
mov dword [ebp - 0x34], ecx
xor ecx, ecx
mov ebx, edi
test di, di
je 0x528b88
jmp 0x528c90
shl edx, 6
or edx, eax
mov eax, edi
mov ebx, edx
mov esi, ecx
mov ecx, dword [ebp - 0x1c]
xor edi, edi
cmp bx, 0x22
jne 0x528c40
xor cl, 1
mov ebx, edi
test di, di
jne 0x528c90
cmp esi, dword [ebp - 0x34]
je 0x528ca4
mov dword [ebp - 0x1c], ecx
lea ecx, [esi + 1]
mov dword [eax], ecx
movzx ebx, byte [esi]
test bl, bl
jns 0x528b69
lea ecx, [esi + 2]
mov edi, eax
mov edx, ebx
mov dword [eax], ecx
and edx, 0x1f
movzx eax, byte [esi + 1]
and eax, 0x3f
cmp bl, 0xdf
jbe 0x528b60
lea ecx, [esi + 3]
shl eax, 6
mov dword [edi], ecx
movzx edi, byte [esi + 2]
and edi, 0x3f
or edi, eax
cmp bl, 0xf0
jb 0x528bf8
mov eax, dword [ebp - 0x14]
lea ecx, [esi + 4]
and edx, 7
shl edi, 6
shl edx, 0x12
mov dword [eax], ecx
movzx ebx, byte [esi + 3]
and ebx, 0x3f
or ebx, edi
or ebx, edx
cmp ebx, 0xffff
jbe 0x528b69
jmp 0x528c0e
mov eax, dword [ebp - 0x14]
shl edx, 0xc
or edi, edx
mov ebx, edi
cmp ebx, 0xffff
jbe 0x528b69
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0xff0000]
and ebx, 0x3ff
mov esi, ecx
mov ecx, dword [ebp - 0x1c]
shr eax, 0xa
or ebx, 0xdc00
or eax, 0xd800
mov edi, ebx
mov word [edx + 8], bx
mov ebx, eax
mov eax, dword [ebp - 0x14]
jmp 0x528b70
movzx eax, bx
cmp eax, 0x3b
jne 0x528c53
test cl, 1
je 0x528c9d
mov cl, 1
mov bx, 0x3b
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
cmp eax, dword [ebp - 0x28]
jne 0x528c6c
lea ecx, [ebp - 0x28]
call sym.alloc::raw_vec::RawVec_LT_T_C_A_GT_::grow_one::h9d8f87f058dc2a2e
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x30]
mov word [ecx + eax*2], bx
inc eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
mov ebx, edi
test di, di
je 0x528b88
nop
xor edi, edi
mov word [eax + 8], 0
jmp 0x528b70
mov eax, dword [ebp - 0x14]
mov byte [eax + 0xc], 1
mov esi, dword [ebp - 0x18]
test esi, esi
setne al
or byte [ebp - 0xd], al
je 0x528cde
mov edx, dword [ebp - 0x24]
lea ecx, [ebp - 0x44]
push esi
call sym.__LT_std..ffi..os_str..OsString_u20_as_u20_std..os..windows..ffi..OsStringExt_GT_::from_wide::h63b25de594ca01f2
add esp, 4
movsd xmm0, qword [ebp - 0x44]
mov eax, dword [ebp - 0x2c]
movsd xmm1, qword [ebp - 0x3c]
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
cmp dword [ebp - 0x28], 0
jne 0x528ced
jmp 0x528cfd
mov eax, dword [ebp - 0x2c]
mov dword [eax], 0x80000000
cmp dword [ebp - 0x28], 0
je 0x528cfd
push dword [ebp - 0x24]
push 0
push dword [0x5e1120]
call sub.kernel32.dll_HeapFree
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x529230
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x34
mov eax, dword [ebp + 8]
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov edi, edx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0x103
lea edx, [ebp - 0x14]
push 0
push 0
push ecx
push eax
push edx
push 0
push 0
push 0
push edi
call sub.ntdll.dll_NtReadFile
cmp eax, 0x103
jne 0x529278
push 0xffffffffffffffff
push edi
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [ebp - 0x14]
cmp eax, 0xc0000011
jne 0x529288
mov dword [esi + 4], 0
jmp 0x529299
cmp eax, 0x103
je 0x5292b1
test eax, eax
js 0x5292a3
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
mov byte [esi], 4
add esp, 0x34
pop esi
pop edi
pop ebp
ret
push eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x52929c
lea eax, [ebp - 0xc]
mov dword [ebp - 0x34], 0x5b27c8
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x18], 0
lea ecx, [ebp - 0x1c]
lea esi, [ebp - 0x3c]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x28], 0
push eax
push ecx
push esi
call sym.std::io::Write::write_fmt::h170a2f7748b08546
add esp, 0xc
mov ecx, esi
call sym.core::ptr::drop_in_place_LT_core..result..Result_LT__LP__RP__C_std..io..error..Error_GT__GT_::h16720b9b670a121b
mov ecx, 7
int 0x29
ud2

Function at 0x529f50
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, ecx
lea ecx, [ebp - 0x24]
push dword [ebp + 8]
call sym.std::sys::pal::windows::to_u16s::inner::h36c7c454f9caa61a
add esp, 4
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
mov ecx, edx
neg ecx
mov ecx, dword [ebp - 0x1c]
jo 0x529fa0
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x30]
push 1
call sym.std::sys::path::windows::get_long_path::h1952ee698f680a9e
add esp, 4
mov ebx, dword [ebp - 0x18]
mov eax, ebx
neg eax
jno 0x529fad
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [esi], eax
mov dword [esi + 4], ecx
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [ebp - 0x14]
push 0
push edi
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
je 0x529fc5
mov byte [esi], 4
test ebx, ebx
jne 0x529fd4
jmp 0x529fa5
call sub.kernel32.dll_GetLastError
mov byte [esi], 0
mov dword [esi + 4], eax
test ebx, ebx
je 0x529fa5
push edi
push 0
push dword [0x5e1120]
call sub.kernel32.dll_HeapFree
jmp 0x529fa5
Function at 0x52b2e0
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 esi, dword [0x575090]
test esi, esi
je 0x52b366
dec esi
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
ja 0x52b35e
je 0x52b35c
movzx eax, byte [0x5e1184]
xor ecx, ecx
mov edx, 8
call sym.std::sys::alloc::windows::process_heap_alloc::hc2bfe060f1f208f4
test eax, eax
je 0x52b37f
mov dword [eax], 0
mov dword [eax + 4], esi
push esi
mov ebx, eax
call sub.kernel32.dll_TlsGetValue
mov edi, eax
mov dword [ebp - 0x10], ebx
push ebx
push esi
call sub.kernel32.dll_TlsSetValue
test edi, edi
je 0x52b357
mov eax, dword [edi]
test eax, eax
je 0x52b349
lock dec dword [eax]
jne 0x52b349
mov ecx, dword [edi]
call sym.alloc::sync::Arc_LT_T_C_A_GT_::drop_slow::h270c972412bfc9d1
push edi
push 0
push dword [0x5e1120]
call sub.kernel32.dll_HeapFree
mov eax, dword [ebp - 0x10]
jmp 0x52b35e
xor eax, eax
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 0x575090
call sym.std::sys::thread_local::key::windows::LazyKey::init::h0bd71fcfbfc5b9bd
mov esi, eax
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jbe 0x52b2fd
jmp 0x52b35e
mov ecx, 4
mov edx, 8
call sym.alloc::alloc::handle_alloc_error::h3ca6a9ac69c8e3db
nop
Function at 0x52bd40
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1b4
movzx eax, word [edx + 8]
mov edi, dword [edx]
mov ebx, dword [edx + 4]
mov esi, ecx
mov word [ebp - 0xe], ax
mov eax, dword [0x5e1108]
cmp eax, 3
jne 0x52bdf9
lea eax, [ebp - 0xe]
cmp ebx, 0x17f
mov dword [ebp - 0x20], eax
ja 0x52be10
lea eax, [ebp - 0x1c0]
push ebx
push edi
mov edi, eax
push eax
call sym._memcpy
add esp, 0xc
lea eax, [ebx + 1]
cmp ebx, 6
mov byte [ebp + ebx - 0x1c0], 0
ja 0x52bdb8
xor edx, edx
cmp byte [ebp + edx - 0x1c0], 0
je 0x52be7f
inc edx
cmp eax, edx
jne 0x52bda0
jmp 0x52bece
lea ecx, [ebp - 0x1bd]
and ecx, 0xfffffffc
sub ecx, edi
je 0x52bdee
xor edx, edx
nop word [eax + eax]
cmp byte [ebp + edx - 0x1c0], 0
je 0x52be7f
inc edx
cmp ecx, edx
jne 0x52bdd0
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], ebx
lea edx, [ebx - 7]
jmp 0x52be55
lea edx, [ebx - 7]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], ebx
jmp 0x52be26
call sym.std::sync::once_lock::OnceLock_LT_T_GT_::initialize::h8b738a8473d1aa4f
lea eax, [ebp - 0xe]
cmp ebx, 0x17f
mov dword [ebp - 0x20], eax
jbe 0x52bd7b
lea eax, [ebp - 0x20]
mov ecx, esi
mov edx, edi
push eax
push ebx
call sym.std::sys::pal::common::small_c_string::run_with_cstr_allocating::hefcf79d8496c43fe
add esp, 8
jmp 0x52bee5
mov esi, dword [ebp + ecx - 0x1bc]
mov edi, dword [ebp + ecx - 0x1c0]
mov ebx, 0x1010100
sub ebx, esi
or ebx, esi
mov esi, 0x1010100
sub esi, edi
or esi, edi
and esi, ebx
not esi
test esi, 0x80808080
jne 0x52be59
add ecx, 8
cmp ecx, edx
jbe 0x52be26
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
sub eax, ecx
je 0x52bece
lea edi, [ebp + ecx - 0x1c0]
xor edx, edx
nop dword [eax]
cmp byte [edi + edx], 0
je 0x52be7d
inc edx
cmp eax, edx
jne 0x52be70
jmp 0x52bece
add edx, ecx
cmp edx, ebx
jne 0x52bece
xorps xmm0, xmm0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x40]
movups xmmword [ebp - 0x40], xmm0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x38], 1
push eax
push ecx
push 0
lea eax, [ebp - 0x1c0]
push eax
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x52bef0
call sub.ws2_32.dll_WSAGetLastError
mov ecx, 1
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov dword [esi], ecx
jmp 0x52bee5
mov eax, dword [0x5b1df0]
mov ecx, dword [0x5b1df4]
mov dword [esi + 8], ecx
mov dword [esi + 4], eax
mov dword [esi], 1
add esp, 0x1b4
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x1c]
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 0x52bee5
Function at 0x52c2f0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov esi, ecx
lea ecx, [ebp - 0x20]
push dword [ebp + 8]
call sym.__LT__RF_str_u20_as_u20_alloc..ffi..c_str..CString..new..SpecNewImpl_GT_::spec_new_impl::hc0fc42e4f437b0f1
add esp, 4
mov eax, dword [ebp - 0x20]
neg eax
jno 0x52c362
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
xorps xmm0, xmm0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x40]
movups xmmword [ebp - 0x40], xmm0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x38], 1
push eax
push ecx
push 0
push edi
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x52c380
call sub.ws2_32.dll_WSAGetLastError
mov dword [esi + 8], eax
mov eax, 1
mov dword [esi + 4], 0
test ebx, ebx
mov dword [esi], eax
mov byte [edi], 0
jne 0x52c3a0
jmp 0x52c3ae
mov eax, dword [0x5b1df0]
mov ecx, dword [0x5b1df4]
mov dword [esi + 8], ecx
mov dword [esi + 4], eax
mov dword [esi], 1
jae 0x52c3ae
push dword [ebp - 0x1c]
jmp 0x52c3a1
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
mov eax, dword [eax]
movzx eax, word [eax]
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
mov word [esi + 0xc], ax
xor eax, eax
test ebx, ebx
mov dword [esi], eax
mov byte [edi], 0
je 0x52c3ae
push edi
push 0
push dword [0x5e1120]
call sub.kernel32.dll_HeapFree
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x52c3c0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x1ac
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov esi, dword [eax]
mov dword [eax], 0
test esi, esi
je 0x52c414
lea edi, [ebp - 0x1b4]
push 0x190
push 0
push edi
call sub.msvcrt.dll_memset
add esp, 0xc
push edi
push 0x202
call sub.ws2_32.dll_WSAStartup
test eax, eax
mov dword [ebp - 0xc], eax
jne 0x52c41e
mov dword [esi], 0x55b908
add esp, 0x1ac
pop esi
pop edi
pop ebp
ret
mov ecx, 0x5b1cc8
call sym.core::option::unwrap_failed::h4002a2165d665d64
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0xc]
mov edx, 0x5b3fa0
push 0x5b27f0
push eax
call sym.core::panicking::assert_failed::h6a7846da8fea5b10
nop dword [eax + eax]
Function at 0x532d80
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::h36c7c454f9caa61a
add esp, 4
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
mov edx, ecx
neg edx
jo 0x532dcc
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::h8367ae1feee68ae3
mov edi, dword [ebp - 0x1c]
mov eax, edi
neg eax
jno 0x532e20
movzx eax, byte [ebp - 0x18]
mov edi, dword [ebp - 0x14]
cmp al, 3
jne 0x532e12
mov ebx, dword [edi + 4]
mov dword [ebp - 0x10], esi
mov esi, dword [edi]
mov eax, dword [ebx]
test eax, eax
je 0x532de4
push esi
call eax
add esp, 4
cmp dword [ebx + 4], 0
je 0x532e01
cmp dword [ebx + 8], 9
jb 0x532df3
mov esi, dword [esi - 4]
push esi
push 0
push dword [0x5e1120]
call sub.kernel32.dll_HeapFree
push edi
push 0
push dword [0x5e1120]
call sub.kernel32.dll_HeapFree
mov esi, dword [ebp - 0x10]
mov dword [esi], 0x80000000
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
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 0x532e41
mov eax, dword [ebp - 0x10]
mov dword [esi], edi
mov dword [esi + 4], ebx
mov dword [esi + 8], eax
jmp 0x532e18
test edi, edi
mov dword [esi], 0x80000000
je 0x532e18
push ebx
push 0
push dword [0x5e1120]
call sub.kernel32.dll_HeapFree
jmp 0x532e18
Function at 0x5347b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
movzx eax, byte [0x5e1184]
mov ebx, edx
mov edi, ecx
xor ecx, ecx
mov edx, 8
call sym.std::sys::alloc::windows::process_heap_alloc::hc2bfe060f1f208f4
test eax, eax
je 0x53485b
mov esi, eax
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], eax
push 0
push 0x10000
push esi
push sym.__ZN3std3sys3pal7windows6thread6Thread3new12thread_start17hcccd95f55a7034f0E_4
push ebx
push 0
call sub.kernel32.dll_CreateThread
test eax, eax
je 0x534804
mov dword [edi + 4], eax
mov byte [edi], 4
jmp 0x534853
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx]
test eax, eax
je 0x53481a
push dword [ebp - 0x10]
call eax
add esp, 4
mov eax, dword [ebp - 0x10]
cmp dword [ebx + 4], 0
je 0x53483a
cmp dword [ebx + 8], 9
jb 0x53482c
mov eax, dword [eax - 4]
push eax
push 0
push dword [0x5e1120]
call sub.kernel32.dll_HeapFree
push esi
push 0
push dword [0x5e1120]
call sub.kernel32.dll_HeapFree
call sub.kernel32.dll_GetLastError
mov byte [edi], 0
mov dword [edi + 4], eax
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ecx, 4
mov edx, 8
call sym.alloc::alloc::handle_alloc_error::h3ca6a9ac69c8e3db
ud2
Function at 0x534c70
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1024
call sym.__alloca
mov esi, edx
mov edi, ecx
lea ebx, [ebp - 0x1030]
push 0x1000
push 0
push ebx
call sub.msvcrt.dll_memset
add esp, 0xc
xorps xmm0, xmm0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x30]
push sym.__ZN3std3sys3pal7windows4pipe8AnonPipe21alertable_io_internal8callback17hf7dee0df86c8513aE_12
push eax
push 0x1000
push ebx
mov dword [ebp - 0x10], edi
push edi
call sub.kernel32.dll_ReadFileEx
test eax, eax
je 0x534d95
push 1
push 0xffffffffffffffff
call sub.kernel32.dll_SleepEx
cmp dword [ebp - 0x1c], 1
jne 0x534cce
cmp dword [ebp - 0x18], 0
jne 0x534d9c
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x534d9c
cmp ebx, 0x1000
ja 0x534dc8
xor edi, edi
mov eax, ebx
sub eax, edi
jb 0x534db5
xorps xmm0, xmm0
lea edx, [ebp - 0x1c]
lea ecx, [ebp + edi - 0x1030]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], edx
push sym.__ZN3std3sys3pal7windows4pipe8AnonPipe21alertable_io_internal8callback17hf7dee0df86c8513aE_12
lea edx, [ebp - 0x30]
push edx
push eax
push ecx
push esi
call sub.kernel32.dll_WriteFileEx
test eax, eax
je 0x534d97
nop word [eax + eax]
push 1
push 0xffffffffffffffff
call sub.kernel32.dll_SleepEx
cmp dword [ebp - 0x1c], 1
jne 0x534d40
cmp dword [ebp - 0x18], 0
jne 0x534d9c
add edi, dword [ebp - 0x14]
cmp edi, ebx
jne 0x534d00
xorps xmm0, xmm0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], eax
push sym.__ZN3std3sys3pal7windows4pipe8AnonPipe21alertable_io_internal8callback17hf7dee0df86c8513aE_12
lea eax, [ebp - 0x30]
push eax
push 0x1000
lea eax, [ebp - 0x1030]
push eax
push dword [ebp - 0x10]
call sub.kernel32.dll_ReadFileEx
test eax, eax
jne 0x534cce
jmp 0x534d97
call sub.kernel32.dll_GetLastError
push dword [ebp - 0x10]
call sub.kernel32.dll_CloseHandle
push esi
call sub.kernel32.dll_CloseHandle
add esp, 0x1024
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, ebx
mov ecx, edi
push 0x5b29c0
call sym.core::slice::index::slice_index_order_fail::hcb31333d79b0be37
add esp, 4
jmp 0x534ddc
mov edx, 0x1000
mov ecx, ebx
push 0x5b29c0
call sym.core::slice::index::slice_end_index_len_fail::h31017dc9c470f2c8
add esp, 4
ud2
Function at 0x539fc0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
movzx eax, byte [edx]
mov esi, ecx
cmp al, 4
jne 0x53a037
mov ebx, dword [edx + 4]
mov eax, dword [0x5e1108]
cmp eax, 3
jne 0x53a11b
cmp byte [ebx], 0
mov eax, 0x17
mov edi, 2
cmovne edi, eax
push 0x81
push 0
push 0
push 0
push 2
push edi
call sub.ws2_32.dll_WSASocketW
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x53a053
test byte [ebx], 1
je 0x53a0a3
mov ecx, dword [ebx + 0x18]
movups xmm0, xmmword [ebx + 4]
lea eax, [ebx + 0x14]
mov di, 0x17
mov edx, 0x1c
mov dword [ebp - 0x18], ecx
mov ecx, 0x1c
jmp 0x53a0bd
movzx ecx, byte [edx + 3]
movzx edi, word [edx + 1]
mov edx, dword [edx + 4]
mov byte [esi + 3], cl
mov word [esi + 1], di
mov byte [esi], al
mov dword [esi + 4], edx
jmp 0x53a144
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x2739
je 0x53a06a
cmp eax, 0x2726
jne 0x53a134
push 1
push 0
push 0
push 0
push 2
push edi
call sub.ws2_32.dll_WSASocketW
cmp eax, 0xffffffff
je 0x53a114
mov edi, eax
push 0
push 1
push eax
call sub.kernel32.dll_SetHandleInformation
test eax, eax
je 0x53a125
mov dword [ebp - 0x10], edi
test byte [ebx], 1
jne 0x53a017
lea eax, [ebx + 2]
xorps xmm0, xmm0
mov edx, 0x10
mov di, 2
mov ecx, 6
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
movzx ecx, word [ebx + ecx]
mov eax, dword [eax]
mov word [ebp - 0x34], di
rol cx, 8
mov word [ebp - 0x32], cx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x18]
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x34]
push edx
push eax
mov edi, dword [ebp - 0x10]
push edi
call sub.ws2_32.dll_bind
cmp eax, 0xffffffff
je 0x53a0f7
mov dword [esi + 4], edi
mov byte [esi], 4
jmp 0x53a144
call sub.ws2_32.dll_WSAGetLastError
mov byte [esi], 0
mov byte [esi + 3], 0
mov word [esi + 1], 0
mov dword [esi + 4], eax
push edi
call sub.ws2_32.dll_closesocket
jmp 0x53a144
call sub.ws2_32.dll_WSAGetLastError
jmp 0x53a134
call sym.std::sync::once_lock::OnceLock_LT_T_GT_::initialize::h8b738a8473d1aa4f
jmp 0x539fe3
call sub.kernel32.dll_GetLastError
mov ebx, eax
push edi
call sub.ws2_32.dll_closesocket
mov eax, ebx
mov byte [esi + 3], 0
mov word [esi + 1], 0
mov byte [esi], 0
mov dword [esi + 4], eax
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x53baa0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
cmp byte [ecx + 8], 0
jne 0x53bb66
mov edx, dword [ecx]
lea eax, [ebp - 0x28]
mov esi, ecx
mov ecx, eax
push dword [esi + 4]
call sym.std::sys::pal::windows::to_u16s::inner::h36c7c454f9caa61a
add esp, 4
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
mov edx, ecx
neg edx
jo 0x53baff
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edi
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x34]
push 1
call sym.std::sys::path::windows::get_long_path::h1952ee698f680a9e
add esp, 4
mov edi, dword [ebp - 0x1c]
mov eax, edi
neg eax
jno 0x53bb3c
movzx eax, byte [ebp - 0x18]
mov edi, dword [ebp - 0x14]
cmp al, 4
ja 0x53bb0b
movzx eax, al
cmp eax, 3
jne 0x53bb66
mov esi, dword [edi + 4]
mov ebx, dword [edi]
mov eax, dword [esi]
test eax, eax
je 0x53bb1c
push ebx
call eax
add esp, 4
cmp dword [esi + 4], 0
je 0x53bb39
cmp dword [esi + 8], 9
jb 0x53bb2b
mov ebx, dword [ebx - 4]
push ebx
push 0
push dword [0x5e1120]
call sub.kernel32.dll_HeapFree
push edi
jmp 0x53bb59
mov esi, dword [ebp - 0x18]
push esi
call sub.kernel32.dll_DeleteFileW
test eax, eax
je 0x53bb4f
test edi, edi
je 0x53bb66
jmp 0x53bb58
call sub.kernel32.dll_GetLastError
test edi, edi
je 0x53bb66
push esi
push 0
push dword [0x5e1120]
call sub.kernel32.dll_HeapFree
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x53c330
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 + 0x38]
push 1
push esi
call sub.kernel32.dll_TlsSetValue
mov eax, dword [edi + 4]
cmp eax, 2
je 0x53c371
test eax, eax
je 0x53c361
mov eax, dword [edi + 8]
lock dec dword [eax]
jne 0x53c371
mov ecx, dword [edi + 8]
call sym.alloc::sync::Arc_LT_T_C_A_GT_::drop_slow::hca106a9ca816fa69
jmp 0x53c371
mov eax, dword [edi + 8]
lock dec dword [eax]
jne 0x53c371
mov ecx, dword [edi + 8]
call sym.alloc::sync::Arc_LT_T_C_A_GT_::drop_slow::he56168bcf7338878
push edi
push 0
push dword [0x5e1120]
call sub.kernel32.dll_HeapFree
push 0
push esi
call sub.kernel32.dll_TlsSetValue
pop esi
pop edi
pop ebp
ret
Function at 0x53e4e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x50
mov ebx, dword [0x5750e4]
test ebx, ebx
je 0x53e5d1
dec ebx
push ebx
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
ja 0x53e610
je 0x53e5cd
lea edi, [esp + 8]
mov ecx, 0xe
mov esi, 0x5b4648
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x40], ebx
movzx eax, byte [0x5e1184]
xor ecx, ecx
mov edx, 0x40
call sym.std::sys::alloc::windows::process_heap_alloc::hc2bfe060f1f208f4
test eax, eax
je 0x53e618
movsd xmm0, qword [esp + 0x40]
movsd qword [eax + 0x38], xmm0
movsd xmm0, qword [esp + 0x38]
movsd qword [eax + 0x30], xmm0
movsd xmm0, qword [esp + 0x30]
movsd qword [eax + 0x28], xmm0
movsd xmm0, qword [esp + 0x28]
movsd qword [eax + 0x20], xmm0
movsd xmm0, qword [esp + 0x20]
movsd qword [eax + 0x18], xmm0
movsd xmm0, qword [esp + 0x18]
movsd qword [eax + 0x10], xmm0
movsd xmm0, qword [esp + 8]
movsd xmm1, qword [esp + 0x10]
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
push ebx
mov edi, eax
call sub.kernel32.dll_TlsGetValue
mov esi, eax
mov dword [esp + 4], edi
push edi
push ebx
call sub.kernel32.dll_TlsSetValue
test esi, esi
je 0x53e60c
mov eax, dword [esi + 4]
cmp eax, 2
je 0x53e5fe
test eax, eax
je 0x53e5ee
mov eax, dword [esi + 8]
lock dec dword [eax]
jne 0x53e5fe
mov ecx, dword [esi + 8]
call sym.alloc::sync::Arc_LT_T_C_A_GT_::drop_slow::hca106a9ca816fa69
jmp 0x53e5fe
xor eax, eax
jmp 0x53e610
mov ecx, 0x5750e4
call sym.std::sys::thread_local::key::windows::LazyKey::init::h0bd71fcfbfc5b9bd
mov ebx, eax
push ebx
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jbe 0x53e50a
jmp 0x53e610
mov eax, dword [esi + 8]
lock dec dword [eax]
jne 0x53e5fe
mov ecx, dword [esi + 8]
call sym.alloc::sync::Arc_LT_T_C_A_GT_::drop_slow::he56168bcf7338878
push esi
push 0
push dword [0x5e1120]
call sub.kernel32.dll_HeapFree
mov eax, dword [esp + 4]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 8
mov edx, 0x40
call sym.alloc::alloc::handle_alloc_error::h3ca6a9ac69c8e3db
ud2