joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45963c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov edi, ecx
mov esi, edx
xor eax, eax
push ebp
push 0x45975f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.004047d0
mov ebx, eax
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
mov eax, esi
call fcn.004049d0
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x459718
xor eax, eax
push ebp
push 0x459711
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, edi
call fcn.004049d0
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_WriteFile_1
cmp ebx, dword [ebp - 8]
je 0x4596fa
push 0x459778
push esi
push 0x459790
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404890
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x4076f4]
call fcn.0040c45c
call fcn.00403ea0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459744
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle
ret
push 0x4597b0
push esi
push 0x4597cc
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404890
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, dword [0x4076f4]
call fcn.0040c45c
call fcn.00403ea0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459766
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404534
ret

Function at 0x4597d8
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
test dl, dl
je 0x4597f2
add esp, 0xfffffff0
call fcn.00403a38
mov edi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov esi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x4598ac
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, esi
mov eax, dword [0x4592b0]
call fcn.0045930c
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], esi
push 0
push 0x8000000
push 3
push 0
push 1
push 0x80000000
mov eax, edi
call fcn.004049d0
push eax
call sub.kernel32.dll_CreateFileA
mov esi, eax
mov dword [ebx + 0xc], esi
cmp esi, 0xffffffff
jne 0x459871
push 0x4598e0
push edi
push 0x4598f8
lea eax, [ebp - 8]
mov edx, 3
call fcn.00404890
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x4076f4]
call fcn.0040c45c
call fcn.00403ea0
push 0
mov eax, dword [ebx + 0xc]
push eax
call sub.kernel32.dll_GetFileSize
mov dword [ebx + 4], eax
push 0
lea eax, [ebx + 0x1c]
push eax
mov eax, dword [ebx + 0x14]
push eax
mov eax, dword [ebx + 0x10]
push eax
mov eax, dword [ebx + 0xc]
push eax
call sub.kernel32.dll_ReadFile
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4598b3
lea eax, [ebp - 8]
call fcn.00404510
ret
Function at 0x459910
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, ecx
mov ebp, edx
mov ebx, eax
test esi, esi
jbe 0x459a4a
mov eax, dword [ebx + 0x1c]
mov edi, eax
mov edx, dword [ebx + 0x18]
sub edi, edx
test edi, edi
jbe 0x4599e1
cmp edi, esi
jae 0x4599c9
mov eax, dword [ebx + 0x10]
add eax, edx
mov edx, ebp
mov ecx, edi
call fcn.00402c60
add dword [ebx + 8], edi
mov edx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x1c]
cmp edx, eax
jbe 0x459961
mov dword [ebx + 0x18], eax
xor eax, eax
jmp 0x459a4c
push 0
lea eax, [ebx + 0x1c]
push eax
push edx
mov eax, dword [ebx + 0x10]
push eax
mov eax, dword [ebx + 0xc]
push eax
call sub.kernel32.dll_ReadFile
mov eax, dword [ebx + 0x1c]
test eax, eax
jbe 0x4599bd
sub esi, edi
cmp eax, esi
jae 0x4599a2
mov edx, ebp
add edx, edi
mov ecx, dword [ebx + 0x10]
xchg ecx, eax
call fcn.00402c60
mov eax, dword [ebx + 0x1c]
add dword [ebx + 8], eax
mov eax, dword [ebx + 0x1c]
mov dword [ebx + 0x18], eax
xor eax, eax
jmp 0x459a4c
mov edx, ebp
add edx, edi
mov eax, dword [ebx + 0x10]
mov ecx, esi
call fcn.00402c60
add dword [ebx + 8], esi
mov dword [ebx + 0x18], esi
mov al, 1
jmp 0x459a4c
xor eax, eax
mov dword [ebx + 0x18], eax
xor eax, eax
jmp 0x459a4c
mov eax, dword [ebx + 0x10]
add eax, edx
mov edx, ebp
mov ecx, esi
call fcn.00402c60
add dword [ebx + 8], esi
add dword [ebx + 0x18], esi
mov al, 1
jmp 0x459a4c
mov edx, dword [ebx + 0x14]
cmp eax, edx
jae 0x4599f1
xor eax, eax
mov dword [ebx + 0x18], eax
xor eax, eax
jmp 0x459a4c
push 0
lea eax, [ebx + 0x1c]
push eax
push edx
mov eax, dword [ebx + 0x10]
push eax
mov eax, dword [ebx + 0xc]
push eax
call sub.kernel32.dll_ReadFile
mov eax, dword [ebx + 0x1c]
test eax, eax
jbe 0x459a41
cmp eax, esi
jae 0x459a2b
mov edx, ebp
mov ecx, dword [ebx + 0x10]
xchg ecx, eax
call fcn.00402c60
mov eax, dword [ebx + 0x1c]
add dword [ebx + 8], eax
mov eax, dword [ebx + 0x1c]
mov dword [ebx + 0x18], eax
xor eax, eax
jmp 0x459a4c
mov edx, ebp
mov eax, dword [ebx + 0x10]
mov ecx, esi
call fcn.00402c60
add dword [ebx + 8], esi
mov dword [ebx + 0x18], esi
mov al, 1
jmp 0x459a4c
xor eax, eax
mov dword [ebx + 0x18], eax
xor eax, eax
jmp 0x459a4c
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x459a54
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
test esi, esi
jbe 0x459b28
mov eax, dword [ebx + 0x1c]
mov edi, eax
sub edi, dword [ebx + 0x18]
test edi, edi
jbe 0x459ad7
cmp edi, esi
jae 0x459acd
add dword [ebx + 8], edi
mov edx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x1c]
cmp edx, eax
jbe 0x459a8a
mov dword [ebx + 0x18], eax
xor eax, eax
jmp 0x459b2a
push 0
lea eax, [ebx + 0x1c]
push eax
push edx
mov eax, dword [ebx + 0x10]
push eax
mov eax, dword [ebx + 0xc]
push eax
call sub.kernel32.dll_ReadFile
mov edx, dword [ebx + 0x1c]
test edx, edx
jbe 0x459ac4
mov eax, esi
sub eax, edi
cmp edx, eax
jae 0x459aba
add dword [ebx + 8], edx
mov eax, dword [ebx + 0x1c]
mov dword [ebx + 0x18], eax
xor eax, eax
jmp 0x459b2a
add dword [ebx + 8], eax
mov dword [ebx + 0x18], eax
mov al, 1
jmp 0x459b2a
xor eax, eax
mov dword [ebx + 0x18], eax
xor eax, eax
jmp 0x459b2a
add dword [ebx + 8], esi
add dword [ebx + 0x18], esi
mov al, 1
jmp 0x459b2a
mov edx, dword [ebx + 0x14]
cmp eax, edx
jae 0x459ae7
xor eax, eax
mov dword [ebx + 0x18], eax
xor eax, eax
jmp 0x459b2a
push 0
lea eax, [ebx + 0x1c]
push eax
push edx
mov eax, dword [ebx + 0x10]
push eax
mov eax, dword [ebx + 0xc]
push eax
call sub.kernel32.dll_ReadFile
mov edx, dword [ebx + 0x1c]
test edx, edx
jbe 0x459b1f
mov eax, esi
cmp edx, eax
jae 0x459b15
add dword [ebx + 8], edx
mov eax, dword [ebx + 0x1c]
mov dword [ebx + 0x18], eax
xor eax, eax
jmp 0x459b2a
add dword [ebx + 8], eax
mov dword [ebx + 0x18], eax
mov al, 1
jmp 0x459b2a
xor eax, eax
mov dword [ebx + 0x18], eax
xor eax, eax
jmp 0x459b2a
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x459ce8
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, ecx
mov ebp, edx
mov ebx, eax
mov eax, dword [ebx + 0xc]
mov esi, eax
mov edx, dword [ebx + 0x10]
sub esi, edx
test esi, esi
jbe 0x459d66
cmp esi, edi
jae 0x459d51
mov eax, ebp
mov ecx, dword [ebx + 8]
add ecx, edx
mov edx, ecx
mov ecx, esi
call fcn.00402c60
push 0
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0xc]
push eax
mov eax, dword [ebx + 8]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_WriteFile_1
mov eax, dword [ebx + 0xc]
cmp eax, dword [esp]
jbe 0x459d3c
mov dword [ebx + 0x10], eax
xor eax, eax
jmp 0x459d9b
sub edi, esi
mov edx, dword [ebx + 8]
mov eax, ebp
add eax, esi
mov ecx, edi
call fcn.00402c60
mov dword [ebx + 0x10], edi
jmp 0x459d99
mov eax, ebp
mov ecx, dword [ebx + 8]
add ecx, edx
mov edx, ecx
mov ecx, edi
call fcn.00402c60
add dword [ebx + 0x10], edi
jmp 0x459d99
push 0
lea edx, [esp + 4]
push edx
push eax
mov eax, dword [ebx + 8]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_WriteFile_1
mov eax, dword [ebx + 0xc]
cmp eax, dword [esp]
jbe 0x459d8a
mov dword [ebx + 0x10], eax
xor eax, eax
jmp 0x459d9b
mov edx, dword [ebx + 8]
mov eax, ebp
mov ecx, edi
call fcn.00402c60
mov dword [ebx + 0x10], edi
mov al, 1
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x45a7c4
Capabilities:
Hash data with md5

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c0
call fcn.004030fc
mov dword [ebx], 0x67452301
mov dword [ebx + 4], 0xefcdab89
mov dword [ebx + 8], 0x98badcfe
mov dword [ebx + 0xc], 0x10325476
pop ebx
ret
Function at 0x45e9b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ecx
mov esi, edx
xor eax, eax
push ebp
push 0x45ea33
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
mov eax, esi
call fcn.004049d0
mov edi, eax
push edi
call sub.kernel32.dll_GetEnvironmentVariableA
mov ebx, eax
test ebx, ebx
jg 0x45e9f7
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
call fcn.00404564
jmp 0x45ea1d
mov edx, ebx
dec edx
lea eax, [ebp - 8]
call fcn.00404b5c
push ebx
mov eax, dword [ebp - 8]
call fcn.004049d0
push eax
push edi
call sub.kernel32.dll_GetEnvironmentVariableA
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
call fcn.00404564
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ea3a
lea eax, [ebp - 8]
call fcn.00404510
ret

Function at 0x463630
Capabilities:
Initialize winsock library

Disassembly:
add esp, 0xfffffe70
push esp
push 0x202
call sub.WS2_32.DLL_WSAStartup
test eax, eax
je 0x46365b
mov ecx, 0x46366c
mov dl, 1
mov eax, dword [0x4076f4]
call fcn.0040c45c
call fcn.00403ea0
add esp, 0x190
ret

Function at 0x4636b4
Capabilities:
Create udp socket

Disassembly:
push ebx
push esi
push edi
test dl, dl
je 0x4636c3
add esp, 0xfffffff0
call fcn.00403a38
mov ebx, edx
mov edi, eax
push 0x11
push 2
push 2
call sub.WS2_32.DLL_socket
mov esi, eax
mov dword [edi + 4], esi
mov eax, esi
call fcn.004632e0
test al, al
jne 0x4636f8
mov ecx, 0x46371c
mov dl, 1
mov eax, dword [0x4076f4]
call fcn.0040c45c
call fcn.00403ea0
mov eax, edi
test bl, bl
je 0x46370d
call fcn.00403a90
pop dword fs:[0]
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x463957
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
xor ecx, ecx
mov edx, 0x10
call fcn.004030fc
mov word [ebp - 0x10], 2
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ax, word [ebp + 8]
call fcn.004632cc
mov word [ebp - 0xe], ax
push 0x10
lea eax, [ebp - 0x10]
push eax
push 0
push edi
push esi
mov eax, dword [ebx + 4]
push eax
call sub.WS2_32.DLL_sendto
call fcn.004632e8
test al, al
jne 0x46393c
push 0x463970
call sub.WS2_32.DLL_WSAGetLastError
lea edx, [ebp - 0x18]
call fcn.00408808
push dword [ebp - 0x18]
push 0x4639d4
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404890
mov ecx, dword [ebp - 0x14]
mov dl, 1
mov eax, dword [0x4076f4]
call fcn.0040c45c
call fcn.00403ea0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46395e
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00404534
ret
Function at 0x4639d8
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffedc
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ecx, edx
mov esi, eax
xor ebx, ebx
mov eax, ecx
mov edi, 0x3e8
cdq
idiv edi
mov dword [ebp - 0xc], eax
mov eax, ecx
mov ecx, 0x3e8
cdq
idiv ecx
imul eax, edx, 0x3e8
mov dword [ebp - 8], eax
mov dword [ebp - 0x114], 1
mov eax, dword [esi + 4]
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
lea eax, [ebp - 0x114]
push eax
push 0
call sub.WS2_32.DLL_select
mov edi, eax
mov eax, edi
call fcn.004632e8
test al, al
je 0x463a98
test edi, edi
jle 0x463a98
mov dword [ebp - 0x10], 0x10
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x124]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [esi + 4]
push eax
call sub.WS2_32.DLL_recvfrom
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
jle 0x463a98
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x120]
mov dword [eax], edx
mov ax, word [ebp - 0x122]
call fcn.004632cc
mov edx, dword [ebp + 8]
mov word [edx], ax
mov bl, 1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x463ae0
Capabilities:
Create udp socket

