joyce8/EMBER2024-capa huggingface dataset:
Function at 0x544c50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5bd61a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [str.W__a]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [str.W__a]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, ecx
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
mov dword [esp + 0xc], 0
mov ecx, dword [ecx]
push ecx
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
add ecx, edx
mov dword [esp + 0x14], esi
call eax
mov dword [esp + 0x1c], 7
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], 1
xor eax, eax
mov dword [esi + 8], 0
mov dword [esi], eax
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov ecx, esi
call fcn.004847a0
mov byte [esp + 0x30], 2
cmp dword [esi + 8], 7
jne 0x544cf5
push esi
lea ecx, [esp + 0xf]
call fcn.00485ae0
test eax, eax
je 0x544cf5
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 8]
call eax
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], 1
mov byte [esp + 0x30], 0
call fcn.004846c0
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00548a41
add esp, 0x2c
ret 0x10

Function at 0x5450e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5bd61a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [str.W__a]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [str.W__a]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, ecx
mov ecx, dword [esp + 0x44]
mov esi, dword [esp + 0x38]
mov dword [esp + 0xc], 0
mov ecx, dword [ecx]
push ecx
mov ecx, dword [eax + 0xc]
add ecx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x14], esi
call eax
mov dword [esp + 0x1c], 7
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], 1
xor eax, eax
mov dword [esi + 8], 0
mov dword [esi], eax
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov ecx, esi
call fcn.004847a0
mov byte [esp + 0x30], 2
cmp dword [esi + 8], 7
jne 0x545182
push esi
lea ecx, [esp + 0xf]
call fcn.00485ae0
test eax, eax
je 0x545182
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 8]
call eax
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], 1
mov byte [esp + 0x30], 0
call fcn.004846c0
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00548a41
add esp, 0x2c
ret 0x10
Function at 0x545ca0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5bd61a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [str.W__a]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [str.W__a]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, ecx
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
mov dword [esp + 0xc], 0
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
add ecx, edx
mov dword [esp + 0x10], esi
call eax
cdq
mov dword [esp + 0x1c], 2
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x30], 1
xor eax, eax
mov dword [esi + 8], 0
mov dword [esi], eax
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov ecx, esi
call fcn.004847a0
mov byte [esp + 0x30], 2
cmp dword [esi + 8], 7
jne 0x545d43
push esi
lea ecx, [esp + 0xf]
call fcn.00485ae0
test eax, eax
je 0x545d43
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 8]
call eax
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], 1
mov byte [esp + 0x30], 0
call fcn.004846c0
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00548a41
add esp, 0x2c
ret 0x10

Function at 0x545ec0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5bd61a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [str.W__a]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [str.W__a]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, ecx
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
mov dword [esp + 0xc], 0
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
add ecx, edx
mov dword [esp + 0x10], esi
call eax
mov dword [esp + 0x1c], 7
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], 1
xor eax, eax
mov dword [esi + 8], 0
mov dword [esi], eax
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov ecx, esi
call fcn.004847a0
mov byte [esp + 0x30], 2
cmp dword [esi + 8], 7
jne 0x545f5e
push esi
lea ecx, [esp + 0xf]
call fcn.00485ae0
test eax, eax
je 0x545f5e
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 8]
call eax
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], 1
mov byte [esp + 0x30], 0
call fcn.004846c0
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00548a41
add esp, 0x2c
ret 0x10
Function at 0x546610
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5bb2fa
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [str.W__a]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
push edi
mov eax, dword [str.W__a]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, ecx
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov edi, dword [ecx + 0x10]
mov ecx, dword [ecx]
push edi
push ecx
mov ecx, dword [eax + 0xc]
add ecx, edx
mov edx, dword [eax + 8]
mov dword [esp + 0x20], esi
call edx
xor eax, eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov edi, 1
mov dword [esp + 0x38], edi
mov dword [esi + 8], ebx
mov dword [esi], eax
mov dword [esi + 4], eax
lea eax, [esp + 0x1c]
mov ecx, esi
call fcn.004847a0
mov byte [esp + 0x38], 2
cmp dword [esi + 8], 7
jne 0x5466b6
push esi
lea ecx, [esp + 0x17]
call fcn.00485ae0
cmp eax, ebx
je 0x5466b6
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 8]
call eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], edi
mov byte [esp + 0x38], bl
call fcn.004846c0
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00548a41
add esp, 0x2c
ret 0x10

