joyce8/EMBER2024-capa huggingface dataset:
Function at 0x493804
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
cmp dword [ebp + 8], 0
je 0x493854
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x493825
test al, 0x10
jne 0x493854
push esi
push dword [ebp + 8]
lea esi, [ebp - 0x84]
call fcn.004031e1
mov ecx, dword [eax]
call fcn.004936cb
lea eax, [ebp - 0x80]
cmp dword [ebp - 0x84], eax
pop esi
je 0x493854
push dword [ebp - 0x84]
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
leave
ret

Function at 0x493c21
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
call dword [section..data]
xor ebx, ebx
cmp byte [0x4f9cfc], bl
jne 0x493c65
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 8]
push eax
mov byte [0x4f9cfc], 1
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], ebx
call sub.gdiplus.dll_GdiplusStartup
push 0x4d4a98
push 0x65
push dword [0x4f7be8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x493c92
push esi
push dword [0x4f7be8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 0xc], eax
jne 0x493c99
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
push esi
push dword [0x4f7be8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push dword [ebp - 0xc]
mov esi, eax
cmp esi, ebx
jne 0x493cc2
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x493c92
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 4]
push eax
push 1
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jge 0x493d09
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
jmp 0x493c94
mov ebx, dword [ebp - 4]
jmp 0x493cfc
Function at 0x493f8f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b07ed
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x4f1020]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x1c], ebx
cmp dword [ebp + 8], 0
je 0x4940e2
lea eax, [ebx + 0x28]
push eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [esp + 0x48], 0
lea eax, [ebx + 0x58]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx]
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], eax
mov ecx, dword [eax + 4]
lea edi, [esp + 0x2c]
lea esi, [esp + 0x24]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], eax
call fcn.0049497f
test al, al
je 0x49407c
call fcn.0049495d
and dword [esp + 0x18], 0
mov ebx, eax
lea edi, [esp + 0x18]
call fcn.00403e28
mov eax, dword [ebp + 8]
mov byte [esp + 0x48], 1
mov edi, dword [esp + 0x18]
cmp dword [edi + 0x14], eax
jne 0x494071
push dword [esp + 0x28]
mov ebx, dword [esp + 0x14]
push dword [esp + 0x28]
lea eax, [esp + 0x3c]
push eax
call fcn.0046949b
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], eax
mov esi, edi
mov byte [esp + 0x48], 0
call fcn.00403737
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
jmp 0x493ff6
lea esi, [esp + 0x24]
call fcn.0048206a
jmp 0x49405b
lea eax, [ebx - 4]
push eax
call fcn.004946ae
test al, al
jne 0x4940d8
mov eax, dword [ebx + 0x78]
test eax, eax
je 0x4940d8
mov edi, dword [ebp + 8]
cmp dword [eax + 0x14], edi
jne 0x4940d8
push dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call esi
cmp byte [ebp + 0xc], 0
je 0x4940e2
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x78]
test eax, eax
je 0x4940d0
cmp dword [eax + 0x14], edi
jne 0x4940d0
push dword [esp + 0x14]
call esi
jmp 0x4940aa
push dword [esp + 0x14]
call esi
jmp 0x4940e2
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x494130
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b07ed
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x4f1020]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x1c], ebx
lea eax, [ebx + 0x28]
push eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [esp + 0x48], 0
lea eax, [ebx + 0x58]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx]
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], eax
mov ecx, dword [eax + 4]
lea edi, [esp + 0x2c]
lea esi, [esp + 0x24]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], eax
call fcn.0049497f
test al, al
je 0x494213
call fcn.0049495d
and dword [esp + 0x18], 0
mov ebx, eax
lea edi, [esp + 0x18]
call fcn.00403e28
mov eax, dword [ebp + 8]
mov byte [esp + 0x48], 1
mov edi, dword [esp + 0x18]
cmp dword [edi + 0x18], eax
jne 0x494208
push dword [esp + 0x28]
mov ebx, dword [esp + 0x14]
push dword [esp + 0x28]
lea eax, [esp + 0x3c]
push eax
call fcn.0046949b
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], eax
mov esi, edi
mov byte [esp + 0x48], 0
call fcn.00403737
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
jmp 0x49418d
lea esi, [esp + 0x24]
call fcn.0048206a
jmp 0x4941f2
lea eax, [ebx - 4]
push eax
call fcn.004946ae
test al, al
jne 0x49426f
mov eax, dword [ebx + 0x78]
test eax, eax
je 0x49426f
mov edi, dword [ebp + 8]
cmp dword [eax + 0x18], edi
jne 0x49426f
push dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call esi
cmp byte [ebp + 0xc], 0
je 0x494279
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x78]
test eax, eax
je 0x494267
cmp dword [eax + 0x18], edi
jne 0x494267
push dword [esp + 0x14]
call esi
jmp 0x494241
push dword [esp + 0x14]
call esi
jmp 0x494279
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4969fc
Capabilities:
Check if file exists

Disassembly:
push 0x20
mov eax, 0x4b33c7
call fcn.004afcf2
mov edi, ecx
mov ebx, dword [edi + 0xc]
call fcn.0049569a
test al, al
jne 0x496a1e
xor eax, eax
inc eax
jmp 0x496b0f
lea esi, [ebp - 0x18]
mov eax, edi
call fcn.0049661d
and dword [ebp - 4], 0
push dword [edi + 0x18]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x496a51
push 0x4d4b4c
push dword [ebp + 8]
call fcn.004014fa
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
jmp 0x496b08
lea esi, [ebp - 0x14]
call fcn.0047f30e
mov esi, dword [ebp - 0x18]
cmp dword [esi - 0xc], 0
jge 0x496a6c
push 0x80070057
call fcn.00401000
movzx eax, word [esi]
mov ebx, dword [sym.imp.MSVCR80.dll_towlower]
push eax
call ebx
pop ecx
push dword [ebp - 0x14]
mov word [ebp - 0x12], ax
call ebx
pop ecx
mov cx, word [ebp - 0x12]
cmp cx, ax
jne 0x496a93
push 0x4d4b60
jmp 0x496afd
mov ebx, dword [edi + 0xc]
call fcn.00495765
mov ebx, eax
xor eax, eax
cmp dword [esi - 0xc], eax
mov edi, edx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
jl 0x496a62
movzx eax, word [esi]
lea ecx, [ebp - 0x2c]
push ecx
push eax
call fcn.0047f6d8
test eax, eax
pop ecx
pop ecx
je 0x496af8
mov eax, dword [ebp - 0x28]
add ebx, 0x40000000
adc edi, 0
cmp eax, edi
ja 0x496af3
jb 0x496ad8
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jae 0x496af3
push 0x4d4b74
push dword [ebp + 8]
call fcn.004014fa
xor edi, edi
lea eax, [esi - 0x10]
call fcn.0040113b
mov eax, edi
jmp 0x496b0f
xor edi, edi
inc edi
jmp 0x496ae7
push 0x4d4b88
push dword [ebp + 8]
call fcn.004014fa
lea eax, [esi - 0x10]
call fcn.0040113b
xor eax, eax
call fcn.004afdca
ret 4

Function at 0x499265
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4f1020]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004991a4
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4992b4
cmp dword [ebp - 0x1c], 5
jb 0x4992cc
jmp 0x4992c8
cmp dword [ebp - 0x10], 1
jne 0x4992cc
cmp dword [ebp - 0x1c], 4
ja 0x4992c8
jne 0x4992cc
cmp dword [ebp - 0x18], 0
jbe 0x4992cc
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4c20cc
call fcn.00404022
test eax, eax
jge 0x4992ed
mov byte [0x4f8068], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00499bb9
add ebp, 0x78
leave
ret
Function at 0x4997de
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4f7c98], 0
push esi
jne 0x499751
call fcn.0049967c
test eax, eax
je 0x499794
mov eax, dword [0x4f7c98]
cmp eax, 1
jne 0x499772
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x499794
pop esi
ret
push eax
call dword [0x4f7ca0]
test eax, eax
jne 0x4997dc
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x499798
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4f7c98]
call dword [0x4f7ca0]
mov edi, eax
test edi, edi
je 0x4997bf
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x4997db
lea edi, [esi + 0xff0]
push esi
push dword [0x4f7c98]
call dword [0x4f7c9c]
add esi, 0x10
cmp esi, edi
jb 0x4997c5
mov eax, esi
pop edi
pop esi
ret
jmp 0x49973e

Function at 0x499fa4
Capabilities:
Encode data using xor

Disassembly:
cmp edx, ebx
je 0x499fa8
xchg edx, eax
sub ebx, 0x1064e182
adc byte [edi], cl
scasd eax, dword es:[edi]
invalid
and edi, 0xb7736795
and ah, 0xe9
lea edi, [0xac5a3f38]
mov ch, ah
mov ah, 0x17
jmp 0x499fc6
cmp eax, 0xa58d
jae 0x499fce
inc esi
test ah, 0xe6
push 0xa90
je 0x499fdb
test cl, 0xb3
pop ebp
test ebx, ecx
ja 0x499fe5
test al, bl
mov cl, ah
mov eax, 0x7936484
xor ah, 0x24
test dl, 0x70
xor ebx, ebp
imul esi, edx, 0x3c414cdc
or bh, 0xfd
movsx ebp, dh
imul ebp, ecx
dec ebp
inc ebp
and ah, cl
imul edi, ecx
mov ch, dh
call 0x49a012
lea edx, [0xba56ab8d]
movsx ecx, ax
imul eax, ebp, 0xa3642214
mov dword [0xc3b1058d], eax
invalid
invalid
jmp 0x49a02b
cmp esi, 0xbdae
pop ebx

Function at 0x49a418
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4f1020]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x49a459
cmp byte [ebp - 0x194], 2
jne 0x49a453
cmp byte [ebp - 0x193], 2
je 0x49a45c
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00499bb9
leave
ret

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

