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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
push edi
mov edi, edx
cmp esi, 0xffffffff
jne 0x42be05
mov eax, dword [0x6c9a40]
test al, 1
jne 0x42bdcc
or eax, 1
mov ecx, 0x6c9a30
mov dword [0x6c9a40], eax
call fcn.00424d50
mov eax, dword [0x6c9a30]
mov ecx, 0x6c9a30
push 0x2719
mov dword [ebp - 0x10], 0x2719
mov eax, dword [eax + 0x18]
call eax
mov byte [ebp - 0xc], al
mov eax, dword [ebp + 0xc]
movq xmm0, qword [ebp - 0x10]
movq qword [eax], xmm0
mov dword [eax + 8], 0x6c9a30
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
lea eax, [ebp - 4]
mov dword [ebp - 4], 1
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, dword [ebp + 0xc]
mov ecx, eax
mov edx, esi
call fcn.0044a7e0
test eax, eax
js 0x42bdfd
mov eax, dword [0x6c9a40]
mov dword [ebp - 0x10], 0
mov byte [ebp - 0xc], 0
test al, 1
jne 0x42be5a
or eax, 1
mov ecx, 0x6c9a30
mov dword [0x6c9a40], eax
call fcn.00424d50
movq xmm0, qword [ebp - 0x10]
mov al, 1
movq qword [esi], xmm0
mov dword [esi + 8], 0x6c9a30
or byte [edi], 2
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x42be80
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
push edi
mov edi, edx
cmp esi, 0xffffffff
jne 0x42bee6
mov eax, dword [0x6c9a40]
test al, 1
jne 0x42beac
or eax, 1
mov ecx, 0x6c9a30
mov dword [0x6c9a40], eax
call fcn.00424d50
mov eax, dword [0x6c9a30]
mov ecx, 0x6c9a30
push 0x2719
mov dword [ebp - 0xc], 0x2719
mov eax, dword [eax + 0x18]
call eax
mov byte [ebp - 8], al
mov eax, dword [ebp + 0xc]
movq xmm0, qword [ebp - 0xc]
pop edi
pop esi
movq qword [eax], xmm0
mov dword [eax + 8], 0x6c9a30
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [ebp + 8]
push edi
push esi
call dword [sym.imp.WS2_32.dll_connect]
mov ecx, dword [0x6c9a40]
mov edi, eax
test cl, 1
jne 0x42bf19
or ecx, 1
mov dword [0x6c9a40], ecx
mov ecx, 0x6c9a30
call fcn.00424d50
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0xc], eax
mov ecx, 0x6c9a30
push eax
mov eax, dword [0x6c9a30]
mov eax, dword [eax + 0x18]
call eax
mov esi, dword [ebp + 0xc]
mov byte [ebp - 8], al
movq xmm0, qword [ebp - 0xc]
movq qword [esi], xmm0
mov dword [esi + 8], 0x6c9a30
test edi, edi
jne 0x42bf7e
mov eax, dword [0x6c9a40]
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0
test al, 1
jne 0x42bf6e
or eax, 1
mov ecx, 0x6c9a30
mov dword [0x6c9a40], eax
call fcn.00424d50
movq xmm0, qword [ebp - 0xc]
movq qword [esi], xmm0
mov dword [esi + 8], 0x6c9a30
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42c100
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, edx
push edi
mov edi, ecx
mov eax, dword [esi]
cmp eax, 0x4cf
jg 0x42c138
je 0x42c131
cmp eax, 0x79
je 0x42c12a
cmp eax, 0x4c9
jne 0x42c14b
push 0x274d
jmp 0x42c144
push 0x274c
jmp 0x42c144
push 0x2743
jmp 0x42c144
cmp eax, 0x4d0
jne 0x42c14b
push 0x2751
mov ecx, esi
call fcn.0044a780
cmp byte [esi + 4], 0
jne 0x42c1f0
cmp edi, 0xffffffff
jne 0x42c195
mov eax, dword [0x6c9a40]
test al, 1
jne 0x42c175
or eax, 1
mov ecx, 0x6c9a30
mov dword [0x6c9a40], eax
call fcn.00424d50
mov eax, dword [0x6c9a30]
mov ecx, 0x6c9a30
push 0x2719
mov dword [ebp - 0xc], 0x2719
mov eax, dword [eax + 0x18]
call eax
mov byte [ebp - 8], al
jmp 0x42c1e0
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push 0
push 0x7010
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edx, esi
mov ecx, eax
call fcn.0044a7e0
test eax, eax
jne 0x42c1f0
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], al
mov eax, dword [0x6c9a40]
test al, 1
jne 0x42c1e0
or eax, 1
mov ecx, 0x6c9a30
mov dword [0x6c9a40], eax
call fcn.00424d50
movq xmm0, qword [ebp - 0xc]
movq qword [esi], xmm0
mov dword [esi + 8], 0x6c9a30
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x42c200
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x6bae70]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x228]
mov dword [ebp - 0x20c], 1
push eax
mov edi, ecx
mov dword [ebp - 0x108], 1
lea eax, [ebp - 0x108]
mov dword [ebp - 0x208], edi
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x104], edi
push eax
push 0
lea eax, [edi + 1]
mov dword [ebp - 0x228], 0
push eax
mov esi, edx
mov dword [ebp - 0x224], 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jne 0x42c284
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005e9734
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 0x220]
mov dword [ebp - 0x210], 0
push eax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x220], 4
push eax
sub esp, 8
mov ecx, edi
call fcn.0042cd80
add esp, 0x14
test eax, eax
jne 0x42c335
mov edi, dword [ebp - 0x210]
mov eax, dword [0x6c9a40]
test edi, edi
je 0x42c2fb
test al, 1
jne 0x42c2dd
or eax, 1
mov ecx, 0x6c9a30
mov dword [0x6c9a40], eax
call fcn.00424d50
mov eax, dword [0x6c9a30]
mov ecx, 0x6c9a30
push edi
mov dword [ebp - 0x21c], edi
mov eax, dword [eax + 0x18]
call eax
mov byte [ebp - 0x218], al
jmp 0x42c322
mov dword [ebp - 0x21c], 0
mov byte [ebp - 0x218], 0
test al, 1
jne 0x42c322
or eax, 1
mov ecx, 0x6c9a30
mov dword [0x6c9a40], eax
call fcn.00424d50
movq xmm0, qword [ebp - 0x21c]
movq qword [esi], xmm0
mov dword [esi + 8], 0x6c9a30
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.005e9734
mov esp, ebp
pop ebp
ret
Function at 0x42cc30
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
push esi
push edi
cmp ebx, 0xffffffff
jne 0x42cc96
mov eax, dword [0x6c9a40]
test al, 1
jne 0x42cc5b
or eax, 1
mov ecx, 0x6c9a30
mov dword [0x6c9a40], eax
call fcn.00424d50
mov eax, dword [0x6c9a30]
mov ecx, 0x6c9a30
push 0x2719
mov dword [ebp - 0x10], 0x2719
mov eax, dword [eax + 0x18]
call eax
mov byte [ebp - 0xc], al
mov eax, dword [ebp + 0x18]
movq xmm0, qword [ebp - 0x10]
movq qword [eax], xmm0
mov dword [eax + 8], 0x6c9a30
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
cmp edi, 0xa5100000
jne 0x42ccfd
cmp esi, 2
jne 0x42ccc0
mov ecx, dword [ebp + 0x18]
push 0x2726
call fcn.0044a780
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 1
jne 0x42cd10
cmp dword [ebp + 0x14], 4
jne 0x42cca9
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
je 0x42ccd8
or byte [edx], 4
jmp 0x42ccdb
and byte [edx], 0xfb
lea ecx, [ebp - 0x10]
call fcn.00424da0
mov ecx, dword [ebp + 0x18]
movq xmm0, qword [eax]
movq qword [ecx], xmm0
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, 0xffff
jne 0x42cd10
cmp esi, 0x80
jne 0x42cd10
or byte [edx], 8
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push edi
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, dword [ebp + 0x18]
mov ecx, eax
mov edx, esi
call fcn.0044a7e0
mov edi, eax
test edi, edi
jne 0x42cd6d
mov ecx, dword [0x6c9a40]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], al
test cl, 1
jne 0x42cd5d
or ecx, 1
mov dword [0x6c9a40], ecx
mov ecx, 0x6c9a30
call fcn.00424d50
movq xmm0, qword [ebp - 0x10]
movq qword [esi], xmm0
mov dword [esi + 8], 0x6c9a30
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42ce60
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
mov edi, ecx
mov ebx, edx
cmp edi, 0xffffffff
jne 0x42cec6
mov eax, dword [0x6c9a40]
test al, 1
jne 0x42ce8c
or eax, 1
mov ecx, 0x6c9a30
mov dword [0x6c9a40], eax
call fcn.00424d50
mov eax, dword [0x6c9a30]
mov ecx, 0x6c9a30
push 0x2719
mov dword [ebp - 0x10], 0x2719
mov eax, dword [eax + 0x18]
call eax
mov byte [ebp - 0xc], al
mov eax, dword [ebp + 0xc]
movq xmm0, qword [ebp - 0x10]
pop edi
pop ebx
movq qword [eax], xmm0
mov dword [eax + 8], 0x6c9a30
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
push esi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push ebx
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
mov ecx, dword [ebp - 4]
mov edi, eax
mov dword [esi], ecx
mov ecx, dword [0x6c9a40]
test cl, 1
jne 0x42cf08
or ecx, 1
mov dword [0x6c9a40], ecx
mov ecx, 0x6c9a30
call fcn.00424d50
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x10], eax
mov ecx, 0x6c9a30
push eax
mov eax, dword [0x6c9a30]
mov eax, dword [eax + 0x18]
call eax
mov esi, dword [ebp + 0xc]
mov byte [ebp - 0xc], al
movq xmm0, qword [ebp - 0x10]
movq qword [esi], xmm0
mov dword [esi + 8], 0x6c9a30
test edi, edi
jne 0x42cf6d
mov eax, dword [0x6c9a40]
mov dword [ebp - 0x10], edi
mov byte [ebp - 0xc], 0
test al, 1
jne 0x42cf5d
or eax, 1
mov ecx, 0x6c9a30
mov dword [0x6c9a40], eax
call fcn.00424d50
movq xmm0, qword [ebp - 0x10]
movq qword [esi], xmm0
mov dword [esi + 8], 0x6c9a30
pop esi
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42cf80
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov edi, ecx
mov esi, edx
cmp edi, 0xffffffff
jne 0x42cfe6
mov eax, dword [0x6c9a40]
test al, 1
jne 0x42cfac
or eax, 1
mov ecx, 0x6c9a30
mov dword [0x6c9a40], eax
call fcn.00424d50
mov eax, dword [0x6c9a30]
mov ecx, 0x6c9a30
push 0x2719
mov dword [ebp - 0x10], 0x2719
mov eax, dword [eax + 0x18]
call eax
mov byte [ebp - 0xc], al
mov eax, dword [ebp + 0x10]
movq xmm0, qword [ebp - 0x10]
pop edi
pop esi
movq qword [eax], xmm0
mov dword [eax + 8], 0x6c9a30
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
push ebx
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ebx, dword [ebp + 0xc]
push ebx
push 0x8004667e
push edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov ecx, dword [0x6c9a40]
mov dword [ebp - 4], eax
test cl, 1
jne 0x42d020
or ecx, 1
mov dword [0x6c9a40], ecx
mov ecx, 0x6c9a30
call fcn.00424d50
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x10], eax
mov ecx, 0x6c9a30
push eax
mov eax, dword [0x6c9a30]
mov eax, dword [eax + 0x18]
call eax
mov edi, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
mov byte [ebp - 0xc], al
movq xmm0, qword [ebp - 0x10]
movq qword [edi], xmm0
mov dword [edi + 8], 0x6c9a30
test ecx, ecx
js 0x42d0a3
mov eax, dword [0x6c9a40]
mov dword [ebp - 0x10], 0
mov byte [ebp - 0xc], 0
test al, 1
jne 0x42d07f
or eax, 1
mov ecx, 0x6c9a30
mov dword [0x6c9a40], eax
call fcn.00424d50
mov ecx, dword [ebp - 4]
movq xmm0, qword [ebp - 0x10]
movq qword [edi], xmm0
mov dword [edi + 8], 0x6c9a30
cmp dword [ebx], 0
je 0x42d0a0
or byte [esi], 1
mov eax, ecx
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
and byte [esi], 0xfc
pop ebx
pop edi
mov eax, ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42d0b0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0
mov ebx, edx
mov dword [ebp - 4], ecx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
test ebx, ebx
jne 0x42d12a
test ecx, ecx
jne 0x42d12a
test edi, edi
jne 0x42d12a
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x42d14b
mov eax, 0x10624dd3
imul dword [esi + 4]
imul eax, dword [esi], 0x3e8
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
add ecx, eax
mov eax, 1
cmove ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x10]
call fcn.00424da0
mov ecx, dword [ebp + 0x14]
movq xmm0, qword [eax]
movq qword [ecx], xmm0
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x42d14b
cmp dword [esi], 0
jne 0x42d14b
mov eax, dword [esi + 4]
test eax, eax
jle 0x42d14b
cmp eax, 0x3e8
jge 0x42d14b
mov dword [esi + 4], 0x3e8
push esi
push edi
push ecx
push ebx
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_select]
mov ecx, dword [0x6c9a40]
mov edi, eax
test cl, 1
jne 0x42d178
or ecx, 1
mov dword [0x6c9a40], ecx
mov ecx, 0x6c9a30
call fcn.00424d50
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x10], eax
mov ecx, 0x6c9a30
push eax
mov eax, dword [0x6c9a30]
mov eax, dword [eax + 0x18]
call eax
mov esi, dword [ebp + 0x14]
mov byte [ebp - 0xc], al
movq xmm0, qword [ebp - 0x10]
movq qword [esi], xmm0
mov dword [esi + 8], 0x6c9a30
test edi, edi
js 0x42d1e1
mov eax, dword [0x6c9a40]
mov dword [ebp - 0x10], 0
mov byte [ebp - 0xc], 0
test al, 1
jne 0x42d1d1
or eax, 1
mov ecx, 0x6c9a30
mov dword [0x6c9a40], eax
call fcn.00424d50
movq xmm0, qword [ebp - 0x10]
movq qword [esi], xmm0
mov dword [esi + 8], 0x6c9a30
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42d1f0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x6bae70]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
cmp edi, 0xffffffff
jne 0x42d274
mov eax, dword [0x6c9a40]
test al, 1
jne 0x42d22a
or eax, 1
mov ecx, 0x6c9a30
mov dword [0x6c9a40], eax
call fcn.00424d50
mov eax, dword [0x6c9a30]
mov ecx, 0x6c9a30
push 0x2719
mov dword [ebp - 0x11c], 0x2719
mov eax, dword [eax + 0x18]
call eax
mov byte [ebp - 0x118], al
or eax, 0xffffffff
movq xmm0, qword [ebp - 0x11c]
movq qword [esi], xmm0
mov dword [esi + 8], 0x6c9a30
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005e9734
mov esp, ebp
pop ebp
ret
push 0
mov dword [ebp - 0x10c], edi
mov dword [ebp - 0x110], 1
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push 0
push 0
lea eax, [ebp - 0x110]
push eax
lea eax, [edi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov ecx, dword [0x6c9a40]
mov edi, eax
test cl, 1
jne 0x42d2c3
or ecx, 1
mov dword [0x6c9a40], ecx
mov ecx, 0x6c9a30
call fcn.00424d50
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x11c], eax
mov ecx, 0x6c9a30
push eax
mov eax, dword [0x6c9a30]
mov eax, dword [eax + 0x18]
call eax
mov byte [ebp - 0x118], al
movq xmm0, qword [ebp - 0x11c]
movq qword [esi], xmm0
mov dword [esi + 8], 0x6c9a30
test edi, edi
je 0x42d2fe
jle 0x42d33d
mov eax, dword [0x6c9a40]
mov byte [ebp - 0x118], 0
mov dword [ebp - 0x11c], 0
test al, 1
jne 0x42d32a
or eax, 1
mov ecx, 0x6c9a30
mov dword [0x6c9a40], eax
call fcn.00424d50
movq xmm0, qword [ebp - 0x11c]
movq qword [esi], xmm0
mov dword [esi + 8], 0x6c9a30
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.005e9734
mov esp, ebp
pop ebp
ret
Function at 0x42d350
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x6bae70]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
cmp edi, 0xffffffff
jne 0x42d3d4
mov eax, dword [0x6c9a40]
test al, 1
jne 0x42d38a
or eax, 1
mov ecx, 0x6c9a30
mov dword [0x6c9a40], eax
call fcn.00424d50
mov eax, dword [0x6c9a30]
mov ecx, 0x6c9a30
push 0x2719
mov dword [ebp - 0x11c], 0x2719
mov eax, dword [eax + 0x18]
call eax
mov byte [ebp - 0x118], al
or eax, 0xffffffff
movq xmm0, qword [ebp - 0x11c]
movq qword [esi], xmm0
mov dword [esi + 8], 0x6c9a30
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005e9734
mov esp, ebp
pop ebp
ret
push 0
mov dword [ebp - 0x10c], edi
mov dword [ebp - 0x110], 1
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push 0
lea eax, [ebp - 0x110]
push eax
push 0
lea eax, [edi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov ecx, dword [0x6c9a40]
mov edi, eax
test cl, 1
jne 0x42d423
or ecx, 1
mov dword [0x6c9a40], ecx
mov ecx, 0x6c9a30
call fcn.00424d50
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x11c], eax
mov ecx, 0x6c9a30
push eax
mov eax, dword [0x6c9a30]
mov eax, dword [eax + 0x18]
call eax
mov byte [ebp - 0x118], al
movq xmm0, qword [ebp - 0x11c]
movq qword [esi], xmm0
mov dword [esi + 8], 0x6c9a30
test edi, edi
je 0x42d45e
jle 0x42d49d
mov eax, dword [0x6c9a40]
mov byte [ebp - 0x118], 0
mov dword [ebp - 0x11c], 0
test al, 1
jne 0x42d48a
or eax, 1
mov ecx, 0x6c9a30
mov dword [0x6c9a40], eax
call fcn.00424d50
movq xmm0, qword [ebp - 0x11c]
movq qword [esi], xmm0
mov dword [esi + 8], 0x6c9a30
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.005e9734
mov esp, ebp
pop ebp
ret
Function at 0x42d4b0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x6bae70]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp edi, 0xffffffff
jne 0x42d534
mov eax, dword [0x6c9a40]
test al, 1
jne 0x42d4ea
or eax, 1
mov ecx, 0x6c9a30
mov dword [0x6c9a40], eax
call fcn.00424d50
mov eax, dword [0x6c9a30]
mov ecx, 0x6c9a30
push 0x2719
mov dword [ebp - 0x228], 0x2719
mov eax, dword [eax + 0x18]
call eax
mov byte [ebp - 0x224], al
or eax, 0xffffffff
movq xmm0, qword [ebp - 0x228]
movq qword [esi], xmm0
mov dword [esi + 8], 0x6c9a30
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.005e9734
mov esp, ebp
pop ebp
ret
push 0
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x21c], 1
mov dword [ebp - 0x110], edi
mov dword [ebp - 0x114], 1
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
lea eax, [edi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov ecx, dword [0x6c9a40]
mov edi, eax
test cl, 1
jne 0x42d598
or ecx, 1
mov dword [0x6c9a40], ecx
mov ecx, 0x6c9a30
call fcn.00424d50
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x228], eax
mov ecx, 0x6c9a30
push eax
mov eax, dword [0x6c9a30]
mov eax, dword [eax + 0x18]
call eax
mov byte [ebp - 0x224], al
movq xmm0, qword [ebp - 0x228]
movq qword [esi], xmm0
mov dword [esi + 8], 0x6c9a30
test edi, edi
js 0x42d610
mov eax, dword [0x6c9a40]
mov dword [ebp - 0x228], 0
mov byte [ebp - 0x224], 0
test al, 1
jne 0x42d5fd
or eax, 1
mov ecx, 0x6c9a30
mov dword [0x6c9a40], eax
call fcn.00424d50
movq xmm0, qword [ebp - 0x228]
movq qword [esi], xmm0
mov dword [esi + 8], 0x6c9a30
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.005e9734
mov esp, ebp
pop ebp
ret
Function at 0x42e0d0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x624877
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x6bae70]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov ecx, dword [ebp + 8]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], 0
mov dword [ebp - 4], 0
mov dword [esi], vtable.boost::asio::detail::select_reactor.0
mov ecx, dword [ecx]
call fcn.0045a0f0
lea ecx, [esi + 0x18]
mov dword [esi + 0x14], eax
call fcn.00425f70
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
call fcn.0042db60
push 0x42e240
push 0x442310
push 4
push 0x1c
lea eax, [esi + 0x38]
mov byte [ebp - 4], 2
push eax
call fcn.005efe7a
push fcn.0042b7e0
push 0x42b7b0
push 3
push 0xc
lea eax, [esi + 0xa8]
mov byte [ebp - 4], 3
push eax
call fcn.005efe7a
mov byte [ebp - 4], 4
mov dword [esi + 0xcc], 0
push 0xc
mov byte [esi + 0xd0], 0
mov dword [esi + 0xd4], 0
mov byte [esi + 0xd8], 0
call fcn.005e8f55
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
mov byte [ebp - 4], 5
test edi, edi
je 0x42e1f1
push 0x10
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.005e8f55
add esp, 4
test eax, eax
je 0x42e1dd
mov dword [eax], vtable.boost::asio::detail::win_thread::func_class_boost::asio::detail::select_reactor::thread_function_.0
mov dword [eax + 0xc], esi
jmp 0x42e1df
xor eax, eax
push 0
push eax
mov ecx, edi
call fcn.0042a090
mov dword [esi + 0xd4], edi
jmp 0x42e1fb
mov dword [esi + 0xd4], 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 4

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp byte [ebp + 0x18], 0
push 0
je 0x42f043
mov ecx, dword [edi + 4]
push 0
push dword [ebp + 0x1c]
call fcn.0042ae90
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x18
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x42f065
mov ecx, dword [edi + 4]
push 0x2719
push dword [ebp + 0x1c]
call fcn.0042ae90
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x18
mov ebx, dword [ebp + 0x1c]
lea ecx, [ebp + 0x18]
push ebx
push dword [ebp + 0x14]
mov dword [ebp + 0x18], 0
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_WSASend]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test esi, esi
je 0x42f0b9
cmp eax, 0x3e5
je 0x42f0b9
push dword [ebp + 0x18]
mov ecx, dword [edi + 4]
push eax
push ebx
call fcn.0042ae90
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x18
mov ecx, dword [edi + 4]
push ebx
call fcn.0042ae20
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x18
Function at 0x42f0d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp byte [ebp + 0x18], 0
push 0
je 0x42f103
mov ecx, dword [esi + 4]
push 0
push dword [ebp + 0x1c]
call fcn.0042ae90
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x18
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
cmp ecx, 0xffffffff
jne 0x42f125
mov ecx, dword [esi + 4]
push 0x2719
push dword [ebp + 0x1c]
call fcn.0042ae90
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x18
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 0x1c]
push edi
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x18]
mov dword [ebp + 0x18], 0
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_WSARecv]
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
jne 0x42f15f
mov eax, 0x2746
jmp 0x42f16c
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test ebx, ebx
je 0x42f18c
cmp eax, 0x3e5
je 0x42f18c
push dword [ebp + 0x18]
mov ecx, dword [esi + 4]
push eax
push edi
call fcn.0042ae90
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x18
mov ecx, dword [esi + 4]
push edi
call fcn.0042ae20
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x18