joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f0ddb
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x4f0df5
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x4f0df0
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x4f0dda
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x4f0de2
cmp edx, ebx
jne 0x4f0f30
ror dword [edi], cl
test dword [esi + 1], ecx
add byte [eax], al
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x4f0db1
add eax, dword [eax + 4]
jmp 0x4f0d9e
mov dword [ebp + 0xc], ebx
jmp 0x4f0e00

Function at 0x4f0e0f
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x4f0e18
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x4f0e36
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x4f0e94
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x4f0e7b
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x4f0e84
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x4f0e8e
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x4f0e70
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x4f0dfa
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x4f0ee1
dec eax
je 0x4f0ed8
sub eax, 3
je 0x4f0ecf
mov dword [ebp - 4], 0x40
jmp 0x4f0efe
mov dword [ebp - 4], 4
jmp 0x4f0ee4
mov dword [ebp - 4], 0x20
jmp 0x4f0ee4
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x4f0f30
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x4f0eb0
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.004f0741
add dword [ebp - 0x5d], edi
and bh, bh
jne 0x4f0f3b
push 1
push esi
call edi
mov eax, esi
jmp 0x4f0f3c
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
rcr byte [edi + 0x5e], 0x5b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x50bbf7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5896f0]
jne 0x50bc01
repz ret
jmp fcn.00513ae3

Function at 0x51e818
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5896f0]
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.0051350b
and dword [ebp - 0x14], 0
cmp dword [0x5912cc], 0
mov dword [ebp - 0x18], eax
jne 0x51e8cb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x51e973
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x55bda8
push ebx
call edi
test eax, eax
je 0x51e973
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x55bd98
push ebx
mov dword [0x5912cc], eax
call edi
push eax
call esi
push 0x55bd84
push ebx
mov dword [0x5912d0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5912d4], eax
call edi
push eax
call esi
mov dword [0x5912dc], eax
test eax, eax
je 0x51e8cb
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5912d8], eax
mov eax, dword [0x5912d8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x51e924
cmp dword [0x5912dc], ecx
je 0x51e924
push eax
call esi
push dword [0x5912dc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x51e924
test ebx, ebx
je 0x51e924
call edi
test eax, eax
je 0x51e91b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x51e91b
test byte [ebp - 8], 1
jne 0x51e924
or dword [ebp + 0x10], 0x200000
jmp 0x51e957
mov eax, dword [0x5912d0]
cmp eax, dword [ebp - 0x18]
je 0x51e957
push eax
call esi
test eax, eax
je 0x51e957
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x51e957
mov eax, dword [0x5912d4]
cmp eax, dword [ebp - 0x18]
je 0x51e957
push eax
call esi
test eax, eax
je 0x51e957
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5912cc]
call esi
test eax, eax
je 0x51e973
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x51e975
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050bbf7
leave
ret
Function at 0x40ad00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44cfe0
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x462040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
lea ecx, [esi + 0xc]
or edx, 0xffffffff
mov dword [esi], vtable.CMaaConnectionInTimeCharacteristics.0
test eax, eax
push 0
cmovns edx, eax
lea eax, [edx + 1]
mov dword [esi + 8], eax
add eax, 7
cdq
and edx, 7
add eax, edx
sar eax, 3
push eax
call fcn.00414840
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 4], 0
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], ecx
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x40ad84
mov eax, dword [esi + 0x14]
shl eax, 2
push eax
push 0
push ecx
call fcn.00432ce0
add esp, 0xc
push 0
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
call fcn.0040aeb0
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 0x14