Function at 0x547100
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5bd61a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [str.W__a]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [str.W__a]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, dword [esp + 0x38]
mov dword [esp + 0xc], 0
mov cl, byte [ecx + 4]
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], 1
mov byte [esp + 0x14], cl
mov dword [esp + 0x30], 1
xor eax, eax
mov dword [esi + 8], 0
mov dword [esi], eax
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov ecx, esi
call fcn.004847a0
mov byte [esp + 0x30], 2
cmp dword [esi + 8], 7
jne 0x547191
push esi
lea ecx, [esp + 0xf]
call fcn.00485ae0
test eax, eax
je 0x547191
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 8]
call eax
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], 1
mov byte [esp + 0x30], 0
call fcn.004846c0
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00548a41
add esp, 0x2c
ret 0x10
Function at 0x54890b
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x63c338], 0
push esi
push edi
jne 0x548881
call fcn.005487ed
test eax, eax
je 0x5488c6
mov eax, dword [0x63c338]
cmp eax, 1
jne 0x5488a2
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x5488c6
jmp 0x548908
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x548908
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x5488ca
xor eax, eax
jmp 0x548908
mov eax, dword [esi]
push dword [0x63c338]
call edi
mov edi, eax
test edi, edi
je 0x5488ec
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x548908
lea edi, [esi + 0xff0]
push esi
push dword [0x63c338]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x5488f2
mov eax, esi
pop edi
pop esi
ret
jmp 0x54886d

Function at 0x548a41
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [str.W__a]
jne 0x548a4b
repz ret
jmp fcn.0054e49a
Function at 0x559de8
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [str.W__a]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0054f722
and dword [ebp - 0x14], 0
cmp dword [0x63d208], 0
mov dword [ebp - 0x18], eax
jne 0x559e9b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x559f43
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5c9724
push ebx
call edi
test eax, eax
je 0x559f43
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x63d208], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x63d20c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x63d210], eax
call edi
push eax
call esi
mov dword [0x63d218], eax
test eax, eax
je 0x559e9b
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x63d214], eax
mov eax, dword [0x63d214]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x559ef4
cmp dword [0x63d218], ecx
je 0x559ef4
push eax
call esi
push dword [0x63d218]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x559ef4
test ebx, ebx
je 0x559ef4
call edi
test eax, eax
je 0x559eeb
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x559eeb
test byte [ebp - 8], 1
jne 0x559ef4
or dword [ebp + 0x10], 0x200000
jmp 0x559f27
mov eax, dword [0x63d20c]
cmp eax, dword [ebp - 0x18]
je 0x559f27
push eax
call esi
test eax, eax
je 0x559f27
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x559f27
mov eax, dword [0x63d210]
cmp eax, dword [ebp - 0x18]
je 0x559f27
push eax
call esi
test eax, eax
je 0x559f27
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x63d208]
call esi
test eax, eax
je 0x559f43
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x559f45
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00548a41
leave
ret
Function at 0x583d60
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [str.W__a]
xor eax, ebp
mov dword [ebp - 0x30], eax
cmp dword [ebp + 0x10], 0
jne 0x583d7e
or eax, 0xffffffff
jmp 0x583e49
mov ecx, dword [ebp + 0x10]
call fcn.00584330
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x28], 0x400
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x28]
push edx
push 0
mov ecx, dword [ebp + 8]
call fcn.00407a10
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x583de0
mov eax, dword [ebp - 8]
jmp 0x583e49
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 4], eax
jmp 0x583df1
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x1c]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x583e3d
cmp dword [ebp + 0xc], 0
je 0x583e08
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
cmp ecx, dword [ebp + 0xc]
jne 0x583e3b
lea ecx, [ebp - 0x44]
call fcn.00573b90
lea edx, [ebp - 0x44]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.00583310
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x583e33
lea edx, [ebp - 0x44]
push edx
mov ecx, dword [ebp + 0x10]
call fcn.00584230
lea ecx, [ebp - 0x44]
call fcn.00584500
jmp 0x583de8
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
xor eax, eax
mov ecx, dword [ebp - 0x30]
xor ecx, ebp
call fcn.00548a41
mov esp, ebp
pop ebp
ret

Function at 0x584b20
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], 0xefcdab89
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0x98badcfe
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0x10325476
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], 0
pop ebp
ret

