joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414ddb
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea ebx, [ebp - 0x818]
sub esp, 0x814
mov edi, dword [ebp + 0xc]
push ebx
push dword [ebp + 8]
call fcn.0040117d
add esp, 0x10
test eax, eax
jle 0x414e16
lea esi, [ebp - 0x418]
push eax
push eax
push esi
push edi
call fcn.0040117d
add esp, 0x10
test eax, eax
jg 0x414e24
push eax
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
jmp 0x414e2e
push edi
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
pop edx
pop ecx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x414e38
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea edi, [ebp - 0x418]
sub esp, 0x414
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push edi
push ebx
call fcn.0040117d
add esp, 0x10
test eax, eax
jle 0x414e6a
push eax
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x414e74
push edi
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edx
pop ecx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x414e7e
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
lea esi, [ebp - 0x408]
sub esp, 0x408
mov ebx, dword [ebp + 8]
push esi
push ebx
call fcn.0040117d
add esp, 0x10
test eax, eax
jle 0x414eac
sub esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x414eb6
sub esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
add esp, 0xc
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x414ec0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
lea esi, [ebp - 0x408]
sub esp, 0x408
mov ebx, dword [ebp + 8]
push esi
push ebx
call fcn.0040117d
add esp, 0x10
test eax, eax
jle 0x414eee
sub esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x414ef8
sub esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0xc
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x414f02
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
lea esi, [ebp - 0x408]
sub esp, 0x408
mov ebx, dword [ebp + 8]
push esi
push ebx
call fcn.0040117d
add esp, 0x10
test eax, eax
jle 0x414f30
sub esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x414f3a
sub esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esp, 0xc
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x414f44
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea edi, [ebp - 0x418]
sub esp, 0x414
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push edi
push ebx
call fcn.0040117d
add esp, 0x10
test eax, eax
jle 0x414f76
push eax
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x414f80
push edi
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop edx
pop ecx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x417d44
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 0x10]
cmove eax, dword [0x42a654]
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x1c], 0
mov byte [esi], 0
mov edi, esi
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x1c], 0
jg 0x417daa
push eax
push dword [ebp + 8]
push 0
push dword [ebp - 0x2c]
call fcn.0040a5c0
add esp, 0x10
test eax, eax
jg 0x417d96
push ebx
push ebx
push dword [ebp + 8]
push str.Timeout
jmp 0x417dc6
lea eax, [ebp - 0x1c]
push edx
push eax
push 0x4004667f
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
pop ecx
push 0
push 1
push edi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x417dd3
push eax
push eax
push dword [ebp + 8]
push str.Connection_closed
call fcn.0040427f
or ebx, 0xffffffff
add esp, 0x10
jmp 0x417e48
dec dword [ebp - 0x1c]
inc ebx
cmp byte [edi], 0xa
mov byte [edi + 1], 0
je 0x417deb
inc edi
cmp ebx, 0x1ff
jne 0x417d6f
jmp 0x417df6
cmp ebx, 1
mov eax, 2
cmove ebx, eax
cmp dword [ebp + 0x10], 0
mov dword [esi + ebx - 2], 0
jne 0x417e12
sub esp, 0xc
push esi
call fcn.00410bc8
add esp, 0x10
jmp 0x417e19
mov eax, dword [esi]
or eax, 0x20202020
test byte [0x46579a], 0x40
mov ebx, eax
je 0x417e48
cmp dword [ebp + 0x10], 0
mov edx, str.__.256s_r_n
mov eax, str.___.256s_r_n
cmove eax, edx
push eax
push dword [ebp + 8]
push esi
push dword [0x45c28c]
call fcn.00403e78
add esp, 0x10
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4181b4
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea esi, [ebp - 0x98]
sub esp, 0xac
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xac], ecx
test ebx, ebx
je 0x4182e4
cmp byte [ebx], 0
je 0x4182e4
push eax
push eax
push str.____t_r_n
push ebx
call fcn.0040343e
add esp, 0x10
test eax, eax
mov edi, eax
je 0x4181f9
mov byte [eax], 0
sub esp, 0xc
push dword [ebp + 0xc]
call fcn.0040a960
add esp, 0x10
test eax, eax
je 0x418231
push eax
push eax
mov eax, dword [ebp + 0xc]
add eax, 8
push eax
push esi
call fcn.004037d5
add esp, 0xc
add eax, esi
push ebx
push str.._64s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x418271
sub esp, 0xc
push dword [ebp + 0xc]
call fcn.0040a98a
add esp, 0xc
mov dword [ebp - 0x9c], eax
movzx eax, al
push ebx
push eax
movzx eax, byte [ebp - 0x9b]
push eax
movzx eax, byte [ebp - 0x9a]
push eax
movzx eax, byte [ebp - 0x99]
push eax
push str._u._u._u._u._.64s
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x20
sub esp, 0xc
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
add esp, 0xc
test eax, eax
je 0x4182cc
mov eax, dword [ebp - 0xac]
push ebx
push dword [eax + 0x78]
push str._u__.64s_spamers_list_content_your_IP_r_n
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
pop edx
pop ecx
mov ecx, dword [ebp - 0xac]
push eax
push esi
call fcn.00429114
mov eax, dword [ebp - 0xac]
pop ebx
pop edi
push str.__r_n_.4000s
push dword [eax]
push esi
push dword [0x45c28c]
call fcn.00403e78
add esp, 0x10
mov eax, 1
jmp 0x4182e6
test edi, edi
je 0x4182e4
sub esp, 0xc
inc edi
push edi
call fcn.00404b59
add esp, 0x10
mov ebx, eax
jmp 0x4181cf
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8
Function at 0x4182f0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov esi, ecx
sub esp, 0x82c
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
test eax, eax
jne 0x41835e
test ebx, ebx
jne 0x418313
xor eax, eax
jmp 0x418514
mov edx, dword [ecx + 0x1fc]
test edx, edx
je 0x41830c
lea edi, [edx + 5]
mov ecx, 0x100
test edi, edi
je 0x418330
jecxz 0x418330
cld
repne scasb al, byte es:[edi]
je 0x418335
mov edi, 1
dec edi
sub esp, 0xc
inc edi
mov ecx, edx
push edi
call fcn.0041028c
add esp, 0xc
push ebx
lea ebx, [ebp - 0x81c]
push eax
push str._.128s_.64s
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov eax, ebx
cmp byte [eax], 0
je 0x41830c
lea edx, [ebp - 0x81c]
mov dword [ebp - 0x824], 0
mov dword [ebp - 0x820], edx
push edx
push edx
push 0
push eax
call fcn.00403579
test eax, eax
mov dword [ebp - 0x828], eax
pop ecx
pop ebx
jle 0x41830c
lea edi, [esi + 0xec]
lea ecx, [ebp - 0x828]
call fcn.00418060
test eax, eax
jle 0x41848b
lea eax, [ebp - 0x81c]
sub esp, 0xc
push eax
call fcn.00404b59
mov ebx, eax
mov al, byte [eax]
add esp, 0x10
cmp al, 0x3f
jne 0x418466
push eax
push eax
push str._checkhello
push ebx
call fcn.004034b5
add esp, 0x10
test eax, eax
je 0x418413
cmp byte [esi + 0x1f4], 0
jne 0x418413
sub esp, 0xc
mov byte [esi + 0x1f4], 0x30
push edi
call fcn.0040de99
add esp, 0x10
test eax, eax
je 0x418413
push eax
push eax
push 0x2e
push edi
call fcn.004033da
add esp, 0x10
test eax, eax
jne 0x4184a3
cmp byte [ebx + 1], 0x3f
jne 0x418443
sub esp, 0xc
mov edx, dword [esi]
add ebx, 2
push ebx
mov dword [ebp - 0x82c], edx
call fcn.00404b59
pop edx
mov edx, dword [ebp - 0x82c]
mov ecx, dword [esi + 4]
pop ebx
push edx
push eax
call fcn.004181b4
pop edx
pop ecx
jmp 0x418452
sub esp, 0xc
inc ebx
mov ecx, esi
push ebx
call fcn.0041811e
add esp, 0xc
test eax, eax
setne al
test al, al
je 0x418399
mov ebx, 1
jmp 0x41848d
cmp al, 0x23
je 0x418399
test al, al
je 0x418399
push eax
push eax
push ebx
push dword [esi + 0xb0]
call fcn.004034d9
add esp, 0x10
test eax, eax
jmp 0x418459
xor ebx, ebx
sub esp, 0xc
push dword [ebp - 0x828]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
add esp, 0xc
jmp 0x418514
push eax
push eax
push str.________
push edi
call fcn.0040343e
add esp, 0x10
test eax, eax
jne 0x418413
sub esp, 0xc
push edi
call fcn.00428f74
add esp, 0x10
cmp eax, 0x3f
ja 0x418413
sub esp, 0xc
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
add esp, 0xc
test eax, eax
je 0x418413
mov eax, dword [eax + 0xc]
test eax, eax
je 0x418413
mov edx, dword [eax]
test edx, edx
je 0x418413
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
cmp dword [edx], ecx
jne 0x41850f
mov byte [esi + 0x1f4], 0x31
jmp 0x418413
add eax, 4
jmp 0x4184e8
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8
Function at 0x41a518
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
test byte [0x46579a], 0x40
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
je 0x41a548
push 0x4394e0
push ebx
push esi
push dword [0x45c28c]
call fcn.00403e78
add esp, 0x10
mov dword [ebp + 0x10], edi
mov dword [ebp + 0xc], esi
mov dword [ebp + 8], ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.0040a8ab
Function at 0x41b158
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea ebx, [ecx + 4]
mov edi, ecx
xor esi, esi
sub esp, 0xc
cmp esi, dword [edi]
jge 0x41b1bc
push eax
push eax
push dword [ebp + 0x14]
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push str._s_s_8.8s._s
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0xc
test eax, eax
jne 0x41b1b6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [ebp + 8]
push str.Cant_delete__s___d_
push dword [0x45c28c]
call fcn.0040418c
add esp, 0x10
inc esi
add ebx, 8
jmp 0x41b168
mov dword [edi], 0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10

Function at 0x41b1cc
Capabilities:
Delete directory
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea edi, [ecx + 8]
mov ebx, ecx
sub esp, 0x978
mov esi, dword [ebp + 8]
mov edx, dword [sym.imp.USER32.dll_wsprintfA]
push edi
push dword [ebp + 0xc]
push dword [ecx + 0xc]
push str._s_s._s
push esi
mov dword [ebp - 0x970], edx
mov dword [ebp - 0x81c], 0
call edx
lea eax, [ebp - 0x95c]
add esp, 0x18
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x96c], eax
inc eax
pop edx
mov edx, dword [ebp - 0x970]
pop ecx
je 0x41b300
test byte [0x46579d], 8
lea ecx, [ebp - 0x950]
lea eax, [ebp - 0x948]
cmovne eax, ecx
mov ecx, dword [ebp + 0x10]
cmp dword [eax + 4], ecx
jae 0x41b2ba
cmp byte [ebp - 0x930], 0x2e
je 0x41b2ba
lea eax, [ebp - 0x930]
sub esp, 0xc
push eax
call fcn.00428f74
add esp, 0x10
cmp eax, 8
jbe 0x41b2ba
cmp byte [ebp - 0x928], 0x2e
jne 0x41b2ba
cmp dword [ebp - 0x81c], 0xfe
jle 0x41b291
push edi
lea ecx, [ebp - 0x81c]
push dword [ebp + 0xc]
push dword [ebx + 0xc]
push esi
call fcn.0041b158
mov eax, dword [ebp - 0x81c]
mov edx, dword [ebp - 0x930]
mov dword [ebp + eax*4 - 0x818], edx
lea edx, [eax + 2]
mov dword [ebp - 0x81c], edx
mov edx, dword [ebp - 0x92c]
mov dword [ebp + eax*4 - 0x814], edx
push eax
push eax
lea eax, [ebp - 0x95c]
push eax
push dword [ebp - 0x96c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
pop edx
pop ecx
jg 0x41b22b
sub esp, 0xc
push dword [ebp - 0x96c]
call dword [sym.imp.KERNEL32.dll_FindClose]
add esp, 0xc
lea ecx, [ebp - 0x81c]
push edi
push dword [ebp + 0xc]
push dword [ebx + 0xc]
push esi
call fcn.0041b158
jmp 0x41b32f
cmp byte [ebx + 8], 0x61
jne 0x41b32f
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
je 0x41b32f
test byte [0x46579e], 0x80
je 0x41b32f
push eax
push dword [ebx + 0xc]
push 0x44104e
push esi
call edx
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
add esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
Function at 0x41b33a
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov esi, ecx
sub esp, 0x1ac
mov ebx, dword [ebp + 8]
push dword [ebp + 0xc]
push dword [ecx + 0xc]
push 0x441054
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
pop eax
lea eax, [ebp - 0x158]
pop edx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x1ac], eax
inc eax
pop ecx
pop edi
je 0x41b41a
lea edi, [ebp - 0x12c]
test byte [ebp - 0x158], 0x10
je 0x41b3be
sub esp, 0xc
push edi
call fcn.00428f74
add esp, 0x10
cmp eax, 2
jle 0x41b3be
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
jne 0x41b3ed
push eax
push dword [ebp + 0x10]
mov ecx, esi
push edi
push ebx
call fcn.0041b33a
push dword [ebp + 0x10]
push edi
mov ecx, esi
push ebx
call fcn.0041b1cc
pop eax
push eax
push eax
lea eax, [ebp - 0x158]
push eax
push dword [ebp - 0x1ac]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
pop edx
pop ecx
jg 0x41b382
sub esp, 0xc
push dword [ebp - 0x1ac]
call dword [sym.imp.KERNEL32.dll_FindClose]
add esp, 0xc
jmp 0x41b41a
lea eax, [ebp - 0x1a0]
push edi
push dword [ebp + 0xc]
push str._.8s_.64s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x1a0]
add esp, 0xc
push dword [ebp + 0x10]
mov ecx, esi
push eax
push ebx
call fcn.0041b1cc
jmp 0x41b3bd
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc

Function at 0x41c584
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea edi, [ecx + 0x200]
mov ebx, ecx
sub esp, 0xc
mov esi, dword [ebp + 8]
sub esp, 0xc
mov ecx, ebx
push edi
call fcn.0041c424
add esp, 0xc
test eax, eax
je 0x41c5e5
cmp byte [ebx + 0x244], 0
je 0x41c5c2
cmp esi, dword [ebx + 0x28c]
jne 0x41c598
mov eax, 1
jmp 0x41c5e7
sub esp, 0xc
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
add esp, 0xc
test eax, eax
je 0x41c598
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
test edx, edx
je 0x41c598
cmp dword [edx], esi
je 0x41c5bb
add eax, 4
jmp 0x41c5d6
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4
Function at 0x41c5f1
Capabilities:
Create udp socket
Receive data
Receive data on socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
cmp dword [str.127.0.0.1], 0
mov ebx, dword [ebp + 0xc]
je 0x41c648
push esi
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
test eax, eax
mov dword [ebp - 0x3c], eax
pop edi
jns 0x41c64f
jmp 0x41c648
dec esi
cmp esi, 2
je 0x41c71a
push eax
push eax
mov eax, dword [ebp - 0x30]
push 0x10
push edi
push 0
sub eax, ebx
add eax, 4
push eax
push ebx
push dword [ebp - 0x3c]
call dword [ebp - 0x40]
test eax, eax
pop edx
pop ecx
jg 0x41c6d8
xor eax, eax
jmp 0x41c7ce
mov eax, dword [str.127.0.0.1]
sub esp, 0xc
mov edi, ebx
mov esi, 0x4333a0
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
call fcn.00410d76
mov edx, eax
lea eax, [ebp - 0x28]
add esp, 0xc
push 0x10
push 0
push eax
call fcn.00428f38
mov word [ebp - 0x28], 2
mov dword [ebp - 0x24], edx
mov ecx, 0xc
mov word [ebp - 0x26], 0x3500
inc word [0x4333a0]
test edi, edi
je 0x41c6a4
test esi, esi
je 0x41c6a4
jecxz 0x41c6a4
cld
rep movsb byte es:[edi], byte [esi]
pop edx
lea eax, [ebx + 0xc]
mov esi, 6
lea edi, [ebp - 0x28]
pop ecx
push dword [ebp + 8]
push eax
call fcn.0041c260
mov dword [ebp - 0x30], eax
mov word [eax], 0xf00
add esp, 0x10
mov word [eax + 2], 0x100
mov eax, dword [sym.imp.WS2_32.dll_sendto]
mov dword [ebp - 0x40], eax
jmp 0x41c627
push eax
push dword [ebp - 0x3c]
push 0
push esi
mov dword [ebp - 0x2c], 0xffffffff
call fcn.0040a5c0
add esp, 0x10
test eax, eax
jle 0x41c61d
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x10
push esi
push esi
push eax
push edi
push 0
push 0x200
push ebx
push dword [ebp - 0x3c]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov dword [ebp - 0x2c], eax
pop edi
pop eax
sub esp, 0xc
push dword [ebp - 0x3c]
call fcn.0040aa80
mov eax, dword [ebp - 0x2c]
add esp, 0x10
test eax, eax
jle 0x41c648
test word [ebx + 2], 0xf00
jne 0x41c741
cmp byte [ebx + 7], 0
jne 0x41c7a7
cmp dword [ebp + 0x10], 0
jne 0x41c648
cmp dword [0x46579c], 0
jns 0x41c648
sub esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
add esp, 0xc
test eax, eax
mov edx, eax
je 0x41c648
push eax
lea eax, [ebx + 0x258]
push 0x34
push 0
push eax
call fcn.00428f38
mov eax, dword [ebp + 8]
add esp, 0x10
mov dword [ebx + 0x258], eax
mov eax, dword [edx + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebx + 0x288], 1
mov dword [ebx + 0x25c], eax
jmp 0x41c7c8
cmp dword [ebp + 0x10], 0
jne 0x41c7c8
mov dword [ebx + eax], 0
mov eax, dword [ebp - 0x30]
sub esp, 0xc
mov ecx, ebx
add eax, 4
push eax
call fcn.0041c2ca
add esp, 0xc
mov eax, dword [ebp - 0x30]
add eax, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x41db52
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea edi, [ebp - 0xa8]
mov ebx, ecx
sub esp, 0xac
push 0x10
push 0
push edi
call fcn.00428f38
mov eax, dword [ebx + 0x188]
add esp, 0xc
mov word [ebp - 0xa6], 0x3500
mov word [ebp - 0xa8], 2
test eax, eax
je 0x41dbb5
cmp byte [ebx + 0x181], 0x18
ja 0x41dbb5
mov edx, dword [ebx + 0xd8]
test edx, edx
je 0x41dbb5
lea eax, [ebx + 0x12c]
xor esi, esi
mov dword [ebp - 0xac], eax
jmp 0x41dc3e
push ecx
movzx edx, byte [ebx + 0x181]
push edx
push dword [ebp + 8]
push dword [ebx + 0xd8]
push dword [ebx + 0x18c]
push eax
push str.Error_typ_u__u__u__d__d
push dword [0x45c29c]
call fcn.0040418c
mov eax, dword [ebx + 0xd8]
add esp, 0x20
jmp 0x41dd33
movzx eax, byte [ebx + 0x180]
cmp edx, eax
jg 0x41dbfe
mov byte [ebx + 0x180], 0
movzx eax, byte [ebx + 0x180]
sub esp, 0xc
mov dword [ebp - 0xb0], edx
lea ecx, [eax + 1]
mov byte [ebx + 0x180], cl
mov eax, dword [ebx + eax*4 + 0xdc]
mov ecx, dword [ebp - 0xac]
push eax
mov dword [ebp - 0xa4], eax
call fcn.0041d2ce
add esp, 0xc
test eax, eax
mov edx, dword [ebp - 0xb0]
je 0x41dc47
inc esi
cmp esi, edx
jl 0x41dbec
jmp 0x41dd1c
sub esp, 0xc
lea esi, [ebx + 0x192]
push 0x4661c4
call fcn.00403666
add esp, 0x10
cmp dword [ebp - 0xa4], 0
jne 0x41dc89
push dword [ebx + 0xd8]
movzx eax, byte [ebx + 0x180]
push eax
push str.Error_resend_Bad_addres__u__u
push dword [0x45c29c]
call fcn.0040418c
add esp, 0x10
jmp 0x41dcae
mov byte [ebx + 0x19d], 0
push ecx
push ecx
push 0x10
push edi
push 0
push dword [ebx + 0x18c]
push esi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_sendto]
or word [ebx + 2], 1
pop eax
pop edx
movzx eax, byte [ebx + 0x180]
cmp eax, dword [ebx + 0xd8]
jl 0x41dcc4
mov byte [ebx + 0x180], 0
inc byte [ebx + 0x181]
lea eax, [ebx + 0xac]
push edx
push edx
push 0
add ebx, 0x19e
push eax
mov dword [0x4661c4], 0
call fcn.0042937c
add esp, 0xc
push esi
push ebx
lea ebx, [ebp - 0x98]
push ebx
call fcn.0041d7e2
push ebx
push edi
movsx eax, byte [eax + 1]
mov ecx, dword [0x45c29c]
push eax
push str._recursion_
call fcn.0041cef4
mov eax, 1
add esp, 0x10
jmp 0x41dd33
push eax
push eax
push str.No_unrepled_NS
push dword [0x45c29c]
call fcn.0040418c
add esp, 0x10
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4
Function at 0x41e438
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x1c
test byte [ecx + 3], 2
mov esi, dword [ebp + 8]
je 0x41e47b
mov eax, dword [ecx + 0x18c]
cmp eax, 0x1f4
ja 0x41e47b
add eax, esi
push 0xb
push 0x441bc4
push eax
call fcn.00428f18
add dword [ebx + 0x18c], 0xb
add esp, 0xc
inc byte [esi + 0xb]
and word [ebx + 2], 0xfdff
lea eax, [ebx + 0x18]
lea edi, [ebx + 0xc0]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], eax
cmp word [ebx + 0x190], 0
mov eax, dword [edi - 0xbc]
mov edx, esi
mov dword [ebp - 0x24], eax
je 0x41e4bd
mov ecx, dword [ebx + 0x18c]
lea edx, [esi - 2]
mov eax, ecx
xchg al, ah
add ecx, 2
mov word [esi - 2], ax
mov dword [ebx + 0x18c], ecx
mov eax, dword [ebp - 0x1c]
mov ax, word [ebx + eax*2 + 0xb4]
mov word [esi], ax
mov eax, dword [edi]
test eax, eax
je 0x41e4f6
push dword [ebx + 0x18c]
push edx
push dword [eax + 0x18]
call fcn.00428f18
mov eax, dword [edi]
mov ecx, dword [ebx + 0x18c]
add esp, 0xc
mov dword [eax + 0x2c], ecx
mov dword [edi], 0
jmp 0x41e524
mov eax, dword [ebp - 0x20]
mov ecx, 0x10
cmp word [eax], 0x17
mov eax, 0x1c
cmovne eax, ecx
push ecx
push ecx
push eax
push dword [ebp - 0x20]
push 0
push dword [ebx + 0x18c]
push edx
push dword [ebp - 0x24]
call dword [sym.imp.WS2_32.dll_sendto]
pop eax
pop edx
inc dword [ebp - 0x1c]
movzx eax, word [ebx]
cmp dword [ebp - 0x1c], eax
jge 0x41e544
add edi, 4
add dword [ebp - 0x20], 0x1c
cmp word [ebx + 0x190], 0
je 0x41e48e
mov ecx, ebx
call fcn.0041e3f0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4
Function at 0x41fa3e
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
imul eax, dword [ebp + 8], 9
lea esi, [eax + 6]
add eax, 7
cmp dword [ebp + 0xc], 0
cmovne esi, eax
mov eax, 1
mov edx, dword [esi*4 + 0x465480]
test edx, edx
jle 0x41fbde
imul ebx, dword [ebp + 8], 0x1c
cmp word [ebx + 0x4660a2], 0
je 0x41fbde
sub esp, 0xc
mov dword [esi*4 + 0x465480], 0
push edx
call fcn.0040aa80
mov dword [esp], 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0xc
cmp dword [ebp + 0xc], 0
movsx edx, word [ebx + 0x4660a0]
mov eax, dword [sym.imp.WS2_32.dll_socket]
je 0x41fabb
push edi
push 6
push 1
jmp 0x41fac0
push ebx
push 0x11
push 2
push edx
call eax
test eax, eax
mov ebx, eax
pop ecx
jns 0x41fafc
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebx
sub esp, 0xc
push eax
call fcn.0040376b
mov esi, eax
call ebx
push esi
push eax
push str.IP_socket_error__d__s
push dword [0x45c29c]
call fcn.0040418c
add esp, 0x20
or eax, 0xffffffff
jmp 0x41fbde
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
sub esp, 0xc
push 4
push 0x42a4a4
push 4
push 0xffff
push eax
call edi
mov dword [ebp - 0x2c], edi
mov eax, dword [sym.imp.WS2_32.dll_bind]
add esp, 0xc
imul edi, dword [ebp + 8], 0x1c
mov dword [ebp - 0x30], eax
cmp word [edi + 0x4660a0], 2
mov ecx, 0x1c
lea edx, [edi + 0x4660a0]
mov eax, 0x10
cmovne eax, ecx
push ecx
push eax
push edx
push ebx
call dword [ebp - 0x30]
test eax, eax
pop edx
je 0x41fba0
mov edx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x38], edx
call edx
sub esp, 0xc
push eax
call fcn.0040376b
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x34], eax
call edx
mov ecx, dword [ebp - 0x34]
push ecx
push eax
push str.Error._Could_not_bind_socket.___d__s
push dword [0x45c29c]
call fcn.0040418c
add esp, 0x20
call fcn.0040d4d3
test eax, eax
jne 0x41fb28
sub esp, 0xc
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xfffffffe
add esp, 0xc
jmp 0x41fbde
cmp dword [ebp + 0xc], 0
jne 0x41fbcf
lea eax, [ebp - 0x1c]
sub esp, 0xc
mov dword [ebp - 0x1c], 0xf0
push 4
push eax
push 4
push 0
push ebx
call dword [ebp - 0x2c]
add esp, 0xc
mov dword [esi*4 + 0x465480], ebx
mov eax, 1
jmp 0x41fbde
push eax
push eax
push 3
push ebx
call dword [sym.imp.WS2_32.dll_listen]
pop edx
pop ecx
jmp 0x41fbc1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x421704
Capabilities:
Create udp socket
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov eax, dword [0x472c00]
cmp dword [ecx + 0xc], eax
jg 0x421769
cmp dword [ecx + 4], 0
je 0x421763
cmp dword [ecx + 0x10], 0
je 0x421763
push ebp
mov ebp, esp
push ebx
push ebx
cmp dword [0x472c04], 0
mov ebx, ecx
jg 0x421758
push eax
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
test eax, eax
mov dword [0x472c04], eax
pop edx
jg 0x421748
xor eax, eax
mov ebx, dword [ebp - 4]
leave
ret
mov word [0x472a02], 1
mov byte [0x472a05], 1
mov ecx, ebx
mov ebx, dword [ebp - 4]
leave
jmp fcn.0041dd3e
mov eax, 1
ret
xor eax, eax
ret