joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51b4b0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2048
call fcn.005890d0
mov eax, dword [0x63ee20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
cmp dword [0x64529c], 0
je 0x51b4f2
push 2
push 2
push str.Download_Restarted..
mov eax, dword [0x64529c]
mov ecx, dword [eax]
mov edx, dword [0x64529c]
push edx
mov eax, dword [ecx + 8]
call eax
push 1
mov ecx, dword [ebp - 8]
call fcn.00506900
movzx eax, al
test eax, eax
jne 0x51b50d
mov eax, 0xffffff95
jmp 0x51b69e
mov byte [ebp - 0x1008], 0
push 0xfff
push 0
lea eax, [ebp - 0x1007]
push eax
call fcn.00588e40
add esp, 0xc
mov byte [ebp - 0x2008], 0
push 0xfff
push 0
lea eax, [ebp - 0x2007]
push eax
call fcn.00588e40
add esp, 0xc
push 0x1000
push 0
lea eax, [ebp - 0x1008]
push eax
call fcn.00588e40
add esp, 0xc
push 0x1000
push 0
lea eax, [ebp - 0x2008]
push eax
call fcn.00588e40
add esp, 0xc
lea eax, [ebp - 0x1008]
push eax
push 3
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov ecx, dword [ebp - 8]
mov eax, dword [edx + 0x58]
call eax
movsx eax, byte [ebp - 0x1008]
test eax, eax
je 0x51b64c
lea eax, [ebp - 0x1008]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x1008]
push eax
lea ecx, [ebp - 0x2008]
push ecx
call fcn.00589100
add esp, 8
push 0x5d2e24
lea eax, [ebp - 0x2008]
push eax
call fcn.00589110
add esp, 8
lea eax, [ebp - 0x2008]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x1000
push 0
lea eax, [ebp - 0x2008]
push eax
call fcn.00588e40
add esp, 0xc
lea eax, [ebp - 0x1008]
push eax
lea ecx, [ebp - 0x2008]
push ecx
call fcn.00589100
add esp, 8
push str..ssinfo
lea eax, [ebp - 0x2008]
push eax
call fcn.00589110
add esp, 8
lea eax, [ebp - 0x2008]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x60bd70
lea eax, [ebp - 0x2008]
push eax
call fcn.00589110
add esp, 8
lea eax, [ebp - 0x2008]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 8]
add ecx, 0x710
call fcn.00411110
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 8]
add ecx, 0x178
call fcn.00512700
mov ecx, dword [ebp - 8]
add ecx, 0x318
call fcn.00512700
push 1
push 1
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov ecx, dword [ebp - 8]
mov eax, dword [edx + 0x80]
call eax
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov ecx, dword [ebp - 8]
mov eax, dword [edx + 0x24]
call eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058844d
mov esp, ebp
pop ebp
ret
Function at 0x51e1d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b105c
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x63ee20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0xb
mov ecx, dword [ebp - 0x10]
add ecx, 0x16c
call fcn.00510a40
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x10]
add ecx, 0x14c
call fcn.00510a40
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x10]
add ecx, 0x12c
call fcn.00510a40
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x10]
add ecx, 0x110
call fcn.00411770
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x10]
add ecx, 0xf4
call fcn.00411770
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x10]
add ecx, 0xd8
call fcn.00411770
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x10]
add ecx, 0xbc
call fcn.00411770
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
add ecx, 0xa0
call fcn.00411770
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x84
call fcn.00411770
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x68
call fcn.00411770
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x4c
call fcn.00411770
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.00411770
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.0052f180
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5229b0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x63ee20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
push 0x23
push 1
push 1
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 8]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edx, ax
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
mov ecx, dword [ebp - 8]
call fcn.0051e400
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x522a11
push 0x14
mov eax, dword [ebp + 8]
add eax, 0x24
push eax
mov ecx, dword [ebp - 0x54]
add ecx, 0x38
push ecx
call fcn.0058c770
add esp, 0xc
mov eax, dword [ebp + 8]
cmp dword [eax + 0xc], 0
jne 0x522ade
push 0x10
push 0
lea eax, [ebp - 0x18]
push eax
call fcn.00588e40
add esp, 0xc
mov eax, 2
mov word [ebp - 0x18], ax
mov eax, dword [0x645498]
mov dword [ebp - 0x14], eax
movzx eax, word [0x63e908]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x16], ax
push 0x38
push 0
lea eax, [ebp - 0x50]
push eax
call fcn.00588e40
add esp, 0xc
mov eax, dword [0x6464a8]
mov dword [ebp - 0x4c], eax
movzx eax, word [0x6464a4]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x48], ax
mov dword [ebp - 0x44], 1
push 0x14
mov eax, dword [ebp - 8]
add eax, 0xb24
push eax
lea ecx, [ebp - 0x40]
push ecx
call fcn.0058c770
add esp, 0xc
push 0x14
mov eax, dword [ebp - 8]
add eax, 0xb38
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.0058c770
add esp, 0xc
push 0x10
lea eax, [ebp - 0x18]
push eax
push 0
push 0x38
lea ecx, [ebp - 0x50]
push ecx
mov edx, dword [0x645490]
push edx
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x522ade
call fcn.00514cf0
call fcn.00508df0
xor al, al
jmp 0x522ae0
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058844d
mov esp, ebp
pop ebp
ret 4
Function at 0x523a90
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax], 0
push 0x1080
push 0
mov eax, dword [ebp - 4]
add eax, 0x14
push eax
call fcn.00588e40
add esp, 0xc
push 0x10
push 0
mov eax, dword [ebp - 4]
add eax, 4
push eax
call fcn.00588e40
add esp, 0xc
cmp dword [ebp + 8], 0
je 0x523aee
push 0x1000
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x14
push ecx
call fcn.0051ba60
add esp, 0xc
jmp 0x523b51
push 0x1000
mov eax, dword [ebp - 4]
add eax, 0x14
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, dword [ebp - 4]
movsx ecx, byte [eax + 0x14]
test ecx, ecx
je 0x523b3d
mov eax, dword [ebp - 4]
add eax, 0x14
push eax
call fcn.005884b0
add esp, 4
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx + eax + 0x13]
cmp edx, 0x5c
je 0x523b3d
push str.drivers_tcpip.sys
mov eax, dword [ebp - 4]
add eax, 0x14
push eax
call fcn.00589110
add esp, 8
jmp 0x523b51
push 0x60e44c
mov eax, dword [ebp - 4]
add eax, 0x14
push eax
call fcn.00589110
add esp, 8
mov eax, dword [ebp - 4]
add eax, 0x14
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x523c69
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x14
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x523c69
mov eax, dword [ebp - 0x10]
add eax, 0xa
push eax
call fcn.0044f8bb
add esp, 4
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x10]
add eax, 0xa
push eax
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00588e40
add esp, 0xc
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 2
push ecx
push 0
mov edx, dword [ebp - 4]
add edx, 0x14
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x523c57
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x18]
push ecx
push 0x5d2fb8
mov edx, dword [ebp - 0x14]
push edx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x523c57
cmp dword [ebp - 0x18], 0
je 0x523c57
cmp dword [ebp - 0xc], 0x34
jb 0x523c57
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 8]
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp - 4]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 8]
and ecx, 0xffff
mov edx, dword [ebp - 4]
mov dword [edx + 8], ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0xc]
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0xc]
and ecx, 0xffff
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], ecx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
push ecx
call fcn.0044f8b0
add esp, 4
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x5240a0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 8], 0
push 0
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x524143
mov eax, dword [ebp - 8]
and eax, 0x40
je 0x52411e
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp + 0x1c]
or ecx, 0x80000000
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], 0xffffffff
je 0x52411c
mov dword [ebp - 0x10], 0
jmp 0x524143
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x526930
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b17b8
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x63ee20]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x3c], 0
je 0x526975
mov eax, dword [ebp - 0x14]
movzx ecx, byte [eax + 0x41]
test ecx, ecx
jne 0x526981
mov al, 1
jmp 0x526b48
mov dword [ebp - 0x18], 8
call fcn.00424230
push eax
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x14]
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 0xa8], eax
call fcn.00424230
mov dword [ebp - 0xa4], eax
lea ecx, [ebp - 0xa8]
push ecx
lea edx, [ebp - 0xa4]
push edx
call fcn.00424350
add esp, 8
movzx eax, al
test eax, eax
je 0x5269d0
xor al, al
jmp 0x526b48
push 0
push 8
lea ecx, [ebp - 0x38]
call fcn.0042c040
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0xa0]
push ecx
lea ecx, [ebp - 0x38]
call fcn.0040cf10
mov ecx, eax
call fcn.00526c60
mov esi, eax
lea ecx, [ebp - 0x38]
call fcn.0040c0f0
add esi, eax
push esi
lea edx, [ebp - 0x98]
push edx
lea ecx, [ebp - 0x38]
call fcn.0040cf10
mov ecx, eax
call fcn.00526c60
push eax
mov eax, dword [ebp - 0x14]
add eax, 0x44
push eax
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx + 0x3c]
call fcn.00526f70
mov dword [ebp - 0xac], eax
cmp dword [ebp - 0xac], 0
je 0x526a5d
cmp dword [ebp - 0xac], 1
je 0x526a64
cmp dword [ebp - 0xac], 3
je 0x526b04
jmp 0x526b1c
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x41], 0
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x38]
call fcn.0040cf10
mov ecx, eax
call fcn.00526c60
mov ecx, dword [ebp - 0x1c]
sub ecx, eax
mov dword [ebp - 0x3c], ecx
je 0x526acd
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
push 1
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x38]
call fcn.0040cf10
mov ecx, eax
call fcn.00526c60
push eax
call fcn.0058fa70
add esp, 0x10
cmp dword [ebp - 0x3c], eax
je 0x526acd
mov byte [ebp - 0x80], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00411770
mov al, byte [ebp - 0x80]
jmp 0x526b48
mov eax, dword [ebp - 0x14]
movzx ecx, byte [eax + 0x41]
test ecx, ecx
jne 0x526af0
mov byte [ebp - 0x7f], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00411770
mov al, byte [ebp - 0x7f]
jmp 0x526b48
cmp dword [ebp - 0x3c], 0
jne 0x526b02
push 0
push 8
lea ecx, [ebp - 0x38]
call fcn.00423030
jmp 0x526b34
mov byte [ebp - 0x7e], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00411770
mov al, byte [ebp - 0x7e]
jmp 0x526b48
mov byte [ebp - 0x7d], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00411770
mov al, byte [ebp - 0x7d]
jmp 0x526b48
jmp 0x5269e3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0058844d
mov esp, ebp
pop ebp
ret
Function at 0x52c900
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x52c921
or eax, 0xffffffff
jmp 0x52c938
mov eax, dword [ebp + 0xc]
and eax, 2
je 0x52c936
mov eax, dword [ebp - 4]
and eax, 1
je 0x52c936
or eax, 0xffffffff
jmp 0x52c938
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x52c940
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x52c971
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x52c96c
xor eax, eax
jmp 0x52c973
or eax, 0xffffffff
jmp 0x52c973
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x536b80
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
movzx eax, byte [ebp + 8]
neg eax
sbb eax, eax
add eax, 1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov cl, byte [ebp + 8]
mov byte [eax + 2], cl
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x14]
push ecx
call fcn.0056a030
add esp, 4
movzx edx, al
test edx, edx
je 0x536bdc
lea eax, [ebp - 8]
push eax
push 0x8004667e
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x14]
push edx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x536bdc
mov dword [ebp - 0x4c], 1
jmp 0x536be3
mov dword [ebp - 0x4c], 0
mov al, byte [ebp - 0x4c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x537670
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x14]
push ecx
call fcn.0056a030
add esp, 4
movzx edx, al
test edx, edx
jne 0x537696
xor al, al
jmp 0x5376c7
cmp dword [ebp + 8], 0
jg 0x5376a3
mov dword [ebp + 8], 0x2000
push 4
lea eax, [ebp + 8]
push eax
push 0x1002
push 0xffff
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x14]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
neg eax
sbb eax, eax
add eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x5376d0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x14]
push ecx
call fcn.0056a030
add esp, 4
movzx edx, al
test edx, edx
jne 0x5376f6
xor al, al
jmp 0x537727
cmp dword [ebp + 8], 0
jg 0x537703
mov dword [ebp + 8], 0x2000
push 4
lea eax, [ebp + 8]
push eax
push 0x1001
push 0xffff
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x14]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
neg eax
sbb eax, eax
add eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x537730
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x105c
call fcn.005890d0
mov eax, dword [0x63ee20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
call fcn.00536b30
cmp dword [ebp + 8], 0
je 0x537775
mov eax, dword [ebp + 8]
push eax
call fcn.0042da10
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0x537775
xor al, al
jmp 0x5378c2
cmp dword [ebp + 0xc], 0
jne 0x537782
mov dword [ebp + 0xc], 0
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x14], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x14]
push ecx
call fcn.0056a030
add esp, 4
movzx edx, al
test edx, edx
jne 0x537810
mov byte [ebp - 0x1008], 0
push 0xfff
push 0
lea eax, [ebp - 0x1007]
push eax
call fcn.00588e40
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.socket_bind_error_:_Last_Error__lu_
lea eax, [ebp - 0x1008]
push eax
call fcn.00588ffd
add esp, 0xc
cmp dword [0x64529c], 0
je 0x537809
push 7
push 7
lea eax, [ebp - 0x1008]
push eax
mov ecx, dword [0x64529c]
mov edx, dword [ecx]
mov eax, dword [0x64529c]
push eax
mov ecx, dword [edx + 8]
call ecx
xor al, al
jmp 0x5378c2
mov eax, 2
mov word [ebp - 0x1018], ax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1014], eax
movzx eax, word [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1016], ax
push 0x10
lea eax, [ebp - 0x1018]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x14]
push edx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x5378b8
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x10], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov eax, dword [ebp - 8]
mov byte [eax], 1
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 1]
test ecx, ecx
je 0x53787e
push 1
mov ecx, dword [ebp - 8]
call fcn.005378e0
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 2]
test ecx, ecx
jne 0x5378a6
push 0
mov ecx, dword [ebp - 8]
call fcn.00536b80
movzx edx, al
test edx, edx
jne 0x5378a6
mov dword [ebp - 0x105c], 0
jmp 0x5378b0
mov dword [ebp - 0x105c], 1
mov al, byte [ebp - 0x105c]
jmp 0x5378c2
mov ecx, dword [ebp - 8]
call fcn.00536b30
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058844d
mov esp, ebp
pop ebp
ret 8

Function at 0x5378e0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov cl, byte [ebp + 8]
mov byte [eax + 1], cl
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x14]
push ecx
call fcn.0056a030
add esp, 4
movzx edx, al
test edx, edx
jne 0x53790f
mov al, 1
jmp 0x53793d
movzx eax, byte [ebp + 8]
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 8], eax
push 4
lea eax, [ebp - 8]
push eax
push 0x20
push 0xffff
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x14]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
neg eax
sbb eax, eax
add eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x537a70
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x63ee20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
cmp dword [ebp + 8], 0
je 0x537ab4
cmp dword [ebp + 0xc], 0
jle 0x537ab4
cmp dword [ebp + 0xc], 0x2000
jg 0x537ab4
cmp dword [ebp + 0x10], 0
je 0x537ab4
mov eax, dword [ebp + 0x14]
push eax
call fcn.0042da10
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0x537ab8
xor al, al
jmp 0x537b36
mov ecx, dword [ebp - 8]
call fcn.00537620
movzx eax, al
test eax, eax
jne 0x537ae8
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.00537730
movzx ecx, al
test ecx, ecx
jne 0x537ae8
xor al, al
jmp 0x537b36
mov eax, 2
mov word [ebp - 0x18], ax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
movzx eax, word [ebp + 0x14]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x16], ax
push 0x10
lea eax, [ebp - 0x18]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, dword [ebp + 0xc]
jne 0x537b2c
mov al, 1
jmp 0x537b36
mov ecx, dword [ebp - 8]
call fcn.00537b50
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058844d
mov esp, ebp
pop ebp
ret 0x10
Function at 0x538320
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x63ee20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
cmp dword [ebp + 8], 0
je 0x538342
cmp dword [ebp + 0xc], 0
jg 0x538349
xor eax, eax
jmp 0x5383e3
mov ecx, dword [ebp - 8]
call fcn.00537620
movzx eax, al
test eax, eax
jne 0x538360
or eax, 0xffffffff
jmp 0x5383e3
mov dword [ebp - 0x1c], 0x10
cmp dword [ebp + 0xc], 0x2000
jle 0x538377
mov dword [ebp + 0xc], 0x2000
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x14]
push edx
call dword [sym.imp.WS2_32.dll_recvfrom]
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 0
jle 0x5383c7
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0xc], ecx
movzx eax, word [ebp - 0x16]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, ax
and ecx, 0xffff
mov edx, dword [ebp - 8]
mov dword [edx + 4], ecx
mov eax, dword [ebp + 0xc]
jmp 0x5383e3
mov ecx, dword [ebp - 8]
call fcn.00537b50
mov ecx, dword [ebp - 8]
call fcn.00537620
movzx eax, al
neg eax
sbb eax, eax
neg eax
sub eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058844d
mov esp, ebp
pop ebp
ret 8
Function at 0x53c960
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
mov eax, dword [0x63ee20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0xc], 0x400
mov dword [ebp - 0x414], 0xffffffff
mov dword [ebp - 0x418], 0
cmp dword [ebp + 8], 0
jge 0x53c99e
mov dword [ebp + 8], 0xffff
mov eax, dword [ebp - 0xc]
add eax, 1
push eax
push 0
lea ecx, [ebp - 0x410]
push ecx
call fcn.00588e40
add esp, 0xc
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 0x410]
push ecx
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x53ca72
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x53ca72
mov eax, dword [ebp - 8]
movsx ecx, word [eax + 0xa]
cmp ecx, 4
jb 0x53ca72
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0xc]
cmp dword [ecx + edx*4], 0
je 0x53ca72
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
sub ecx, 1
mov dword [ebp + 8], ecx
test eax, eax
jl 0x53ca72
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [ecx + edx*4]
mov ecx, dword [eax]
mov dword [ebp - 0x414], ecx
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x414]
push eax
call fcn.0056a030
add esp, 4
movzx ecx, al
test ecx, ecx
je 0x53ca70
mov eax, dword [ebp - 0x414]
push eax
call fcn.0053cad0
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0x53ca70
mov eax, dword [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x53c9fc
mov eax, dword [ebp - 0x418]
push eax
call fcn.0056a030
add esp, 4
movzx ecx, al
test ecx, ecx
je 0x53caac
mov edx, dword [ebp - 0x414]
push edx
call fcn.0053cad0
add esp, 4
movzx eax, al
test eax, eax
je 0x53caac
mov ecx, dword [ebp - 0x418]
mov dword [ebp - 0x45c], ecx
jmp 0x53cab8
mov edx, dword [ebp - 0x414]
mov dword [ebp - 0x45c], edx
mov eax, dword [ebp - 0x45c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058844d
mov esp, ebp
pop ebp
ret