Function at 0x40b9e0
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d05d
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x462040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
call fcn.0040b7a0
push dword [ebp + 0x14]
mov dword [ebp - 4], 0
push dword [ebp + 0x10]
mov dword [esi], vtable.CMaaSocket.0
mov dword [esi + 0x8d], 0xffffffff
mov dword [esi + 0x91], 0xffffffff
mov dword [esi + 0x95], 0
mov dword [esi + 0x99], 0
mov dword [esi + 0x9d], 0
mov dword [esi + 0xa1], 0
mov dword [esi + 0xa5], 0
mov dword [esi + 0xa9], 0
push 2
mov dword [esi + 0xad], esi
mov dword [esi + 0x18], esi
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x8d], eax
cmp eax, 0xffffffff
je 0x40baae
mov dword [esi + 0x91], 2
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10
push str.socket__
mov ecx, esi
call fcn.0040bb80
int3
Function at 0x40bde0
Capabilities:
Set socket configuration

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d0e7
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xc
push esi
mov eax, dword [0x462040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
push 6
push 1
push ecx
push dword [ebx + 8]
call fcn.0040b9e0
mov dword [ebp - 4], 0
mov dword [esi], vtable.CMaaTcpSocket.0
mov dword [esi + 0x11d], 0
mov dword [esi + 0x121], 0
mov byte [esi + 0x125], 0
mov dword [esi + 0x126], 0x7d0
mov dword [esi + 0x12a], 0
mov dword [esi + 0x12e], 0
mov dword [esi + 0x132], 0
mov dword [esi + 0x136], 0
mov dword [esi + 0x13a], 0
mov dword [esi + method.CMaaTcpSocket::CCloseTimer.virtual_0], vtable.CMaaTcpSocket::CCloseTimer.0
mov dword [esi + 0x142], 0
lea ecx, [esi + 0x14a]
push esi
call fcn.0040ab60
lea ecx, [esi + 0x1b5]
push esi
call fcn.0040ab60
push 0x40
mov byte [ebp - 4], 3
lea eax, [esi + 0xd9]
push 0
push eax
mov dword [esi + 0x220], 0
mov dword [esi + 0x99], esi
mov dword [esi + 0x146], 0
call fcn.00432ce0
mov eax, dword [esi]
add esp, 0xc
mov dword [esi + 0xc9], 0
mov ecx, esi
mov dword [esi + 0xcd], 0
mov dword [esi + 0xc1], 0
mov eax, dword [eax + 0x54]
mov dword [esi + 0xc5], 0
mov dword [esi + 0xb9], 0
mov dword [esi + 0xbd], 0
mov dword [esi + 0xb1], 0
mov dword [esi + 0xb5], 0
mov dword [esi + 0xd5], 0xffffffff
mov dword [esi + 0xd1], 0xffffffff
push 0
cmp eax, fcn.0040c420
jne 0x40bf68
call fcn.0040c420
jmp 0x40bf6a
call eax
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
push 8
xorps xmm0, xmm0
push 0xffff
movups xmmword [esi + 0x224], xmm0
push dword [esi + 0x8d]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x40bfb0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
push str.setsockopt___
mov ecx, esi
call fcn.0040bb80
int3
Function at 0x40c6f0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d1a0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x462040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
cmp dword [ebp + 0xc], edi
jle 0x40c85c
or eax, 0xffffffff
mov dword [ebp - 0x10], eax
mov ebx, dword [0x46490c]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x80
jne 0x40c746
mov dword [ebx + 8], edi
jmp 0x40c74a
test eax, eax
jne 0x40c753
inc dword [ebx + 0xc]
inc dword [ebx + 8]
inc dword [ebx + 4]
cmp dword [esi + 0x152], 0
mov ebx, dword [ebp + 0xc]
je 0x40c76e
lea ecx, [esi + 0x14a]
push ebx
call fcn.0040fd70
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [0x46490c]
call fcn.0042fbe0
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40c85c
push 0
cmovg ebx, eax
push ebx
push dword [ebp + 8]
push dword [esi + 0x8d]
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test edi, edi
js 0x40c878
cmp edi, ebx
jge 0x40c7bb
and dword [esi + 0x95], 0xfffffffd
push 3
mov ecx, esi
call fcn.0040b5e0
mov ecx, dword [esi + 0xb1]
mov eax, ecx
mov ebx, dword [esi + 0xb5]
and eax, ebx
cmp eax, 0xffffffff
jne 0x40c7e7
xorps xmm0, xmm0
movlpd qword [ebp - 0x14], xmm0
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov eax, edi
cdq
add eax, ecx
mov dword [esi + 0xb1], eax
adc edx, ebx
mov dword [esi + 0xb5], edx
mov dword [ebp - 4], 0xffffffff
push ecx
mov ecx, dword [0x46490c]
call fcn.0042fba0
cmp dword [esi + 0x152], 0
je 0x40c82c
add dword [esi + 0x162], edi
mov ecx, dword [esi + 0x152]
test ecx, ecx
je 0x40c82c
push edi
call fcn.004101f0
mov ecx, dword [0x46490c]
call fcn.0042fbe0
test edi, edi
jg 0x40c840
cmp edi, 0xffffffff
jg 0x40c85c
test dword [esi + 0x95], 0xfffffffd
jne 0x40c853
and dword [esi + 8], 0xfffdffff
xor eax, eax
test edi, edi
cmovg eax, edi
mov edi, eax
or eax, 0xffffffff
cmp edi, eax
cmovge eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp edi, 0xffffffff
jne 0x40c7bb
cmp eax, 0x2733
jne 0x40c893
and dword [esi + 0x95], 0xfffffffd
or edi, edi
jmp 0x40c840
push str.send__
mov ecx, esi
call fcn.0040bc10
int3
Function at 0x40c8b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d1c0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x462040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
mov byte [ebp - 0xd], 0
cmp dword [ebp + 0xc], edi
jle 0x40ca5e
or eax, 0xffffffff
mov dword [ebp - 0x14], eax
mov ebx, dword [0x46490c]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x80
jne 0x40c90a
mov dword [ebx + 8], edi
jmp 0x40c90e
test eax, eax
jne 0x40c917
inc dword [ebx + 0xc]
inc dword [ebx + 8]
inc dword [ebx + 4]
cmp dword [esi + 0x1bd], 0
mov ebx, dword [ebp + 0xc]
je 0x40c934
lea ecx, [esi + 0x1b5]
push ebx
call fcn.0040fd70
mov dword [ebp - 0x14], eax
jmp 0x40c93c
mov al, byte [0x4644c4]
mov byte [ebp - 0xd], al
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [0x46490c]
call fcn.0042fbe0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40ca51
push 0
cmovg ebx, eax
push ebx
push dword [ebp + 8]
mov dword [ebp + 0xc], ebx
push dword [esi + 0x8d]
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
test ebx, ebx
js 0x40ca23
cmp ebx, dword [ebp + 0xc]
jge 0x40ca23
and dword [esi + 0x95], 0xfffffffe
test ebx, ebx
je 0x40ca4e
push 2
mov ecx, esi
call fcn.0040b5e0
mov ecx, dword [esi + 0xb9]
mov edi, ebx
mov edx, dword [esi + 0xbd]
mov eax, ecx
and eax, edx
mov dword [ebp + 0xc], edx
cmp eax, 0xffffffff
jne 0x40c9cf
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov dword [ebp + 0xc], eax
mov eax, ebx
cdq
add eax, ecx
mov dword [esi + 0xb9], eax
adc edx, dword [ebp + 0xc]
mov dword [esi + 0xbd], edx
test ebx, ebx
jle 0x40ca51
mov dword [ebp - 4], 0xffffffff
push ecx
mov ecx, dword [0x46490c]
call fcn.0042fba0
cmp dword [esi + 0x1bd], 0
je 0x40ca0f
lea ecx, [esi + 0x1b5]
push ebx
call fcn.0040fe30
mov ecx, dword [0x46490c]
call fcn.0042fbe0
and dword [esi + 8], 0xfffeffff
jmp 0x40ca51
mov eax, dword [esi + 0x95]
and eax, 0xfffffffe
mov dword [esi + 0x95], eax
cmp ebx, 0xffffffff
jne 0x40c993
cmp ecx, 0x2733
jne 0x40ca74
and eax, 0xfffffffe
mov dword [esi + 0x95], eax
jmp 0x40ca51
or edi, 0xffffffff
cmp byte [ebp - 0xd], 0
je 0x40ca5e
xor eax, eax
test edi, edi
cmovs edi, eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.recv__
mov ecx, esi
call fcn.0040bc10
int3
Function at 0x40ca90
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x462040]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push esi
mov esi, ecx
push edi
mov edx, dword [esi + 0x91]
mov edi, dword [esi + 0x228]
mov dword [esp + 0x14], edx
bswap edi
cmp edx, 0x17
jne 0x40cacf
movzx ecx, word [esi + 0x236]
jmp 0x40cad6
movzx ecx, word [esi + 0x226]
mov ebx, dword [ebp + 8]
mov ah, cl
mov al, ch
movzx eax, ax
mov dword [esp + 0x10], eax
cmp ebx, 0x64
jne 0x40cb72
mov eax, dword [esi]
mov ecx, esi
push 0
push 0x800
call dword [eax + 8]
push 1
mov ecx, esi
call fcn.0040b5e0
cmp dword [esp + 0x14], 0x17
mov ebx, dword [esi]
push ecx
lea ecx, [esp + 0x24]
jne 0x40cb45
lea edi, [esi + 0x23c]
mov edx, edi
call fcn.0040b1a0
add esp, 4
mov ecx, esi
push eax
mov eax, dword [esp + 0x14]
push eax
push edi
call dword [ebx + 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.004312ef
mov esp, ebp
pop ebp
ret 4
mov edx, edi
call fcn.0040b400
add esp, 4
mov ecx, esi
push eax
mov eax, dword [esp + 0x14]
push eax
push edi
call dword [ebx + 0x28]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.004312ef
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi + 0x8d]
cmp edx, 0x17
jne 0x40cb87
push 0x1c
lea eax, [esi + 0x234]
jmp 0x40cb8f
push 0x10
lea eax, [esi + 0x224]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x40cbf7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
je 0x40cbd4
sub eax, 2
je 0x40cbd4
sub eax, 0x13
jne 0x40cc18
test ebx, ebx
jne 0x40caed
lea eax, [ebx + 3]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.004312ef
mov esp, ebp
pop ebp
ret 4
xor ecx, ecx
mov eax, 2
test ebx, ebx
cmovne eax, ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.004312ef
mov esp, ebp
pop ebp
ret 4
test ebx, ebx
jne 0x40caed
mov ecx, dword [esp + 0x224]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004312ef
mov esp, ebp
pop ebp
ret 4
push 0
push 0xffffffffffffffff
push 0
push 0
push str.error
lea ecx, [esp + 0x2c]
call fcn.00417e00
lea ecx, [esp + 0x18]
call fcn.00401cf0
cmp dword [esp + 0x14], 0x17
mov eax, dword [esp + 0x10]
push ecx
movzx ebx, ax
lea ecx, [esp + 0x24]
jne 0x40cc57
lea edx, [esi + 0x23c]
call fcn.0040b1a0
jmp 0x40cc5e
mov edx, edi
call fcn.0040b400
add esp, 4
push ebx
push eax
lea eax, [esp + 0x128]
push str.connect___s___d_
push eax
call fcn.00417060
add esp, 0x10
lea eax, [esp + 0x120]
mov ecx, esi
push eax
call fcn.0040bb80
int3
Function at 0x40cc90
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2a4
mov eax, dword [0x462040]
xor eax, esp
mov dword [esp + 0x2a0], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x91], 0x17
je 0x40cda1
mov ax, word [ebp + 0xc]
mov ecx, 2
mov dword [esi + 0x22c], 0
mov dword [esi + 0x230], 0
mov word [esi + 0x224], cx
mov ch, al
mov cl, ah
mov eax, ebx
bswap eax
mov dword [esi + 0x228], eax
mov eax, dword [esi]
push 0
mov word [esi + 0x226], cx
mov ecx, esi
push 8
call dword [eax + 8]
mov eax, dword [esi + 0x228]
mov ecx, dword [esi + 0x91]
mov dword [esp + 0x10], ecx
bswap eax
mov dword [esp + 0x14], eax
cmp ecx, 0x17
jne 0x40cd33
mov ax, word [esi + 0x236]
mov ch, al
mov cl, ah
lea eax, [esi + 0x234]
push 0x1c
jmp 0x40cd46
mov ax, word [esi + 0x226]
mov ch, al
mov cl, ah
lea eax, [esi + 0x224]
push 0x10
push eax
push dword [esi + 0x8d]
movzx edi, cx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x40cd7f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
je 0x40cd78
sub eax, 2
je 0x40cd78
sub eax, 0x13
jne 0x40cdab
mov eax, 3
jmp 0x40cd81
mov eax, 2
jmp 0x40cd81
xor eax, eax
cmp eax, 3
jae 0x40ce1b
mov ecx, dword [esp + 0x2ac]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004312ef
mov esp, ebp
pop ebp
ret 8
push str.Connect___on_IPv6_socket_called
call fcn.0040bb80
push 0
push 0xffffffffffffffff
push 0
push 0
push str.error
lea ecx, [esp + 0x2c]
call fcn.00417e00
lea ecx, [esp + 0x18]
call fcn.00401cf0
cmp dword [esp + 0x10], 0x17
push ecx
movzx edi, di
lea ecx, [esp + 0xac]
jne 0x40cde9
lea edx, [esi + 0x23c]
call fcn.0040b1a0
jmp 0x40cdf2
mov edx, dword [esp + 0x18]
call fcn.0040b400
add esp, 4
push edi
push eax
lea eax, [esp + 0x1b0]
push str.connect___s___d_
push eax
call fcn.00417060
add esp, 0x10
lea eax, [esp + 0x1a8]
mov ecx, esi
push eax
call fcn.0040bb80
movzx eax, word [ebp + 0xc]
mov edx, ebx
push eax
push ecx
lea ecx, [esp + 0x28]
call fcn.0040b400
add esp, 4
push eax
lea eax, [esp + 0x48]
push str.connect___s___d_
push eax
call fcn.00417060
add esp, 0x10
lea eax, [esp + 0x40]
mov ecx, esi
push eax
call fcn.0040bb80
int3
Function at 0x40ce50
Capabilities:
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
sub esp, 8
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x91], 0x17
je 0x40cef6
mov eax, 2
mov dword [esi + 0x228], 0
mov word [esi + 0x224], ax
lea edi, [esi + 0x224]
mov ax, word [esp + 0x14]
mov ch, al
mov dword [esp + 0x14], 1
push 4
mov cl, ah
lea eax, [esp + 0x18]
push eax
push 4
push 0xffff
push dword [esi + 0x8d]
mov word [esi + 0x226], cx
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0x10
push edi
push dword [esi + 0x8d]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x40cf00
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x10
push eax
push edi
push dword [esi + 0x8d]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x40cf0c
pop edi
mov dword [esi + 0x89], 1
pop esi
add esp, 8
ret 0xc
push str.Bind___on_IPv6_socket_called
call fcn.0040bb80
push str.bind___
mov ecx, esi
call fcn.0040bb80
push str.getsockname__
mov ecx, esi
call fcn.0040bb80
int3
Function at 0x40e590
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d310
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x462040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x38], edi
mov eax, dword [edi + 0x91]
xor esi, esi
mov dword [ebp - 0x3c], eax
cmp eax, 0x17
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x40], 0
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 4], esi
push eax
jne 0x40e608
lea eax, [ebp - 0x24]
push eax
call fcn.0040d170
jmp 0x40e611
lea eax, [ebp - 0x40]
push eax
call fcn.0040d080
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0xae]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov edi, eax
mov dword [ebp - 0x2c], edi
test edi, edi
je 0x40e63f
mov ecx, dword [ebp - 0x38]
push dword [edi + 0x3c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x58]
call eax
mov esi, eax
mov dword [ebp - 4], 0xffffffff
test esi, esi
jne 0x40e665
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
test edi, edi
je 0x40e72b
mov eax, dword [edi]
mov ecx, edi
jmp 0x40e727
push ecx
mov ecx, dword [esi + 4]
push esi
call fcn.0040d470
mov eax, dword [esi]
mov ecx, esi
push 0
push 0x1f00
call dword [eax + 8]
mov eax, dword [esi + 0x8d]
cmp eax, 0xffffffff
je 0x40e68f
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 0x30]
mov dword [esi + 0x8d], eax
mov eax, dword [ebp - 0x3c]
cmp eax, 0xffffffff
je 0x40e6a6
mov dword [esi + 0x91], eax
mov ecx, esi
mov dword [esi + 0x7d], 0xffffffff
call fcn.0040bc80
push 1
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.0040b5e0
cmp dword [ebp - 0x3c], 0x17
mov eax, dword [esi]
push dword [ebp - 0x28]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x38], ecx
jne 0x40e6de
mov eax, dword [eax + 0x2c]
lea ecx, [ebp - 0x24]
push ecx
jmp 0x40e6e4
mov eax, dword [eax + 0x24]
push dword [ebp - 0x40]
mov ecx, esi
call eax
push 0
push eax
mov ecx, esi
call dword [ebp - 0x38]
lea eax, [edi + 0x10]
push eax
push 0
push edi
push 0x41adf0
push 0
push 0
call fcn.0043cf4f
add esp, 0x18
mov dword [edi + 0xc], eax
cmp eax, 0xffffffff
je 0x40e76e
jmp 0x40e72b
push 1
call dword [eax]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004312ef
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
mov ecx, str.Cant_create_thread
mov dword [ebp - 0x2c], 0
call fcn.0040bbe0
int3
Function at 0x40fc50
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x29]
test eax, eax
je 0x40fd0d
cmp dword [eax + 4], 0
je 0x40fc77
test byte [eax + 8], 0x10
jne 0x40fd12
push 2
push 1
lea ecx, [esp + 0x17]
mov byte [esp + 0x17], 0
push ecx
push dword [eax + 0x8d]
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test edi, edi
jns 0x40fca1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
jmp 0x40fca3
xor ebx, ebx
mov ecx, esi
call fcn.0040efd0
cmp eax, 2
jne 0x40fcc1
test edx, edx
jne 0x40fcc1
push edx
push edx
push 0x7d0
mov ecx, esi
call fcn.0040f050
test edi, edi
je 0x40fcea
jns 0x40fcea
cmp ebx, 0x2733
je 0x40fd12
mov byte [esi + 0xc], 0
mov esi, dword [esi + 0x29]
mov ecx, esi
mov edi, dword [esi]
call dword [edi + 0x1c]
push eax
mov ecx, esi
call dword [edi + 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [esi + 0x29]
cmp dword [edi + 4], 0
je 0x40fd12
test byte [edi + 8], 1
je 0x40fd12
mov esi, dword [edi]
mov ecx, edi
call dword [esi + 0x14]
push eax
mov ecx, edi
call dword [esi + 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0040f360
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret