joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416920
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x47944b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x90c
mov al, byte [0x493b50]
push esi
push edi
mov byte [esp + 0xc], al
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0xd]
push 0x493f48
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x518]
push 0x400
push ecx
push str.English
push 0x48d194
push str.System
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x514]
lea eax, [esp + 0xc]
push edx
push 0x493e40
push str._sLanguage_s.ini
push eax
call fcn.00457c43
mov ecx, dword [0x491ac4]
add esp, 0x10
mov dword [esp + 8], ecx
mov edi, dword [esp + 0x924]
xor esi, esi
mov dword [esp + 0x91c], esi
mov edx, dword [edi + 4]
push edx
call dword [sym.imp.USER32.dll_GetMenuItemCount]
cmp eax, esi
jbe 0x416a93
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetSubMenu]
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetMenuStringA]
push 0x400
push 0x100
push 0x100
lea ecx, [esp + 0x1c]
call fcn.0046e592
push eax
mov eax, dword [edi + 4]
push esi
push eax
call ebp
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.0046e5e1
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x416a7e
lea ecx, [esp + 0x14]
lea edx, [esp + 0x11c]
push ecx
push 0x400
push edx
push eax
push eax
push str.String
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 0x11c]
test al, al
je 0x416a57
mov eax, dword [edi + 4]
push esi
push eax
call dword [sym.imp.USER32.dll_GetMenuItemID]
mov edx, dword [edi + 4]
lea ecx, [esp + 0x11c]
push ecx
push eax
push 0x400
push esi
push edx
call dword [sym.imp.USER32.dll_ModifyMenuA]
mov eax, dword [edi + 4]
push esi
push eax
call ebx
push eax
call fcn.0046ef69
test eax, eax
je 0x416a7e
mov ecx, dword [edi + 4]
push esi
push ecx
call ebx
push eax
call fcn.0046ef69
push eax
call fcn.00416920
add esp, 4
mov edx, dword [edi + 4]
inc esi
push edx
call dword [sym.imp.USER32.dll_GetMenuItemCount]
cmp esi, eax
jb 0x4169d3
pop ebp
pop ebx
lea ecx, [esp + 8]
mov dword [esp + 0x91c], 0xffffffff
call fcn.0046e162
mov ecx, dword [esp + 0x914]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x918
ret

Function at 0x417ab0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0xb0
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x2c], 2
jne 0x417b2e
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp]
push ecx
push 0x20
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea edx, [esp + 4]
mov dword [esp + 0xc], 1
push edx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
push 0
push 0
lea edx, [esp + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 8]
push 0
push edx
push 0
push eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0
push 0xc
call dword [sym.imp.USER32.dll_ExitWindowsEx]
add esp, 0xb0
ret
Function at 0x418290
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4182f2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret

Function at 0x418e80
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 0x418eb2
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 0x418efc
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 0x418e70
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 0x41bdc0
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 0x41bdf2
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 0x41be3c
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 0x41bdb0
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 0x41bf90
Capabilities:
Create udp socket

Disassembly:
mov eax, 0x100c
call fcn.00457d20
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 0x41bfd9
mov ecx, dword [eax + 0xc70]
test ecx, ecx
je 0x41bfd9
mov ecx, dword [eax + 0xc90]
test ecx, ecx
je 0x41bfd9
call fcn.00419050
test al, al
jne 0x41bfd9
mov eax, dword [edi + 0x24]
mov ecx, esi
push eax
call fcn.004239b0
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.0041c300
test eax, eax
je 0x41c18a
mov eax, dword [esp + 0x10]
mov byte [esp + eax + 0x18], 0
mov al, byte [esp + 0x18]
cmp al, 5
je 0x41c145
cmp al, 6
je 0x41c145
cmp al, 4
jne 0x41c0e8
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x41c18a
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x41c18a
mov ecx, dword [eax + 0x275f4]
mov ebx, 1
cmp ecx, ebx
jne 0x41c060
cmp dword [edi + 0x24], 0xffffffff
je 0x41c18a
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.0041c300
test eax, eax
je 0x41c18a
mov eax, dword [esp + 0x10]
mov cl, byte [esp + eax + 0x19]
test cl, cl
je 0x41c0ce
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.0041c300
test eax, eax
je 0x41c18a
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 0x106
mov dword [esp + 0x10], eax
jg 0x41c18a
mov cl, byte [esp + eax + 0x19]
test cl, cl
jne 0x41c091
lea eax, [esp + 0x18]
mov ecx, esi
push eax
push edi
call fcn.0041f040
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100c
ret 4
mov ebx, 1
cmp al, bl
jne 0x41c18a
mov ecx, dword [esi + 4]
cmp dword [ecx + 0x275f4], ebx
jne 0x41c10a
cmp dword [edi + 0x24], 0xffffffff
je 0x41c18a
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, 0x27600
call fcn.00442570
push 0
push ebx
push ebp
push edi
mov ecx, esi
call fcn.00428320
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 0x41c18a
movsx eax, byte [esp + 0x19]
cmp eax, 0xff
mov dword [esp + 0x10], eax
jg 0x41c18a
lea eax, [esp + 0x10]
push 8
lea ecx, [esp + 0x1e]
push eax
push ecx
push edi
push ebp
mov ecx, esi
call fcn.0041c300
test eax, eax
je 0x41c18a
lea edx, [esp + 0x18]
mov ecx, esi
push edx
push edi
call fcn.0041d2e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100c
ret 4
Function at 0x41c1d0
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 0x41c2df
mov edi, dword [esp + 0x12c]
cmp edi, 0xffffffff
je 0x41c2df
mov eax, dword [ebx + 8]
mov dword [esp + 0x14], 1
cmp eax, esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], esi
je 0x41c2c7
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 0x41c252
mov edx, dword [ebx + 4]
mov eax, dword [edx + 0xa9b8]
cmp eax, 0xffffffff
je 0x41c267
inc esi
cmp esi, eax
jg 0x41c2c7
jmp 0x41c267
xor esi, esi
test eax, eax
jl 0x41c2c7
lea eax, [esp + 0x24]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x41c27d
mov eax, dword [ebx + 8]
test eax, eax
jne 0x41c21b
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 0x41c2bf
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 0x41c2d6
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.00419520
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x118
ret 0xc
Function at 0x41c300
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 0x41c4f7
mov ebp, dword [esp + 0x138]
cmp ebp, 0xffffffff
je 0x41c4f7
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 0x41c4ca
mov edi, dword [esp + 0x140]
mov eax, dword [esp + 0x13c]
cmp dword [eax + 0x1c], 2
jne 0x41c4ca
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 0x41c3b4
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xa9b8]
cmp eax, 0xffffffff
je 0x41c442
mov ecx, dword [esp + 0x14]
inc ecx
cmp ecx, eax
mov dword [esp + 0x14], ecx
jg 0x41c4ca
jmp 0x41c442
test eax, eax
mov dword [esp + 0x14], 0
jl 0x41c4ca
lea ecx, [esp + 0x30]
push ecx
push ebp
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x41c442
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 0x41c45c
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 0x41c4c1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41c4c1
push eax
mov eax, dword [esp + 0x20]
push eax
mov ecx, ebx
call fcn.00419520
mov eax, dword [esi]
mov ecx, dword [esp + 0x10]
cmp ecx, eax
jge 0x41c4d9
add edi, ecx
sub eax, ecx
mov dword [esi], eax
mov eax, dword [ebx + 8]
test eax, eax
jne 0x41c355
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 0x41c486
xor eax, eax
mov dword [esp + 0x10], eax
jmp 0x41c48a
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x148], 2
je 0x41c4a5
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, ebx
call fcn.00419520
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 0x41c5f0
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 0x41c622
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 0x41c66c
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 0x41c5e0
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 0x41c700
Capabilities:
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov eax, 0x1218
call fcn.00457d20
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 0x41c807
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 0x41c7fc
jl 0x41c81c
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 0x41c7fc
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 0x41c7fc
mov eax, dword [esp + 0x20]
push eax
call fcn.0041f890
add esp, 4
test eax, eax
je 0x41c7ba
push 0xa
jmp 0x41c7f6
push 0x1000
lea ecx, [esp + 0x228]
push edi
push ecx
lea ecx, [esp + 0x13c]
call fcn.00434a10
test eax, eax
jle 0x41c7f4
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 0x41c737
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 0x41c850
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 0x41c8fc
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 0x41c8f1
jl 0x41c8fc
lea edx, [esp + 0x20]
push edx
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x41c8f1
push 0
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
call ebp
cmp eax, 0xffffffff
jne 0x41c8fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2733
jne 0x41c8fc
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x41c897
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret 8

Function at 0x41c910
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 0x41f8e0
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 0x41f912
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 0x41f95c
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 0x41f8d0
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 0x41fed0
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 0x41ff02
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 0x41ff4c
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 0x41fec0
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 0x420cd0
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 0x420d02
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 0x420d4c
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 0x420cc0
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 0x421a00
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 0x421a32
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 0x421a7c
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 0x4219f0
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 0x422220
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 0x422252
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 0x42229c
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 0x422210
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 0x4227a0
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 0x4227d2
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 0x42281c
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 0x422790
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