joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4192a0
Capabilities:
Create tcp socket
Create thread
Create udp socket

Disassembly:
sub esp, 0x14
push esi
push edi
push 1
push 0
push 0
push 0
push 1
mov esi, ecx
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x34], eax
call edi
test eax, eax
je 0x4192d2
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret 4
mov eax, dword [esp + 0x20]
mov word [esp + 0xc], 2
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esi + 0x34]
lea ecx, [esp + 0xc]
push 0x10
push ecx
push edx
mov word [esp + 0x1a], ax
mov dword [esp + 0x1c], 0
call dword [sym.imp.WS2_32.dll_bind]
call edi
test eax, eax
je 0x41931c
mov eax, dword [esi + 0x34]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret 4
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push 0
push esi
push 0x419290
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor edx, edx
mov dword [esi + 0x1c], eax
test eax, eax
setne dl
pop edi
mov eax, edx
pop esi
add esp, 0x14
ret 4
Function at 0x41c290
Capabilities:
Create tcp socket
Create thread
Create udp socket

Disassembly:
sub esp, 0x14
push esi
push edi
push 1
push 0
push 0
push 0
push 1
mov esi, ecx
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x38], eax
call edi
test eax, eax
je 0x41c2c2
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret 4
mov eax, dword [esp + 0x20]
mov word [esp + 0xc], 2
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esi + 0x38]
lea ecx, [esp + 0xc]
push 0x10
push ecx
push edx
mov word [esp + 0x1a], ax
mov dword [esp + 0x1c], 0
call dword [sym.imp.WS2_32.dll_bind]
call edi
test eax, eax
je 0x41c30c
mov eax, dword [esi + 0x38]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret 4
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push 0
push esi
push 0x41c280
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x10], eax
pop edi
mov eax, 1
pop esi
add esp, 0x14
ret 4
Function at 0x41c460
Capabilities:
Create udp socket