Disassembly:
push ebx
push esi
push edi
test dl, dl
je 0x463aef
add esp, 0xfffffff0
call fcn.00403a38
mov ebx, edx
mov edi, eax
push 0x11
push 2
push 0x17
call sub.WS2_32.DLL_socket
mov esi, eax
mov dword [edi + 4], esi
mov eax, esi
call fcn.004632e0
test al, al
jne 0x463b24
mov ecx, 0x463b48
mov dl, 1
mov eax, dword [0x4076f4]
call fcn.0040c45c
call fcn.00403ea0
mov eax, edi
test bl, bl
je 0x463b39
call fcn.00403a90
pop dword fs:[0]
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x463cd4
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], ebx
mov esi, dword [ebp + 0xc]
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x463da5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x2c]
xor ecx, ecx
mov edx, 0x1c
call fcn.004030fc
mov word [ebp - 0x2c], 0x17
push esi
push edi
lea esi, [ebp - 0x10]
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov ax, word [ebp + 8]
call fcn.004632cc
mov word [ebp - 0x2a], ax
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push 0
push edi
push esi
mov eax, dword [ebx + 4]
push eax
call sub.WS2_32.DLL_sendto
call fcn.004632e8
test al, al
jne 0x463d8a
push 0x463dc0
call sub.WS2_32.DLL_WSAGetLastError
lea edx, [ebp - 0x34]
call fcn.00408808
push dword [ebp - 0x34]
push 0x463e24
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.00404890
mov ecx, dword [ebp - 0x30]
mov dl, 1
mov eax, dword [0x4076f4]
call fcn.0040c45c
call fcn.00403ea0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x463dac
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.00404534
ret

Function at 0x463e28
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ecx, edx
mov esi, eax
xor ebx, ebx
mov eax, ecx
mov edi, 0x3e8
cdq
idiv edi
mov dword [ebp - 0xc], eax
mov eax, ecx
mov ecx, 0x3e8
cdq
idiv ecx
imul eax, edx, 0x3e8
mov dword [ebp - 8], eax
mov dword [ebp - 0x114], 1
mov eax, dword [esi + 4]
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
lea eax, [ebp - 0x114]
push eax
push 0
call sub.WS2_32.DLL_select
mov edi, eax
mov eax, edi
call fcn.004632e8
test al, al
je 0x463eec
test edi, edi
jle 0x463eec
mov dword [ebp - 0x10], 0x1c
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x130]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [esi + 4]
push eax
call sub.WS2_32.DLL_recvfrom
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
jle 0x463eec
mov eax, dword [ebp + 0xc]
mov edi, eax
lea esi, [ebp - 0x128]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ax, word [ebp - 0x12e]
call fcn.004632cc
mov edx, dword [ebp + 8]
mov word [edx], ax
mov bl, 1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x463f64
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov esi, dword [ebp + 0xc]
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], ecx
mov ebx, edx
mov edi, eax
xor eax, eax
push ebp
push 0x464125
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp + 0x10], 0
je 0x464056
push 0x11
push 2
push 0x17
call sub.WS2_32.DLL_socket
mov esi, eax
mov dword [edi + 8], esi
mov eax, esi
call fcn.004632e0
test al, al
jne 0x463fd5
mov ecx, 0x464140
mov dl, 1
mov eax, dword [0x4076f4]
call fcn.0040c45c
call fcn.00403ea0
lea eax, [ebp - 0x40]
xor ecx, ecx
mov edx, 0x1c
call fcn.004030fc
mov word [ebp - 0x40], 0x17
push edi
lea esi, [ebp - 0x14]
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
mov ax, word [ebp + 8]
call fcn.004632cc
mov word [ebp - 0x3e], ax
push 0x1c
lea eax, [ebp - 0x40]
push eax
mov eax, dword [edi + 8]
push eax
call sub.WS2_32.DLL_bind
call fcn.004632e8
test al, al
jne 0x464056
push 0x464190
call sub.WS2_32.DLL_WSAGetLastError
lea edx, [ebp - 0x48]
call fcn.00408808
push dword [ebp - 0x48]
push 0x464204
lea eax, [ebp - 0x44]
mov edx, 3
call fcn.00404890
mov ecx, dword [ebp - 0x44]
mov dl, 1
mov eax, dword [0x4076f4]
call fcn.0040c45c
call fcn.00403ea0
test bl, bl
je 0x46410a
push 0x11
push 2
push 2
call sub.WS2_32.DLL_socket
mov esi, eax
mov dword [edi + 4], esi
mov eax, esi
call fcn.004632e0
test al, al
jne 0x46408f
mov ecx, 0x464210
mov dl, 1
mov eax, dword [0x4076f4]
call fcn.0040c45c
call fcn.00403ea0
lea eax, [ebp - 0x24]
xor ecx, ecx
mov edx, 0x10
call fcn.004030fc
mov word [ebp - 0x24], 2
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
mov ax, word [ebp + 0x14]
call fcn.004632cc
mov word [ebp - 0x22], ax
push 0x10
lea eax, [ebp - 0x24]
push eax
mov eax, dword [edi + 4]
push eax
call sub.WS2_32.DLL_bind
call fcn.004632e8
test al, al
jne 0x46410a
push 0x464260
call sub.WS2_32.DLL_WSAGetLastError
lea edx, [ebp - 0x50]
call fcn.00408808
push dword [ebp - 0x50]
push 0x464204
lea eax, [ebp - 0x4c]
mov edx, 3
call fcn.00404890
mov ecx, dword [ebp - 0x4c]
mov dl, 1
mov eax, dword [0x4076f4]
call fcn.0040c45c
call fcn.00403ea0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46412c
lea eax, [ebp - 0x50]
mov edx, 4
call fcn.00404534
ret
Function at 0x4642cc
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov esi, dword [ebp + 0xc]
lea edi, [ebp - 0x11]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x464489
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp - 0x11], 0
je 0x4643c7
mov eax, dword [ebx + 8]
call fcn.004632e0
test al, al
je 0x4643ac
lea eax, [ebp - 0x3d]
xor ecx, ecx
mov edx, 0x1c
call fcn.004030fc
mov word [ebp - 0x3d], 0x17
push esi
push edi
lea esi, [ebp - 0x10]
lea edi, [ebp - 0x35]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov ax, word [ebp + 8]
call fcn.004632cc
mov word [ebp - 0x3b], ax
push 0x1c
lea eax, [ebp - 0x3d]
push eax
push 0
push edi
push esi
mov eax, dword [ebx + 8]
push eax
call sub.WS2_32.DLL_sendto
call fcn.004632e8
test al, al
jne 0x46446e
push 0x4644a4
call sub.WS2_32.DLL_WSAGetLastError
lea edx, [ebp - 0x48]
call fcn.00408808
push dword [ebp - 0x48]
push 0x464518
lea eax, [ebp - 0x44]
mov edx, 3
call fcn.00404890
mov ecx, dword [ebp - 0x44]
mov dl, 1
mov eax, dword [0x4076f4]
call fcn.0040c45c
call fcn.00403ea0
jmp 0x46446e
mov ecx, 0x464524
mov dl, 1
mov eax, dword [0x4076f4]
call fcn.0040c45c
call fcn.00403ea0
jmp 0x46446e
mov eax, dword [ebx + 4]
call fcn.004632e0
test al, al
je 0x464458
lea eax, [ebp - 0x21]
xor ecx, ecx
mov edx, 0x10
call fcn.004030fc
mov word [ebp - 0x21], 2
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1d], eax
mov ax, word [ebp + 8]
call fcn.004632cc
mov word [ebp - 0x1f], ax
push 0x10
lea eax, [ebp - 0x21]
push eax
push 0
push edi
push esi
mov eax, dword [ebx + 4]
push eax
call sub.WS2_32.DLL_sendto
call fcn.004632e8
test al, al
jne 0x46446e
push 0x4645a0
call sub.WS2_32.DLL_WSAGetLastError
lea edx, [ebp - 0x50]
call fcn.00408808
push dword [ebp - 0x50]
push 0x464518
lea eax, [ebp - 0x4c]
mov edx, 3
call fcn.00404890
mov ecx, dword [ebp - 0x4c]
mov dl, 1
mov eax, dword [0x4076f4]
call fcn.0040c45c
call fcn.00403ea0
jmp 0x46446e
mov ecx, 0x464614
mov dl, 1
mov eax, dword [0x4076f4]
call fcn.0040c45c
call fcn.00403ea0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x464490
lea eax, [ebp - 0x50]
mov edx, 4
call fcn.00404534
ret
Function at 0x464ab8
Capabilities:
Create tcp socket

Disassembly:
push ebx
push esi
push edi
test dl, dl
je 0x464ac7
add esp, 0xfffffff0
call fcn.00403a38
mov ebx, edx
mov edi, eax
push 6
push 1
push 2
call sub.WS2_32.DLL_socket
mov esi, eax
mov dword [edi + 4], esi
mov eax, esi
call fcn.004632e0
test al, al
jne 0x464afc
mov ecx, 0x464b20
mov dl, 1
mov eax, dword [0x4076f4]
call fcn.0040c45c
call fcn.00403ea0
mov eax, edi
test bl, bl
je 0x464b11
call fcn.00403a90
pop dword fs:[0]
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x464b68
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x464c25
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
xor ecx, ecx
mov edx, 0x10
call fcn.004030fc
mov word [ebp - 0x10], 2
mov dword [ebp - 0xc], esi
mov eax, edi
call fcn.004632cc
mov word [ebp - 0xe], ax
push 0x10
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.WS2_32.DLL_connect
call fcn.004632e8
test al, al
jne 0x464c03
push 0x464c3c
call sub.WS2_32.DLL_WSAGetLastError
lea edx, [ebp - 0x18]
call fcn.00408808
push dword [ebp - 0x18]
push 0x464ca4
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404890
mov ecx, dword [ebp - 0x14]
mov dl, 1
mov eax, dword [0x4076f4]
call fcn.0040c45c
call fcn.00403ea0
mov dword [ebx + 8], esi
mov word [ebx + 0xc], di
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x464c2c
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00404534
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x464d67
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push edi
mov eax, dword [ebp - 4]
push eax
mov eax, dword [esi + 4]
push eax
call sub.WS2_32.DLL_send
mov ebx, eax
mov eax, ebx
call fcn.004632e8
test al, al
jne 0x464d21
push 0x464d80
call sub.WS2_32.DLL_WSAGetLastError
lea edx, [ebp - 0xc]
call fcn.00408808
push dword [ebp - 0xc]
push 0x464de4
lea eax, [ebp - 8]
mov edx, 3
call fcn.00404890
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x4076f4]
call fcn.0040c45c
call fcn.00403ea0
test ebx, ebx
jne 0x464d3b
mov ecx, 0x464df0
mov dl, 1
mov eax, dword [0x4076f4]
call fcn.0040c45c
call fcn.00403ea0
cmp edi, ebx
jle 0x464d4c
push ebx
mov ecx, edi
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00464e58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x464d6e
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404534
ret