joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46e6a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4abd58
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4d7334]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push edi
mov eax, dword [0x4d7334]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x4c]
mov edi, edx
xor edx, edx
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], edx
mov byte [esp + 0x1c], dl
mov dword [esp + 0x44], edx
mov ebx, dword [eax]
push 0xffffffffffffffff
mov dword [esp + 0x10], ebx
mov ebx, dword [eax + 4]
mov eax, dword [eax + 8]
push edx
push ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], eax
call fcn.004047f5
mov dword [esp + 0x34], edi
lea eax, [esi + 0x14]
lea edi, [esp + 0xc]
call fcn.0046e7e0
cmp dword [esp + 0x30], 0x10
jb 0x46e731
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00478eb2
add esp, 4
xor al, al
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0047e757
add esp, 0x3c
ret 4
Function at 0x476135
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4d7334]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00476074
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 fcn.00479200
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 0x476184
cmp dword [ebp - 0x1c], 5
jb 0x47619c
jmp 0x476198
cmp dword [ebp - 0x10], 1
jne 0x47619c
cmp dword [ebp - 0x1c], 4
ja 0x476198
jne 0x47619c
cmp dword [ebp - 0x18], 0
jbe 0x47619c
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4b0b38
call fcn.0045212e
test eax, eax
jge 0x4761bd
mov byte [0x4dcddc], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0047e757
add ebp, 0x78
leave
ret

Function at 0x476605
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4dc164], 0
push esi
jne 0x476578
call fcn.004764a3
test eax, eax
je 0x4765bb
mov eax, dword [0x4dc164]
cmp eax, 1
jne 0x476599
push 0xd
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
test eax, eax
je 0x4765bb
pop esi
ret
push eax
call dword [0x4dc16c]
test eax, eax
jne 0x476603
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 0x4765bf
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4dc164]
call dword [0x4dc16c]
mov edi, eax
test edi, edi
je 0x4765e6
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
mov eax, edi
jmp 0x476602
lea edi, [esi + 0xff0]
push esi
push dword [0x4dc164]
call dword [0x4dc168]
add esi, 0x10
cmp esi, edi
jb 0x4765ec
mov eax, esi
pop edi
pop esi
ret
jmp 0x476565
Function at 0x478f40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x478f7d
cmp dword [ebp + 0x14], edi
je 0x478f7d
cmp ecx, edi
jne 0x478f84
call fcn.0047fbd7
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00478bda
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x478f98
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x478fb9
cmp ebx, 0xffffffff
je 0x478fa8
push ebx
push edi
push ecx
call fcn.00479200
add esp, 0xc
cmp esi, edi
je 0x478f65
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x478f65
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x478fd5
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x478fdc
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4790cd
test word [esi + 0xc], 0x10c
je 0x479030
mov eax, dword [esi + 4]
test eax, eax
je 0x479030
jl 0x47912e
cmp ebx, eax
mov edi, ebx
jb 0x479001
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4790d5
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004784e8
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x4790c5
cmp ebx, dword [ebp - 0xc]
jb 0x47909d
cmp dword [ebp - 0xc], 0
je 0x47905a
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x47904f
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x479056
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x479065
mov eax, SysReAllocString
cmp ebx, eax
ja 0x479065
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x479101
push eax
push dword [ebp - 8]
push esi
call fcn.0047be10
pop ecx
push eax
call fcn.00486452
add esp, 0xc
test eax, eax
je 0x479140
cmp eax, 0xffffffff
je 0x47912e
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4790c5
push esi
call fcn.00485d71
cmp eax, 0xffffffff
pop ecx
je 0x479132
cmp dword [ebp - 4], 0
je 0x479101
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x478fe4
mov eax, dword [ebp + 0x14]
jmp 0x478f7f
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4790ec
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00479200
add esp, 0xc
call fcn.0047fbd7
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x478f75
cmp dword [ebp + 0xc], 0xffffffff
je 0x479117
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00479200
add esp, 0xc
call fcn.0047fbd7
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x478f75
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x478f7f
or dword [esi + 0xc], 0x10
jmp 0x479132
Function at 0x47de4f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x47de7c
call fcn.0047fbea
mov dword [eax], esi
call fcn.0047fbd7
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00478bda
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x47de58
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x47deab
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.0047fbfd
pop ecx
call fcn.0047fbd7
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x47ded2
test al, 1
je 0x47ded2
test byte [esp + 0xc], 2
je 0x47ded2
call fcn.0047fbea
mov dword [eax], 5
call fcn.0047fbd7
mov dword [eax], 0xd
jmp 0x47dea2
xor eax, eax
pop esi
ret

Function at 0x47e757
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4d7334]
jne 0x47e761
repz ret
jmp fcn.0048e3c1

Function at 0x48366f
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4d7c28]
je 0x48368a
inc edi
cmp edi, 0x17
jb 0x48367b
cmp edi, 0x17
jae 0x48380a
push ebp
push 3
call fcn.00490130
cmp eax, 1
pop ecx
je 0x4837d6
push 3
call fcn.00490130
test eax, eax
pop ecx
jne 0x4836be
cmp dword [0x4d7180], 1
je 0x4837d6
cmp ebx, 0xfc
je 0x483809
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4dc268
push ebp
call fcn.0047dfe4
add esp, 0xc
test eax, eax
je 0x4836f4
push esi
push esi
push esi
push esi
push esi
call fcn.00478ade
add esp, 0x14
push 0x104
mov esi, 0x4dc281
push esi
push 0
mov byte [0x4dc385], 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x483738
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0047dfe4
add esp, 0xc
test eax, eax
je 0x483738
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00478ade
add esp, 0x14
push esi
call fcn.004766a0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x48377d
push esi
call fcn.004766a0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4dc57c
push 0x4b1ce4
sub ecx, eax
push ecx
push eax
call fcn.0047b242
add esp, 0x14
test eax, eax
je 0x48377d
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00478ade
add esp, 0x14
jmp 0x48377f
xor esi, esi
push 0x4b1ce0
push ebx
push ebp
call fcn.0048f130
add esp, 0xc
test eax, eax
je 0x48379f
push esi
push esi
push esi
push esi
push esi
call fcn.00478ade
add esp, 0x14
push dword [edi*8 + 0x4d7c2c]
push ebx
push ebp
call fcn.0048f130
add esp, 0xc
test eax, eax
je 0x4837c1
push esi
push esi
push esi
push esi
push esi
call fcn.00478ade
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0048ff73
add esp, 0xc
jmp 0x483809
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x483809
cmp ebp, 0xffffffff
je 0x483809
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4d7c2c]
push dword [esi]
call fcn.004766a0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x48ff73
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004830f0
xor ebx, ebx
cmp dword [0x4dcd20], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x490049
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x490129
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x490129
push eax
call fcn.00483082
mov dword [esp], 0x4b2908
push edi
mov dword [0x4dcd20], eax
call esi
push eax
call fcn.00483082
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4dcd24], eax
call esi
push eax
call fcn.00483082
mov dword [0x4dcd28], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0047b4d4
test eax, eax
pop ecx
pop ecx
je 0x490017
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00478ade
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x490049
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00483082
cmp eax, ebx
pop ecx
mov dword [0x4dcd30], eax
je 0x490049
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00483082
pop ecx
mov dword [0x4dcd2c], eax
mov eax, dword [0x4dcd2c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4900ce
cmp dword [0x4dcd30], ecx
je 0x4900ce
push eax
call fcn.004830f9
push dword [0x4dcd30]
mov esi, eax
call fcn.004830f9
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4900ce
cmp edi, ebx
je 0x4900ce
call esi
cmp eax, ebx
je 0x49009b
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x49009b
test byte [ebp - 0x18], 1
jne 0x4900ce
lea eax, [ebp - 0x10]
push eax
call fcn.0047b50b
test eax, eax
pop ecx
je 0x4900b6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00478ade
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4900c5
or dword [ebp + 0x10], 0x200000
jmp 0x490109
or dword [ebp + 0x10], 0x40000
jmp 0x490109
mov eax, dword [0x4dcd24]
cmp eax, dword [ebp - 8]
je 0x490109
push eax
call fcn.004830f9
cmp eax, ebx
pop ecx
je 0x490109
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x490109
mov eax, dword [0x4dcd28]
cmp eax, dword [ebp - 8]
je 0x490109
push eax
call fcn.004830f9
cmp eax, ebx
pop ecx
je 0x490109
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4dcd20]
call fcn.004830f9
cmp eax, ebx
pop ecx
je 0x490129
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x49012b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x495604
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4d7334]
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 0x495645
cmp byte [ebp - 0x194], 2
jne 0x49563f
cmp byte [ebp - 0x193], 2
je 0x495648
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047e757
leave
ret

