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

Disassembly:
push esi
push eax
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
mov ecx, dword [ecx]
mov dword [esp], eax
mov eax, esp
push 4
push eax
push 0x1001
push 0xffff
push ecx
call dword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x554808
mov byte [esi], 4
mov eax, esi
add esp, 4
pop esi
ret
call fcn.00581a90
mov dword [esi + 4], eax
mov dword [esi], 0
mov eax, esi
add esp, 4
pop esi
ret
Function at 0x5792e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x43c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x585680
mov esi, 0x200
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x2c], 0
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x38], 2
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
cmp esi, 0x201
jae 0x579370
jmp 0x57935e
jbe 0x579404
cmp esi, 0x201
jae 0x579370
mov dword [ebp - 0x28], 0x200
lea ebx, [ebp - 0x448]
mov edi, esi
jmp 0x5793ab
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x2c]
sub esi, edi
sub eax, edi
cmp eax, esi
jae 0x57939c
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x38]
mov edx, edi
push esi
call fcn.0059fa40
add esp, 4
mov eax, dword [ebp - 0x38]
mov edi, dword [ebp - 0x34]
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], edi
push 0
call dword [sym.imp.kernel32.dll_SetLastError]
push ebx
push edi
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov esi, eax
test eax, eax
jne 0x5793cf
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x579467
cmp esi, edi
jne 0x579350
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x579483
lea esi, [edi + edi]
test edi, edi
mov eax, 0xffffffff
cmovs esi, eax
cmp esi, 0x201
jb 0x57935e
jmp 0x579370
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], 0
cmp esi, eax
ja 0x5794a0
lea eax, [ebp - 0x48]
push esi
push ebx
push eax
call fcn.0057b9b0
add esp, 0xc
movsd xmm0, qword [ebp - 0x48]
mov esi, dword [ebp + 8]
movsd xmm1, qword [ebp - 0x40]
movsd qword [esi + 8], xmm1
movsd qword [esi], xmm0
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x579451
add eax, eax
push 2
push eax
push dword [ebp - 0x24]
call fcn.00407080
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x43c
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, dword [ebp + 8]
mov byte [esi], 0
mov dword [esi + 4], eax
mov byte [esi + 0xc], 2
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x579441
jmp 0x579451
mov dword [ebp - 0x10], 0
push 0x6740e0
push 0x28
push str.internal_error:_entered_unreachable_code_rustc_2b603f95a48f10f931a61dd208fe3e5ffd64e491library_alloc_src_vecmod.rs_g
call fcn.005a0b60
add esp, 0xc
jmp 0x5794af
push 0x6740d0
push eax
push esi
call fcn.005a0fc0
add esp, 0xc
ud2
Function at 0x57b7f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 8]
mov edx, 0x7fffffff
mov ecx, dword [ecx]
cmp eax, 0x7fffffff
cmovb edx, eax
push 0
push edx
push dword [esp + 0x18]
push dword [ecx]
call dword [sym.imp.ws2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x57b832
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov ecx, eax
xor eax, eax
cmp ecx, 0x274a
jne 0x57b83c
mov dword [esi + 4], eax
mov byte [esi], 4
mov eax, esi
pop esi
ret
mov byte [esi], 0
mov dword [esi + 4], ecx
mov eax, esi
pop esi
ret

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

Disassembly:
push esi
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 8]
mov edx, 0x7fffffff
mov ecx, dword [ecx]
cmp eax, 0x7fffffff
cmovb edx, eax
push 0
push edx
push dword [esp + 0x18]
push dword [ecx]
call dword [sym.imp.ws2_32.dll_send]
cmp eax, 0xffffffff
je 0x57b88a
mov dword [esi + 4], eax
mov byte [esi], 4
mov eax, esi
pop esi
ret
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov byte [esi], 0
mov byte [esi + 3], 0
mov word [esi + 1], 0
mov dword [esi + 4], eax
mov eax, esi
pop esi
ret

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

Disassembly:
push edi
push esi
push eax
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov edi, esp
mov ecx, dword [ecx]
mov ecx, dword [ecx]
mov dword [esp], 0
push 0
push 0
push 0
push edi
push edx
push eax
push ecx
call dword [sym.imp.ws2_32.dll_WSASend]
cmp eax, 0xffffffff
je 0x57b8f0
mov eax, dword [esp]
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x57b8ff
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov dword [esi + 4], eax
mov dword [esi], 0
mov eax, esi
add esp, 4
pop esi
pop edi
ret
Function at 0x57cc60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, esp
mov dword [esi + 0x28], ebp
mov dword [esi + 0x2c], esp
mov dword [esi + 0x38], 0xffffffff
mov dword [esi + 0x34], 0x585770
lea eax, [esi + 0x30]
mov ecx, dword fs:[0]
mov dword [esi + 0x30], ecx
mov dword fs:[0], eax
lea eax, [esi + 8]
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
push eax
call dword [sym.imp.kernel32.dll_QueryPerformanceCounter]
test eax, eax
je 0x57cd71
mov edi, dword [esi + 8]
mov ebx, dword [esi + 0xc]
call fcn.00583360
mov ecx, eax
or ecx, edx
je 0x57cd5b
push edx
push eax
push ebx
mov dword [esi + 0x1c], edi
push edi
mov edi, edx
mov dword [esi + 0x20], edx
mov dword [esi + 0x18], eax
call fcn.00599400
mov ecx, edi
mov edi, dword [esi + 0x18]
mov dword [esi + 4], edx
mov dword [esi + 0x24], eax
imul ecx, eax
mul edi
add edx, ecx
mov ecx, edi
imul ecx, dword [esi + 4]
add ecx, edx
mov edx, dword [esi + 0x1c]
sub edx, eax
sbb ebx, ecx
mov eax, edx
imul ecx, ebx, 0x3b9aca00
mov ebx, 0x3b9aca00
mul ebx
add edx, ecx
push dword [esi + 0x20]
push edi
push edx
push eax
call fcn.00599400
mov edi, eax
mov eax, dword [esi + 0x24]
mov ecx, edx
mul ebx
imul ebx, dword [esi + 4], 0x3b9aca00
add ebx, edx
add edi, eax
adc ebx, ecx
push 0
push 0x3b9aca00
push ebx
push edi
call fcn.00599400
imul ecx, eax, 0x3b9aca00
sub edi, ecx
mov ecx, dword [esi + 0x30]
mov dword fs:[0], ecx
mov ecx, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x67324c
push 0x19
push str.attempt_to_divide_by_zero_rustc_2b603f95a48f10f931a61dd208fe3e5ffd64e491librarycore_src_strpattern.rs
call fcn.005a0b60
add esp, 0xc
ud2
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x38], 0
lea eax, [esi + 0x10]
push 0x674098
push 0x67227c
push eax
push 0x2b
push 0x67228c
call fcn.005a0ed0
add esp, 0x14
ud2
Function at 0x581820
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, ecx
mov ecx, dword [ebp + 0xc]
cmp dword [ebp + 0x10], 0
mov edi, edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x103
je 0x581864
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
xor eax, eax
mov ebx, 1
jmp 0x58186a
xor ebx, ebx
xor eax, eax
xor edx, edx
mov dword [esp + 0x1c], eax
lea eax, [esp + 8]
mov dword [esp + 0x18], ebx
push 0
push edx
push ecx
push dword [ebp + 8]
push eax
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x5818a6
push 0xffffffffffffffff
push edi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
cmp eax, 0x103
je 0x5818cb
test eax, eax
js 0x5818b5
mov eax, dword [esp + 0xc]
mov dword [esi + 4], eax
mov al, 4
jmp 0x5818c1
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [esi + 4], eax
xor eax, eax
mov byte [esi], al
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 4]
mov dword [esp + 0x18], 0x673a44
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], 0
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x10]
lea edx, [esp + 0x34]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0
push eax
push ecx
push edx
call fcn.0057acb0
add esp, 0xc
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
call fcn.00576f20
mov ecx, 7
int 0x29
ud2

Function at 0x5819c0
Capabilities:
Create udp socket

Disassembly:
push ebx
push edi
push esi
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
mov ebx, 0x17
cmp word [eax], 0
mov eax, 2
cmove ebx, eax
push 0x81
push 0
push 0
push 0
push edi
push ebx
call dword [sym.imp.ws2_32.dll_WSASocketW]
cmp eax, 0xffffffff
je 0x581a04
mov dword [esi + 4], eax
mov byte [esi], 4
mov eax, esi
pop esi
pop edi
pop ebx
ret
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2726
je 0x581a18
cmp eax, 0x2739
jne 0x581a43
push 1
push 0
push 0
push 0
push edi
push ebx
call dword [sym.imp.ws2_32.dll_WSASocketW]
cmp eax, 0xffffffff
je 0x581a4b
mov edi, eax
push 0
push 1
push eax
call dword [sym.imp.kernel32.dll_SetHandleInformation]
test eax, eax
je 0x581a5c
mov dword [esi + 4], edi
jmp 0x5819fb
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x5819fe
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov dword [esi + 4], eax
mov dword [esi], 0
jmp 0x5819fe
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, eax
mov edx, eax
shr eax, 0x18
mov byte [esi], 0
shr ecx, 8
shl edx, 0x18
mov byte [esi + 7], al
mov dword [esi + 1], edx
mov word [esi + 5], cx
push edi
call dword [sym.imp.ws2_32.dll_closesocket]
jmp 0x5819fe
Function at 0x582420
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov esi, esp
mov dword [esi + 0x48], ebp
mov dword [esi + 0x4c], esp
mov dword [esi + 0x58], 0xffffffff
mov dword [esi + 0x54], 0x585940
mov edi, ecx
lea eax, [esi + 0x50]
xorps xmm0, xmm0
mov ecx, dword fs:[0]
mov dword [esi + 0x50], ecx
mov dword fs:[0], eax
movaps xmmword [esi + 0x10], xmm0
lea eax, [esi + 0x10]
push 0x10
push eax
call dword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
je 0x58249e
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x50]
mov dword fs:[0], eax
mov dword [edi + 0xc], ebx
mov dword [edi + 8], edx
mov dword [edi + 4], ecx
mov eax, dword [esi + 4]
mov dword [edi], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.kernel32.dll_GetLastError]
mov byte [esi + 8], 0
mov dword [esi + 0xc], eax
lea eax, [esi + 8]
mov dword [esi + 0x30], 0x673bec
mov dword [esi + 0x34], 1
mov dword [esi + 0x40], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x28], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x2c], fcn.00579e60
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 1
lea eax, [esi + 0x30]
push 0x673c18
push eax
call fcn.005a0aa0
add esp, 8
ud2
Function at 0x582c20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x585960
lea eax, [ebp - 0x18]
mov ebx, dword [ebp + 0x10]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
movzx eax, byte [0x69b8b9]
push 4
push 8
call fcn.00407070
add esp, 8
test eax, eax
je 0x582d02
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 0x582d80
push eax
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
test eax, eax
je 0x582c9d
mov dword [edi + 4], eax
mov byte [edi], 4
jmp 0x582cef
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x24], eax
push eax
mov dword [ebp - 0x20], ecx
call dword [ecx]
add esp, 4
mov ecx, dword [ebp - 0x20]
mov edi, dword [ebp + 8]
mov eax, dword [ecx + 4]
test eax, eax
je 0x582cd4
push dword [ecx + 8]
push eax
push dword [ebp - 0x24]
call fcn.00407080
add esp, 0xc
push 4
push 8
push dword [ebp - 0x28]
call fcn.00407080
add esp, 0xc
call dword [sym.imp.kernel32.dll_GetLastError]
mov byte [edi], 0
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, edi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
push 8
push 4
call fcn.005a08c0
add esp, 8
ud2
Function at 0x583020
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x585990
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
movzx eax, byte [0x69b954]
test al, al
je 0x5831f1
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x58306c
cmp eax, 3
jne 0x5831ea
mov ebx, dword [0x69b958]
test ebx, ebx
je 0x5831ea
mov dword [ebp - 0x20], 0
jmp 0x583097
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x5830c8
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x58323b
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x583090
push 0
push esi
mov esi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x583090
test byte [ebp - 0x20], 1
je 0x5831ea
mov ebx, dword [0x69b958]
test ebx, ebx
je 0x5831ea
mov dword [ebp - 0x20], 0
jmp 0x5830f7
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x583128
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x58323b
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x5830f0
push 0
push esi
mov esi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x5830f0
test byte [ebp - 0x20], 1
je 0x5831ea
mov ebx, dword [0x69b958]
test ebx, ebx
je 0x5831ea
mov dword [ebp - 0x20], 0
jmp 0x583157
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x583188
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x58323b
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x583150
push 0
push esi
mov esi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x583150
test byte [ebp - 0x20], 1
je 0x5831ea
mov ebx, dword [0x69b958]
test ebx, ebx
je 0x5831ea
mov dword [ebp - 0x20], 0
jmp 0x5831b7
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x5831e4
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x58323b
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x5831b0
push 0
push esi
mov esi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x5831b0
test byte [ebp - 0x20], 1
jne 0x583204
movzx eax, byte [0x677ac0]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov ebx, dword [0x69b958]
jmp 0x58320f
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x5831ea
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x58323b
dec esi
push esi
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x58320c
push 0
push esi
mov esi, eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push esi
call edi
add esp, 4
jmp 0x58320c
mov dword [ebp - 0x10], 0
push 0x673f9c
push 0x2b
push 0x671f80
call fcn.005a0b60
add esp, 0xc
ud2
Function at 0x584360
Capabilities:
Resolve dns

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1b4
mov eax, dword [esp + 0x1cc]
mov esi, dword [esp + 0x1c8]
mov edi, dword [eax]
mov ebp, dword [eax + 4]
movzx ebx, word [eax + 8]
mov eax, dword [0x69b94c]
cmp eax, 3
jne 0x58444b
cmp ebp, 0x17f
ja 0x58445c
mov dword [esp + 4], ebx
lea ebx, [esp + 0x34]
push ebp
push edi
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov byte [esp + ebp + 0x34], 0
inc ebp
lea eax, [esp + 8]
push ebp
push ebx
push eax
call fcn.00590a60
add esp, 0xc
cmp dword [esp + 8], 0
je 0x5843e6
mov eax, dword [0x673008]
mov ecx, dword [0x67300c]
mov dword [esi + 8], ecx
mov dword [esi + 4], eax
mov dword [esi], 1
jmp 0x58446a
mov eax, dword [esp + 0xc]
xorps xmm0, xmm0
mov ecx, esp
mov dword [esp], 0
lea edx, [esp + 0x14]
movups xmmword [esp + 0x14], xmm0
movups xmmword [esp + 0x24], xmm0
mov dword [esp + 0x1c], 1
push ecx
push edx
push 0
push eax
call dword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x584434
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov ecx, 1
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov dword [esi], ecx
jmp 0x58446a
mov eax, dword [esp]
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov eax, dword [esp + 4]
mov word [esi + 0xc], ax
xor eax, eax
mov dword [esi], eax
jmp 0x58446a
call fcn.0059fcc0
cmp ebp, 0x17f
jbe 0x58439b
mov ecx, esi
mov edx, edi
push ebx
push ebp
call fcn.0059fd10
add esp, 8
mov eax, esi
add esp, 0x1b4
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x5845b0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff0
sub esp, 0xa0
xorps xmm0, xmm0
mov esi, ecx
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x80
lea ecx, [esp + 0x10]
movaps xmmword [esp + 0x80], xmm0
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x60], xmm0
movaps xmmword [esp + 0x50], xmm0
movaps xmmword [esp + 0x40], xmm0
movaps xmmword [esp + 0x30], xmm0
movaps xmmword [esp + 0x20], xmm0
movaps xmmword [esp + 0x10], xmm0
push eax
push ecx
push edx
call dword [sym.imp.ws2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x584656
movzx ecx, word [esp + 0x10]
mov eax, dword [esp + 0xc]
cmp ecx, 2
je 0x58466f
cmp ecx, 0x17
jne 0x584693
cmp eax, 0x1b
jbe 0x5846a9
movzx eax, word [esp + 0x12]
movups xmm0, xmmword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
mov word [esi], 1
rol ax, 8
movups xmmword [esi + 4], xmm0
mov dword [esi + 0x14], ecx
mov dword [esi + 0x18], edx
mov word [esi + 0x1c], ax
lea esp, [ebp - 4]
pop esi
pop ebp
ret
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov byte [esi + 4], 0
mov byte [esi + 7], 0
mov word [esi + 5], 0
mov dword [esi + 8], eax
jmp 0x58469e
cmp eax, 0xf
jbe 0x5846bf
movzx ecx, word [esp + 0x12]
mov eax, dword [esp + 0x14]
mov word [esi], 0
rol cx, 8
mov dword [esi + 2], eax
mov word [esi + 6], cx
lea esp, [ebp - 4]
pop esi
pop ebp
ret
mov byte [esi + 4], 2
mov dword [esi + 8], 0x674448
mov word [esi], 2
lea esp, [ebp - 4]
pop esi
pop ebp
ret
push 0x674428
push 0x43
push 0x6743e4
call fcn.005a0b60
add esp, 0xc
ud2
push 0x6743d4
push 0x42
push str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___library_std_src_sys_common_net.rs
call fcn.005a0b60
add esp, 0xc
ud2
Function at 0x584fa0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov eax, dword [0x69b7d4]
mov esi, ecx
test eax, eax
je 0x584fc6
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x584fdf
cmp dword [eax + 4], 0
je 0x584fdf
add eax, 8
pop esi
pop edi
ret
push 0x69b7d4
call fcn.0059fef0
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jae 0x584fba
mov eax, dword [0x69b7d4]
test eax, eax
je 0x585076
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x585093
mov edi, eax
test eax, eax
jne 0x58503f
movzx eax, byte [0x69b8b9]
push 4
push 0x10
call fcn.00407070
add esp, 8
test eax, eax
je 0x5850a7
mov dword [eax], 0x69b7d4
mov dword [eax + 4], 0
mov edi, eax
mov eax, dword [0x69b7d4]
test eax, eax
je 0x585098
dec eax
push edi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
test esi, esi
je 0x58505f
mov eax, dword [esi]
xor ecx, ecx
mov edx, 0
mov dword [esi], 0
cmp eax, 1
jne 0x585063
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
jmp 0x585063
xor ecx, ecx
xor edx, edx
lea eax, [edi + 8]
mov dword [edi + 4], 1
mov dword [edi + 8], ecx
mov byte [edi + 0xc], dl
pop esi
pop edi
ret
push 0x69b7d4
call fcn.0059fef0
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x584ffd
xor eax, eax
pop esi
pop edi
ret
push 0x69b7d4
call fcn.0059fef0
add esp, 4
jmp 0x585037
push 0x10
push 4
call fcn.005a08c0
add esp, 8
ud2

Function at 0x5850c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
sub esp, 8
mov eax, dword [0x69b7e4]
mov esi, ecx
test eax, eax
je 0x58519a
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x5850ed
cmp dword [eax + 4], 0
mov edi, eax
jne 0x585195
mov eax, dword [0x69b7e4]
test eax, eax
je 0x5851bc
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x5851d9
mov edi, eax
test eax, eax
jne 0x585151
movzx eax, byte [0x69b8b9]
push 4
push 0xc
call fcn.00407070
add esp, 8
test eax, eax
je 0x5851f5
mov dword [eax], 0x69b7e4
mov dword [eax + 4], 0
mov edi, eax
mov eax, dword [0x69b7e4]
test eax, eax
je 0x5851e3
dec eax
push edi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
test esi, esi
je 0x585166
mov eax, dword [esi]
mov dword [esi], 0
test eax, eax
je 0x585168
mov eax, dword [esi + 4]
jmp 0x585168
xor eax, eax
mov edx, dword [edi + 4]
mov ecx, dword [edi + 8]
test edx, edx
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [edi + 4], 1
mov dword [edi + 8], eax
je 0x585195
test ecx, ecx
je 0x585195
lock dec dword [ecx]
jne 0x585195
lea ecx, [esp + 4]
call fcn.005779b0
add edi, 8
jmp 0x5851db
push 0x69b7e4
call fcn.0059fef0
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jae 0x5850e1
jmp 0x5850ed
push 0x69b7e4
call fcn.0059fef0
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x58510b
xor edi, edi
mov eax, edi
add esp, 8
pop esi
pop edi
ret
push 0x69b7e4
call fcn.0059fef0
add esp, 4
jmp 0x585149
push 0xc
push 4
call fcn.005a08c0
add esp, 8
ud2