joyce8/EMBER2024-capa huggingface dataset:
Function at 0x458640
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bbdf0
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x6522a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x3c], 0
mov eax, dword [edi + 0x38]
mov dword [edi], vtable.p2ptoolkit::ThreadPrivate.0
je 0x4587f9
test eax, eax
je 0x4587f9
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
jne 0x4587f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 6
je 0x4587f9
push str.looks_like_the_thread_was_killed_in_my_back...
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0xe
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x28], 0
push eax
push 2
mov dword [ebp - 0x24], 0x5c8cb0
mov dword [ebp - 0x20], 0xd
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], str.ThreadPrivate
call fcn.0044ef70
add esp, 0x10
mov ecx, dword [ebp - 0x1c]
or esi, 0xffffffff
mov dword [ebp - 4], 0
test ecx, ecx
je 0x45870e
mov eax, esi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x45870e
mov dword [ebp - 0x1c], 0
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 4], 1
test ecx, ecx
je 0x458731
mov eax, esi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x458731
mov dword [ebp - 0x28], 0
mov eax, dword [ecx]
call dword [eax]
lea eax, [ebp - 0x5c]
mov dword [ebp - 4], 0xffffffff
push ebx
push eax
call fcn.004534e0
push eax
lea eax, [ebp - 0x10]
push str.unhandled_code
push eax
call fcn.00449030
add esp, 0x14
lea ecx, [ebp - 0x50]
push eax
call fcn.004516e0
lea eax, [ebp - 0x50]
mov dword [ebp - 0x44], 0xe
push eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x40], 0
push eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x3c], 0x5c8cb0
push eax
push 2
mov dword [ebp - 0x38], 0xd
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], str.ThreadPrivate
call fcn.0044ef50
add esp, 0x10
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 4], 2
test ecx, ecx
je 0x4587c0
mov eax, esi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4587c0
mov dword [ebp - 0x34], 0
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 4], 3
test ecx, ecx
je 0x4587e1
lock xadd dword [ecx + 4], esi
dec esi
jne 0x4587e1
mov dword [ebp - 0x40], 0
mov eax, dword [ecx]
call dword [eax]
lea ecx, [ebp - 0x50]
call fcn.004482d0
lea ecx, [ebp - 0x10]
call fcn.00448e70
lea ecx, [ebp - 0x5c]
call fcn.004482d0
lea ecx, [edi + 0x48]
call fcn.00461b60
lea ecx, [edi + 0x44]
call fcn.00461b60
lea ecx, [edi + 0x1c]
mov dword [edi], vtable.p2ptoolkit::ThreadPrivateBase.0
call fcn.00462520
lea ecx, [edi + 0x14]
call fcn.004584d0
lea ecx, [edi + 0x10]
call fcn.00461b60
lea ecx, [edi + 4]
call fcn.0044efc0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45a240
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bc17d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x6522a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [edi + 0x14]
add esi, 4
mov ecx, esi
mov dword [ebp - 0x10], esi
mov eax, dword [esi]
call dword [eax + 4]
mov ecx, dword [edi + 0x14]
mov dword [ebp - 4], 0
cmp byte [ecx + 0xc], 0
jne 0x45a351
lea eax, [ecx + 0x3c]
push eax
push 0
push edi
push 0x45a580
push dword [ecx + 0x40]
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [edi + 0x14]
mov dword [ecx + 0x38], eax
mov eax, dword [edi + 0x14]
cmp dword [eax + 0x3c], 0
jne 0x45a33f
mov dword [ebp - 0x28], 3
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0x5c8d28
mov dword [ebp - 0x1c], 6
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], str.Thread
push str.unable_to_create_the_Thread
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x1c]
push eax
push 2
call fcn.0044ef70
add esp, 0x10
mov ecx, dword [ebp - 0x18]
or edi, 0xffffffff
mov byte [ebp - 4], 4
test ecx, ecx
je 0x45a31f
mov eax, edi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x45a31f
mov dword [ebp - 0x18], 0
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x24]
mov byte [ebp - 4], 5
test ecx, ecx
je 0x45a351
lock xadd dword [ecx + 4], edi
dec edi
jne 0x45a351
mov dword [ebp - 0x24], 0
mov eax, dword [ecx]
call dword [eax]
jmp 0x45a351
cmp byte [ebp + 8], 0
jne 0x45a351
lea ecx, [eax + 0x44]
add eax, 4
push eax
call fcn.00461c40
mov eax, dword [esi]
mov ecx, esi
mov dword [ebp - 4], 8
call dword [eax + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4627e0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x6522a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea eax, [ebp - 0x194]
push eax
push 0x101
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x462835
call sub.WS2_32.dll_WSAGetLastError
push eax
call fcn.00473db0
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00592832
mov esp, ebp
pop ebp
ret
Function at 0x463710
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x463734
push 0x1f
push 0x5c9780
push str.m_socket____1
call fcn.00597603
mov eax, dword [esi]
add esp, 0xc
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
push ecx
push 0x8004667e
push eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
pop esi
cmp eax, 0xffffffff
jne 0x463760
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00473db0
add esp, 4
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x6522a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x88], esi
mov eax, dword [ecx]
cmp eax, 0xffffffff
je 0x46408a
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x88], 0x80
push ecx
lea ecx, [ebp - 0x84]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x46408a
lea eax, [ebp - 0x84]
push eax
push esi
call fcn.00465510
add esp, 8
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00592832
mov esp, ebp
pop ebp
ret 4
mov ecx, esi
call fcn.00472920
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00592832
mov esp, ebp
pop ebp
ret 4
Function at 0x464850
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bd5cd
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push esi
push edi
mov eax, dword [0x6522a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [ebp + 8], 0
jne 0x464896
push 0x1eb
push str.C:Devgit_toolkitlibs_base_socket2.cpp
push str.buf___0
call fcn.00597603
add esp, 0xc
cmp dword [ebp + 0xc], 0
jg 0x4648b3
push 0x1ec
push str.C:Devgit_toolkitlibs_base_socket2.cpp
push str.len___0
call fcn.00597603
add esp, 0xc
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x18], esi
mov byte [ebp - 0x14], 0
mov dword [ebp - 0x10], eax
mov edi, dword [ebp + 0x10]
mov ecx, edi
mov dword [ebp - 4], 0
mov eax, dword [edi]
call dword [eax + 0xc]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x46491e
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov edx, dword [edi]
mov ecx, edi
mov esi, eax
call dword [edx + 4]
cmp esi, 0xffffffff
jne 0x464918
call sub.WS2_32.dll_WSAGetLastError
push eax
call fcn.00473db0
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
test esi, esi
je 0x464964
jmp 0x464903
push 0x28
lea eax, [ebp - 0x30]
push 0x5c9864
push eax
call fcn.00448a50
mov esi, eax
push 7
lea eax, [ebp - 0x24]
push str.ESocket
push eax
call fcn.00448a50
add esp, 0x18
push 0x1f4
push esi
push eax
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 2
call fcn.004734d0
push 0x642360
lea eax, [ebp - 0x54]
push eax
call fcn.00594600
lea ecx, [ebp - 0x18]
call fcn.00463f70
push 4
lea eax, [ebp - 0x30]
push str.recv
push eax
call fcn.00448a50
mov esi, eax
push 6
lea eax, [ebp - 0x24]
push str.Socket
push eax
call fcn.00448a50
push str.Connection_reset_by_peer
push esi
push eax
push 0
mov byte [ebp - 4], 4
call fcn.0044ef70
add esp, 0x28
lea ecx, [ebp - 0x24]
call fcn.004482d0
lea ecx, [ebp - 0x30]
call fcn.004482d0
push 0x28
lea eax, [ebp - 0x30]
push 0x5c9864
push eax
call fcn.00448a50
mov esi, eax
push 0x13
lea eax, [ebp - 0x24]
push str.ESocketNullByteRecv
push eax
call fcn.00448a50
add esp, 0x18
push 0x204
push esi
push eax
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 6
call fcn.00473c20
push 0x6423c0
lea eax, [ebp - 0x54]
push eax
call fcn.00594600
int3
Function at 0x464a00
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bd64d
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x6522a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x94], eax
test ebx, ebx
jne 0x464a60
push 0x17f
push str.C:Devgit_toolkitlibs_base_socket2.cpp
push str.buf___0
call fcn.00597603
add esp, 0xc
mov edi, dword [ebp + 0xc]
test edi, edi
jg 0x464a7e
push 0x180
push str.C:Devgit_toolkitlibs_base_socket2.cpp
push str.len___0
call fcn.00597603
add esp, 0xc
cmp dword [esi], 0xffffffff
je 0x464c29
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x98], 0x80
mov dword [ebp - 0xa8], esi
mov byte [ebp - 0xa4], 0
mov dword [ebp - 0xa0], eax
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 4], 2
mov eax, dword [ecx]
call dword [eax + 0xc]
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x90]
push eax
push 0
push edi
push ebx
push dword [esi]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edi, eax
mov eax, dword [ebp - 0x94]
mov ecx, eax
mov byte [ebp - 4], 3
mov edx, dword [eax]
call dword [edx + 4]
mov byte [ebp - 4], 2
cmp edi, 0xffffffff
jne 0x464b76
call sub.WS2_32.dll_WSAGetLastError
push eax
call fcn.00473db0
add esp, 4
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0xe8]
push eax
call fcn.00465510
add esp, 8
mov esi, eax
mov ebx, dword [ebp - 0x9c]
mov ecx, dword [esi]
mov byte [ebp - 4], 8
mov dword [ebx], ecx
lea ecx, [esi + 4]
push ecx
lea ecx, [ebx + 4]
call fcn.00448ed0
lea eax, [esi + 0x10]
push eax
lea ecx, [ebx + 0x10]
call fcn.00448ed0
lea eax, [esi + 0x1c]
push eax
lea ecx, [ebx + 0x1c]
call fcn.00448ed0
lea ecx, [ebp - 0xe8]
call fcn.00462890
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00592832
mov esp, ebp
pop ebp
ret 0x10
test edi, edi
jne 0x464b01
push 8
lea eax, [ebp - 0xc0]
push str.recvfrom
push eax
call fcn.00448a50
mov esi, eax
push 6
lea eax, [ebp - 0xb4]
push str.Socket
push eax
call fcn.00448a50
push str.Connection_reset_by_peer
push esi
push eax
push edi
mov byte [ebp - 4], 5
call fcn.0044ef70
add esp, 0x28
lea ecx, [ebp - 0xb4]
call fcn.004482d0
lea ecx, [ebp - 0xc0]
call fcn.004482d0
lea ecx, [ebp - 0xa8]
call fcn.00463f70
push 0x28
lea eax, [ebp - 0xc0]
push 0x5c9864
push eax
call fcn.00448a50
mov esi, eax
push 0x13
lea eax, [ebp - 0xb4]
push str.ESocketNullByteRecv
push eax
call fcn.00448a50
add esp, 0x18
push 0x19e
push esi
push eax
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 7
call fcn.00473c20
push 0x6423c0
lea eax, [ebp - 0xe4]
push eax
call fcn.00594600
push 0x28
lea eax, [ebp - 0xc0]
push 0x5c9864
push eax
call fcn.00448a50
mov esi, eax
push 7
lea eax, [ebp - 0xb4]
mov dword [ebp - 4], 0
push str.ESocket
push eax
call fcn.00448a50
add esp, 0x18
push 0x182
push esi
push eax
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 1
call fcn.004734d0
push 0x642360
lea eax, [ebp - 0xe4]
push eax
call fcn.00594600
int3
Function at 0x464c90
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bba45
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x6522a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ecx + 0xc], eax
mov ecx, dword [ecx]
cmp ecx, 0xffffffff
je 0x464d7e
test eax, eax
je 0x464d7e
push 4
lea eax, [ebp + 8]
push eax
push 0x1006
push 0xffff
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x464d7e
mov dword [ebp - 0x28], 0xb
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], str.recvtimeout
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 6
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], str.Socket
push str.Error
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
call fcn.0044ef70
add esp, 0x10
mov ecx, dword [ebp - 0x18]
or esi, 0xffffffff
mov byte [ebp - 4], 2
test ecx, ecx
je 0x464d5d
mov eax, esi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x464d5d
mov dword [ebp - 0x18], 0
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 4], 3
test ecx, ecx
je 0x464d7e
lock xadd dword [ecx + 4], esi
dec esi
jne 0x464d7e
mov dword [ebp - 0x24], 0
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x465180
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bba45
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x6522a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ecx + 0x10], eax
mov ecx, dword [ecx]
cmp ecx, 0xffffffff
je 0x46526e
test eax, eax
je 0x46526e
push 4
lea eax, [ebp + 8]
push eax
push 0x1005
push 0xffff
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x46526e
mov dword [ebp - 0x28], 0xb
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], str.recvtimeout
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 6
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], str.Socket
push str.Error
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
call fcn.0044ef70
add esp, 0x10
mov ecx, dword [ebp - 0x18]
or esi, 0xffffffff
mov byte [ebp - 4], 2
test ecx, ecx
je 0x46524d
mov eax, esi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x46524d
mov dword [ebp - 0x18], 0
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 4], 3
test ecx, ecx
je 0x46526e
lock xadd dword [ecx + 4], esi
dec esi
jne 0x46526e
mov dword [ebp - 0x24], 0
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x465280
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bd7a2
mov eax, dword fs:[0]
push eax
sub esp, 0xec
mov eax, dword [0x6522a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi], 0xffffffff
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xac], eax
je 0x465432
test ebx, ebx
jne 0x4652e9
push 0x1a9
push str.C:Devgit_toolkitlibs_base_socket2.cpp
push str.buf___0
call fcn.00597603
add esp, 0xc
mov edi, dword [ebp + 0xc]
test edi, edi
jg 0x465307
push 0x1aa
push str.C:Devgit_toolkitlibs_base_socket2.cpp
push str.len___0
call fcn.00597603
add esp, 0xc
xor eax, eax
push 1
push dword [esi + 0x18]
mov word [ebp - 0xa8], ax
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0xa8]
push eax
push dword [ebp - 0xb0]
call fcn.00462b60
add esp, 0x10
test al, al
je 0x46548b
mov ecx, dword [ebp - 0xac]
mov eax, dword [ecx]
call dword [eax + 0xc]
push dword [ebp - 0x9c]
lea eax, [ebp - 0x98]
push eax
push 0
push edi
push ebx
push dword [esi]
call dword [sym.imp.WS2_32.dll_sendto]
mov edi, eax
mov eax, dword [ebp - 0xac]
mov ecx, eax
mov dword [ebp - 4], 4
mov edx, dword [eax]
call dword [edx + 4]
mov ecx, dword [esi + 0x18]
mov dword [ebp - 0xbc], esi
mov byte [ebp - 0xb8], 0
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 4], 5
cmp edi, 0xffffffff
jne 0x4653d1
call sub.WS2_32.dll_WSAGetLastError
push eax
call fcn.00473db0
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00592832
mov esp, ebp
pop ebp
ret 0x10
test edi, edi
jne 0x4653b1
lea ecx, [ebp - 0xbc]
call fcn.00463f70
push 0x28
lea eax, [ebp - 0xc8]
push 0x5c9864
push eax
call fcn.00448a50
mov esi, eax
push 0x13
lea eax, [ebp - 0xf8]
push str.ESocketNullByteSent
push eax
call fcn.00448a50
add esp, 0x18
push 0x1c2
push esi
push eax
lea ecx, [ebp - 0xec]
mov byte [ebp - 4], 7
call fcn.00473c50
push 0x642400
lea eax, [ebp - 0xec]
push eax
call fcn.00594600
push 0x28
lea eax, [ebp - 0xbc]
push 0x5c9864
push eax
call fcn.00448a50
mov esi, eax
push 7
lea eax, [ebp - 0xc8]
mov dword [ebp - 4], 0
push str.ESocket
push eax
call fcn.00448a50
add esp, 0x18
push 0x1a7
push esi
push eax
lea ecx, [ebp - 0xec]
mov byte [ebp - 4], 1
call fcn.004734d0
push 0x642360
lea eax, [ebp - 0xec]
push eax
call fcn.00594600
push 0x28
lea eax, [ebp - 0xc8]
push 0x5c9864
push eax
call fcn.00448a50
mov esi, eax
push 0x13
lea eax, [ebp - 0xbc]
mov dword [ebp - 4], 2
push str.ESocketLookupFailed
push eax
call fcn.00448a50
add esp, 0x18
push 0x1ae
push esi
push eax
lea ecx, [ebp - 0xec]
mov byte [ebp - 4], 3
call fcn.00473950
push 0x642304
lea eax, [ebp - 0xec]
push eax
call fcn.00594600
int3
Function at 0x465980
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bba45
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x6522a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [ecx + 0x14], 0
mov al, byte [ebp + 8]
jne 0x4659b7
test al, al
je 0x465a74
mov byte [ecx + 0x14], al
mov ecx, dword [ecx]
cmp ecx, 0xffffffff
je 0x465a74
movzx eax, al
push 4
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 1
push 6
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x465a74
mov dword [ebp - 0x28], 0xa
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], str.tcpnodelay
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 6
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], str.Socket
push str.Cannot_set_TCP_NODELAY
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
call fcn.0044ef70
add esp, 0x10
mov ecx, dword [ebp - 0x18]
or esi, 0xffffffff
mov byte [ebp - 4], 2
test ecx, ecx
je 0x465a53
mov eax, esi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x465a53
mov dword [ebp - 0x18], 0
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 4], 3
test ecx, ecx
je 0x465a74
lock xadd dword [ecx + 4], esi
dec esi
jne 0x465a74
mov dword [ebp - 0x24], 0
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x465eb0
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get ntdll base address
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bd8ba
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x6522a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00474960
push 0xa0
mov dword [ebp - 4], 0
mov dword [esi], vtable.p2ptoolkit::TlsIO.0
mov dword [esi + 0xc], 0
call fcn.005927e6
mov edi, eax
add esp, 4
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 1
test edi, edi
je 0x46602f
mov dword [edi], vtable.p2ptoolkit::TlsIOPriv.0
lea ecx, [edi + 0x10]
mov dword [edi + 4], 0
mov byte [ebp - 4], 2
mov dword [edi + 8], esi
mov dword [edi + 0xc], 0
call fcn.0044ef90
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
lea ecx, [edi + 0x30]
mov byte [ebp - 4], 5
call fcn.0044ef90
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
lea ecx, [edi + 0x44]
mov byte [ebp - 4], 7
call fcn.0044ef90
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
push 0x3000
mov byte [ebp - 4], 9
mov dword [edi + 0x5c], 0
call fcn.00592824
mov dword [edi + 0x60], eax
lea eax, [edi + 0x64]
push eax
call fcn.004718f0
add esp, 8
mov byte [edi + 0x68], 0
lea ecx, [edi + 0x70]
mov byte [ebp - 4], 0xa
mov dword [edi + 0x6c], 0
call fcn.004624f0
mov dword [edi + 0x8c], 0
lea ecx, [edi + 0x98]
mov dword [edi + 0x90], 0
mov byte [ebp - 4], 0xb
mov byte [edi + 0x94], 1
call fcn.004775a0
lea ecx, [edi + 0x9c]
call fcn.004775a0
mov dword [esi + 0x10], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x10], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret