joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cdc50
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x4cdc59
mov eax, dword [ebp - 4]
add esp, 0xfffffcc8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
call sub.kernel32.dll_GetTickCount_1
mov dword [ebx + 0xc], eax
xor edx, edx
push ebp
push 0x4cddb0
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebx + 4]
mov edx, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x28]
test al, al
jne 0x4cdcdd
lea eax, [ebp - 0x233c]
mov edx, 0x2334
call fcn.00407dd4
mov eax, dword [ebx + 8]
mov dword [ebp - 0x233c], eax
mov ax, word [ebp - 4]
mov word [ebp - 0x2338], ax
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 0xc], eax
push 0x2334
lea ecx, [ebp - 0x233c]
mov eax, dword [ebx + 4]
mov edx, dword [ebp - 4]
mov edi, dword [eax]
call dword [edi + 0x18]
lea ecx, [ebp - 8]
mov eax, dword [ebx + 4]
mov edx, dword [ebp - 4]
mov edi, dword [eax]
call dword [edi + 0x20]
test al, al
jne 0x4cdcfc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4cddba
mov eax, dword [esi + 2]
mov ecx, 0x12c
xor edx, edx
div ecx
mov edi, edx
mov eax, edi
shl eax, 4
sub eax, edi
mov edx, dword [ebp - 8]
mov eax, dword [edx + eax*2 + 0x20]
test eax, eax
je 0x4cdd36
mov edx, eax
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, edi
shl eax, 4
sub eax, edi
mov edx, dword [ebp - 8]
xor ecx, ecx
mov dword [edx + eax*2 + 0x20], ecx
mov eax, edi
shl eax, 4
sub eax, edi
mov edx, dword [ebp - 8]
lea eax, [edx + eax*2 + 6]
mov ecx, 0x1a
mov edx, esi
call fcn.00407dcc
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 8]
mov dword [edx + 0x2330], eax
mov eax, dword [esi + 0x13]
cmp eax, dword [esi + 0xf]
jbe 0x4cdda6
movzx edx, word [esi + 0x17]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov edx, edi
shl edx, 4
sub edx, edi
mov ecx, dword [ebp - 8]
mov dword [ecx + edx*2 + 0x20], eax
mov eax, edi
shl eax, 4
sub eax, edi
mov edx, dword [ebp - 8]
mov eax, dword [edx + eax*2 + 0x20]
movzx ecx, word [esi + 0x17]
lea edx, [esi + 0x19]
call fcn.00407dcc
mov ecx, esi
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004cdef0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4cddba
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4cee44
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
mov ebx, eax
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebx + 0x68]
cmp eax, 0xbb8
jb 0x4cef1b
call sub.kernel32.dll_GetTickCount_1
mov dword [ebx + 0x68], eax
mov eax, ebx
call fcn.004cebc0
mov word [ebx + 0x30], ax
mov eax, dword [ebx + 0x32]
mov ecx, 3
cdq
idiv ecx
mov dword [ebx + 0x32], eax
mov eax, dword [ebx + 0x36]
mov ecx, 3
cdq
idiv ecx
mov dword [ebx + 0x36], eax
mov eax, dword [ebx + 0x3a]
mov ecx, 3
cdq
idiv ecx
mov dword [ebx + 0x3a], eax
mov eax, dword [ebx + 0x3e]
mov ecx, 3
cdq
idiv ecx
mov dword [ebx + 0x3e], eax
mov eax, dword [ebx + 0x42]
mov ecx, 3
cdq
idiv ecx
mov dword [ebx + 0x42], eax
mov eax, dword [ebx + 0x46]
mov ecx, 3
cdq
idiv ecx
mov ecx, eax
mov dword [ebx + 0x46], ecx
mov eax, ecx
mov ecx, 3
cdq
idiv ecx
mov dword [ebx + 0x46], eax
mov eax, dword [ebx + 0x4a]
mov ecx, 3
cdq
idiv ecx
mov dword [ebx + 0x4a], eax
mov eax, dword [ebx + 0x6c]
mov dword [ebx + 0x52], eax
xor eax, eax
mov dword [ebx + 0x5a], eax
xor eax, eax
mov dword [ebx + 0x5e], eax
call sub.kernel32.dll_GetTickCount_1
mov dword [ebx + 0x62], eax
lea eax, [ebx + 0x30]
push eax
push 0x36
mov cx, 0x4653
mov edx, 0x100007f
mov eax, dword [ebx + 0xc]
mov esi, dword [eax]
call dword [esi + 0x24]
lea eax, [ebx + 0x30]
mov edx, 0x36
call fcn.00407dd4
pop esi
pop ebx
ret

Function at 0x4d067c
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe70
push ebx
push esi
test dl, dl
je 0x4d0693
add esp, 0xfffffff0
call fcn.00404004
mov ebx, edx
mov esi, eax
mov byte [esi + 0x40], 0
xor eax, eax
mov dword [esi + 8], eax
lea eax, [esi + 0x28]
xor ecx, ecx
mov edx, 8
call fcn.00403540
mov dword [esi + 0x20], 0x2000
mov dword [esi + 0x24], 0x2000
mov dword [esi + 4], 0xffffffff
xor eax, eax
mov dword [esi + 0x6c], eax
mov dword [esi + 0x30], 0xffffffff
mov byte [esi + 0x41], 0
mov dword [esi + 0x58], 0xffffffff
lea eax, [ebp - 0x18e]
push eax
mov dl, 2
mov al, 2
call fcn.00407da4
push eax
call sub.ws2_32.dll_WSAStartup_1
test eax, eax
je 0x4d070b
mov ecx, 0x4d0730
mov dl, 1
mov eax, dword [0x4d054c]
call fcn.0040fa74
call fcn.00404530
mov eax, esi
test bl, bl
je 0x4d0720
call fcn.0040405c
pop dword fs:[0]
add esp, 0xc
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d09b0
Capabilities:
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe8
mov esi, eax
xor ebx, ebx
push 1
push 0
push 0
push 0
push 2
push 2
call sub.ws2_32.dll_WSASocketA
mov edi, eax
mov dword [esi + 4], edi
cmp edi, 0xffffffff
je 0x4d0a8d
mov byte [esp], 1
push 1
lea eax, [esp + 4]
push eax
push 4
push 0xffff
mov eax, dword [esi + 4]
push eax
call sub.ws2_32.dll_setsockopt
test eax, eax
jne 0x4d0a8d
push 4
lea eax, [esi + 0x41]
push eax
push 0x20
push 0xffff
mov eax, dword [esi + 4]
push eax
call sub.ws2_32.dll_setsockopt
test eax, eax
jne 0x4d0a8d
mov word [esp + 8], 2
mov ax, word [esi + 8]
push eax
call sub.ws2_32.dll_htons
mov word [esp + 0xa], ax
xor eax, eax
mov dword [esp + 0xc], eax
push 0x10
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 4]
push eax
call sub.ws2_32.dll_bind
inc eax
jne 0x4d0a4e
mov eax, esi
call fcn.004d0980
jmp 0x4d0a8d
mov dword [esp + 4], 0x10
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 4]
push eax
call sub.ws2_32.dll_getsockname
mov ax, word [esp + 0xa]
push eax
call sub.ws2_32.dll_ntohs
movzx eax, ax
mov dword [esi + 8], eax
cmp byte [esi + 0x44], 0
je 0x4d0a8b
mov eax, esi
call fcn.004d0d9c
test al, al
je 0x4d0a8d
mov bl, 1
mov eax, ebx
add esp, 0x18
pop edi
pop esi
pop ebx
ret

Function at 0x4d0ab0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4d0b89
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebp - 0x24], 2
mov dword [ebp - 0x20], esi
push edi
call sub.ws2_32.dll_htons
mov word [ebp - 0x22], ax
mov dword [ebp - 0x10], 0x10
cmp byte [ebx + 0x44], 0
je 0x4d0b11
mov eax, dword [ebp - 8]
push eax
push esi
push edi
mov ecx, dword [ebp - 4]
mov edx, dword [ebx + 4]
mov eax, ebx
call fcn.004d13c0
mov edi, eax
jmp 0x4d0b2e
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x24]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ws2_32.dll_recvfrom
mov edi, eax
lea esi, [ebx + 0x28]
mov eax, dword [ebp - 0x20]
mov dword [esi], eax
mov ax, word [ebp - 0x22]
push eax
call sub.ws2_32.dll_ntohs
movzx eax, ax
mov dword [esi + 4], eax
cmp edi, 0xffffffff
jne 0x4d0b7c
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x2733
je 0x4d0b7f
cmp dword [ebp - 0x14], 0x2746
je 0x4d0b7f
cmp word [ebx + 0x12], 0
je 0x4d0b7f
lea eax, [ebp - 0x14]
push eax
mov cl, 2
mov edx, ebx
mov eax, dword [ebx + 0x14]
call dword [ebx + 0x10]
jmp 0x4d0b7f
mov dword [ebp - 0xc], edi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d0b93
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4d0ba0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov byte [ebp - 9], 0
mov word [ebp - 0x20], 2
push ebx
call sub.ws2_32.dll_htons
mov word [ebp - 0x1e], ax
mov eax, edi
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
jne 0x4d0beb
mov ecx, 0x4d0c64
mov dl, 1
mov eax, dword [0x4d054c]
call fcn.0040fa74
call fcn.00404530
cmp byte [esi + 0x44], 0
je 0x4d0c06
mov eax, dword [ebp - 8]
push eax
push edi
push ebx
mov ecx, dword [ebp - 4]
mov edx, dword [esi + 4]
mov eax, esi
call fcn.004d12a4
jmp 0x4d0c1f
push 0x10
lea eax, [ebp - 0x20]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [esi + 4]
push eax
call sub.ws2_32.dll_sendto
inc eax
jne 0x4d0c4a
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x4d0c4e
cmp word [esi + 0x12], 0
je 0x4d0c4e
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, esi
mov eax, dword [esi + 0x14]
call dword [esi + 0x10]
jmp 0x4d0c4e
mov byte [ebp - 9], 1
mov al, byte [ebp - 9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4d0c84
Capabilities:
Set socket configuration

Disassembly:
push ebx
add esp, 0xfffffff4
mov dword [esp], edx
mov ebx, eax
mov eax, dword [ebx + 0x24]
cmp eax, dword [esp]
je 0x4d0ce3
push 4
lea eax, [esp + 4]
push eax
push 0x1002
push 0xffff
mov eax, dword [ebx + 4]
push eax
call sub.ws2_32.dll_setsockopt
inc eax
jne 0x4d0cdd
call sub.kernel32.dll_GetLastError_1
mov dword [esp + 4], eax
mov byte [esp + 8], 0
lea eax, [esp + 4]
push eax
push 0
mov ecx, 0x4d0cf0
mov dl, 1
mov eax, dword [0x4d054c]
call fcn.0040fab0
call fcn.00404530
mov eax, dword [esp]
mov dword [ebx + 0x24], eax
add esp, 0xc
pop ebx
ret

Function at 0x4d0d10
Capabilities:
Set socket configuration

Disassembly:
push ebx
add esp, 0xfffffff4
mov dword [esp], edx
mov ebx, eax
mov eax, dword [ebx + 0x20]
cmp eax, dword [esp]
je 0x4d0d6f
push 4
lea eax, [esp + 4]
push eax
push 0x1001
push 0xffff
mov eax, dword [ebx + 4]
push eax
call sub.ws2_32.dll_setsockopt
inc eax
jne 0x4d0d69
call sub.kernel32.dll_GetLastError_1
mov dword [esp + 4], eax
mov byte [esp + 8], 0
lea eax, [esp + 4]
push eax
push 0
mov ecx, 0x4d0d7c
mov dl, 1
mov eax, dword [0x4d054c]
call fcn.0040fab0
call fcn.00404530
mov eax, dword [esp]
mov dword [ebx + 0x20], eax
add esp, 0xc
pop ebx
ret
Function at 0x4d0d9c
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor edx, edx
mov dword [ebp - 0x1c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4d0ee2
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebx + 0x58], 0xffffffff
jne 0x4d0dcc
push 0
push 1
push 2
call sub.ws2_32.dll_socket
mov dword [ebx + 0x58], eax
mov word [ebp - 0x10], 2
mov ax, word [ebx + 0x4c]
push eax
call sub.ws2_32.dll_htons
mov word [ebp - 0xe], ax
mov eax, dword [ebx + 0x48]
call fcn.00405074
push eax
call sub.ws2_32.dll_inet_addr
mov dword [ebp - 0xc], eax
push 0x10
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebx + 0x58]
push eax
call sub.ws2_32.dll_connect
inc eax
jne 0x4d0e2b
call sub.ws2_32.dll_WSAGetLastError
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0
lea eax, [ebp - 0x18]
push eax
push 0
mov ecx, 0x4d0ef8
mov dl, 1
mov eax, dword [0x40a7c8]
call fcn.0040fab0
call fcn.00404530
lea edx, [ebp - 0x1c]
mov eax, dword [ebx + 0x50]
call fcn.0040b7e0
cmp dword [ebp - 0x1c], 0
je 0x4d0e4a
mov cl, 1
mov edx, dword [ebx + 0x58]
mov eax, ebx
call fcn.004d0f70
jmp 0x4d0e56
xor ecx, ecx
mov edx, dword [ebx + 0x58]
mov eax, ebx
call fcn.004d0f70
test al, al
jne 0x4d0e8b
mov eax, dword [ebx + 0x58]
push eax
call sub.ws2_32.dll_closesocket
call sub.ws2_32.dll_WSAGetLastError
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0
lea eax, [ebp - 0x18]
push eax
push 0
mov ecx, 0x4d0f24
mov dl, 1
mov eax, dword [0x40a7c8]
call fcn.0040fab0
call fcn.00404530
mov edx, dword [ebx + 0x58]
mov eax, ebx
call fcn.004d11cc
test al, al
jne 0x4d0eca
mov eax, dword [ebx + 0x58]
push eax
call sub.ws2_32.dll_closesocket
call sub.ws2_32.dll_WSAGetLastError
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0
lea eax, [ebp - 0x18]
push eax
push 0
mov ecx, 0x4d0f50
mov dl, 1
mov eax, dword [0x40a7c8]
call fcn.0040fab0
call fcn.00404530
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d0ee9
lea eax, [ebp - 0x1c]
call fcn.00404bb4
ret
Function at 0x4d0f70
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4d11bb
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
sub cl, 1
jb 0x4d0fa6
je 0x4d101e
jmp 0x4d11a0
mov byte [ebp - 0x110], 5
mov byte [ebp - 0x10f], 1
mov byte [ebp - 0x10e], 0
push 0
push 3
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.ws2_32.dll_send
inc eax
je 0x4d11a0
lea eax, [ebp - 0x110]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.00403540
push 0
push pe_nt_image_headers32
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.ws2_32.dll_recv
cmp eax, 2
jl 0x4d11a0
cmp byte [ebp - 0x10f], 0
jne 0x4d11a0
mov byte [ebp - 5], 1
jmp 0x4d11a0
mov byte [ebp - 0x110], 5
mov byte [ebp - 0x10f], 2
mov byte [ebp - 0x10e], 0
mov byte [ebp - 0x10d], 2
push 0
push 4
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.ws2_32.dll_send
inc eax
je 0x4d11a0
lea eax, [ebp - 0x110]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.00403540
push 0
push pe_nt_image_headers32
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.ws2_32.dll_recv
cmp eax, 2
jl 0x4d11a0
cmp byte [ebp - 0x10f], 2
jne 0x4d11a0
lea eax, [ebp - 0xc]
mov edx, dword [ebx + 0x50]
call fcn.00404c4c
lea eax, [ebp - 0x10]
mov edx, dword [ebx + 0x54]
call fcn.00404c4c
lea eax, [ebp - 0x110]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.00403540
mov byte [ebp - 0x110], 1
mov eax, dword [ebp - 0xc]
call fcn.00404e74
mov ebx, eax
mov byte [ebp - 0x10f], bl
mov esi, ebx
and esi, 0xff
dec esi
test esi, esi
jl 0x4d10f7
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0xc]
mov al, byte [eax + ebx]
lea edx, [ebx + 2]
mov byte [ebp + edx - 0x110], al
inc ebx
dec esi
jne 0x4d10e3
mov eax, dword [ebp - 0x10]
call fcn.00404e74
mov ebx, eax
mov eax, dword [ebp - 0xc]
call fcn.00404e74
add eax, 2
mov byte [ebp + eax - 0x110], bl
mov eax, dword [ebp - 0xc]
call fcn.00404e74
add eax, 2
movzx esi, byte [ebp + eax - 0x110]
dec esi
test esi, esi
jl 0x4d114c
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0xc]
call fcn.00404e74
add eax, 3
add eax, ebx
mov edx, dword [ebp - 0x10]
mov dl, byte [edx + ebx]
mov byte [ebp + eax - 0x110], dl
inc ebx
dec esi
jne 0x4d112e
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404e74
mov ebx, eax
mov eax, dword [ebp - 0x10]
call fcn.00404e74
add ebx, eax
add ebx, 3
push ebx
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.ws2_32.dll_send
inc eax
je 0x4d11a0
push 0
push pe_nt_image_headers32
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.ws2_32.dll_recv
inc eax
je 0x4d11a0
cmp byte [ebp - 0x10f], 0
jne 0x4d11a0
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d11c2
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404bd8
ret
Function at 0x4d11cc
Capabilities:
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffee4
mov esi, edx
mov edi, eax
lea ebp, [esp + 0x1a]
xor ebx, ebx
mov dword [esp], 0x10
push esp
lea eax, [esp + 0xe]
push eax
mov eax, dword [edi + 4]
push eax
call sub.ws2_32.dll_getsockname
mov byte [ebp], 5
mov byte [ebp + 1], 3
mov byte [ebp + 2], 0
mov byte [ebp + 3], 1
lea edx, [esp + 0xe]
lea eax, [ebp + 4]
mov ecx, 4
call fcn.00407dcc
lea edx, [esp + 0xc]
lea eax, [ebp + 8]
mov ecx, 2
call fcn.00407dcc
push 0
push 0xa
push ebp
push esi
call sub.ws2_32.dll_send
mov eax, ebp
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.00403540
push 0
push pe_nt_image_headers32
push ebp
push esi
call sub.ws2_32.dll_recv
cmp byte [ebp], 5
je 0x4d125b
cmp byte [ebp + 1], 0
jne 0x4d1295
lea edx, [ebp + 4]
lea eax, [esp + 4]
mov ecx, 4
call fcn.00407dcc
lea edx, [ebp + 8]
lea eax, [esp + 8]
mov ecx, 2
call fcn.00407dcc
mov word [edi + 0x5c], 2
mov ax, word [esp + 8]
mov word [edi + 0x5e], ax
mov eax, dword [esp + 4]
mov dword [edi + 0x60], eax
mov bl, 1
mov eax, ebx
add esp, 0x11c
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 0x10]
mov word [ebp - 0x414], 2
mov ax, word [ebp + 8]
push eax
call sub.ws2_32.dll_htons
mov word [ebp - 0x412], ax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x410], eax
lea eax, [ebp - 0x404]
xor ecx, ecx
mov edx, 0x3ff
call fcn.00403540
mov byte [ebp - 0x404], 0
mov byte [ebp - 0x403], 0
mov byte [ebp - 0x402], 0
mov byte [ebp - 0x401], 1
lea edx, [ebp - 0x410]
lea eax, [ebp - 0x400]
mov ecx, 4
call fcn.00407dcc
lea edx, [ebp - 0x412]
lea eax, [ebp - 0x3fc]
mov ecx, 2
call fcn.00407dcc
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x3fa]
mov ecx, esi
call fcn.00407dcc
push 0x10
lea eax, [ebx + 0x5c]
push eax
push 0
add esi, 0xa
push esi
lea eax, [ebp - 0x404]
push eax
push edi
call sub.ws2_32.dll_sendto
cmp eax, 0xffffffff
jne 0x4d1396
call sub.ws2_32.dll_WSAGetLastError
mov dword [ebp - 0x41c], eax
mov byte [ebp - 0x418], 0
lea eax, [ebp - 0x41c]
push eax
push 0
mov ecx, 0x4d13a8
mov dl, 1
mov eax, dword [0x40a7c8]
call fcn.0040fab0
call fcn.00404530
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4d13c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 0x404]
xor ecx, ecx
mov edx, 0x400
call fcn.00403540
mov word [ebp - 0x414], 2
mov ax, word [ebp + 8]
push eax
call sub.ws2_32.dll_htons
mov word [ebp - 0x412], ax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x410], eax
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x414]
push eax
push 0
push ebx
lea eax, [ebp - 0x404]
push eax
push esi
call sub.ws2_32.dll_recvfrom
mov esi, eax
cmp esi, 0xffffffff
jne 0x4d1462
call sub.ws2_32.dll_WSAGetLastError
mov dword [ebp - 0x41c], eax
mov byte [ebp - 0x418], 0
lea eax, [ebp - 0x41c]
push eax
push 0
mov ecx, 0x4d1524
mov dl, 1
mov eax, dword [0x40a7c8]
call fcn.0040fab0
call fcn.00404530
cmp byte [ebp - 0x404], 0
je 0x4d147f
mov ecx, 0x296
mov edx, 0x4d1544
mov eax, 0x4d1588
call fcn.00404b10
cmp byte [ebp - 0x403], 0
je 0x4d149c
mov ecx, 0x297
mov edx, 0x4d1544
mov eax, 0x4d1588
call fcn.00404b10
cmp byte [ebp - 0x402], 0
je 0x4d14b9
mov ecx, 0x298
mov edx, 0x4d1544
mov eax, 0x4d1588
call fcn.00404b10
cmp byte [ebp - 0x401], 1
je 0x4d14d6
mov ecx, 0x299
mov edx, 0x4d1544
mov eax, 0x4d1588
call fcn.00404b10
lea edx, [ebp - 0x400]
lea eax, [ebp - 0x410]
mov ecx, 4
call fcn.00407dcc
lea edx, [ebp - 0x3fc]
lea eax, [ebp - 0x412]
mov ecx, 2
call fcn.00407dcc
lea edx, [ebp - 0x3fa]
mov eax, edi
mov ecx, ebx
call fcn.00407dcc
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4d284c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
mov ebx, eax
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebx + 0x70]
cmp eax, 0xbb8
jb 0x4d2923
call sub.kernel32.dll_GetTickCount_1
mov dword [ebx + 0x70], eax
mov eax, ebx
call fcn.004d25ec
mov word [ebx + 0x38], ax
mov eax, dword [ebx + 0x3a]
mov ecx, 3
cdq
idiv ecx
mov dword [ebx + 0x3a], eax
mov eax, dword [ebx + 0x3e]
mov ecx, 3
cdq
idiv ecx
mov dword [ebx + 0x3e], eax
mov eax, dword [ebx + 0x42]
mov ecx, 3
cdq
idiv ecx
mov dword [ebx + 0x42], eax
mov eax, dword [ebx + 0x46]
mov ecx, 3
cdq
idiv ecx
mov dword [ebx + 0x46], eax
mov eax, dword [ebx + 0x4a]
mov ecx, 3
cdq
idiv ecx
mov dword [ebx + 0x4a], eax
mov eax, dword [ebx + 0x4e]
mov ecx, 3
cdq
idiv ecx
mov ecx, eax
mov dword [ebx + 0x4e], ecx
mov eax, ecx
mov ecx, 3
cdq
idiv ecx
mov dword [ebx + 0x4e], eax
mov eax, dword [ebx + 0x52]
mov ecx, 3
cdq
idiv ecx
mov dword [ebx + 0x52], eax
mov eax, dword [ebx + 0x74]
mov dword [ebx + 0x5a], eax
xor eax, eax
mov dword [ebx + 0x62], eax
xor eax, eax
mov dword [ebx + 0x66], eax
call sub.kernel32.dll_GetTickCount_1
mov dword [ebx + 0x6a], eax
lea eax, [ebx + 0x38]
push eax
push 0x36
mov cx, 0x4653
mov edx, 0x100007f
mov eax, dword [ebx + 4]
mov esi, dword [eax]
call dword [esi + 0x24]
lea eax, [ebx + 0x38]
mov edx, 0x36
call fcn.00407dd4
pop esi
pop ebx
ret
Function at 0x4d5e2c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
mov ebx, eax
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebx + 0x78]
cmp eax, 0xbb8
jb 0x4d5f03
call sub.kernel32.dll_GetTickCount_1
mov dword [ebx + 0x78], eax
mov eax, ebx
call fcn.004d5b74
mov word [ebx + 0x40], ax
mov eax, dword [ebx + 0x42]
mov ecx, 3
cdq
idiv ecx
mov dword [ebx + 0x42], eax
mov eax, dword [ebx + 0x46]
mov ecx, 3
cdq
idiv ecx
mov dword [ebx + 0x46], eax
mov eax, dword [ebx + 0x4a]
mov ecx, 3
cdq
idiv ecx
mov dword [ebx + 0x4a], eax
mov eax, dword [ebx + 0x4e]
mov ecx, 3
cdq
idiv ecx
mov dword [ebx + 0x4e], eax
mov eax, dword [ebx + 0x52]
mov ecx, 3
cdq
idiv ecx
mov dword [ebx + 0x52], eax
mov eax, dword [ebx + 0x56]
mov ecx, 3
cdq
idiv ecx
mov ecx, eax
mov dword [ebx + 0x56], ecx
mov eax, ecx
mov ecx, 3
cdq
idiv ecx
mov dword [ebx + 0x56], eax
mov eax, dword [ebx + 0x5a]
mov ecx, 3
cdq
idiv ecx
mov dword [ebx + 0x5a], eax
mov eax, dword [ebx + 0x7c]
mov dword [ebx + 0x62], eax
xor eax, eax
mov dword [ebx + 0x6a], eax
xor eax, eax
mov dword [ebx + 0x6e], eax
call sub.kernel32.dll_GetTickCount_1
mov dword [ebx + 0x72], eax
lea eax, [ebx + 0x40]
push eax
push 0x36
mov cx, 0x4653
mov edx, 0x100007f
mov eax, dword [ebx + 0xc]
mov esi, dword [eax]
call dword [esi + 0x24]
lea eax, [ebx + 0x40]
mov edx, 0x36
call fcn.00407dd4
pop esi
pop ebx
ret