joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4522d0
Capabilities:
Get hostname
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x4ca3d1
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
mov eax, dword [0x512f80]
xor eax, esp
mov dword [esp + 0xf0], eax
push ebx
push edi
mov eax, dword [0x512f80]
xor eax, esp
push eax
lea eax, [esp + 0x100]
mov dword fs:[0], eax
mov eax, dword [esi + 0x14]
xor ebx, ebx
cmp eax, ebx
jne 0x4523fb
push 0x80
lea eax, [esp + 0x80]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x452372
push 0x2b
push str.GetIPAddrFromString__:_gethostname___failed
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
call fcn.0040e480
mov dword [esp + 0x108], ebx
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.00441880
push 0x5025fc
lea eax, [esp + 0x2c]
push eax
call fcn.00488a7c
lea ecx, [esp + 0x7c]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
je 0x4523b2
mov eax, dword [eax + 0xc]
cmp dword [eax], ebx
je 0x4523b2
mov edx, dword [eax]
mov eax, dword [edx]
mov ecx, dword [esp + 0x100]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0xf0]
xor ecx, esp
call fcn.0048162f
add esp, 0x100
ret
push 0x3d
push str.GetIPAddrFromString__:_No_addresses_returned_by_gethostname__
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
call fcn.0040e480
mov dword [esp + 0x108], 1
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.00441880
push 0x5025fc
lea edx, [esp + 0x2c]
push edx
call fcn.00488a7c
push 0xa
push str.INADDR_ANY
push eax
push ebx
mov ecx, esi
call fcn.0040c8a0
test eax, eax
je 0x45238c
cmp dword [esi + 0x18], 0x10
lea edi, [esi + 4]
jb 0x452420
mov eax, dword [edi]
jmp 0x452422
mov eax, edi
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x45238c
cmp dword [esi + 0x18], 0x10
jb 0x45243a
mov edi, dword [edi]
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
je 0x452455
mov eax, dword [eax + 0xc]
cmp dword [eax], ebx
je 0x452455
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x45238c
lea ecx, [esp + 0xc]
push esi
push ecx
mov ecx, str.Bad_sIPAddr:
call fcn.004089d0
add esp, 8
mov dword [esp + 0x108], 2
push eax
lea edx, [esp + 0x2c]
push edx
call fcn.00441880
push 0x5025fc
lea eax, [esp + 0x2c]
push eax
call fcn.00488a7c
int3
Function at 0x4526a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4cbb61
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x512f80]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x4c]
mov dword [edx + 4], eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov dword [esp + 0x44], eax
mov edx, 1
mov dword [esp + 0x14], edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x44], edx
cmp dword [ecx + 0x18], 0x10
jb 0x452706
mov ecx, dword [ecx + 4]
jmp 0x452709
add ecx, 4
push ecx
lea ebx, [esp + 0x2c]
call fcn.00454210
mov ebp, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
add esp, 4
cmp ebp, eax
jbe 0x45272b
call fcn.00483a80
mov eax, dword [esp + 0x30]
lea edi, [esp + 0x28]
mov dword [esp + 0x18], edi
cmp dword [esp + 0x2c], eax
mov ebx, eax
jbe 0x452740
call fcn.00483a80
xor esi, esi
cmp edi, esi
je 0x45274e
lea eax, [esp + 0x28]
cmp edi, eax
je 0x452753
call fcn.00483a80
cmp ebp, ebx
je 0x4527a1
cmp edi, esi
jne 0x452760
call fcn.00483a80
cmp ebp, dword [edi + 8]
jb 0x45276a
call fcn.00483a80
push 0x1499
push ebp
xor ecx, ecx
lea edi, [esp + 0x28]
call fcn.00453a30
mov esi, dword [esp + 0x4c]
mov ebx, eax
call fcn.00453e40
mov ecx, dword [esp + 0x18]
cmp ebp, dword [ecx + 8]
jb 0x452794
call fcn.00483a80
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x18]
add ebp, 0x1c
jmp 0x452733
mov byte [esp + 0x44], 0
mov edi, dword [esp + 0x2c]
cmp edi, esi
je 0x4527f5
mov ebp, dword [esp + 0x30]
cmp edi, ebp
je 0x4527ec
add edi, 0x18
lea esp, [esp]
cmp dword [edi], 0x10
jb 0x4527d1
mov eax, dword [edi - 0x14]
push eax
call fcn.004606bf
add esp, 4
mov dword [edi], 0xf
mov dword [edi - 4], esi
mov byte [edi - 0x14], 0
add edi, 0x1c
lea edx, [edi - 0x18]
cmp edx, ebp
jne 0x4527c0
mov edi, dword [esp + 0x2c]
push edi
call fcn.004606bf
add esp, 4
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
Function at 0x452d30
Capabilities:
Send data
Send data on socket

Disassembly:
push 0xffffffffffffffff
push 0x4cc528
mov eax, dword fs:[0]
push eax
sub esp, 0x74
push ebp
push esi
push edi
mov eax, dword [0x512f80]
xor eax, esp
push eax
lea eax, [esp + 0x84]
mov dword fs:[0], eax
mov esi, ecx
mov ebp, dword [esp + 0x94]
mov edi, dword [sym.imp.WS2_32.dll_WSASend]
mov eax, dword [esi]
cmp eax, 1
je 0x452d97
cmp eax, 2
je 0x452d97
push str.Allowed_to_send
push ecx
call fcn.0042c7e0
add esp, 4
push eax
mov eax, 0x91a
mov ecx, str.u:p4clients_rel_betaprojectscommon_networkWinSockHelperFunctions.h
mov edx, str.m_eState__eConfiguredForSend__m_eState__eDonePartialSend
call fcn.0042ca40
mov eax, dword [esi + 0x28]
cmp eax, dword [esi + 0x24]
jbe 0x452dc2
push str.Valid_m_uNextIncompleteSendOrReceiveWSABUFIdx
push ecx
call fcn.0042c7e0
add esp, 4
push eax
mov eax, 0x91b
mov ecx, str.u:p4clients_rel_betaprojectscommon_networkWinSockHelperFunctions.h
mov edx, str.m_uNextIncompleteSendOrReceiveWSABUFIdx___m_uCurrentOrFinalPreparedWSABUFIdx
call fcn.0042ca40
mov eax, dword [esi + 0x24]
sub eax, dword [esi + 0x28]
push 0
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
add eax, 1
push eax
push ecx
call fcn.00450690
add esp, 4
push eax
push ebp
call edi
cmp eax, 0xffffffff
je 0x452e1a
mov eax, dword [esp + 0x10]
test eax, eax
je 0x452e59
push eax
mov eax, esi
call fcn.00450820
test al, al
je 0x452d68
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x80
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2746
jne 0x452e40
lea edx, [esp + 0x30]
push edx
call fcn.00451970
push 0x502fe8
lea eax, [esp + 0x34]
push eax
call fcn.00488a7c
lea ecx, [esp + 0x30]
push ecx
call fcn.00451bf0
push 0x503030
lea edx, [esp + 0x34]
push edx
call fcn.00488a7c
push 0x3c
push str.DoBlockingSend___:_send___succeeded_but_transferred_0_bytes.
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
call fcn.0040e480
mov dword [esp + 0x8c], 0
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.00441880
push 0x5025fc
lea edx, [esp + 0x34]
push edx
call fcn.00488a7c
int3
Function at 0x452eb0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x5c
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_WSARecv]
mov ebx, eax
mov dword [esp + 8], 0
mov eax, dword [ebx]
cmp eax, 3
je 0x452efe
cmp eax, 4
je 0x452efe
cmp eax, 6
je 0x452efe
cmp eax, 7
je 0x452efe
push str.Allowed_to_receive
push ecx
call fcn.0042c7e0
add esp, 4
push eax
mov eax, 0xb6c
mov ecx, str.u:p4clients_rel_betaprojectscommon_networkWinSockHelperFunctions.h
mov edx, str.m_eState__ePreparingToReceive__m_eState__eDonePartialReceive__m_eState__ePreparingToReceiveLengthPrefixedMsg__m_eState__eDonePartialReceiveLengthPrefixedMsg
call fcn.0042ca40
mov eax, dword [ebx + 0x28]
cmp eax, dword [ebx + 0x24]
jbe 0x452f29
push str.Valid_m_uNextIncompleteSendOrReceiveWSABUFIdx
push ecx
call fcn.0042c7e0
add esp, 4
push eax
mov eax, 0xb6d
mov ecx, str.u:p4clients_rel_betaprojectscommon_networkWinSockHelperFunctions.h
mov edx, str.m_uNextIncompleteSendOrReceiveWSABUFIdx___m_uCurrentOrFinalPreparedWSABUFIdx
call fcn.0042ca40
mov eax, dword [ebx + 0x24]
sub eax, dword [ebx + 0x28]
push 0
push 0
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
add eax, 1
push eax
push ecx
call fcn.00450c90
add esp, 4
push eax
push edi
call esi
cmp eax, 0xffffffff
je 0x452f70
mov eax, dword [esp + 0xc]
test eax, eax
je 0x452faf
push eax
push ebx
call fcn.00450fe0
test al, al
je 0x452ec5
pop esi
pop ebx
add esp, 0x5c
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2746
jne 0x452f96
lea eax, [esp + 0x10]
push eax
call fcn.00451970
push 0x502fe8
lea ecx, [esp + 0x14]
push ecx
call fcn.00488a7c
lea edx, [esp + 0x10]
push edx
call fcn.00451e20
push 0x503078
lea eax, [esp + 0x14]
push eax
call fcn.00488a7c
lea ecx, [esp + 0x10]
push ecx
call fcn.00452050
push 0x5030c0
lea edx, [esp + 0x14]
push edx
call fcn.00488a7c
int3
Function at 0x452fd0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push 0xffffffffffffffff
push 0x4cc4f0
mov eax, dword fs:[0]
push eax
sub esp, 0x78
push ebx
push ebp
push esi
push edi
mov eax, dword [0x512f80]
xor eax, esp
push eax
lea eax, [esp + 0x8c]
mov dword fs:[0], eax
mov esi, ecx
mov ebp, dword [esp + 0x9c]
push 1
xor ebx, ebx
push ebp
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WS2_32.dll_shutdown]
cmp eax, 0xffffffff
jne 0x45305c
push 0x32
push str.DoBlockingConnectionShutdown___:_shutdown___failed
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.0040e480
mov dword [esp + 0x94], ebx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x3c]
push ecx
call fcn.00441880
push 0x5025fc
lea edx, [esp + 0x3c]
push edx
call fcn.00488a7c
call fcn.00450510
mov edi, esi
call fcn.00450980
push eax
call fcn.00450a40
push ebx
push ebx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00450f70
push eax
push ecx
mov ebx, esi
call fcn.00450c90
add esp, 4
push eax
push ebp
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
je 0x4530e9
jmp 0x4530a0
cmp dword [esp + 0x18], 0
je 0x453134
call fcn.00450510
mov edi, esi
call fcn.00450980
push eax
call fcn.00450a40
push 0
push 0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.00450f70
push eax
push ecx
mov ebx, esi
call fcn.00450c90
add esp, 4
push eax
push ebp
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x4530a0
xor eax, eax
push 0x2e
push str.DoBlockingConnectionShutdown___:_recv___failed
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], eax
mov byte [esp + 0x28], al
call fcn.0040e480
mov dword [esp + 0x94], 1
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.00441880
push 0x5025fc
lea eax, [esp + 0x3c]
push eax
call fcn.00488a7c
mov ecx, dword [esp + 0x8c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret
Function at 0x453150
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ca65e
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x512f80]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push esi
push edi
mov eax, dword [0x512f80]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
xor esi, esi
push esi
push 1
push 2
mov edi, ecx
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4531ec
push 0x2b
push str.WSASocket___failed_to_create_session_socket
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], esi
mov byte [esp + 0x24], 0
call fcn.0040e480
mov dword [esp + 0xb8], esi
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x48]
push ecx
call fcn.00441880
push 0x5025fc
lea edx, [esp + 0x48]
push edx
call fcn.00488a7c
mov ecx, dword [sym.imp.WS2_32.dll_closesocket]
lea eax, [esp + 0x34]
push ebx
push eax
call fcn.00454270
add esp, 8
mov dword [esp + 0xb8], 1
lea esi, [esp + 0x98]
call fcn.0040e850
lea ecx, [esp + 0x14]
push ecx
push 0x8004667e
push ebx
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x453280
push 0x24
push str.Failed_to_set_socket_to_non_blocking
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], 0
mov byte [esp + 0x24], 0
call fcn.0040e480
mov byte [esp + 0xb8], 2
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x48]
push eax
call fcn.00441880
push 0x5025fc
lea ecx, [esp + 0x48]
push ecx
call fcn.00488a7c
push 0x10
lea edx, [esp + 0x9c]
push edx
push ebx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4532d0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x4532d0
lea eax, [esp + 0x18]
push eax
push edi
call fcn.0040e7e0
mov byte [esp + 0xb8], 3
push eax
lea ecx, [esp + 0x48]
push ecx
call fcn.00451750
push 0x502fa0
lea edx, [esp + 0x48]
push edx
call fcn.00488a7c
mov byte [esp + 0x38], 1
mov dword [esp + 0xb8], 0xffffffff
lea eax, [esp + 0x34]
push eax
call fcn.00453ec0
mov eax, ebx
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.0048162f
mov esp, ebp
pop ebp
ret
Function at 0x453310
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ca60b
mov eax, dword fs:[0]
push eax
sub esp, 0x290
push ebx
mov eax, dword [0x512f80]
xor eax, esp
push eax
lea eax, [esp + 0x298]
mov dword fs:[0], eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x190]
push edx
lea ecx, [esp + 0x8c]
xor ebx, ebx
push ecx
mov eax, 1
push ebx
push eax
mov dword [esp + 0x9c], esi
mov dword [esp + 0x98], eax
mov dword [esp + 0x1a4], esi
mov dword [esp + 0x1a0], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x4533d5
push 0xe
push str.select_failed:
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.0040e480
mov dword [esp + 0x2a0], ebx
push ebx
push 2
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.00431600
push 0x5026d0
lea ecx, [esp + 0x34]
push ecx
call fcn.00488a7c
lea edx, [esp + 0x84]
push edx
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4533fd
mov al, 1
mov ecx, dword [esp + 0x298]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x18c]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x453433
push 0x274d
call dword [sym.imp.WS2_32.dll_WSASetLastError]
lea ecx, [esp + 0x30]
push ecx
call fcn.004516a0
push 0x502fa0
lea edx, [esp + 0x34]
push edx
call fcn.00488a7c
xor al, al
mov ecx, dword [esp + 0x298]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4535c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x5c
test esi, esi
push ebx
push ebp
mov ebp, dword [esp + 0x68]
push edi
mov ebx, eax
jne 0x4535f3
push str.NonNullCallerCommandStatusControlPtr
push ecx
call fcn.0042c7e0
add esp, 4
push eax
mov eax, 0x566
mov ecx, str.......CommonNetworkWinSockHelperFunctions.cpp
mov edx, str.pCommandStatusControl
call fcn.0042ca40
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
mov dword [esp + 0xc], 0
call edx
test al, al
jne 0x4536ed
mov edi, dword [sym.imp.WS2_32.dll_WSARecv]
mov eax, dword [ebx]
cmp eax, 3
je 0x45364b
cmp eax, 4
je 0x45364b
cmp eax, 6
je 0x45364b
cmp eax, 7
je 0x45364b
push str.Allowed_to_receive
push ecx
call fcn.0042c7e0
add esp, 4
push eax
mov eax, 0xb6c
mov ecx, str.u:p4clients_rel_betaprojectscommon_networkWinSockHelperFunctions.h
mov edx, str.m_eState__ePreparingToReceive__m_eState__eDonePartialReceive__m_eState__ePreparingToReceiveLengthPrefixedMsg__m_eState__eDonePartialReceiveLengthPrefixedMsg
call fcn.0042ca40
mov eax, dword [ebx + 0x28]
cmp eax, dword [ebx + 0x24]
jbe 0x453676
push str.Valid_m_uNextIncompleteSendOrReceiveWSABUFIdx
push ecx
call fcn.0042c7e0
add esp, 4
push eax
mov eax, 0xb6d
mov ecx, str.u:p4clients_rel_betaprojectscommon_networkWinSockHelperFunctions.h
mov edx, str.m_uNextIncompleteSendOrReceiveWSABUFIdx___m_uCurrentOrFinalPreparedWSABUFIdx
call fcn.0042ca40
mov eax, dword [ebx + 0x24]
sub eax, dword [ebx + 0x28]
push 0
push 0
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
add eax, 1
push eax
push ecx
call fcn.00450c90
add esp, 4
push eax
push ebp
call edi
cmp eax, 0xffffffff
jne 0x4536c0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4536f6
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov ecx, esi
call edx
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4536dc
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov ecx, esi
call edx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x453735
push eax
push ebx
call fcn.00450fe0
test al, al
jne 0x45374e
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
test al, al
je 0x453612
xor al, al
pop edi
pop ebp
pop ebx
add esp, 0x5c
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2746
jne 0x45371c
lea eax, [esp + 0x14]
push eax
call fcn.00451970
push 0x502fe8
lea ecx, [esp + 0x18]
push ecx
call fcn.00488a7c
lea edx, [esp + 0x14]
push edx
call fcn.00451e20
push 0x503078
lea eax, [esp + 0x18]
push eax
call fcn.00488a7c
lea ecx, [esp + 0x14]
push ecx
call fcn.00452050
push 0x5030c0
lea edx, [esp + 0x18]
push edx
call fcn.00488a7c
pop edi
pop ebp
mov al, 1
pop ebx
add esp, 0x5c
ret
Function at 0x453800
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
mov esi, eax
mov dword [esp + 0x10], 0
call fcn.00450510
mov edi, esi
call fcn.00450980
push eax
call fcn.00450a40
push 0
push 0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.00450f70
push eax
push ecx
mov ebx, esi
call fcn.00450c90
mov edx, dword [esp + 0x34]
add esp, 4
push eax
push edx
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
je 0x453862
cmp dword [esp + 0x14], 0
je 0x453862
xor al, al
pop edi
pop esi
pop ebx
add esp, 0xc
ret
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0xc
ret

Function at 0x456320
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c91c6
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x512f80]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, dword [esp + 0x58]
xor ebx, ebx
lea ebp, [esi + 4]
mov dword [esi], ebx
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
mov dword [esp + 0x50], ebx
lea edi, [esi + 0x14]
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov byte [esp + 0x50], 1
xor ecx, ecx
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov eax, edi
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
call fcn.00458bf0
xor eax, eax
push eax
push eax
mov eax, ebp
call fcn.00458b50
call fcn.00450510
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x4563bb
mov ecx, dword [edi + 8]
sub ecx, eax
sar ecx, 4
jne 0x4563c0
call fcn.00483a80
mov edx, dword [esp + 0x5c]
mov ebp, dword [edi + 4]
push edx
call fcn.00481d2d
mov dword [ebp + 4], eax
mov eax, dword [edi + 4]
add esp, 4
cmp eax, ebx
je 0x4563e4
mov ecx, dword [edi + 8]
sub ecx, eax
sar ecx, 4
jne 0x4563e9
call fcn.00483a80
mov edx, dword [edi + 4]
cmp dword [edx + 4], ebx
jne 0x456411
push str.CWSABUFWrapper___failed_to_malloc___pMallocedDataBuffer
lea eax, [esp + 0x20]
push eax
mov cl, 1
call fcn.0040e5f0
push 0x5026f0
lea ecx, [esp + 0x20]
push ecx
call fcn.00488a7c
mov eax, edx
cmp eax, ebx
je 0x456421
mov edx, dword [edi + 8]
sub edx, eax
sar edx, 4
jne 0x456426
call fcn.00483a80
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x5c]
mov dword [eax], ecx
mov dword [esp + 0x50], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 8
Function at 0x458170
Capabilities:
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x4cbaea
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
mov eax, dword [0x512f80]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
test edi, edi
je 0x458290
call fcn.00453150
mov ecx, dword [sym.imp.WS2_32.dll_closesocket]
mov esi, eax
lea eax, [esp + 0x14]
push esi
push eax
call fcn.00454270
add esp, 8
mov dword [esp + 0x58], 0
call fcn.00453310
test al, al
jne 0x4581f3
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
nop
mov edx, dword [edi]
mov eax, dword [edx + 8]
mov ecx, edi
call eax
test al, al
jne 0x458227
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
push 0
call ebx
call fcn.00453310
test al, al
je 0x4581d0
mov edx, dword [edi]
mov eax, dword [edx + 0x10]
mov ecx, edi
mov byte [esp + 0x18], 1
call eax
mov dword [esp + 0x58], 0xffffffff
lea ecx, [esp + 0x14]
push ecx
call fcn.00453ec0
mov eax, esi
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x50
ret
push 4
lea ecx, [esp + 0x14]
push ecx
push 0x80
push 0xffff
push esi
mov word [esp + 0x24], 1
mov word [esp + 0x26], 0
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x458270
push 0x464
push str.....CommonSrcConfigServerClientCommands.cpp
push str._0__SetSocketToAbortWhenClosed_Socket_____false
push ecx
call fcn.0042c7e0
add esp, 4
mov ecx, eax
call fcn.0042ca10
push str.Command_aborted
lea edx, [esp + 0x28]
push edx
mov cl, 1
call fcn.0040e5f0
push 0x5026f0
lea eax, [esp + 0x28]
push eax
call fcn.00488a7c
call fcn.00452a50
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x50
ret

Function at 0x45c7c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c7001
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
mov eax, dword [0x512f80]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov esi, dword [esp + 0x68]
xor ebx, ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
mov dword [esp + 0x60], 1
push ebx
lea eax, [esp + 0x30]
push eax
call fcn.004808c0
push eax
call fcn.0045c900
mov dword [esp + 0xc], 1
mov byte [esp + 0x60], bl
cmp dword [esp + 0x28], 0x10
jb 0x45c838
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004606bf
add esp, 4
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
mov eax, esi
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x58
ret 4