Disassembly:
mov eax, 0x100c
call fcn.00458680
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x1020]
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x64]
test ecx, ecx
je 0x41c4a9
mov ecx, dword [eax + 0xc70]
test ecx, ecx
je 0x41c4a9
mov ecx, dword [eax + 0xc90]
test ecx, ecx
je 0x41c4a9
call fcn.00419470
test al, al
jne 0x41c4a9
mov eax, dword [edi + 0x24]
mov ecx, esi
push eax
call fcn.00423f00
mov ebp, dword [edi + 4]
lea ecx, [esp + 0x10]
push 8
lea edx, [esp + 0x1c]
push ecx
push edx
push edi
push ebp
mov ecx, esi
mov byte [esp + 0x102c], 0
mov dword [esp + 0x24], 2
call fcn.0041c7d0
test eax, eax
je 0x41c65a
mov eax, dword [esp + 0x10]
mov byte [esp + eax + 0x18], 0
mov al, byte [esp + 0x18]
cmp al, 5
je 0x41c615
cmp al, 6
je 0x41c615
cmp al, 4
jne 0x41c5b8
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x41c65a
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x41c65a
mov ecx, dword [eax + 0x36504]
mov ebx, 1
cmp ecx, ebx
jne 0x41c530
cmp dword [edi + 0x24], 0xffffffff
je 0x41c65a
lea ecx, [esp + 0x10]
push 8
lea edx, [esp + 0x1e]
push ecx
push edx
push edi
push ebp
mov ecx, esi
mov dword [esp + 0x24], 7
call fcn.0041c7d0
test eax, eax
je 0x41c65a
mov eax, dword [esp + 0x10]
mov cl, byte [esp + eax + 0x19]
test cl, cl
je 0x41c59e
lea ecx, [esp + 0x14]
push 8
lea edx, [esp + eax + 0x1e]
push ecx
push edx
push edi
push ebp
mov ecx, esi
mov dword [esp + 0x28], ebx
call fcn.0041c7d0
test eax, eax
je 0x41c65a
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 0x106
mov dword [esp + 0x10], eax
jg 0x41c65a
mov cl, byte [esp + eax + 0x19]
test cl, cl
jne 0x41c561
lea eax, [esp + 0x18]
mov ecx, esi
push eax
push edi
call fcn.0041f550
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100c
ret 4
mov ebx, 1
cmp al, bl
jne 0x41c65a
mov ecx, dword [esi + 4]
cmp dword [ecx + 0x36504], ebx
jne 0x41c5da
cmp dword [edi + 0x24], 0xffffffff
je 0x41c65a
push ebx
push 0
push 0
push 0
push ebx
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov ecx, dword [esi + 4]
mov ebx, eax
push ebx
push edi
add ecx, 0x36510
call fcn.00442ed0
push 0
push ebx
push ebp
push edi
mov ecx, esi
call fcn.004289b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100c
ret 4
mov edx, dword [esi + 4]
mov byte [esp + 0x18], 5
mov eax, dword [edx + 0x18]
test eax, eax
je 0x41c65a
movsx eax, byte [esp + 0x19]
cmp eax, 0xff
mov dword [esp + 0x10], eax
jg 0x41c65a
lea eax, [esp + 0x10]
push 8
lea ecx, [esp + 0x1e]
push eax
push ecx
push edi
push ebp
mov ecx, esi
call fcn.0041c7d0
test eax, eax
je 0x41c65a
lea edx, [esp + 0x18]
mov ecx, esi
push edx
push edi
call fcn.0041d7b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100c
ret 4
Function at 0x41c6a0
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x118
push ebx
push ebp
push esi
xor esi, esi
cmp eax, esi
push edi
mov ebx, ecx
jle 0x41c7af
mov edi, dword [esp + 0x12c]
cmp edi, 0xffffffff
je 0x41c7af
mov eax, dword [ebx + 8]
mov dword [esp + 0x14], 1
cmp eax, esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], esi
je 0x41c797
mov ebp, dword [sym.imp.WS2_32.dll_select]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
push 0
push ecx
push 0
push 0x40
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], 1
call ebp
test eax, eax
jne 0x41c722
mov edx, dword [ebx + 4]
mov eax, dword [edx + 0xa9b8]
cmp eax, 0xffffffff
je 0x41c737
inc esi
cmp esi, eax
jg 0x41c797
jmp 0x41c737
xor esi, esi
test eax, eax
jl 0x41c797
lea eax, [esp + 0x24]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x41c74d
mov eax, dword [ebx + 8]
test eax, eax
jne 0x41c6eb
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x118
ret 0xc
mov ebp, dword [esp + 0x134]
mov esi, dword [esp + 0x130]
push 0
push 0
lea ecx, [esp + 0x18]
push 0
push ecx
lea edx, [esp + 0x2c]
push 1
push edx
push edi
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], esi
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
je 0x41c78f
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x118
ret 0xc
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x41c7a6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x118
ret 0xc
push ebp
push esi
mov ecx, ebx
call fcn.00419940
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x118
ret 0xc
Function at 0x41c7d0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x124
push ebx
push ebp
push esi
mov esi, dword [esp + 0x140]
mov ebx, ecx
push edi
mov eax, dword [esi]
xor ecx, ecx
cmp eax, ecx
jle 0x41c9c7
mov ebp, dword [esp + 0x138]
cmp ebp, 0xffffffff
je 0x41c9c7
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 8]
cmp eax, ecx
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x14], ecx
je 0x41c99a
mov edi, dword [esp + 0x140]
mov eax, dword [esp + 0x13c]
cmp dword [eax + 0x1c], 2
jne 0x41c99a
lea ecx, [esp + 0x28]
lea edx, [esp + 0x30]
push ecx
push 0
push 0
push edx
push 0x40
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jne 0x41c884
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xa9b8]
cmp eax, 0xffffffff
je 0x41c912
mov ecx, dword [esp + 0x14]
inc ecx
cmp ecx, eax
mov dword [esp + 0x14], ecx
jg 0x41c99a
jmp 0x41c912
test eax, eax
mov dword [esp + 0x14], 0
jl 0x41c99a
lea ecx, [esp + 0x30]
push ecx
push ebp
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x41c912
mov eax, dword [esp + 0x148]
mov edx, dword [esi]
xor ecx, ecx
cmp eax, 8
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], ecx
jne 0x41c92c
push ecx
mov dword [esp + 0x28], ecx
push ecx
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x18]
push eax
push ecx
lea edx, [esp + 0x28]
push 1
push edx
push ebp
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
jne 0x41c991
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41c991
push eax
mov eax, dword [esp + 0x20]
push eax
mov ecx, ebx
call fcn.00419940
mov eax, dword [esi]
mov ecx, dword [esp + 0x10]
cmp ecx, eax
jge 0x41c9a9
add edi, ecx
sub eax, ecx
mov dword [esi], eax
mov eax, dword [ebx + 8]
test eax, eax
jne 0x41c825
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x124
ret 0x14
push ecx
push ecx
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x18]
mov dword [esp + 0x1c], eax
push ecx
push edx
lea eax, [esp + 0x28]
push 1
push eax
push ebp
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x41c956
xor eax, eax
mov dword [esp + 0x10], eax
jmp 0x41c95a
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x148], 2
je 0x41c975
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, ebx
call fcn.00419940
mov eax, dword [esp + 0x10]
mov dword [esi], eax
mov byte [eax + edi], 0
mov ecx, dword [esi]
xor eax, eax
pop edi
pop esi
test ecx, ecx
pop ebp
pop ebx
setne al
add esp, 0x124
ret 0x14
mov dword [esi], 0
mov byte [edi], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x124
ret 0x14
mov edx, dword [esi]
mov eax, dword [esp + 0x20]
mov byte [edx + edi], 0
mov dword [esi], eax
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x124
ret 0x14
mov ecx, dword [esp + 0x140]
pop edi
pop esi
pop ebp
mov byte [ecx], 0
mov eax, 1
pop ebx
add esp, 0x124
ret 0x14
Function at 0x41cac0
Capabilities:
Create tcp socket
Create thread
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x1c
push esi
push edi
push 1
push 0
push 0
push 0
push 2
mov esi, ecx
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x48], eax
call edi
test eax, eax
je 0x41caf2
pop edi
xor eax, eax
pop esi
add esp, 0x1c
ret 4
mov eax, dword [esp + 0x28]
mov word [esp + 0x14], 2
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esi + 0x48]
lea ecx, [esp + 0x14]
push 0x10
push ecx
push edx
mov word [esp + 0x22], ax
mov dword [esp + 0x24], 0
call dword [sym.imp.WS2_32.dll_bind]
call edi
test eax, eax
je 0x41cb3c
mov eax, dword [esi + 0x48]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
xor eax, eax
pop esi
add esp, 0x1c
ret 4
mov edx, dword [esi + 0x48]
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
lea ecx, [esp + 0xc]
push 4
push ecx
push 0x20
push 0xffff
push edx
mov dword [esp + 0x20], 1
call edi
mov ecx, dword [esi + 0x48]
lea eax, [esp + 8]
push 4
push eax
push 0x1001
push 0xffff
push ecx
mov dword [esp + 0x1c], 0x1000
call edi
mov eax, dword [esi + 0x48]
lea edx, [esp + 8]
push 4
push edx
push 0x1002
push 0xffff
push eax
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0
push ecx
push 0
push esi
push 0x41cab0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xc], eax
pop edi
mov eax, 1
pop esi
add esp, 0x1c
ret 4
Function at 0x41cbd0
Capabilities:
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov eax, 0x1218
call fcn.00458680
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], 1
mov eax, dword [esi + 8]
mov dword [esp + 0x18], 0
test eax, eax
je 0x41ccd7
mov ebx, dword [sym.imp.WS2_32.dll_select]
mov ebp, dword [sym.imp.WS2_32.dll_recvfrom]
mov eax, dword [esi + 0x48]
lea ecx, [esp + 0x14]
push ecx
push 0
lea edx, [esp + 0x34]
push 0
push edx
push 0x40
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], 1
call ebx
test eax, eax
je 0x41cccc
jl 0x41ccec
mov ecx, dword [esi + 0x48]
lea eax, [esp + 0x2c]
push eax
push ecx
mov dword [esp + 0x18], 0x10
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x41cccc
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
mov edx, dword [esi + 0x48]
push eax
push 0
lea ecx, [esp + 0x230]
push 0x1000
push ecx
push edx
call ebp
mov edi, eax
test edi, edi
jle 0x41cccc
mov eax, dword [esp + 0x20]
push eax
call fcn.0041fdc0
add esp, 4
test eax, eax
je 0x41cc8a
push 0xa
jmp 0x41ccc6
push 0x1000
lea ecx, [esp + 0x228]
push edi
push ecx
lea ecx, [esp + 0x13c]
call fcn.004352b0
test eax, eax
jle 0x41ccc4
mov ecx, dword [esi + 0x48]
lea edx, [esp + 0x1c]
push 0x10
push edx
push 0
push eax
lea eax, [esp + 0x234]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
push 2
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 8]
test eax, eax
jne 0x41cc07
mov eax, dword [esi + 0x48]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1218
ret
mov edx, dword [esi + 0x48]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1218
ret