Function at 0x49d2f6
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 0x49d325
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 0x49d446
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x49d466
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 0x49d49f
cmp eax, 2
jg 0x49d49f
push dword [esi + 0xf0]
imul eax, eax, 3
push 1
add eax, 0x4b3e10
push 2
push eax
call fcn.0047c12c
push dword [esi + 0xf0]
push 1
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.0047c12c
add esp, 0x20
xor eax, eax
ret

Function at 0x49d665
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 0x49d6d7
push ebx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x49d6b1
and dword [ebp + 8], 0
mov dword [edi], 0x51
jmp 0x49d6d6
push ebx
push esi
call fcn.004a6816
push eax
push str.Send_failure:__s
push dword [esi]
call fcn.0049d5d1
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 0x49dd86
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x4d7334]
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 0x49dea3
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 0x49de03
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.004a6816
push eax
push edi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.0049d5d1
add esp, 0x18
jmp 0x49deaa
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 0x49de36
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.004a6816
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
jmp 0x49ddf5
lea edi, [esi + 0xc8]
lea ebx, [esi + 0x9a]
lea esi, [ebp - 0x74]
call fcn.0049dd4d
test eax, eax
jne 0x49de6b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x78]
call fcn.004a6816
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x80]
jmp 0x49ddf6
mov eax, dword [ebp - 0x78]
lea edi, [eax + 0xfc]
lea ebx, [eax + 0xcc]
lea esi, [ebp + 0xc]
call fcn.0049dd4d
test eax, eax
jne 0x49dea0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x78]
call fcn.004a6816
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
jmp 0x49de66
mov esi, dword [ebp - 0x78]
push esi
call fcn.0049dcfe
pop ecx
mov ecx, dword [ebp + 0x8c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047e757
add ebp, 0x90
leave
ret

Function at 0x49dec2
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 0x49df07
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004a6816
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0049d55e
add esp, 0x14
jmp 0x49df14
push str.TCP_NODELAY_set_n
push esi
call fcn.0049d55e
pop ecx
pop ecx
pop esi
leave
ret
Function at 0x49e36b
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 0x49e3be
mov ecx, dword [ecx + 0x514]
mov ecx, dword [ecx]
lea eax, [ecx + eax*4]
cmp dword [eax], 0
je 0x49e3be
mov ecx, dword [ebp + 0xc]
test ecx, ecx
mov eax, dword [eax]
je 0x49e398
mov dword [ecx], eax
cmp dword [eax + 0x144], 0
mov esi, dword [eax + 0x12c]
jne 0x49e3be
push 2
push 1
lea eax, [ebp + 0xb]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x49e3be
mov eax, esi
jmp 0x49e3c1
or eax, 0xffffffff
pop esi
pop ebp
ret
Function at 0x49f493
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 0x49f605
push esi
mov esi, dword [ebp - 0x10]
test esi, esi
mov dword [ebp - 0xc], esi
je 0x49f5ea
push ebx
push edi
jmp 0x49f4db
mov esi, dword [ebp - 0xc]
cmp dword [esi + 4], 2
jne 0x49f57e
cmp dword [esi + 0x18], 0
je 0x49f57e
mov eax, dword [esi + 0x10]
test eax, eax
jbe 0x49f57e
push 0x10
pop edi
cmp eax, edi
jb 0x49f57e
push 0x20
call dword [0x4d8608]
mov ebx, eax
xor eax, eax
cmp ebx, eax
pop ecx
je 0x49f58e
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 [0x4d8608]
test eax, eax
pop ecx
mov dword [ebx + 0x18], eax
je 0x49f597
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 0x49f565
push eax
call dword [0x4d8614]
test eax, eax
pop ecx
mov dword [ebx + 0x14], eax
je 0x49f5a7
cmp dword [ebp - 4], 0
jne 0x49f56e
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x49f578
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 0x49f4d8
jmp 0x49f5c0
mov dword [ebp - 8], 8
jmp 0x49f5c0
push ebx
mov dword [ebp - 8], 8
call dword [0x4d860c]
jmp 0x49f5bf
push dword [ebx + 0x18]
mov dword [ebp - 8], 8
call dword [0x4d860c]
push ebx
call dword [0x4d860c]
pop ecx
pop ecx
xor esi, esi
cmp dword [ebp - 0x10], esi
pop edi
pop ebx
je 0x49f5d2
push dword [ebp - 0x10]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebp - 8], esi
je 0x49f5e5
push dword [ebp - 4]
call fcn.0049f457
pop ecx
mov dword [ebp - 4], esi
jmp 0x49f5f9
cmp dword [ebp - 4], esi
jne 0x49f5f9
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 0x49f957
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 [0x4d8618]
mov esi, eax
xor eax, eax
cmp esi, eax
pop ecx
pop ecx
mov dword [ebp - 4], 0xc
mov dword [edi + 0x3ac], esi
je 0x49fa09
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.0049f813
test eax, eax
pop ecx
pop ecx
je 0x49fa09
lea ebx, [edi + 0x398]
push dword [ebx]
call fcn.00495cf2
push dword [ebp + 8]
call dword [0x4d8614]
test eax, eax
pop ecx
pop ecx
mov dword [ebx], eax
je 0x49fa09
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x49fa09
lea eax, [esi + 0x10]
push eax
push 0x49f887
call fcn.004a703b
test eax, eax
pop ecx
pop ecx
mov dword [esi], eax
jne 0x49fa23
call fcn.0047fbd7
mov eax, dword [eax]
mov dword [ebp - 4], eax
add edi, 0x398
push edi
call fcn.0049f905
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_SetLastError]
xor eax, eax
jmp 0x49fa26
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4a357d
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 0x4a35b1
cmp ebx, esi
jne 0x4a35b1
mov eax, dword [ebp + 0x7c]
call fcn.004a355e
jmp 0x4a374e
cmp dword [ebp + 0x7c], edx
jle 0x4a35c6
mov edi, dword [ebp + 0x7c]
call fcn.004a4b43
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 0x4a35f6
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 0x4a364d
mov dword [ebp - 0x2b0], eax
xor eax, eax
cmp dword [ebp - 0xa8], edx
mov dword [ebp - 0x2ac], ebx
jbe 0x4a3629
cmp dword [ebp + eax*4 - 0xa4], ebx
je 0x4a3629
inc eax
cmp eax, dword [ebp - 0xa8]
jb 0x4a3617
cmp eax, dword [ebp - 0xa8]
jne 0x4a3647
cmp dword [ebp - 0xa8], 0x40
jae 0x4a3647
mov dword [ebp + eax*4 - 0xa4], ebx
inc dword [ebp - 0xa8]
cmp ebx, ecx
jbe 0x4a364d
mov ecx, ebx
cmp dword [ebp + 0x7c], edx
jge 0x4a3656
xor ebx, ebx
jmp 0x4a3659
lea ebx, [ebp + 0x5c]
lea esi, [ecx + 1]
xor eax, eax
cmp dword [ebp + 0x7c], eax
jle 0x4a3678
mov eax, edi
cdq
mov ecx, 0x3e8
idiv ecx
imul edx, edx, 0x3e8
mov dword [ebp + 0x60], edx
jmp 0x4a367d
jne 0x4a3680
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 0x4a36d9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x4a36b3
cmp eax, 0x2714
jne 0x4a36dd
cmp dword [ebp + 0x7c], 0
jle 0x4a365c
push dword [ebp + 0x68]
push dword [ebp + 0x64]
call fcn.004a4b43
push edx
push eax
call fcn.004a4b59
mov edi, dword [ebp + 0x7c]
sub edi, eax
add esp, 0x10
test edi, edi
jg 0x4a365c
jmp 0x4a36dd
test eax, eax
jge 0x4a36e2
or eax, 0xffffffff
jmp 0x4a374e
jne 0x4a36e8
xor eax, eax
jmp 0x4a374e
xor esi, esi
cmp dword [ebp + 0x74], 0xffffffff
je 0x4a371a
lea eax, [ebp - 0x1ac]
push eax
push dword [ebp + 0x74]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4a3704
inc esi
lea eax, [ebp - 0xa8]
push eax
push dword [ebp + 0x74]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4a371a
or esi, 4
cmp dword [ebp + 0x78], 0xffffffff
je 0x4a374c
lea eax, [ebp - 0x2b0]
push eax
push dword [ebp + 0x78]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4a3736
or esi, 2
lea eax, [ebp - 0xa8]
push eax
push dword [ebp + 0x78]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4a374c
or esi, 4
mov eax, esi
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret