joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49f758
Capabilities:
Log keystrokes via polling

Disassembly:
push 4
mov eax, 0x715649
call fcn.004387a3
mov ebx, ecx
mov edi, dword [ebp + 8]
push edi
call fcn.0049f632
test eax, eax
je 0x49f793
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, ebx
and al, 1
movzx eax, al
push eax
call fcn.0049f1e5
xor eax, eax
inc eax
jmp 0x49f895
push dword [ebx + 4]
call fcn.0047154e
mov esi, eax
mov dword [ebp - 0x10], esi
pop ecx
test esi, esi
je 0x49f83f
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x64]
test eax, eax
je 0x49f83f
cmp edi, 0x25
je 0x49f7cc
cmp edi, 0x27
je 0x49f7da
cmp edi, 0x26
je 0x49f7cc
cmp edi, 0x28
jne 0x49f83f
cmp edi, 0x27
je 0x49f7da
cmp edi, 0x28
je 0x49f7da
push 2
jmp 0x49f7dc
push 3
pop edi
jmp 0x49f7ea
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x64]
test eax, eax
jne 0x49f829
push edi
mov ecx, esi
call fcn.0045ef48
mov esi, eax
test esi, esi
jne 0x49f7df
mov ecx, dword [ebp - 0x10]
cmp edi, 3
setne al
push eax
call fcn.0045ec44
mov ecx, eax
jmp 0x49f819
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x64]
test eax, eax
jne 0x49f829
push edi
mov ecx, esi
call fcn.0045ef48
mov esi, eax
test esi, esi
jne 0x49f80b
jmp 0x49f78b
push 1
mov ecx, esi
call fcn.0045ee7e
push eax
mov ecx, ebx
call fcn.0049fb10
jmp 0x49f78b
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call esi
shr eax, 0xf
and al, 1
movzx eax, al
push eax
push 0x12
call esi
shr eax, 0xf
and al, 1
movzx eax, al
push eax
push 0x11
call esi
shr eax, 0xf
lea ecx, [ebp + 8]
and al, 1
movzx eax, al
push eax
push edi
call fcn.0049e937
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
mov ecx, ebx
call fcn.0049f8e9
xor ebx, ebx
lea ecx, [ebp + 8]
test al, al
setne bl
call fcn.004031d0
mov eax, ebx
call fcn.0043877d
ret 4

Function at 0x4a6f38
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 0x248]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4a6fa0
mov ecx, esi
call fcn.004a6fa5
push 0
push dword [esi + 0x248]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x3ac]
test ecx, ecx
je 0x4a6f7b
push 0
call fcn.00461544
and dword [esi + 0x3ac], 0
mov ecx, dword [0x8181cc]
lea ecx, [ecx + 8]
call fcn.0042b207
mov ecx, dword [esi + 0x3a4]
test ecx, ecx
je 0x4a6fa0
pop esi
mov ecx, dword [ecx + 0x174]
pop ebp
jmp fcn.004a7a64
pop esi
pop ebp
ret 4
Function at 0x4aa6ba
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push edi
xor edi, edi
test ebx, ebx
jne 0x4aa6dd
mov eax, dword [ebp + 8]
mov dword [eax + 8], edi
mov dword [eax], 1
mov dword [eax + 4], edi
jmp 0x4aa77a
push esi
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], edi
push eax
push ebx
call fcn.004aa2d0
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4aa700
push ebx
call fcn.004ccec4
mov eax, dword [ebp + 8]
mov dword [eax], esi
jmp 0x4aa756
mov esi, dword [ebp + 0x10]
xor eax, eax
inc eax
test esi, esi
cmovne eax, esi
push eax
call dword [0x804a68]
mov dword [ebp - 4], eax
pop ecx
push ebx
test eax, eax
jne 0x4aa72b
call fcn.004ccec4
mov eax, dword [ebp + 8]
mov dword [eax], 3
jmp 0x4aa756
push esi
push 1
push eax
call fcn.004cd2c0
push ebx
mov esi, eax
call fcn.004ccec4
add esp, 0x14
cmp esi, dword [ebp + 0x10]
je 0x4aa75f
push dword [ebp - 4]
call dword [0x804a6c]
mov eax, dword [ebp + 8]
mov dword [eax], 2
pop ecx
mov dword [eax + 8], edi
mov dword [eax + 4], edi
jmp 0x4aa779
push dword [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.004aa665
mov eax, dword [ebp + 8]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4aeedc
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x4dff6e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004dfded

Function at 0x4e37bc
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004e347c
Function at 0x4ef3e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi]
cmp dword [eax + 4], 3
jne 0x4ef40c
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x4ef3fd
pop edi
xor eax, eax
pop esi
pop ebp
ret
push dword [eax + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call ecx
jmp 0x4ef440
cmp dword [esi + 8], 0
jne 0x4ef430
push 0x724cd4
push dword [eax + 8]
call fcn.004cd0dd
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x4ef430
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
push dword [esi + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.004cd2c0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4ef462
mov eax, dword [esi + 8]
test eax, eax
je 0x4ef45c
push eax
call fcn.004ccec4
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x4ef880
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x804580]
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 0x4ef8d0
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x4ef8ca
shr eax, 8
cmp al, 2
jne 0x4ef8ca
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438587
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
mov eax, 2
xor ecx, ebp
call fcn.00438587
mov esp, ebp
pop ebp
ret
Function at 0x4f0b50
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00501ea0

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push eax
push edi
mov esi, dword [edi + eax*4 + 0x168]
call fcn.004f1e50
add esp, 8
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
cmp ebx, 0xffffffff
jne 0x4f1bf4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x4f1bcc
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
mov dword [eax], 0x51
xor eax, eax
pop ebp
ret
push esi
push edi
call fcn.004ef9d0
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.004f1830
mov eax, dword [edi]
add esp, 0x14
mov dword [eax + 0x85b8], esi
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x37
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, edx
push ebx
push esi
shl eax, 4
lea esi, [ecx + 0x18c]
mov ebx, dword [ecx + edx*4 + 0x168]
add esi, eax
mov eax, dword [ecx + 0x248]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x3c], 3
je 0x4f1f00
cmp dword [ecx + edx*4 + 0x17c], 0x4f1ac0
jne 0x4f1f00
cmp dword [esi], 0
je 0x4f1e98
test edi, edi
je 0x4f1f00
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.004fff20
add esp, 0x10
cmp eax, 0xffffffff
je 0x4f1f00
test al, 1
je 0x4f1f00
cmp dword [esi], 0
jne 0x4f1ee9
push 0x8000
mov dword [esi + 4], 0x8000
call dword [0x8054c0]
mov edi, dword [esi + 4]
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test eax, eax
jne 0x4f1ee9
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
pop ebp
ret
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4f1f00
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4f1f10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x190]
test eax, eax
je 0x4f1f39
push dword [esi + 0x11c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call eax
add esp, 0x14
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x4f1f6f
push dword [esi + 0x118]
lea eax, [eax + eax*2]
push 1
add eax, 0x7479c8
push 2
push eax
call fcn.004d9e32
push dword [esi + 0x118]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.004d9e32
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4f7f00
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4f7f1e
cmp dword [esi + 0x48], 0
je 0x4f7f1e
push 2
push 3
push esi
call fcn.004f01e0
add esp, 0xc
push dword [ebp + 0xc]
call fcn.005019f0
add esp, 4
test esi, esi
je 0x4f7f3e
cmp dword [esi + 0x48], 0
je 0x4f7f3e
push 3
push esi
call fcn.004f0220
add esp, 8
pop esi
pop ebp
ret
Function at 0x500470
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x578]
test esi, esi
je 0x5004c4
mov eax, dword [edi + 0x44]
test eax, eax
jne 0x500491
cmp dword [edi + 0x40], eax
je 0x5004c4
mov dword [ebp - 8], esi
mov byte [ebp - 4], 0
test eax, eax
jne 0x50049f
mov eax, dword [edi + 0x40]
push 0x5012b0
lea ecx, [ebp - 8]
add eax, 0x68
push ecx
push eax
call fcn.0050ab20
add esp, 0xc
cmp byte [ebp - 4], 0
jne 0x5004cd
mov dword [edi + 0x578], 0
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x5004d6
mov dword [eax], esi
cmp byte [esi + 0x1ac], 0
mov edi, dword [esi + 0x168]
je 0x5004fb
push esi
call fcn.004f0b50
add esp, 4
test eax, eax
jne 0x500513
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
cmp edi, 0xffffffff
je 0x500513
push 2
push 1
lea eax, [ebp + 0xb]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x5004c4
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x500960
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x828df4]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x5009b1
push 3
push 2
push eax
push 6
call fcn.0051fef0
add esp, 0x10
test al, al
je 0x5009a5
mov dword [0x828df4], 2
mov esp, ebp
pop ebp
ret
mov dword [0x828df4], 1
jmp 0x5009b6
cmp eax, 2
je 0x5009f6
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x5009dd
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x5009f6
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esp, ebp
pop ebp
ret

Function at 0x500ac0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp + 8]
push 4
push eax
push 1
mov esi, dword [edi]
push 6
push dword [ebp + 0xc]
mov dword [ebp + 8], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x500b08
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004ef9d0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004f18d0
add esp, 0x14
pop edi
pop esi
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.004f18d0
add esp, 8
pop edi
pop esi
pop ebp
ret
Function at 0x500bf0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x804580]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x8c], 2
mov ebx, dword [edi]
je 0x500dca
cmp byte [edi + 0x21a], 0
push esi
jne 0x500dc0
cmp byte [edi + 0x234], 0
jne 0x500dc0
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
mov dword [ebp - 0x108], 0x80
push eax
push esi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x500c88
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.004ef9d0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.004f1830
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438587
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x84]
mov dword [ebp - 0x108], 0x80
push 0
push eax
call fcn.004c3e70
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x84]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x500cf1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.004ef9d0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.004f1830
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438587
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0xfc]
push eax
lea esi, [edi + 0xcc]
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.005012d0
add esp, 0xc
test al, al
jne 0x500d42
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.004ef9d0
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.004f1830
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438587
mov esp, ebp
pop ebp
ret
movups xmm0, xmmword [esi]
mov eax, dword [esi + 0x28]
movups xmmword [edi + 0x58], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [edi + 0x68], xmm0
movq xmm0, qword [esi + 0x20]
movq qword [edi + 0x78], xmm0
mov dword [edi + 0x80], eax
mov ax, word [esi + 0x2c]
mov word [edi + 0x84], ax
lea eax, [edi + 0x130]
push eax
lea eax, [edi + 0x100]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.005012d0
add esp, 0xc
test al, al
jne 0x500dc0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.004ef9d0
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.004f1830
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438587
mov esp, ebp
pop ebp
ret
push edi
call fcn.005008a0
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00438587
mov esp, ebp
pop ebp
ret
Function at 0x501650
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x804580]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
push 4
cmp byte [esi + 0x3ec], al
setne al
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x5016ad
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.004f18d0
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438587
mov esp, ebp
pop ebp
ret
push dword [esi + 0x3f0]
mov dword [ebp - 0x10], 1
call fcn.00505f10
push dword [esi + 0x3f4]
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.00505f10
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x50171d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.004f18d0
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00438587
mov esp, ebp
pop ebp
ret

Function at 0x505ef0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
call fcn.0042d720
add esp, 4
mov dword [ebp + 0x10], eax
pop ebp
jmp fcn.004df925
Function at 0x50d900
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x14]
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [eax], ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x50da7b
push edi
mov edi, dword [ebp - 8]
test edi, edi
je 0x50da67
push esi
nop dword [eax]
cmp dword [edi + 4], 2
jne 0x50d9f8
cmp dword [edi + 0x18], 0
je 0x50d9f8
mov eax, dword [edi + 0x10]
test eax, eax
je 0x50d9f8
cmp eax, 0x10
jb 0x50d9f8
push 0x20
call dword [0x8054c0]
mov esi, eax
add esp, 4
test esi, esi
je 0x50da5c
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push 0x10
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0x10
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
call dword [0x8054c0]
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x50da4b
mov ecx, dword [edi + 0x18]
movups xmm0, xmmword [ecx]
movups xmmword [eax], xmm0
mov eax, dword [edi + 0x14]
test eax, eax
je 0x50d9e6
push eax
call dword [0x8054cc]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x50da31
mov eax, dword [ebp - 4]
test ebx, ebx
cmove ebx, esi
test eax, eax
je 0x50d9f5
mov dword [eax + 0x1c], esi
mov dword [ebp - 4], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x50d940
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
pop esi
test eax, eax
je 0x50da15
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test edi, edi
je 0x50da63
push ebx
call fcn.0050d8c0
mov eax, dword [ebp + 0x14]
add esp, 4
xor ebx, ebx
mov dword [eax], ebx
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esi + 0x18]
mov edi, 8
call dword [0x8054c4]
push esi
call dword [0x8054c4]
add esp, 8
jmp 0x50da06
push esi
mov edi, 8
call dword [0x8054c4]
add esp, 4
jmp 0x50da06
mov edi, 8
jmp 0x50da06
test ebx, ebx
jne 0x50da73
mov edi, 0x2af9
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x50dca0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call fcn.004cccfe
add esp, 0x18
test eax, eax
je 0x50dcc2
cmp eax, 0xffffffff
jne 0x50dcc4
xor eax, eax
pop ebp
ret
Function at 0x512e70
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x804580]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x194]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x512ebd
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.004f1830
add esp, 0xc
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438587
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x512ee5
shr eax, 8
test al, al
jne 0x512ee5
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438587
mov esp, ebp
pop ebp
ret
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.004f1830
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 2
pop esi
call fcn.00438587
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push 0
mov byte [ebp + 0xa], al
lea eax, [ebp + 8]
mov edi, dword [esi]
push 3
push eax
push dword [esi + 0x168]
mov byte [ebp + 8], 0xff
mov byte [ebp + 9], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x513758
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.004f1830
add esp, 0xc
push dword [ebp + 0x10]
push ebx
push str.SENT
push dword [esi]
call fcn.00513000
add esp, 0x10
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x513830
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0xc], 0x1f
mov eax, dword [ebp + 8]
push ebx
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov ebx, dword [eax + 0x114]
jne 0x513986
push edi
lea eax, [ebx + 0x1cb0]
lea edi, [ebx + 0x1eb0]
mov dword [edi], eax
cmp eax, edi
jae 0x513867
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x513872
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x51387d
mov byte [eax], 0x1f
inc dword [edi]
movzx eax, word [ebx + 0x1ca8]
push esi
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
mov word [ebp - 0xc], ax
movzx eax, word [ebx + 0x1caa]
push eax
call esi
mov ecx, dword [edi]
mov word [ebp - 0x14], ax
cmp ecx, edi
jae 0x5138ad
mov al, byte [ebp - 0xc]
mov byte [ecx], al
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x5138ba
mov al, byte [ebp - 0xb]
mov byte [ecx], al
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x5138c7
mov al, byte [ebp - 0x14]
mov byte [ecx], al
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x5138d4
mov al, byte [ebp - 0x13]
mov byte [ecx], al
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x5138df
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x5138ea
mov byte [eax], 0xf0
inc dword [edi]
mov eax, dword [edi]
lea esi, [ebx + 0x1cb0]
mov dword [ebx + 0x1eb4], eax
sub eax, esi
sub eax, 2
mov dword [edi], esi
mov edi, dword [ebp - 4]
push eax
lea eax, [ebx + 0x1cb2]
push eax
push 0x3e
push edi
call fcn.00513100
add esp, 0x10
push 0
push 3
push esi
mov esi, dword [ebp + 8]
push dword [esi + 0x168]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x513942
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.004f1830
add esp, 0xc
push 4
lea eax, [ebx + 0x1cb3]
push eax
push esi
call fcn.00513770
add esp, 0xc
lea eax, [ebx + 0x1cb7]
push 0
push 2
push eax
push dword [esi + 0x168]
call dword [sym.imp.WS2_32.dll_send]
pop esi
test eax, eax
jns 0x513985
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.004f1830
add esp, 0xc
pop edi
pop ebx
mov esp, ebp
pop ebp
ret