joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b3d9e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
mov eax, dword [esi + 8]
push edi
mov edi, eax
and edi, 7
je 0x4b3dc3
cmp eax, edi
jge 0x4b3dbb
mov eax, esi
call fcn.004b3752
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
xor ecx, ecx
cmp dword [esi + 8], ecx
jle 0x4b3de5
mov al, byte [esi + 0xc]
shr dword [esi + 0xc], 8
add dword [esi + 8], 0xfffffff8
mov byte [ebp + ecx - 4], al
inc ecx
cmp dword [esi + 8], 0
jg 0x4b3dca
cmp ecx, 4
jge 0x4b3e04
mov edi, dword [esi + 4]
mov eax, dword [esi]
cmp eax, edi
jb 0x4b3df2
xor eax, eax
jmp 0x4b3dfa
mov dl, byte [eax]
inc eax
mov dword [esi], eax
movzx eax, dl
mov byte [ebp + ecx - 4], al
inc ecx
cmp ecx, 4
jl 0x4b3de8
movzx edi, byte [ebp - 3]
movzx eax, byte [ebp - 4]
movzx ecx, byte [ebp - 2]
shl edi, 8
add edi, eax
movzx eax, byte [ebp - 1]
shl eax, 8
add eax, ecx
mov ecx, edi
xor ecx, 0xffff
cmp eax, ecx
je 0x4b3e36
mov eax, str.zlib_corrupt
call fcn.004b136f
jmp 0x4b3e71
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x4b3e46
mov eax, str.read_past_buffer
jmp 0x4b3e2f
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x4b3e5b
mov ecx, edi
call fcn.004b377d
test eax, eax
je 0x4b3e71
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.004b8a70
add dword [esi], edi
add dword [esi + 0x10], edi
xor eax, eax
add esp, 0xc
inc eax
pop edi
pop esi
leave
ret

Function at 0x4b8dd5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x568e30]
jne 0x4b8ddf
repz ret
jmp fcn.004c62f0

Function at 0x4c0383
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x4c03b4
call fcn.004b8070
mov dword [eax], esi
call fcn.004b805d
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004b9912
add esp, 0x14
push 0x16
pop eax
jmp 0x4c0409
test dword [ebp + 0xc], 0xfffffff9
jne 0x4c0390
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4c03e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004b8083
pop ecx
call fcn.004b805d
mov eax, dword [eax]
jmp 0x4c0409
test al, 0x10
jne 0x4c0407
test al, 1
je 0x4c0407
test byte [ebp + 0xc], 2
je 0x4c0407
call fcn.004b8070
mov dword [eax], 5
call fcn.004b805d
mov dword [eax], 0xd
jmp 0x4c03d8
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4d28be
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004c3f01
and dword [ebp - 4], 0
cmp dword [0x56ecd8], 0
mov ebx, eax
jne 0x4d296f
push 0x52a46c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4d2a20
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4d2a20
push eax
call fcn.004c3e8f
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x56ecd8], eax
call esi
push eax
call fcn.004c3e8f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x56ecdc], eax
call esi
push eax
call fcn.004c3e8f
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x56ece0], eax
call esi
push eax
call fcn.004c3e8f
pop ecx
mov dword [0x56ece8], eax
test eax, eax
je 0x4d296f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004c3e8f
pop ecx
mov dword [0x56ece4], eax
mov eax, dword [0x56ece4]
cmp eax, ebx
je 0x4d29c7
cmp dword [0x56ece8], ebx
je 0x4d29c7
push eax
call fcn.004c3f0a
push dword [0x56ece8]
mov esi, eax
call fcn.004c3f0a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4d29c7
test edi, edi
je 0x4d29c7
call esi
test eax, eax
je 0x4d29be
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4d29be
test byte [ebp - 0xc], 1
jne 0x4d29c7
or dword [ebp + 0x10], 0x200000
jmp 0x4d2a00
mov eax, dword [0x56ecdc]
cmp eax, ebx
je 0x4d2a00
push eax
call fcn.004c3f0a
pop ecx
test eax, eax
je 0x4d2a00
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4d2a00
mov eax, dword [0x56ece0]
cmp eax, ebx
je 0x4d2a00
push eax
call fcn.004c3f0a
pop ecx
test eax, eax
je 0x4d2a00
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x56ecd8]
call fcn.004c3f0a
pop ecx
test eax, eax
je 0x4d2a20
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4d2a22
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4d9370
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x568e30]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4d93c2
mov eax, dword [esp]
cmp al, 2
jne 0x4d93bc
shr eax, 8
cmp al, 2
jne 0x4d93bc
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.004b8dd5
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.004b8dd5
add esp, 0x194
ret
Function at 0x4dadd0
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x4dadf2
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x4dade6
xor eax, eax
pop edi
ret
mov eax, dword [eax + 8]
push eax
push edi
push 1
push ebx
call ecx
jmp 0x4dae22
cmp dword [esi + 8], 0
jne 0x4dae15
mov ecx, dword [eax + 8]
push 0x53b7a8
push ecx
call fcn.004b816a
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x4dae15
or eax, 0xffffffff
pop edi
ret
mov edx, dword [esi + 8]
push edx
push edi
push 1
push ebx
call fcn.004b8548
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4dae44
mov eax, dword [esi + 8]
test eax, eax
je 0x4dae3e
push eax
call fcn.004b81f8
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, edi
pop edi
ret
Function at 0x4e5340
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x4e5372
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 0x4e54b0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x1a8]
test ecx, ecx
je 0x4e54cb
mov edx, dword [esi + 0x134]
push edx
push edi
push ebx
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
jl 0x4e54ff
cmp eax, 2
jg 0x4e54ff
mov ecx, dword [esi + 0x130]
push ecx
push 1
lea edx, [eax + eax*2 + 0x52d068]
push 2
push edx
call fcn.004b86c7
mov eax, dword [esi + 0x130]
push eax
push 1
push edi
push ebx
call fcn.004b86c7
add esp, 0x20
xor eax, eax
ret

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

Disassembly:
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + eax*4 + 0x154]
push edi
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [esp + 0x20]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x4e588d
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x4e5864
pop ebp
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push ebp
push esi
call fcn.004da0b0
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.004e5690
mov ecx, dword [esi]
add esp, 0x14
mov dword [ecx + 0x8614], ebp
mov dword [ebx], 0x37
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4e75e0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x14
xor eax, eax
cmp dword [esi + 0x470], eax
push 4
lea ecx, [esp + 4]
push ecx
setne al
push 8
push 0xffff
push edi
mov dword [esp + 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x4e761e
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.004e5600
add esp, 0xc
add esp, 0x14
ret
mov edx, dword [esi + 0x474]
push edx
mov dword [esp + 0xc], 1
call fcn.004fd000
imul eax, eax, 0x3e8
mov dword [esp + 4], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x478]
push eax
call fcn.004fd000
imul eax, eax, 0x3e8
add esp, 8
push 0
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0xc
lea edx, [esp + 0x20]
push edx
push 0x98000004
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x4e7697
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.004e5600
add esp, 0x10
add esp, 0x14
ret
Function at 0x4e7c90
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x10c
mov eax, dword [0x568e30]
xor eax, esp
mov dword [esp + 0x108], eax
push ebp
mov ebp, dword [esp + 0x114]
cmp dword [ebp + 0x8c], 2
push edi
mov edi, dword [ebp]
mov dword [esp + 0xc], edi
je 0x4e7e05
cmp dword [ebp + 0x1d8], 0
push ebx
push esi
jne 0x4e7dfa
mov esi, dword [esp + 0x124]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x9c]
push ecx
mov ebx, 0x80
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x4e7d1c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.004da0b0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.004e5690
add esp, 0x18
jmp 0x4e7e03
push ebx
lea edx, [esp + 0x1c]
push 0
push edx
mov dword [esp + 0x1c], ebx
call fcn.004b8df0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4e7d69
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.004da0b0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.004e5690
add esp, 0x18
jmp 0x4e7e03
lea edi, [ebp + 0xb8]
lea ebx, [ebp + 0xe8]
lea esi, [esp + 0x98]
call fcn.004e7c50
test eax, eax
jne 0x4e7daa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.004da0b0
mov edx, dword [esp + 0x1c]
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.004e5690
add esp, 0x18
jmp 0x4e7e03
lea edi, [ebp + 0x58]
mov ecx, 0xb
lea esi, [ebp + 0xb8]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea ebx, [ebp + 0x11c]
lea edi, [ebp + 0xec]
lea esi, [esp + 0x18]
call fcn.004e7c50
test eax, eax
jne 0x4e7dfa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.004da0b0
push eax
mov eax, dword [esp + 0x20]
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push eax
call fcn.004e5690
add esp, 0x18
jmp 0x4e7e03
push ebp
call fcn.004e7bf0
add esp, 4
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
pop edi
pop ebp
xor ecx, esp
call fcn.004b8dd5
add esp, 0x10c
ret

Function at 0x4e7e20
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x364]
push 4
lea ecx, [esp + 8]
push ecx
push 1
push 6
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x4e7e63
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004da0b0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004e5600
add esp, 0x14
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.004e5600
add esp, 8
pop esi
pop ecx
ret
Function at 0x4e7e80
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xac
mov eax, dword [0x568e30]
xor eax, esp
mov dword [esp + 0xa8], eax
mov eax, dword [0x56ee60]
push esi
mov dword [esp + 4], 0x4020
mov dword [esp + 8], 0
mov dword [esp + 0xc], 4
test eax, eax
jne 0x4e7f44
push 0x9c
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004b8df0
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
add esp, 0xc
push 3
push 2
push 0
push 0
mov dword [esp + 0x20], 0x9c
mov dword [esp + 0x24], 6
call esi
push 3
push 1
push edx
push eax
call esi
push 3
push 0x20
push edx
push eax
call esi
push 3
push 0x10
push edx
push eax
call esi
push edx
push eax
push 0x33
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
test eax, eax
je 0x4e7f38
mov dword [0x56ee60], 2
pop esi
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.004b8dd5
add esp, 0xac
ret
mov dword [0x56ee60], 1
jmp 0x4e7f49
cmp eax, 2
je 0x4e7f91
mov esi, dword [esp + 0xb4]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0xc]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4e7f79
mov ecx, dword [esp + 8]
cmp ecx, dword [esp + 4]
jg 0x4e7f91
push 4
lea edx, [esp + 8]
push edx
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [esp + 0xac]
pop esi
xor ecx, esp
call fcn.004b8dd5
add esp, 0xac
ret

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

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, dword [edi + 0x5d8]
test esi, esi
je 0x4e8029
mov eax, dword [edi + 0x44]
test eax, eax
jne 0x4e7fef
cmp dword [edi + 0x40], eax
je 0x4e8029
mov dword [esp + 8], esi
mov dword [esp + 0xc], 0
test eax, eax
jne 0x4e8002
mov eax, dword [edi + 0x40]
push 0x4e7fb0
lea ecx, [esp + 0xc]
add eax, 0x68
push ecx
push eax
call fcn.005026a0
add esp, 0xc
cmp dword [esp + 0xc], 0
jne 0x4e8032
mov dword [edi + 0x5d8], 0
pop edi
or eax, 0xffffffff
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4e803c
mov dword [eax], esi
cmp dword [esi + 0x17c], 0
mov edi, dword [esi + 0x154]
jne 0x4e8029
push 2
push 1
lea edx, [esp + 0x1c]
push edx
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x4e8029
mov eax, edi
pop edi
pop esi
add esp, 8
ret
Function at 0x4e9fa0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ebx
push ebp
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
xor ebx, ebx
mov dword [eax], ebx
mov eax, dword [esp + 0x20]
push edx
push eax
push ecx
mov dword [esp + 0x18], ebx
xor ebp, ebp
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 0xc], eax
cmp eax, ebx
jne 0x4ea151
push edi
mov edi, dword [esp + 0x14]
cmp edi, ebx
je 0x4ea12f
push esi
jmp 0x4e9ff0
cmp dword [edi + 4], 2
jne 0x4ea0a8
cmp dword [edi + 0x18], ebx
je 0x4ea0a8
mov eax, dword [edi + 0x10]
cmp eax, ebx
jbe 0x4ea0a8
cmp eax, 0x10
jb 0x4ea0a8
push 0x20
call dword [0x56a190]
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x4ea0b5
mov edx, dword [edi]
mov dword [esi], edx
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
push 0x10
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], 0x10
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
call dword [0x56a190]
add esp, 4
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x4ea0bf
mov ecx, dword [edi + 0x18]
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov eax, dword [edi + 0x14]
cmp eax, ebx
je 0x4ea095
push eax
call dword [0x56a19c]
add esp, 4
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x4ea0d3
cmp dword [esp + 0x10], ebx
jne 0x4ea09f
mov dword [esp + 0x10], esi
cmp ebp, ebx
je 0x4ea0a6
mov dword [ebp + 0x1c], esi
mov ebp, esi
mov edi, dword [edi + 0x1c]
cmp edi, ebx
jne 0x4e9ff0
jmp 0x4ea0ef
mov dword [esp + 0x14], 8
jmp 0x4ea0ef
push esi
mov dword [esp + 0x18], 8
call dword [0x56a194]
add esp, 4
jmp 0x4ea0ef
mov edx, dword [esi + 0x18]
push edx
mov dword [esp + 0x18], 8
call dword [0x56a194]
push esi
call dword [0x56a194]
add esp, 8
mov eax, dword [esp + 0x18]
pop esi
cmp eax, ebx
je 0x4ea0ff
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [esp + 0x10], ebx
je 0x4ea129
mov eax, dword [esp + 0xc]
push eax
call fcn.004e9f60
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
mov ecx, ebx
pop ebp
mov dword [esp + 4], ebx
mov dword [edx], ecx
pop ebx
add esp, 0xc
ret
cmp dword [esp + 0xc], ebx
jne 0x4ea142
push 0x2af9
mov dword [esp + 0x14], 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
mov dword [edx], ecx
pop edi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x4ea490
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push eax
push ecx
push 0
push 0
call fcn.004c2a9c
add esp, 0x18
test eax, eax
je 0x4ea4b3
cmp eax, 0xffffffff
jne 0x4ea4b5
xor eax, eax
ret
Function at 0x4f1c50
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push str.Connected_for_receive
push 0x52d27c
push ecx
call fcn.004e5600
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.004f0e10
test eax, eax
jne 0x4f1c80
mov eax, esi
jmp fcn.004f12a0
ret
Function at 0x4f2090
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x88
mov eax, dword [0x568e30]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
mov ebp, dword [esp + 0x94]
mov ebx, dword [ebp]
push esi
mov esi, dword [ebp + 0x400]
push edi
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x80
mov edx, dword [esi + 0x154]
mov eax, dword [esi + 0x15c]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esi + 0x14]
push 0
add edx, 4
lea edi, [esi + 0x15c]
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x4f211f
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esi + 0xc8]
push ecx
call fcn.004b8a70
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov dword [esi + 0x148], edx
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x4f215a
push str.Received_too_short_packet
push ebx
call fcn.004e5690
add esp, 8
mov dword [esi + 0xc], 7
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b8dd5
add esp, 0x88
ret
mov eax, edi
call fcn.004f0fb0
movzx eax, ax
mov dword [esi + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x4f2173
jmp dword [eax*4 + 0x4f225c]
cmp edx, 4
jle case.0x4f2173.4
mov eax, edi
call fcn.004f0fc0
movzx ecx, word [esi + 0x40]
inc ecx
cmp cx, ax
jne case.0x4f2173.4
add edx, 0xfffffffc
push edx
mov edx, dword [edi]
add edx, 4
push edx
push 1
push ebp
call fcn.004e5b50
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4f21c6
mov ecx, 5
mov eax, esi
call fcn.004f2010
mov eax, edi
jmp 0x4f2141
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [ebx + 0x70], eax
mov ecx, dword [ebx + 0x70]
adc dword [ebx + 0x74], edx
mov eax, dword [ebx + 0x74]
push eax
push ecx
push ebx
call fcn.004ffbe0
jmp 0x4f2232
mov eax, edi
call fcn.004f0fc0
movzx edx, ax
mov eax, dword [edi]
add eax, 4
push eax
push 0x52d27c
push ebx
mov dword [esi + 8], edx
call fcn.004e5600
jmp 0x4f2232
mov ecx, dword [edi]
add edx, 0xfffffffe
push edx
add ecx, 2
push ecx
push esi
call fcn.004f1050
add esp, 0xc
test eax, eax
je case.0x4f2173.4
jmp 0x4f2141
push str.Internal_error:_Unexpected_packet
push 0x53c0e8
push ebx
call fcn.004e5690
add esp, 0xc
push ebp
call fcn.004ffcc0
add esp, 4
test eax, eax
je 0x4f213f
mov ecx, 5
mov eax, esi
call fcn.004f2010
mov eax, 0x2a
jmp 0x4f2141

Function at 0x4f3020
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x568e30]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4f3055
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.004e5690
add esp, 0xc
jmp 0x4f308e
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [esp]
cmp al, 2
jne 0x4f3080
shr eax, 8
test al, al
jne 0x4f3080
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.004b8dd5
add esp, 0x194
ret
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.004e5690
add esp, 8
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.004b8dd5
add esp, 0x194
ret
Function at 0x4f3220
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
mov edx, dword [edi + 0x154]
mov al, byte [esp + 8]
push esi
mov esi, dword [edi]
push 0
push 3
lea ecx, [esp + 0xc]
push ecx
push edx
mov byte [esp + 0x14], 0xff
mov byte [esp + 0x15], al
mov byte [esp + 0x16], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x4f3264
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.004e5690
add esp, 0xc
mov esi, dword [esp + 0xc]
mov ecx, dword [edi]
push str.SENT
mov eax, ebx
call fcn.004f3120
add esp, 4
pop esi
pop ecx
ret
Function at 0x4f3b90
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x90c
mov eax, dword [0x568e30]
xor eax, esp
mov dword [esp + 0x908], eax
push ebx
push ebp
push esi
push edi
push 0x7f
lea eax, [esp + 0x9d]
mov ebx, ecx
push 0
push eax
mov dword [esp + 0x20], ebx
mov byte [esp + 0xa4], 0
call fcn.004b8df0
push 0x7f
lea ecx, [esp + 0x29]
push 0
push ecx
mov byte [esp + 0x30], 0
call fcn.004b8df0
mov ebp, dword [ebx]
mov edi, dword [ebp + 0x128]
mov edx, dword [edi + 0x1eb4]
sub edx, dword [edi + 0x1eb0]
lea eax, [edi + 0x1cb0]
add edx, 2
push edx
push 0x3c
mov esi, ebp
mov dword [esp + 0x30], ebp
call fcn.004f35b0
mov eax, dword [edi + 0x1eb0]
movzx ecx, byte [eax]
inc eax
add esp, 0x20
mov dword [edi + 0x1eb0], eax
cmp ecx, 0x18
je 0x4f3d78
cmp ecx, 0x23
je 0x4f3d52
cmp ecx, 0x27
jne 0x4f3e0a
push 0
push ecx
push 0xfa
push 0xff
push 0x52f198
lea eax, [esp + 0x12c]
push 0x800
push eax
call fcn.004e9150
mov esi, dword [edi + 0x1cac]
add esp, 0x1c
mov ebp, 4
test esi, esi
je 0x4f3ce6
lea esp, [esp]
mov ebx, dword [esi]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4f3c77
sub eax, edx
lea edi, [eax + ebp + 1]
cmp edi, 0x7fa
jae 0x4f3cdb
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x9c]
push edx
push str._127_____127s
push ebx
call fcn.004be557
add esp, 0x10
test eax, eax
je 0x4f3cdb
lea eax, [esp + 0x18]
push eax
push 1
lea ecx, [esp + 0xa0]
push ecx
push 0
mov edx, 0x800
push str._c_s_c_s
sub edx, ebp
push edx
lea eax, [esp + ebp + 0x130]
push eax
call fcn.004e9150
add esp, 0x1c
mov ebp, edi
mov esi, dword [esi + 4]
test esi, esi
jne 0x4f3c70
mov ebx, dword [esp + 0x14]
push 0xf0
push 0xff
mov ecx, 0x800
push 0x52f174
sub ecx, ebp
push ecx
lea edx, [esp + ebp + 0x128]
push edx
call fcn.004e9150
mov ecx, dword [ebx + 0x154]
add esp, 0x14
push 0
add ebp, 2
push ebp
lea eax, [esp + 0x120]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x4f3d45
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [esp + 0x10]
push eax
push str.Sending_data_failed___d_
push edx
call fcn.004e5690
add esp, 0xc
mov esi, dword [esp + 0x10]
add ebp, 0xfffffffe
push ebp
jmp 0x4f3df9
lea ecx, [edi + 0x1c28]
mov eax, ecx
lea esi, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4f3d60
push 0xf0
push 0xff
push ecx
push 0
push 0x23
jmp 0x4f3d99
lea ecx, [edi + 0x1c08]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4f3d83
push 0xf0
push 0xff
push ecx
push 0
push 0x18
push 0xfa
push 0xff
sub eax, esi
push str._c_c_c_c_s_c_c
lea edi, [eax + 6]
lea eax, [esp + 0x138]
push 0x800
push eax
call fcn.004e9150
mov edx, dword [ebx + 0x154]
add esp, 0x28
push 0
push edi
lea ecx, [esp + 0x120]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x4f3df3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebp
call fcn.004e5690
add esp, 0xc
add edi, 0xfffffffe
mov esi, ebp
push edi
push 0x3e
lea eax, [esp + 0x122]
call fcn.004f35b0
add esp, 8
mov ecx, dword [esp + 0x918]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b8dd5
add esp, 0x90c
ret