joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44b020
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, 0x7fffffff
cmp eax, 0x7fffffff
cmovb edx, eax
push 2
push edx
push dword [ebp + 0x10]
push dword [ecx]
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
jne 0x44b05d
call sub.WS2_32.dll_WSAGetLastError
mov ecx, eax
xor eax, eax
cmp ecx, 0x274a
jne 0x44b068
mov dword [esi + 4], eax
mov byte [esi], 4
mov eax, esi
pop esi
pop ebp
ret
mov byte [esi], 0
mov dword [esi + 4], ecx
mov eax, esi
pop esi
pop ebp
ret

Function at 0x44b080
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push eax
mov eax, dword [ebp + 0xc]
xor ecx, ecx
xor edx, edx
cmp dword [ebp + 0x18], 0x3b9aca00
mov esi, dword [ebp + 8]
mov eax, dword [eax]
setne bl
je 0x44b0a1
mov ecx, dword [ebp + 0x10]
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 0x44b0dc
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 0x44b170
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 0x44b1af
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 0x44b220
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov edi, dword [ebp + 0x10]
mov ecx, dword [edi + 4]
mov ebx, dword [edi + 8]
mov eax, ecx
sub eax, ebx
jb 0x44b28c
cmp eax, 0x7fffffff
mov edx, 0x7fffffff
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
cmovb edx, eax
mov eax, dword [edi]
add eax, ebx
push 0
push edx
push eax
push dword [ecx]
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
je 0x44b26e
add eax, ebx
mov dword [edi + 8], eax
mov ecx, dword [edi + 0xc]
cmp ecx, eax
cmova eax, ecx
mov dword [edi + 0xc], eax
jmp 0x44b27a
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x44b284
mov byte [esi], 4
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x44b27d
push 0x4bcc88
push ecx
push ebx
call dbg.slice_start_index_len_fail
nop dword [eax + eax]
Function at 0x44b310
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push eax
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0xc], 0
lea edi, [ebp - 0xc]
mov edx, dword [edx]
push 0
push 0
push 0
push edi
push ecx
push eax
push edx
call sub.WS2_32.dll_WSASend
cmp eax, 0xffffffff
je 0x44b34d
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x44b35b
call sub.WS2_32.dll_WSAGetLastError
mov dword [esi + 4], eax
mov dword [esi], 0
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov edi, dword [ebp + 0x10]
mov ecx, dword [edi + 4]
mov ebx, dword [edi + 8]
mov eax, ecx
sub eax, ebx
jb 0x44b43e
mov ecx, dword [ebp + 0xc]
cmp eax, 0x7fffffff
mov edx, 0x7fffffff
mov esi, dword [ebp + 8]
cmovb edx, eax
mov eax, dword [edi]
mov ecx, dword [ecx]
add eax, ebx
push 0
push edx
push eax
push dword [ecx]
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
je 0x44b420
add eax, ebx
mov dword [edi + 8], eax
mov ecx, dword [edi + 0xc]
cmp ecx, eax
cmova eax, ecx
mov dword [edi + 0xc], eax
jmp 0x44b42c
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x44b436
mov byte [esi], 4
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x44b42f
push 0x4bcc88
push ecx
push ebx
call dbg.slice_start_index_len_fail
nop word [eax + eax]

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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push eax
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
lea edi, [ebp - 0xc]
mov edx, dword [edx]
mov edx, dword [edx]
mov dword [ebp - 0xc], 0
push 0
push 0
push 0
push edi
push ecx
push eax
push edx
call sub.WS2_32.dll_WSASend
cmp eax, 0xffffffff
je 0x44b55f
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x44b56d
call sub.WS2_32.dll_WSAGetLastError
mov dword [esi + 4], eax
mov dword [esi], 0
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebp
ret

Function at 0x44b820
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov ecx, dword [ecx]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push 4
push eax
push 4
push 0
push ecx
call sub.WS2_32.dll_setsockopt
mov cl, 4
cmp eax, 0xffffffff
jne 0x44b85e
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 0x44b8d0
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 0x1b
push 0x29
push eax
call sub.WS2_32.dll_setsockopt
mov cl, 4
cmp eax, 0xffffffff
jne 0x44b90f
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 0x44ba00
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 ecx
push 0x8004667e
push eax
call sub.WS2_32.dll_ioctlsocket
cmp eax, 0xffffffff
je 0x44ba2d
mov byte [esi], 4
jmp 0x44ba3b
call sub.WS2_32.dll_WSAGetLastError
mov dword [esi + 4], eax
mov dword [esi], 0
mov eax, esi
add esp, 4
pop esi
pop ebp
ret

Function at 0x44bca0
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 0x20
push 0xffff
push eax
call sub.WS2_32.dll_setsockopt
mov cl, 4
cmp eax, 0xffffffff
jne 0x44bce2
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 0x44bd60
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 0xb
push 0
push eax
call sub.WS2_32.dll_setsockopt
mov cl, 4
cmp eax, 0xffffffff
jne 0x44bd9f
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 0x44be10
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov ecx, dword [ecx]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push 4
push eax
push 0xa
push 0
push ecx
call sub.WS2_32.dll_setsockopt
mov cl, 4
cmp eax, 0xffffffff
jne 0x44be4e
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 0x44bec0
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 0xb
push 0x29
push eax
call sub.WS2_32.dll_setsockopt
mov cl, 4
cmp eax, 0xffffffff
jne 0x44beff
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 0x44bf70
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 8
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ecx, dword [ecx]
mov eax, dword [eax]
mov edx, dword [edx]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push 8
push eax
push 0xc
push 0
push edx
call sub.WS2_32.dll_setsockopt
mov cl, 4
cmp eax, 0xffffffff
jne 0x44bfba
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, 8
pop esi
pop ebp
ret

Function at 0x44bfd0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x14
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
movups xmm0, xmmword [ecx]
mov edx, dword [edx]
movups xmmword [ebp - 0x18], xmm0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push 0x14
push eax
push 0xc
push 0x29
push edx
call sub.WS2_32.dll_setsockopt
mov cl, 4
cmp eax, 0xffffffff
jne 0x44c01a
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, 0x14
pop esi
pop ebp
ret

Function at 0x44c030
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 8
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ecx, dword [ecx]
mov eax, dword [eax]
mov edx, dword [edx]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push 8
push eax
push 0xd
push 0
push edx
call sub.WS2_32.dll_setsockopt
mov cl, 4
cmp eax, 0xffffffff
jne 0x44c07a
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, 8
pop esi
pop ebp
ret

Function at 0x44c090
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x14
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
movups xmm0, xmmword [ecx]
mov edx, dword [edx]
movups xmmword [ebp - 0x18], xmm0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push 0x14
push eax
push 0xd
push 0x29
push edx
call sub.WS2_32.dll_setsockopt
mov cl, 4
cmp eax, 0xffffffff
jne 0x44c0da
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, 0x14
pop esi
pop ebp
ret
Function at 0x450480
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x20
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
xorps xmm0, xmm0
lea edi, [ebp - 0x14]
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], edi
lea edi, [ebp - 0x28]
mov edx, dword [edx]
push sym.__ZN3std3sys3pal7windows4pipe8AnonPipe21alertable_io_internal8callback17ha10796af46e13059E_12
push edi
push ecx
push eax
push edx
call sub.KERNEL32.dll_WriteFileEx
test eax, eax
je 0x4504dd
nop
push 1
push 0xffffffffffffffff
call sub.KERNEL32.dll_SleepEx
cmp dword [ebp - 0x14], 0
je 0x4504c0
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4504ea
mov dword [esi + 4], eax
xor eax, eax
jmp 0x4504f2
call sub.KERNEL32.dll_GetLastError
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x4504f4
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], eax
mov al, 4
mov byte [esi], al
mov eax, esi
add esp, 0x20
pop esi
pop edi
pop ebp
ret

Function at 0x450500
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x20
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
xorps xmm0, xmm0
lea edi, [ebp - 0x14]
mov edx, dword [edx]
mov edx, dword [edx]
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 0
lea edi, [ebp - 0x28]
push sym.__ZN3std3sys3pal7windows4pipe8AnonPipe21alertable_io_internal8callback17ha10796af46e13059E_12
push edi
push ecx
push eax
push edx
call sub.KERNEL32.dll_WriteFileEx
test eax, eax
je 0x45056d
nop word cs:[eax + eax]
nop dword [eax + eax]
push 1
push 0xffffffffffffffff
call sub.KERNEL32.dll_SleepEx
cmp dword [ebp - 0x14], 0
je 0x450550
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x45057a
mov dword [esi + 4], eax
xor eax, eax
jmp 0x450582
call sub.KERNEL32.dll_GetLastError
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x450584
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], eax
mov al, 4
mov byte [esi], al
mov eax, esi
add esp, 0x20
pop esi
pop edi
pop ebp
ret
Function at 0x450610
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x20
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
xorps xmm0, xmm0
lea edi, [ebp - 0x14]
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], edi
lea edi, [ebp - 0x28]
mov edx, dword [edx]
push sym.__ZN3std3sys3pal7windows4pipe8AnonPipe21alertable_io_internal8callback17ha10796af46e13059E_12
push edi
push ecx
push eax
push edx
call sub.KERNEL32.dll_ReadFileEx
test eax, eax
je 0x450670
nop
push 1
push 0xffffffffffffffff
call sub.KERNEL32.dll_SleepEx
cmp dword [ebp - 0x14], 0
je 0x450650
mov edi, dword [ebp - 0x10]
test edi, edi
jne 0x450677
mov edi, dword [ebp - 0xc]
mov ecx, 4
jmp 0x450690
call sub.KERNEL32.dll_GetLastError
mov edi, eax
mov ecx, edi
call dbg.decode_error_kind
xor ecx, ecx
cmp al, 0xb
jne 0x450690
mov dword [esi + 4], 0
mov byte [esi], 4
jmp 0x450695
mov dword [esi], ecx
mov dword [esi + 4], edi
mov eax, esi
add esp, 0x20
pop esi
pop edi
pop ebp
ret

Function at 0x450ff0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ebx, dword [eax + 0x18]
push 1
push ebx
call sub.KERNEL32.dll_TerminateProcess
test eax, eax
je 0x451011
mov byte [esi], 4
jmp 0x451052
call sub.KERNEL32.dll_GetLastError
mov edi, eax
cmp eax, 5
jne 0x45104c
push 0
push ebx
call sub.KERNEL32.dll_WaitForSingleObject
test eax, eax
je 0x451032
cmp eax, 0x102
je 0x45100c
jmp 0x451047
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push ebx
call sub.KERNEL32.dll_GetExitCodeProcess
test eax, eax
jne 0x45100c
call sub.KERNEL32.dll_GetLastError
mov byte [esi], 0
mov dword [esi + 4], edi
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x452020
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 0x452074
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 0x45207e
mov dword [esi], 0x4ae730
add esp, 0x1ac
pop esi
pop edi
pop ebp
ret
push 0x4bf354
call sym.core::option::unwrap_failed::hef9527eb823b8d2a
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0xc]
mov edx, 0x4bea40
push 0x4c0514
push eax
call dbg.assert_failed<i32, i32>
nop dword [eax + eax]
Function at 0x453050
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov esi, ecx
lea eax, [ebp - 0x20]
push dword [ebp + 8]
push edx
push eax
call sym.__LT__RF_str_u20_as_u20_alloc..ffi..c_str..CString..new..SpecNewImpl_GT_::spec_new_impl::hd54c86d184f5876b
add esp, 0xc
mov eax, dword [ebp - 0x20]
cmp eax, 0x80000000
jne 0x4530c7
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 0x4530f3
call sub.WS2_32.dll_WSAGetLastError
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov eax, 1
test ebx, ebx
mov dword [esi], eax
mov byte [edi], 0
jne 0x45310f
jmp 0x45311b
mov ecx, dword [0x4bf510]
mov edx, dword [0x4bf514]
test eax, eax
mov dword [esi + 8], edx
mov dword [esi + 4], ecx
mov dword [esi], 1
je 0x45311b
push 1
push eax
push dword [ebp - 0x1c]
call sym.___rust_dealloc
add esp, 0x40
jmp 0x45311e
mov ecx, dword [ebp - 0x10]
movzx eax, word [ebp + 0xc]
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 0x45311b
push 1
push ebx
push edi
call sym.___rust_dealloc
add esp, 0xc
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x453f10
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 fcn.004b41f0
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_internal8callback17ha10796af46e13059E_12
push eax
push 0x1000
push ebx
push edi
call sub.KERNEL32.dll_ReadFileEx
test eax, eax
je 0x454036
mov dword [ebp - 0x10], edi
push 1
push 0xffffffffffffffff
call sub.KERNEL32.dll_SleepEx
cmp dword [ebp - 0x1c], 0
je 0x453f6e
cmp dword [ebp - 0x18], 0
jne 0x454045
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x454045
cmp ebx, 0x1000
ja 0x45406d
xor edi, edi
mov eax, ebx
sub eax, edi
jb 0x45405c
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_internal8callback17ha10796af46e13059E_12
lea edx, [ebp - 0x30]
push edx
push eax
push ecx
push esi
call sub.KERNEL32.dll_WriteFileEx
test eax, eax
je 0x45403d
nop word [eax + eax]
push 1
push 0xffffffffffffffff
call sub.KERNEL32.dll_SleepEx
cmp dword [ebp - 0x1c], 0
je 0x453fe0
cmp dword [ebp - 0x18], 0
jne 0x454042
add edi, dword [ebp - 0x14]
cmp edi, ebx
jne 0x453fa0
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_internal8callback17ha10796af46e13059E_12
lea eax, [ebp - 0x30]
push eax
push 0x1000
lea eax, [ebp - 0x1030]
push eax
mov edi, dword [ebp - 0x10]
push edi
call sub.KERNEL32.dll_ReadFileEx
test eax, eax
jne 0x453f6e
call sub.KERNEL32.dll_GetLastError
jmp 0x454045
call sub.KERNEL32.dll_GetLastError
mov edi, dword [ebp - 0x10]
push edi
call sub.KERNEL32.dll_CloseHandle
push esi
call sub.KERNEL32.dll_CloseHandle
add esp, 0x1024
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x4c0820
push ebx
push edi
call dbg.slice_index_order_fail
add esp, 0xc
jmp 0x454080
push 0x4c0820
push 0x1000
push ebx
call dbg.slice_end_index_len_fail
add esp, 0xc
ud2

Function at 0x4571b0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x2c
mov edi, dword [ebp + 8]
mov esi, dword [edi]
mov eax, dword [esi]
test eax, eax
je 0x4571c6
dec eax
jmp 0x4571cf
push esi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h0e07b267238be613
add esp, 4
push 1
push eax
call sub.KERNEL32.dll_TlsSetValue
push 4
push 8
push edi
call sym.___rust_dealloc
add esp, 0xc
mov eax, dword [esi]
test eax, eax
je 0x4571ed
dec eax
jmp 0x4571f6
push esi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h0e07b267238be613
add esp, 4
push 0
push eax
call sub.KERNEL32.dll_TlsSetValue
add esp, 0x2c
pop esi
pop edi
pop ebp
ret
Function at 0x457290
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x2c
mov edi, dword [ebp + 8]
mov esi, dword [edi]
mov eax, dword [esi]
test eax, eax
je 0x4572a6
dec eax
jmp 0x4572af
push esi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h0e07b267238be613
add esp, 4
push 1
push eax
call sub.KERNEL32.dll_TlsSetValue
cmp dword [edi + 4], 0
je 0x4572d1
mov eax, dword [edi + 8]
test eax, eax
je 0x4572d1
lock dec dword [eax]
jne 0x4572d1
lea ecx, [edi + 8]
call dbg.drop_slow<std::sync::mutex::Mutex<alloc::vec::Vec<u8, alloc::alloc::Global>>, alloc::alloc::Global>
push 4
push 0xc
push edi
call sym.___rust_dealloc
add esp, 0xc
mov eax, dword [esi]
test eax, eax
je 0x4572e7
dec eax
jmp 0x4572f0
push esi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h0e07b267238be613
add esp, 4
push 0
push eax
call sub.KERNEL32.dll_TlsSetValue
add esp, 0x2c
pop esi
pop edi
pop ebp
ret

Function at 0x4573a0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x2c
mov edi, dword [ebp + 8]
mov esi, dword [edi]
mov eax, dword [esi]
test eax, eax
je 0x4573b6
dec eax
jmp 0x4573bf
push esi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h0e07b267238be613
add esp, 4
push 1
push eax
call sub.KERNEL32.dll_TlsSetValue
push 4
push 0x10
push edi
call sym.___rust_dealloc
add esp, 0xc
mov eax, dword [esi]
test eax, eax
je 0x4573dd
dec eax
jmp 0x4573e6
push esi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h0e07b267238be613
add esp, 4
push 0
push eax
call sub.KERNEL32.dll_TlsSetValue
add esp, 0x2c
pop esi
pop edi
pop ebp
ret

Function at 0x457480
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x2c
mov edi, dword [ebp + 8]
mov esi, dword [edi]
mov eax, dword [esi]
test eax, eax
je 0x457496
dec eax
jmp 0x45749f
push esi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h0e07b267238be613
add esp, 4
push 1
push eax
call sub.KERNEL32.dll_TlsSetValue
cmp dword [edi + 4], 0
je 0x4574c1
mov eax, dword [edi + 8]
test eax, eax
je 0x4574c1
lock dec dword [eax]
jne 0x4574c1
lea ecx, [edi + 8]
call dbg.drop_slow<std::thread::Inner, alloc::alloc::Global>
push 4
push 0xc
push edi
call sym.___rust_dealloc
add esp, 0xc
mov eax, dword [esi]
test eax, eax
je 0x4574d7
dec eax
jmp 0x4574e0
push esi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h0e07b267238be613
add esp, 4
push 0
push eax
call sub.KERNEL32.dll_TlsSetValue
add esp, 0x2c
pop esi
pop edi
pop ebp
ret