Function at 0x41cd20
Capabilities:
Get socket status

Disassembly:
sub esp, 0x114
mov eax, dword [ecx + 8]
push ebx
push ebp
push esi
test eax, eax
push edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 0x10
je 0x41cdcc
mov edi, dword [esp + 0x12c]
mov esi, dword [esp + 0x128]
mov ebx, dword [sym.imp.WS2_32.dll_select]
mov ebp, dword [sym.imp.WS2_32.dll_WSAAccept]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x20]
push eax
push 0
push 0
push ecx
push 0x40
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], 1
call ebx
test eax, eax
je 0x41cdc1
jl 0x41cdcc
lea edx, [esp + 0x20]
push edx
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x41cdc1
push 0
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
call ebp
cmp eax, 0xffffffff
jne 0x41cdce
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2733
jne 0x41cdcc
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x41cd67
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret 8

Function at 0x41cde0
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push 0
push 0
push 0x10
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSAConnect]
neg eax
sbb eax, eax
inc eax
ret 8
Function at 0x41fe10
Capabilities:
Create tcp socket
Create thread
Create udp socket

Disassembly:
sub esp, 0x14
push esi
push edi
push 1
push 0
push 0
push 0
push 1
mov esi, ecx
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x4c], eax
call edi
test eax, eax
je 0x41fe42
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret 4
mov eax, dword [esp + 0x20]
mov word [esp + 0xc], 2
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esi + 0x4c]
lea ecx, [esp + 0xc]
push 0x10
push ecx
push edx
mov word [esp + 0x1a], ax
mov dword [esp + 0x1c], 0
call dword [sym.imp.WS2_32.dll_bind]
call edi
test eax, eax
je 0x41fe8c
mov eax, dword [esi + 0x4c]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret 4
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push 0
push esi
push 0x41fe00
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor edx, edx
mov dword [esi + 0x20], eax
test eax, eax
setne dl
pop edi
mov eax, edx
pop esi
add esp, 0x14
ret 4
Function at 0x420400
Capabilities:
Create tcp socket
Create thread
Create udp socket

Disassembly:
sub esp, 0x14
push esi
push edi
push 1
push 0
push 0
push 0
push 1
mov esi, ecx
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x50], eax
call edi
test eax, eax
je 0x420432
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret 4
mov eax, dword [esp + 0x20]
mov word [esp + 0xc], 2
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esi + 0x50]
lea ecx, [esp + 0xc]
push 0x10
push ecx
push edx
mov word [esp + 0x1a], ax
mov dword [esp + 0x1c], 0
call dword [sym.imp.WS2_32.dll_bind]
call edi
test eax, eax
je 0x42047c
mov eax, dword [esi + 0x50]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret 4
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push 0
push esi
push 0x4203f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor edx, edx
mov dword [esi + 0x24], eax
test eax, eax
setne dl
pop edi
mov eax, edx
pop esi
add esp, 0x14
ret 4
Function at 0x421200
Capabilities:
Create tcp socket
Create thread
Create udp socket

Disassembly:
sub esp, 0x14
push esi
push edi
push 1
push 0
push 0
push 0
push 1
mov esi, ecx
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x3c], eax
call edi
test eax, eax
je 0x421232
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret 4
mov eax, dword [esp + 0x20]
mov word [esp + 0xc], 2
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esi + 0x3c]
lea ecx, [esp + 0xc]
push 0x10
push ecx
push edx
mov word [esp + 0x1a], ax
mov dword [esp + 0x1c], 0
call dword [sym.imp.WS2_32.dll_bind]
call edi
test eax, eax
je 0x42127c
mov eax, dword [esi + 0x3c]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret 4
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push 0
push esi
push 0x4211f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor edx, edx
mov dword [esi + 0x14], eax
test eax, eax
setne dl
pop edi
mov eax, edx
pop esi
add esp, 0x14
ret 4
Function at 0x421f30
Capabilities:
Create tcp socket
Create thread
Create udp socket

Disassembly:
sub esp, 0x14
push esi
push edi
push 1
push 0
push 0
push 0
push 1
mov esi, ecx
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x40], eax
call edi
test eax, eax
je 0x421f62
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret 4
mov eax, dword [esp + 0x20]
mov word [esp + 0xc], 2
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esi + 0x40]
lea ecx, [esp + 0xc]
push 0x10
push ecx
push edx
mov word [esp + 0x1a], ax
mov dword [esp + 0x1c], 0
call dword [sym.imp.WS2_32.dll_bind]
call edi
test eax, eax
je 0x421fac
mov eax, dword [esi + 0x40]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret 4
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push 0
push esi
push 0x421f20
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor edx, edx
mov dword [esi + 0x28], eax
test eax, eax
setne dl
pop edi
mov eax, edx
pop esi
add esp, 0x14
ret 4
Function at 0x422760
Capabilities:
Create tcp socket
Create thread
Create udp socket

Disassembly:
sub esp, 0x14
push esi
push edi
push 1
push 0
push 0
push 0
push 1
mov esi, ecx
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x54], eax
call edi
test eax, eax
je 0x422792
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret 4
mov eax, dword [esp + 0x20]
mov word [esp + 0xc], 2
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esi + 0x54]
lea ecx, [esp + 0xc]
push 0x10
push ecx
push edx
mov word [esp + 0x1a], ax
mov dword [esp + 0x1c], 0
call dword [sym.imp.WS2_32.dll_bind]
call edi
test eax, eax
je 0x4227dc
mov eax, dword [esi + 0x54]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret 4
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push 0
push esi
push 0x422750
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor edx, edx
mov dword [esi + 0x18], eax
test eax, eax
setne dl
pop edi
mov eax, edx
pop esi
add esp, 0x14
ret 4

Function at 0x422ce0
Capabilities:
Create tcp socket
Create thread
Create udp socket

Disassembly:
sub esp, 0x14
push esi
push edi
push 1
push 0
push 0
push 0
push 1
mov esi, ecx
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x44], eax
call edi
test eax, eax
je 0x422d12
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret 4
mov eax, dword [esp + 0x20]
mov word [esp + 0xc], 2
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esi + 0x44]
lea ecx, [esp + 0xc]
push 0x10
push ecx
push edx
mov word [esp + 0x1a], ax
mov dword [esp + 0x1c], 0
call dword [sym.imp.WS2_32.dll_bind]
call edi
test eax, eax
je 0x422d5c
mov eax, dword [esi + 0x44]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret 4
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push 0
push esi
push 0x422cd0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor edx, edx
mov dword [esi + 0x2c], eax
test eax, eax
setne dl
pop edi
mov eax, edx
pop esi
add esp, 0x14
ret 4
Function at 0x42a740
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47a1e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov eax, dword [edi + 4]
mov dword [ebp - 0x1c], edi
cmp dword [eax + 0x240b0], ebx
jne 0x42a789
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], ebx
mov ecx, dword [edi + 4]
mov dword [ebp - 0x14], ebx
cmp ebx, dword [ecx + 0x240b0]
jge 0x42a8ad
lea eax, [ebx*8]
push 1
sub eax, ebx
push 0
push 0
push 0
lea esi, [eax + eax*4]
shl esi, 3
mov eax, dword [esi + ecx + 0x20a04]
test eax, eax
jne 0x42a7d6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov ecx, dword [edi + 4]
mov dword [esi + ecx + 0x20a00], eax
jmp 0x42a7ea
push 2
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov edx, dword [edi + 4]
mov dword [esi + edx + 0x20a00], eax
mov eax, dword [edi + 4]
mov word [ebp - 0x34], 2
mov cx, word [esi + eax + 0x20b14]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x32], ax
mov eax, dword [edi + 4]
mov dword [ebp - 0x30], 0
lea edx, [ebp - 0x34]
mov ecx, dword [esi + eax + 0x20a00]
push 0x10
push edx
push ecx
call dword [sym.imp.WS2_32.dll_bind]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x42a8a7
mov edx, dword [edi + 4]
mov eax, dword [esi + edx + 0x20a00]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [edi + 4]
lea eax, [ebp - 0x18]
push 0x487a40
push eax
mov edx, dword [esi + ecx + 0x20b14]
mov dword [ebp - 0x18], edx
call fcn.0045a1bd
mov ecx, dword [ebp - 0x14]
lea edi, [ecx - 1]
test edi, edi
jle 0x42a885
mov ebx, dword [sym.imp.WS2_32.dll_closesocket]
xor esi, esi
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 4]
mov ecx, dword [esi + eax + 0x20a00]
push ecx
call ebx
add esi, 0x118
dec edi
jne 0x42a86c
mov edx, dword [ebp - 0x24]
mov eax, 0x42a893
neg edx
mov dword [ebp - 0x1c], edx
ret
inc ebx
jmp 0x42a78c
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
push 0
push edi
push 0x42a6f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
mov dword [edi + 0x30], eax
test eax, eax
setne cl
mov eax, ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret