joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42b910
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x2c]
test al, 1
je 0x42b924
mov eax, 0xfffff00d
pop ebp
ret
test eax, 0x8000
jne 0x42b932
mov eax, 0xfffff031
pop ebp
ret
mov eax, dword [ecx + 8]
sub eax, 7
je 0x42b95d
sub eax, 5
je 0x42b954
sub eax, 2
je 0x42b94b
mov eax, 0xfffff02a
pop ebp
ret
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.00433150
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.0042f1a0
mov eax, 0xfffff008
pop ebp
ret

Function at 0x42c7d0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je fcn.004ade1a
pop ebp
ret

Function at 0x42ca30
Capabilities:
Create thread
Get system information on windows
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, dword [ebp + 0xc]
push edi
test byte [esi], 1
je 0x42ca5d
mov esi, dword [esi + 4]
test esi, esi
je 0x42ca5f
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [ebp - 0x20]
dec esi
add esi, eax
neg eax
and esi, eax
jmp 0x42ca5f
xor esi, esi
push 0xc
call fcn.00425da0
mov edi, eax
add esp, 4
test edi, edi
jne 0x42ca7a
pop edi
mov eax, 0xfffff027
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
push 0
push 4
push edi
push 0x42c510
mov dword [edi], eax
mov eax, dword [ebp + 0x14]
push esi
push 0
mov dword [edi + 4], eax
call fcn.004a99a1
mov ecx, eax
add esp, 0x18
test ecx, ecx
jne 0x42caef
call fcn.004ad799
push edi
mov esi, dword [eax]
call fcn.00425c40
add esp, 4
cmp esi, 0x16
ja case.0x42cabc.1
movzx eax, byte [esi + 0x42cb1c]
jmp dword [eax*4 + 0x42cb08]
pop edi
mov eax, 0xfffff004
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 0xfffff008
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 0xfffff019
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 0xfffff01a
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
push ecx
mov dword [eax], ecx
mov dword [edi + 8], ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42dab0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ecx, dword [ebx + 0x3c]
cmp ecx, 0xffffffff
jne 0x42db21
mov eax, dword [esi + 0x2c]
lea edi, [esi + 0x2c]
test al, 0x40
je 0x42db90
mov ecx, eax
and ecx, 0xffffffbf
add dword [esi + 0x40], 0xffffffff
mov dword [edi], ecx
jne 0x42daf7
test cl, 1
jne 0x42daf7
test al, 4
je 0x42daf7
and eax, 0xffffffbb
mov dword [edi], eax
test al, 8
je 0x42daf7
mov eax, dword [esi + 4]
dec dword [eax + 4]
cmp dword [esi + 0x88], 0
je 0x42db90
push dword [ebx + 0x20]
call fcn.00440310
push eax
call fcn.0042bce0
push eax
mov eax, dword [esi + 0x88]
push esi
call eax
add esp, 0x10
jmp 0x42db90
cmp dword [ebx + 0x20], 0
jl 0x42db6e
push 4
lea eax, [esi + 0x90]
push eax
push 0x700b
push 0xffff
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x42db6e
mov eax, dword [esi + 0xa0]
mov dword [ebx + 0x168], eax
mov eax, dword [esi + 0x88]
mov dword [esi + 0xa0], ebx
test eax, eax
je 0x42db69
push 0
push esi
call eax
add esp, 8
lea edi, [esi + 0x2c]
jmp 0x42db90
push dword [ebx + 0x3c]
call dword [sym.imp.WS2_32.dll_closesocket]
lea edi, [esi + 0x2c]
mov dword [ebx + 0x3c], 0xffffffff
test byte [edi], 0x40
je 0x42db90
push ebx
push esi
call fcn.0042e7d0
add esp, 8
mov ecx, dword [esi + 0x3c]
mov eax, dword [edi]
dec ecx
mov dword [esi + 0x3c], ecx
test al, 1
je 0x42dbb6
test ecx, ecx
jne 0x42dbb6
test al, 0x20
jne 0x42dbb6
mov ecx, dword [ebp + 8]
or eax, 0x20
mov dword [edi], eax
mov eax, dword [ecx + 0x2c]
mov dword [esi + 0x28], eax
mov dword [ecx + 0x2c], esi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x42dbc0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
add dword [esi + 0x40], 0xffffffff
jne 0x42dbe9
mov eax, dword [esi + 0x2c]
test al, 1
jne 0x42dbe9
test al, 4
je 0x42dbe9
and eax, 0xfffffffb
mov dword [esi + 0x2c], eax
test al, 8
je 0x42dbe9
mov eax, dword [esi + 4]
dec dword [eax + 4]
mov edi, dword [ebp + 8]
push ebx
xor ebx, ebx
dec dword [edi + 0x10]
mov eax, dword [esi + 0x94]
test eax, eax
je 0x42dc04
mov dword [esi + 0x94], ebx
jmp 0x42dc56
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x20]
test eax, eax
js 0x42dc4d
test byte [esi + 0x2c], 1
je 0x42dc1b
mov ebx, 0x3e3
jmp 0x42dc58
push 0
push 0
push 0x7010
push 0xffff
push dword [esi + 0x90]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x42dc45
or dword [esi + 0x2c], 0xc080
inc dword [edi + 0x5c]
jmp 0x42dc58
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x42dc56
push eax
call fcn.00440310
add esp, 4
mov ebx, eax
push ebx
call fcn.0042bce0
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [eax + 0x3c]
call eax
mov ecx, dword [esi + 0x3c]
add esp, 0xc
mov eax, dword [esi + 0x2c]
dec ecx
mov dword [esi + 0x3c], ecx
pop ebx
test al, 1
je 0x42dc91
test ecx, ecx
jne 0x42dc91
test al, 0x20
jne 0x42dc91
or eax, 0x20
mov dword [esi + 0x2c], eax
mov eax, dword [edi + 0x2c]
mov dword [esi + 0x28], eax
mov dword [edi + 0x2c], esi
pop edi
pop esi
pop ebp
ret
Function at 0x42ea40
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
xorps xmm0, xmm0
push esi
push edi
mov dword [ebp - 8], 0x50d59c
lea esi, [ebx + 0x44]
mov dword [ebp - 0xc], 0
lea ecx, [esi + 0x20]
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
lea edi, [esi + 0x3c]
or dword [ebx + 0x2c], 0x40000
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
test dword [ebx + 0x2c], 0x80000
je 0x42ea92
mov eax, dword [edi]
or eax, 1
mov dword [esi + 0x30], eax
push 0
push ecx
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
lea eax, [ebp - 4]
push eax
push 1
lea eax, [ebp - 0xc]
push eax
push dword [ebx + 0x90]
call dword [sym.imp.WS2_32.dll_WSARecv]
mov ecx, dword [ebx + 0x2c]
inc dword [ebx + 0x3c]
or ecx, 0x10000
mov dword [ebx + 0x2c], ecx
test eax, eax
jne 0x42eb0b
test ecx, 0x20000
je 0x42eb2b
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov dword [esi + 0x24], eax
mov dword [esi + 0x38], 0
mov eax, dword [ecx + 0x28]
test eax, eax
je 0x42eafe
mov eax, dword [eax + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [ecx + 0x28]
pop edi
mov dword [eax + 0x38], esi
mov dword [ecx + 0x28], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x38], esi
pop edi
mov dword [ecx + 0x28], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x42eb28
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
test eax, eax
jg 0x42eb64
call edi
jmp 0x42eb6e
lea edi, [esi + 0x3c]
test dword [ebx + 0x2c], 0x80000
je 0x42eb7d
cmp dword [esi + 0x40], 0xffffffff
lea eax, [esi + 0x40]
jne 0x42eb7d
push 4
push 0xffffffffffffffff
push esi
push 0x42d930
push dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x42eb7d
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
jg 0x42eb64
call edi
jmp 0x42eb6e
call edi
movzx eax, ax
or eax, 0x80070000
push esi
push dword [ebp + 8]
mov dword [esi + 0x20], eax
call fcn.0042d9b0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42ec40
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp + 0xc], 1
cmp dword [esi + 0x90], 0xffffffff
je 0x42ec5f
mov eax, 0xfffff00e
pop esi
pop ebp
ret
push edi
mov edi, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push 0x8004667e
push edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x42ec81
pop edi
pop esi
pop ebp
jmp dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0
push 1
push edi
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x42ec99
pop edi
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp + 8]
push 0
push edi
push dword [eax + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
jne 0x42ecb9
cmp dword [ebp + 0x18], eax
je 0x42ecee
or dword [esi + 0x2c], 0x80000
cmp dword [ebp + 0x14], 0x17
mov ecx, dword [0x797b54]
cmove ecx, dword [0x797b50]
mov eax, dword [esi + 0x2c]
test eax, 0x80000
jne 0x42ed01
test ecx, ecx
jne 0x42ed01
push 3
push edi
call dword [sym.imp.KERNEL32.dll_SetFileCompletionNotificationModes]
test eax, eax
jne 0x42ecf7
pop edi
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
or dword [esi + 0x2c], 0x20000
mov eax, dword [esi + 0x2c]
test eax, 0x1000000
je 0x42ed18
push 1
push edi
push esi
call fcn.0042e7a0
add esp, 0xc
test eax, eax
jne 0x42ed48
test dword [esi + 0x2c], 0x2000000
je 0x42ed33
push 0x3c
push 1
push edi
push esi
call fcn.0042e500
add esp, 0x10
test eax, eax
jne 0x42ed48
cmp dword [ebp + 0x14], 0x17
mov dword [esi + 0x90], edi
jne 0x42ed46
or dword [esi + 0x2c], 0x400000
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x42ed50
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
and ebx, 1
push edi
mov edi, dword [ebp + 0xc]
cmp dword [esi + 0x90], 0xffffffff
jne 0x42edd4
test ebx, ebx
je 0x42ed82
cmp word [edi], 0x17
je 0x42ed82
pop edi
pop esi
mov eax, 0x57
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, word [edi]
push 0
push 1
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, eax
mov dword [ebp + 8], ecx
cmp ecx, 0xffffffff
jne 0x42eda7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, word [edi]
push 0
push eax
push ecx
push esi
push dword [esi + 4]
call fcn.0042ec40
add esp, 0x14
mov dword [ebp - 4], eax
test eax, eax
je 0x42edd4
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp word [edi], 0x17
jne 0x42edf3
push 4
lea eax, [ebp + 8]
mov dword [ebp + 8], ebx
push eax
push 0x1b
push 0x29
push dword [esi + 0x90]
call dword [sym.imp.WS2_32.dll_setsockopt]
push dword [ebp + 0x10]
push edi
push dword [esi + 0x90]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x42ee1b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2740
jne 0x42ee24
mov dword [esi + 0x94], eax
or dword [esi + 0x2c], 0x2000
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42fcf0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x50a124]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x94], eax
push edi
and dword [esi + 0x2c], 0xfffeffff
mov eax, dword [ebx + 0x20]
test eax, eax
jns 0x42fdb6
push eax
call fcn.00440310
mov edi, eax
add esp, 4
cmp edi, 0x2738
je 0x42fdb6
cmp edi, 0x2746
je 0x42fda9
cmp edi, 0x2744
je 0x42fda9
test dword [esi + 0x2c], 0x1000
je 0x42ff24
push esi
call fcn.00428310
add esp, 4
test dword [esi + 0x2c], 0x40000
je 0x42fd77
push 0
push 0
call fcn.004261d0
add esp, 8
jmp 0x42fd83
mov eax, dword [esi + 0x80]
mov edx, dword [esi + 0x84]
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], edx
push 0
push 0
lea eax, [ebp - 0x8c]
push eax
push edi
call fcn.0042bce0
add esp, 4
push eax
jmp 0x42ff18
test dword [esi + 0x2c], 0x40000
je 0x42ff24
mov eax, dword [esi + 0x2c]
test eax, 0x40000
jne 0x42fde0
mov eax, dword [ebx + 0x20]
sar eax, 0x1f
and eax, 2
push eax
lea eax, [esi + 0x88]
push eax
lea eax, [esi + 0x80]
push eax
push dword [ebx + 0x24]
jmp 0x42ff18
test eax, 0x1000
je 0x42ff24
push 0
push 0
call fcn.004261d0
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x8c]
push eax
mov eax, dword [esi + 0x110]
push 0x10000
push esi
mov dword [ebp - 0x88], edx
call eax
add esp, 0x14
cmp dword [ebp - 0x88], 0
je 0x42ff08
cmp dword [ebp - 0x8c], 0
je 0x42ff08
push 0x80
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.00482150
add esp, 0xc
mov dword [ebp - 0x98], 0x80
lea eax, [ebp - 0x98]
mov dword [ebp - 0x9c], 0
push 0
push 0
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x90]
push eax
push 1
lea eax, [ebp - 0x8c]
push eax
push dword [esi + 0x38]
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
cmp eax, 0xffffffff
je 0x42feab
push 0
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x8c]
push eax
push dword [ebp - 0x90]
jmp 0x42ff18
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2738
jne 0x42fed3
push 2
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x8c]
push eax
push dword [ebp - 0x90]
jmp 0x42ff18
cmp edi, 0x2733
jne 0x42feea
push 0
push 0
lea eax, [ebp - 0x8c]
push eax
push 0
jmp 0x42ff18
cmp edi, 0x2746
je 0x42fedb
cmp edi, 0x2744
je 0x42fedb
push esi
call fcn.00428310
add esp, 4
jmp 0x42fd8f
push 0
push 0
lea eax, [ebp - 0x8c]
push eax
push 0xfffff024
mov eax, dword [esi + 0x10c]
push esi
call eax
add esp, 0x14
mov eax, dword [esi + 0x2c]
mov ebx, dword [ebp - 0x94]
and eax, 0x11000
cmp eax, 0x1000
jne 0x42ff43
push esi
push ebx
call fcn.004305c0
add esp, 8
mov ecx, dword [esi + 0x3c]
mov eax, dword [esi + 0x2c]
dec ecx
mov dword [esi + 0x3c], ecx
test al, 1
je 0x42ff68
test ecx, ecx
jne 0x42ff68
test al, 0x20
jne 0x42ff68
or eax, 0x20
mov dword [esi + 0x2c], eax
mov eax, dword [ebx + 0x2c]
mov dword [esi + 0x28], eax
mov dword [ebx + 0x2c], esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047f334
mov esp, ebp
pop ebp
ret
Function at 0x430010
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x20]
xorps xmm0, xmm0
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 0
mov ebx, dword [esi + 4]
lea ecx, [edi + 0x20]
push ecx
push dword [ebp + 0x1c]
mov dword [edi + 0x40], eax
lea eax, [ebp + 0xc]
push dword [ebp + 0x18]
mov dword [edi + 4], 5
push 0
push eax
push dword [ebp + 0x14]
mov dword [edi + 0x3c], esi
push dword [ebp + 0x10]
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
push dword [esi + 0x38]
call dword [sym.imp.WS2_32.dll_WSASendTo]
test eax, eax
jne 0x4300d1
test dword [esi + 0x2c], 0x20000
je 0x4300e8
mov dword [edi + 0x34], eax
mov ecx, dword [esi + 0x40]
inc dword [esi + 0x3c]
mov eax, dword [edi + 0x34]
add dword [esi + 0x30], eax
inc dword [esi + 0x34]
lea eax, [ecx + 1]
mov dword [esi + 0x40], eax
test ecx, ecx
jne 0x43009d
mov eax, dword [esi + 0x2c]
test al, 4
jne 0x43009d
or eax, 4
mov dword [esi + 0x2c], eax
test al, 8
je 0x43009d
mov eax, dword [esi + 4]
inc dword [eax + 4]
inc dword [ebx + 0x10]
mov dword [edi + 0x38], 0
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x4300c4
mov eax, dword [eax + 0x38]
mov dword [edi + 0x38], eax
mov eax, dword [ebx + 0x28]
mov dword [eax + 0x38], edi
xor eax, eax
mov dword [ebx + 0x28], edi
pop edi
pop esi
pop ebx
pop ebp
ret
mov dword [edi + 0x38], edi
xor eax, eax
mov dword [ebx + 0x28], edi
pop edi
pop esi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x4300e8
pop edi
pop esi
pop ebx
pop ebp
jmp dword [sym.imp.WS2_32.dll_WSAGetLastError]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00425b50
mov dword [edi + 0x34], eax
add esp, 8
mov ecx, dword [esi + 0x40]
inc dword [esi + 0x3c]
mov eax, dword [edi + 0x34]
add dword [esi + 0x30], eax
inc dword [esi + 0x34]
lea eax, [ecx + 1]
mov dword [esi + 0x40], eax
test ecx, ecx
jne 0x430129
mov eax, dword [esi + 0x2c]
test al, 4
jne 0x430129
or eax, 4
mov dword [esi + 0x2c], eax
test al, 8
je 0x430129
mov eax, dword [esi + 4]
inc dword [eax + 4]
inc dword [ebx + 0x10]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4301d0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
test dword [esi + 0x2c], 0x2000
jne 0x430221
cmp edi, 0x10
jne 0x4301f0
mov eax, 0x797b40
jmp 0x4301fa
cmp edi, 0x1c
jne 0x430218
mov eax, 0x797b20
push 0
push edi
push eax
push esi
call fcn.004304a0
add esp, 0x10
test eax, eax
je 0x430221
push eax
call fcn.0042bce0
add esp, 4
pop edi
pop esi
pop ebp
ret
pop edi
mov eax, 0xfffff019
pop esi
pop ebp
ret
push edi
push dword [ebp + 0xc]
push dword [esi + 0x38]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x430245
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0042bce0
add esp, 4
pop edi
pop esi
pop ebp
ret
or dword [esi + 0x2c], 0x2000000
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x430260
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x50a124]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x84]
push 0x80
push 0
push eax
call fcn.00482150
add esp, 0xc
lea eax, [ebp - 0x84]
push 0x80
push eax
push dword [esi + 0x38]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x4302c4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0042bce0
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f334
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
and dword [esi + 0x2c], 0xfdffffff
xor ecx, ebp
pop esi
call fcn.0047f334
mov esp, ebp
pop ebp
ret

Function at 0x430320
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
lea edi, [esi + 0x10]
lea eax, [ecx + 8]
mov dword [esi + 4], ecx
mov dword [esi + 8], 0xf
mov dword [esi + 0x2c], 8
mov dword [edi], eax
mov eax, dword [ecx + 0xc]
mov dword [esi + 0x14], eax
mov dword [eax], edi
mov eax, dword [sym.imp.WS2_32.dll_WSARecv]
mov dword [ecx + 0xc], edi
mov dword [esi + 0x114], eax
mov eax, dword [sym.imp.WS2_32.dll_WSARecvFrom]
mov dword [esi + 0x118], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x18], 0xffffffff
mov dword [esi + 0x38], 0xffffffff
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x48], 0x10
mov dword [esi + 0x64], 0
mov dword [esi + 0x44], esi
test eax, eax
je 0x43041a
push 0
push 2
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4303dd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [esi + 0x14]
mov ecx, dword [edi]
push eax
mov dword [edx], ecx
mov edx, dword [edi]
mov ecx, dword [esi + 0x14]
mov dword [edx + 4], ecx
call fcn.0042bce0
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
ret
push dword [ebp + 0x14]
push ebx
push esi
push dword [esi + 4]
call fcn.00430a00
add esp, 0x10
mov dword [ebp + 0x14], eax
test eax, eax
je 0x43041a
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, dword [esi + 0x14]
mov ecx, dword [edi]
push dword [ebp + 0x14]
mov dword [edx], ecx
mov ecx, dword [edi]
mov eax, dword [esi + 0x14]
mov dword [ecx + 4], eax
call fcn.0042bce0
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x4304a0
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 8], 0
test dword [esi + 0x2c], 0x2000
je 0x4304c1
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, eax
push edi
mov edi, dword [ebp + 0xc]
and ebx, 1
je 0x4304e2
cmp word [edi], 0x17
je 0x4304e2
pop edi
pop ebx
mov eax, 0x57
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x38], 0xffffffff
jne 0x430532
movzx eax, word [edi]
push 0
push 2
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, eax
mov dword [ebp + 8], ecx
cmp ecx, 0xffffffff
je 0x430596
movzx eax, word [edi]
push eax
push ecx
push esi
push dword [esi + 4]
call fcn.00430a00
add esp, 0x10
mov dword [ebp - 4], eax
test eax, eax
je 0x43052f
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
test al, 4
mov eax, dword [sym.imp.WS2_32.dll_setsockopt]
je 0x43055e
push 4
lea ecx, [ebp + 8]
mov dword [ebp + 8], 1
push ecx
push 4
push 0xffff
push dword [esi + 0x38]
call eax
cmp eax, 0xffffffff
je 0x430596
mov eax, dword [sym.imp.WS2_32.dll_setsockopt]
cmp word [edi], 0x17
jne 0x430584
or dword [esi + 0x2c], 0x400000
cmp word [edi], 0x17
jne 0x430584
test ebx, ebx
jne 0x430584
push 4
lea ecx, [ebp - 8]
push ecx
push 0x1b
push 0x29
push dword [esi + 0x38]
call eax
push dword [ebp + 0x10]
push edi
push dword [esi + 0x38]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x4305a3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
or dword [esi + 0x2c], 0x2000
xor eax, eax
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x430840
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
test dword [esi + 0x2c], 0x400000
jne 0x4308f3
push 4
push 0x10
push 0x797b40
push esi
call fcn.004304a0
add esp, 0x10
test eax, eax
jne 0x4308de
mov eax, dword [ebp + 0x10]
xorps xmm0, xmm0
movlpd qword [ebp - 8], xmm0
test eax, eax
je 0x430894
lea ecx, [ebp - 4]
push ecx
push eax
push 2
call fcn.004411b0
add esp, 0xc
test eax, eax
je 0x43089f
pop esi
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
sub eax, 0
je 0x4308bc
sub eax, 1
jne 0x4308f3
mov eax, 0xc
jmp 0x4308c1
mov eax, 0xd
push 8
lea ecx, [ebp - 8]
push ecx
push eax
push 0
push dword [esi + 0x38]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x4308ec
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0042bce0
add esp, 4
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0xfffff019
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x430900
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x50a124]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [esi + 0x2c]
and eax, 0x402000
cmp eax, 0x2000
je 0x4309e3
push 4
push 0x1c
push 0x797b20
push esi
call fcn.004304a0
add esp, 0x10
test eax, eax
jne 0x4309b6
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
movlpd qword [ebp - 0x10], xmm0
test edi, edi
je 0x430971
lea eax, [ebp - 0x34]
push eax
push 0
push edi
call fcn.00427210
add esp, 0xc
test eax, eax
jne 0x4309e3
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], eax
jmp 0x430978
mov dword [ebp - 8], 0
movups xmm0, xmmword [ebx + 8]
mov eax, dword [ebp + 0x14]
movups xmmword [ebp - 0x18], xmm0
sub eax, 0
je 0x430994
sub eax, 1
jne 0x4309e3
mov eax, 0xc
jmp 0x430999
mov eax, 0xd
push 0x14
lea ecx, [ebp - 0x18]
push ecx
push eax
push 0x29
push dword [esi + 0x38]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x4309d0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0042bce0
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f334
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f334
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0xfffff019
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047f334
mov esp, ebp
pop ebp
ret