Function at 0x588540
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], 0xefcdab89
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0x98badcfe
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0x10325476
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0xc3d2e1f0
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0
pop ebp
ret
Function at 0x5896e0
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov edx, dword [eax]
mov ecx, dword [ebp - 4]
mov eax, dword [edx + 0x2c]
call eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x70], eax
xor edx, edx
cmp dword [ebp + 0xc], 2
sete dl
mov eax, dword [ebp - 4]
mov byte [eax + 0x75], dl
mov ecx, dword [ebp - 4]
call fcn.0058a6b0
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + 0x75]
test edx, edx
je 0x589733
mov eax, dword [ebp - 4]
mov byte [eax + 0x74], 3
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ecx + 0x70], 0xffffffff
setne al
mov esp, ebp
pop ebp
ret 8

Function at 0x589750
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [str.W__a]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x194], ecx
xor eax, eax
mov word [ebp - 0x148], ax
push 0x7e
push 0
lea ecx, [ebp - 0x146]
push ecx
call fcn.0054e420
add esp, 0xc
mov dword [ebp - 0x14c], 0x80
lea edx, [ebp - 0x148]
mov dword [ebp - 0x190], edx
lea eax, [ebp - 0x14c]
push eax
mov ecx, dword [ebp - 0x190]
push ecx
mov edx, dword [ebp - 0x194]
mov eax, dword [edx + 0x70]
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
mov dword [ebp - 0x150], eax
lea ecx, [ebp - 0x18c]
call fcn.00572a30
cmp dword [ebp - 0x150], 0
jl 0x5897eb
lea ecx, [ebp - 0x18c]
push ecx
lea edx, [ebp - 0x148]
push edx
call fcn.005739f0
add esp, 8
jmp 0x589839
xor eax, eax
je 0x589839
mov ecx, dword [ebp - 0x194]
mov edx, dword [ecx + 0x70]
push edx
push str.GetLocalAddress:_unable_to_get_local_addr__socket
push 0
push 0
push 0
push 3
push 0
push 0
lea ecx, [ebp - 0xc8]
call fcn.00574170
mov ecx, eax
call fcn.0056f550
push eax
call fcn.004016a0
add esp, 8
mov ecx, eax
call fcn.00406860
lea ecx, [ebp - 0xc8]
call fcn.00574580
jmp 0x5897eb
lea eax, [ebp - 0x18c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00572b50
lea ecx, [ebp - 0x18c]
call fcn.005705c0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00548a41
mov esp, ebp
pop ebp
ret 4
Function at 0x589bb0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [str.W__a]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x98], ecx
mov eax, dword [ebp - 0x98]
cmp dword [eax + 0x70], 0xffffffff
jne 0x589c02
push 1
mov ecx, dword [ebp + 8]
call fcn.005802a0
push eax
mov ecx, dword [ebp - 0x98]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x98]
mov eax, dword [edx + 0x48]
call eax
movzx ecx, al
test ecx, ecx
jne 0x589c02
or eax, 0xffffffff
jmp 0x589cc5
lea edx, [ebp - 0x88]
push edx
mov ecx, dword [ebp + 8]
call fcn.005737c0
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x88]
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x8c]
push ecx
mov edx, dword [ebp - 0x94]
push edx
mov eax, dword [ebp - 0x98]
mov ecx, dword [eax + 0x70]
push ecx
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x98]
call fcn.0058a6b0
cmp dword [ebp - 0x90], 0
jne 0x589c6a
mov edx, dword [ebp - 0x98]
mov dword [edx + 0x7c], 2
jmp 0x589cad
mov eax, dword [ebp - 0x98]
mov ecx, dword [eax + 0x78]
push ecx
call fcn.005802f0
add esp, 4
movzx edx, al
test edx, edx
je 0x589ca8
mov eax, dword [ebp - 0x98]
mov dword [eax + 0x7c], 1
mov ecx, dword [ebp - 0x98]
movzx edx, byte [ecx + 0x74]
or edx, 4
mov eax, dword [ebp - 0x98]
mov byte [eax + 0x74], dl
jmp 0x589cad
or eax, 0xffffffff
jmp 0x589cc5
mov ecx, dword [ebp - 0x98]
movzx edx, byte [ecx + 0x74]
or edx, 3
mov eax, dword [ebp - 0x98]
mov byte [eax + 0x74], dl
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00548a41
mov esp, ebp
pop ebp
ret 4

Function at 0x589da0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0058a6d0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x589dc7
or eax, 0xffffffff
jmp 0x589de2
push 4
lea eax, [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x70]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x70]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
call fcn.0058a6b0
cmp dword [ebp - 4], 0
jge 0x589e47
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x78]
push edx
call fcn.005802f0
add esp, 4
movzx eax, al
test eax, eax
je 0x589e47
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + 0x74]
or edx, 2
mov eax, dword [ebp - 8]
mov byte [eax + 0x74], dl
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x589e50
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [str.W__a]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x94], ecx
lea eax, [ebp - 0x90]
push eax
mov ecx, dword [ebp + 0x10]
call fcn.005737c0
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
push ecx
lea edx, [ebp - 0x90]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x94]
mov eax, dword [edx + 0x70]
push eax
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x94]
call fcn.0058a6b0
cmp dword [ebp - 4], 0
jge 0x589ee3
mov ecx, dword [ebp - 0x94]
mov edx, dword [ecx + 0x78]
push edx
call fcn.005802f0
add esp, 4
movzx eax, al
test eax, eax
je 0x589ee3
mov ecx, dword [ebp - 0x94]
movzx edx, byte [ecx + 0x74]
or edx, 2
mov eax, dword [ebp - 0x94]
mov byte [eax + 0x74], dl
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00548a41
mov esp, ebp
pop ebp
ret 0xc
Function at 0x589f00
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [str.W__a]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x194], ecx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x194]
mov eax, dword [edx + 0x70]
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x18c], eax
cmp dword [ebp - 0x18c], 0
jne 0x589fb0
cmp dword [ebp + 0xc], 0
je 0x589fb0
xor ecx, ecx
je 0x589f85
push str.EOF_from_socket__deferring_close_event
push 0
push 0
push 0
push 3
push 0
push 0
lea ecx, [ebp - 0xc8]
call fcn.00574170
mov ecx, eax
call fcn.0056f550
push eax
call fcn.004016a0
add esp, 8
lea ecx, [ebp - 0xc8]
call fcn.00574580
jmp 0x589f48
mov edx, dword [ebp - 0x194]
movzx eax, byte [edx + 0x74]
or eax, 1
mov ecx, dword [ebp - 0x194]
mov byte [ecx + 0x74], al
mov edx, dword [ebp - 0x194]
mov dword [edx + 0x78], 0x2733
or eax, 0xffffffff
jmp 0x58a0a9
mov ecx, dword [ebp - 0x194]
call fcn.0058a6b0
cmp dword [ebp - 0x18c], 0
jge 0x589fe9
mov eax, dword [ebp - 0x194]
mov ecx, dword [eax + 0x78]
push ecx
call fcn.005802f0
add esp, 4
movzx edx, al
test edx, edx
jne 0x589fe9
mov dword [ebp - 0x198], 0
jmp 0x589ff3
mov dword [ebp - 0x198], 1
mov al, byte [ebp - 0x198]
mov byte [ebp - 0x18d], al
mov ecx, dword [ebp - 0x194]
movzx edx, byte [ecx + 0x75]
test edx, edx
jne 0x58a018
movzx eax, byte [ebp - 0x18d]
test eax, eax
je 0x58a02e
mov ecx, dword [ebp - 0x194]
movzx edx, byte [ecx + 0x74]
or edx, 1
mov eax, dword [ebp - 0x194]
mov byte [eax + 0x74], dl
movzx ecx, byte [ebp - 0x18d]
test ecx, ecx
jne 0x58a0a3
xor edx, edx
je 0x58a0a3
mov eax, dword [ebp - 0x194]
mov ecx, dword [eax + 0x78]
push ecx
push str.Error_
push 0x5e3024
push str.talk_base::PhysicalSocket::Recv
push 0
push 0
push 0
push 1
push 0
push 0
lea ecx, [ebp - 0x188]
call fcn.00574170
mov ecx, eax
call fcn.0056f550
push eax
call fcn.004016a0
add esp, 8
push eax
call fcn.004016a0
add esp, 8
push eax
call fcn.004016a0
add esp, 8
mov ecx, eax
call fcn.004066a0
lea ecx, [ebp - 0x188]
call fcn.00574580
jmp 0x58a039
mov eax, dword [ebp - 0x18c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00548a41
mov esp, ebp
pop ebp
ret 8