Disassembly:
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x4a218a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret
Function at 0x4a22ab
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x4a22cb
push dword [esi + 0xf4]
push dword [esp + 0xc]
push dword [esp + 0xc]
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
jl 0x4a2306
cmp eax, 2
jg 0x4a2306
imul eax, eax, 3
push edi
push dword [esi + 0xf0]
mov edi, dword [sym.imp.MSVCR80.dll_fwrite]
push 1
add eax, 0x4c2ef0
push 2
push eax
call edi
push dword [esi + 0xf0]
push 1
push dword [esp + 0x24]
push dword [esp + 0x24]
call edi
add esp, 0x20
pop edi
xor eax, eax
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + eax*4 + 0x12c]
push edi
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [ebp + 0x18]
and dword [edi], 0
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x4a253e
push ebx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x4a2518
and dword [ebp + 8], 0
mov dword [edi], 0x51
jmp 0x4a253d
push ebx
push esi
call fcn.004ab689
push eax
push str.Send_failure:__s
push dword [esi]
call fcn.004a2438
mov eax, dword [esi]
mov dword [eax + 0x855c], ebx
add esp, 0x14
mov dword [edi], 0x37
pop ebx
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebp
ret
Function at 0x4a2bed
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x4f1020]
xor eax, ebp
mov dword [ebp + 0x8c], eax
push ebx
push esi
mov esi, dword [ebp + 0x98]
cmp dword [esi + 0x198], 0
mov ebx, dword [esi]
push edi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x80], ebx
jne 0x4a2d0a
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp + 0x9c]
mov edi, 0x80
mov dword [ebp - 0x7c], edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x4a2c6a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.004ab689
push eax
push edi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.004a2438
add esp, 0x18
jmp 0x4a2d11
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x9c]
mov dword [ebp - 0x7c], edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4a2c9d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.004ab689
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
jmp 0x4a2c5c
lea edi, [esi + 0xc8]
lea ebx, [esi + 0x9a]
lea esi, [ebp - 0x74]
call fcn.004a2bb4
test eax, eax
jne 0x4a2cd2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x78]
call fcn.004ab689
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x80]
jmp 0x4a2c5d
mov eax, dword [ebp - 0x78]
lea edi, [eax + 0xfc]
lea ebx, [eax + 0xcc]
lea esi, [ebp + 0xc]
call fcn.004a2bb4
test eax, eax
jne 0x4a2d07
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x78]
call fcn.004ab689
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
jmp 0x4a2ccd
mov esi, dword [ebp - 0x78]
push esi
call fcn.004a2b65
pop ecx
mov ecx, dword [ebp + 0x8c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00499bb9
add ebp, 0x90
leave
ret

Function at 0x4a2d29
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x308]
push 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 1
push 6
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x4a2d6e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004ab689
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004a23c5
add esp, 0x14
jmp 0x4a2d7b
push str.TCP_NODELAY_set_n
push esi
call fcn.004a23c5
pop ecx
pop ecx
pop esi
leave
ret
Function at 0x4a31d2
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x520]
cmp eax, 0xffffffff
push esi
je 0x4a3225
mov ecx, dword [ecx + 0x514]
mov ecx, dword [ecx]
lea eax, [ecx + eax*4]
cmp dword [eax], 0
je 0x4a3225
mov ecx, dword [ebp + 0xc]
test ecx, ecx
mov eax, dword [eax]
je 0x4a31ff
mov dword [ecx], eax
cmp dword [eax + 0x144], 0
mov esi, dword [eax + 0x12c]
jne 0x4a3225
push 2
push 1
lea eax, [ebp + 0xb]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x4a3225
mov eax, esi
jmp 0x4a3228
or eax, 0xffffffff
pop esi
pop ebp
ret
Function at 0x4a42f6
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
and dword [eax], 0
and dword [ebp - 4], 0
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
mov dword [ebp - 8], eax
jne 0x4a4468
push esi
mov esi, dword [ebp - 0x10]
test esi, esi
mov dword [ebp - 0xc], esi
je 0x4a444d
push ebx
push edi
jmp 0x4a433e
mov esi, dword [ebp - 0xc]
cmp dword [esi + 4], 2
jne 0x4a43e1
cmp dword [esi + 0x18], 0
je 0x4a43e1
mov eax, dword [esi + 0x10]
test eax, eax
jbe 0x4a43e1
push 0x10
pop edi
cmp eax, edi
jb 0x4a43e1
push 0x20
call dword [0x4f1038]
mov ebx, eax
xor eax, eax
cmp ebx, eax
pop ecx
je 0x4a43f1
mov ecx, dword [esi]
mov dword [ebx], ecx
mov ecx, dword [esi + 4]
mov dword [ebx + 4], ecx
mov ecx, dword [esi + 8]
mov dword [ebx + 8], ecx
mov ecx, dword [esi + 0xc]
push edi
mov dword [ebx + 0xc], ecx
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x1c], eax
call dword [0x4f1038]
test eax, eax
pop ecx
mov dword [ebx + 0x18], eax
je 0x4a43fa
mov esi, dword [esi + 0x18]
mov edi, eax
mov eax, dword [ebp - 0xc]
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 eax, dword [eax + 0x14]
test eax, eax
je 0x4a43c8
push eax
call dword [0x4f1044]
test eax, eax
pop ecx
mov dword [ebx + 0x14], eax
je 0x4a440a
cmp dword [ebp - 4], 0
jne 0x4a43d1
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4a43db
mov dword [eax + 0x1c], ebx
mov esi, dword [ebp - 0xc]
mov dword [ebp - 0x14], ebx
mov esi, dword [esi + 0x1c]
test esi, esi
mov dword [ebp - 0xc], esi
jne 0x4a433b
jmp 0x4a4423
mov dword [ebp - 8], 8
jmp 0x4a4423
push ebx
mov dword [ebp - 8], 8
call dword [0x4f103c]
jmp 0x4a4422
push dword [ebx + 0x18]
mov dword [ebp - 8], 8
call dword [0x4f103c]
push ebx
call dword [0x4f103c]
pop ecx
pop ecx
xor esi, esi
cmp dword [ebp - 0x10], esi
pop edi
pop ebx
je 0x4a4435
push dword [ebp - 0x10]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebp - 8], esi
je 0x4a4448
push dword [ebp - 4]
call fcn.004a42ba
pop ecx
mov dword [ebp - 4], esi
jmp 0x4a445c
cmp dword [ebp - 4], esi
jne 0x4a445c
mov eax, 0x2af9
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
pop esi
leave
ret
Function at 0x4a47ba
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x48
push 1
mov ebx, eax
mov edi, ecx
call dword [0x4f1048]
mov esi, eax
xor eax, eax
cmp esi, eax
pop ecx
pop ecx
mov dword [ebp - 4], 0xc
mov dword [edi + 0x3ac], esi
je 0x4a486d
mov dword [edi + 0x3a4], eax
mov dword [edi + 0x3a8], eax
mov dword [edi + 0x3a0], eax
mov dword [edi + 0x39c], ebx
or dword [esi + 4], 0xffffffff
push ebx
push dword [ebp + 8]
mov dword [esi], eax
lea eax, [esi + 0x10]
call fcn.004a4676
test eax, eax
pop ecx
pop ecx
je 0x4a486d
lea ebx, [edi + 0x398]
push dword [ebx]
call fcn.0049ab0a
push dword [ebp + 8]
call dword [0x4f1044]
test eax, eax
pop ecx
pop ecx
mov dword [ebx], eax
je 0x4a486d
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x4a486d
lea eax, [esi + 0x10]
push eax
push 0x4a46ea
call fcn.004abebc
test eax, eax
pop ecx
pop ecx
mov dword [esi], eax
jne 0x4a4887
call dword [sym.imp.MSVCR80.dll__errno]
mov eax, dword [eax]
mov dword [ebp - 4], eax
add edi, 0x398
push edi
call fcn.004a4768
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x4a488a
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4a83ec
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x31c
push ebx
mov ebx, dword [ebp + 0x78]
push esi
mov esi, dword [ebp + 0x74]
xor edx, edx
push edi
xor edi, edi
cmp esi, 0xffffffff
mov dword [ebp + 0x64], edx
mov dword [ebp + 0x68], edx
jne 0x4a8420
cmp ebx, esi
jne 0x4a8420
mov eax, dword [ebp + 0x7c]
call fcn.004a83cd
jmp 0x4a85bd
cmp dword [ebp + 0x7c], edx
jle 0x4a8435
mov edi, dword [ebp + 0x7c]
call fcn.004a99b4
mov dword [ebp + 0x68], edx
mov dword [ebp + 0x64], eax
xor edx, edx
xor eax, eax
or ecx, 0xffffffff
inc eax
cmp esi, ecx
mov dword [ebp - 0xa8], edx
mov dword [ebp - 0x1ac], edx
je 0x4a8465
mov dword [ebp - 0x1a8], esi
mov dword [ebp - 0x1ac], eax
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xa8], eax
mov ecx, esi
cmp ebx, 0xffffffff
mov dword [ebp - 0x2b0], edx
je 0x4a84bc
mov dword [ebp - 0x2b0], eax
xor eax, eax
cmp dword [ebp - 0xa8], edx
mov dword [ebp - 0x2ac], ebx
jbe 0x4a8498
cmp dword [ebp + eax*4 - 0xa4], ebx
je 0x4a8498
inc eax
cmp eax, dword [ebp - 0xa8]
jb 0x4a8486
cmp eax, dword [ebp - 0xa8]
jne 0x4a84b6
cmp dword [ebp - 0xa8], 0x40
jae 0x4a84b6
mov dword [ebp + eax*4 - 0xa4], ebx
inc dword [ebp - 0xa8]
cmp ebx, ecx
jbe 0x4a84bc
mov ecx, ebx
cmp dword [ebp + 0x7c], edx
jge 0x4a84c5
xor ebx, ebx
jmp 0x4a84c8
lea ebx, [ebp + 0x5c]
lea esi, [ecx + 1]
xor eax, eax
cmp dword [ebp + 0x7c], eax
jle 0x4a84e7
mov eax, edi
cdq
mov ecx, 0x3e8
idiv ecx
imul edx, edx, 0x3e8
mov dword [ebp + 0x60], edx
jmp 0x4a84ec
jne 0x4a84ef
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x5c], eax
push ebx
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x2b0]
push eax
lea eax, [ebp - 0x1ac]
push eax
push esi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x4a8548
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x4a8522
cmp eax, 0x2714
jne 0x4a854c
cmp dword [ebp + 0x7c], 0
jle 0x4a84cb
push dword [ebp + 0x68]
push dword [ebp + 0x64]
call fcn.004a99b4
push edx
push eax
call fcn.004a99ca
mov edi, dword [ebp + 0x7c]
sub edi, eax
add esp, 0x10
test edi, edi
jg 0x4a84cb
jmp 0x4a854c
test eax, eax
jge 0x4a8551
or eax, 0xffffffff
jmp 0x4a85bd
jne 0x4a8557
xor eax, eax
jmp 0x4a85bd
xor esi, esi
cmp dword [ebp + 0x74], 0xffffffff
je 0x4a8589
lea eax, [ebp - 0x1ac]
push eax
push dword [ebp + 0x74]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4a8573
inc esi
lea eax, [ebp - 0xa8]
push eax
push dword [ebp + 0x74]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4a8589
or esi, 4
cmp dword [ebp + 0x78], 0xffffffff
je 0x4a85bb
lea eax, [ebp - 0x2b0]
push eax
push dword [ebp + 0x78]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4a85a5
or esi, 2
lea eax, [ebp - 0xa8]
push eax
push dword [ebp + 0x78]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4a85bb
or esi, 4
mov eax, esi
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret