joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bb3f0
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x57254c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x4bb52e
cmp dword [ebp + 0x10], 0
jle 0x4bb52e
mov eax, dword [edi + 0x210]
test eax, eax
je 0x4bb439
push eax
call dword [sym.imp.USER32.dll_DestroyCursor]
mov dword [edi + 0x210], 0
lea eax, [ebp - 0x414]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4bb52e
cmp eax, 0x104
ja 0x4bb52e
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x53cda4
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4bb52e
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4bb52e
test esi, esi
je 0x4bb52e
push 0
lea eax, [ebp - 0x418]
mov dword [ebp - 0x418], 0
push eax
push dword [ebp + 0x10]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
je 0x4bb51b
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x50
push 0
push 0
push 2
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [edi + 0x210], eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [edi + 0x210]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f8955
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f8955
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4bd210
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x57254c]
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 0x4bd263
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x4bd25d
shr eax, 8
cmp al, 2
jne 0x4bd25d
call fcn.004c17a0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f8955
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.004f8955
mov esp, ebp
pop ebp
ret

Function at 0x4c20f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4c210e
cmp dword [esi + 0x48], 0
je 0x4c210e
push 2
push 3
push esi
call fcn.004d6b10
add esp, 0xc
push dword [ebp + 0xc]
call fcn.004ce000
add esp, 4
test esi, esi
je 0x4c212e
cmp dword [esi + 0x48], 0
je 0x4c212e
push 3
push esi
call fcn.004d6b50
add esp, 8
pop esi
pop ebp
ret
Function at 0x4cc090
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 + 0x190]
call fcn.004cc380
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 0x4cc114
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x4cc0ec
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.004d90b0
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.004cbd00
mov eax, dword [edi]
add esp, 0x14
mov dword [eax + 0x4668], esi
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x37
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

Function at 0x4cc380
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 esi
shl eax, 4
lea esi, [ecx + 0x1b4]
add esi, eax
mov eax, dword [ecx + 0x390]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x3c], 3
je 0x4cc442
cmp dword [ecx + edx*4 + 0x1a4], 0x4cbfe0
jne 0x4cc442
cmp dword [esi], 0
je 0x4cc3c8
test edi, edi
je 0x4cc442
push ebx
mov ebx, dword [ecx + edx*4 + 0x190]
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.004cb630
add esp, 0x14
cmp eax, 0xffffffff
je 0x4cc441
test al, 1
je 0x4cc441
mov ecx, dword [esi]
test ecx, ecx
jne 0x4cc41e
push 0x8000
mov dword [esi + 4], 0x8000
call dword [0x57248c]
mov edi, dword [esi + 4]
mov ecx, eax
add esp, 4
mov dword [esi], ecx
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test ecx, ecx
je 0x4cc43a
mov eax, dword [esi + 8]
push 0
push edi
add eax, ecx
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4cc441
add dword [esi + 8], eax
pop ebx
pop edi
pop esi
pop ebp
ret
mov dword [esi + 4], 0
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x4cc450
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 0x4cc479
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 0x4cc4af
push dword [esi + 0x118]
lea eax, [eax + eax*2]
push 1
add eax, 0x53e2b0
push 2
push eax
call fcn.004ff3ad
push dword [esi + 0x118]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.004ff3ad
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp byte [eax + 0x1d4], 0
je 0x4cc5a0
push eax
call fcn.004019c0
add esp, 4
test eax, eax
jne 0x4cc5be
xor al, al
pop ebp
ret
mov eax, dword [eax + 0x190]
cmp eax, 0xffffffff
je 0x4cc59c
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x4cc59c
mov al, 1
pop ebp
ret
Function at 0x4ccc80
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x575450]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x4cccd1
push 3
push 2
push eax
push 6
call fcn.004d8430
add esp, 0x10
test al, al
je 0x4cccc5
mov dword [0x575450], 2
mov esp, ebp
pop ebp
ret
mov dword [0x575450], 1
jmp 0x4cccd6
cmp eax, 2
je 0x4ccd16
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 0x4cccfd
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x4ccd16
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 0x4ccdf0
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 0x4cce38
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004d90b0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004cbdb0
add esp, 0x14
pop edi
pop esi
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.004cbdb0
add esp, 8
pop edi
pop esi
pop ebp
ret
Function at 0x4ccf40
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x57254c]
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 0x4cd11a
cmp byte [edi + 0x356], 0
push esi
jne 0x4cd110
cmp byte [edi + 0x372], 0
jne 0x4cd110
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 0x4ccfd8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.004d90b0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.004cbd00
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f8955
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x84]
mov dword [ebp - 0x108], 0x80
push 0
push eax
call fcn.004fb730
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 0x4cd041
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.004d90b0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.004cbd00
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f8955
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0x130]
push eax
lea esi, [edi + 0x102]
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.004cd620
add esp, 0xc
test al, al
jne 0x4cd092
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.004d90b0
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.004cbd00
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f8955
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 + 0x164]
push eax
lea eax, [edi + 0x134]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.004cd620
add esp, 0xc
test al, al
jne 0x4cd110
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.004d90b0
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.004cbd00
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f8955
mov esp, ebp
pop ebp
ret
push edi
call fcn.004ccba0
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004f8955
mov esp, ebp
pop ebp
ret
Function at 0x4cd9a0
Capabilities:
Contain obfuscated stackstrings
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x57254c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
xor eax, eax
push edi
mov edi, dword [ebp + 8]
push 4
cmp byte [edi + 0x48c], al
setne al
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push 8
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x4cd9fd
push esi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push edi
call fcn.004cbdb0
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f8955
mov esp, ebp
pop ebp
ret
push dword [edi + 0x490]
mov dword [ebp - 0x28], 1
call fcn.004d5a20
push dword [edi + 0x494]
imul eax, eax, 0x3e8
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], eax
call fcn.004d5a20
imul eax, eax, 0x3e8
add esp, 8
mov dword [ebp - 0x1c], 0x5f327377
mov dword [ebp - 0x18], 0x642e3233
mov word [ebp - 0x14], 0x6c6c
mov byte [ebp - 0x12], 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x10], 0x49415357
push eax
mov dword [ebp - 0xc], 0x6c74636f
mov byte [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4cdaac
push 0
push 0
lea ecx, [ebp - 0x30]
push ecx
push 0
push 0
push 0xc
lea ecx, [ebp - 0x28]
push ecx
push 0x98000004
push esi
call eax
test eax, eax
je 0x4cdaac
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push esi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push edi
call fcn.004cbdb0
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004f8955
mov esp, ebp
pop ebp
ret
Function at 0x4d5a00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
call fcn.004019e0
add esp, 4
mov dword [ebp + 0x10], eax
pop ebp
jmp fcn.00515b4f

Function at 0x4d82e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push 0x540024
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 4], eax
test eax, eax
jne 0x4d8300
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
push str.LoadLibraryExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [ebp + 8]
mov ebx, eax
push 0x540040
push esi
mov dword [ebp - 8], ebx
call fcn.00510b05
add esp, 8
test eax, eax
je 0x4d834c
test ebx, ebx
je 0x4d833c
push 8
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x4d8375
push str.AddDllDirectory
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4d8375
push 0x800
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [ebp - 4], edx
test edx, edx
je 0x4d8420
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4d8391
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [0x57248c]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4d8416
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4d8416
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4d83c2
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4d83e0
sub ecx, edx
sub ecx, esi
add ecx, ebx
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x4d83f0
mov eax, dword [ebp - 8]
test eax, eax
je 0x4d840d
push 8
push 0
push ebx
call eax
jmp 0x4d8414
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x572490]
add esp, 4
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4d85d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x57254c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x3c], eax
mov dword [eax], ebx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x38], ebx
push eax
mov dword [ebp - 0x10], 0x5f327377
mov dword [ebp - 0xc], 0x642e3233
mov word [ebp - 8], 0x6c6c
mov byte [ebp - 6], bl
mov dword [ebp - 0x1c], 0x61746567
mov dword [ebp - 0x18], 0x69726464
mov dword [ebp - 0x14], 0x6f666e
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4d864e
lea ecx, [ebp - 0x34]
push ecx
push dword [ebp - 0x30]
push edi
push esi
call eax
jmp 0x4d8651
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x4d87cd
mov edi, dword [ebp - 0x34]
test edi, edi
je 0x4d87ba
nop word [eax + eax]
cmp dword [edi + 4], 2
jne 0x4d8728
cmp dword [edi + 0x18], 0
je 0x4d8728
mov eax, dword [edi + 0x10]
test eax, eax
je 0x4d8728
cmp eax, 0x10
jb 0x4d8728
push 0x20
call dword [0x57248c]
mov esi, eax
add esp, 4
test esi, esi
je 0x4d87af
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 [0x57248c]
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x4d879e
mov ecx, dword [edi + 0x18]
movups xmm0, xmmword [ecx]
movups xmmword [eax], xmm0
mov eax, dword [edi + 0x14]
test eax, eax
je 0x4d8716
push eax
call dword [0x572498]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x4d8784
mov eax, dword [ebp - 0x38]
test ebx, ebx
cmove ebx, esi
test eax, eax
je 0x4d8725
mov dword [eax + 0x1c], esi
mov dword [ebp - 0x38], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x4d8670
mov edi, dword [ebp - 0x30]
cmp dword [ebp - 0x34], 0
je 0x4d8773
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x65657266
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x28], 0x72646461
push eax
mov dword [ebp - 0x24], 0x6f666e69
mov byte [ebp - 0x20], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4d8773
push dword [ebp - 0x34]
call eax
test edi, edi
je 0x4d87b6
push ebx
call fcn.004d8590
add esp, 4
xor ebx, ebx
jmp 0x4d87c6
push dword [esi + 0x18]
mov edi, 8
call dword [0x572490]
push esi
call dword [0x572490]
add esp, 8
jmp 0x4d8736
push esi
mov edi, 8
call dword [0x572490]
add esp, 4
jmp 0x4d8736
mov edi, 8
jmp 0x4d8736
test ebx, ebx
jne 0x4d87c6
mov edi, 0x2af9
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp - 0x3c]
mov dword [eax], ebx
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f8955
mov esp, ebp
pop ebp
ret
Function at 0x4d98c0
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.00509dff
add esp, 0x18
test eax, eax
je 0x4d98e2
cmp eax, 0xffffffff
jne 0x4d98e4
xor eax, eax
pop ebp
ret

Function at 0x4d9af0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x57254c]
xor eax, ebp
mov dword [ebp - 4], eax
movaps xmm0, xmmword [0x5428c0]
lea eax, [ebp - 0x3c]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x68], 0
push eax
mov dword [ebp - 0x14], 0x61766461
mov dword [ebp - 0x10], 0x32336970
mov dword [ebp - 0xc], 0x6c6c642e
mov byte [ebp - 8], 0
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x2c], 0x41747865
mov byte [ebp - 0x28], 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
test eax, eax
je 0x4d9b6e
push 0xf0000040
push 1
push 0
push 0
lea ecx, [ebp - 0x68]
push ecx
call eax
test eax, eax
je 0x4d9bd5
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x70797243
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x20], 0x6e654774
push eax
mov dword [ebp - 0x1c], 0x646e6152
mov word [ebp - 0x18], 0x6d6f
mov byte [ebp - 0x16], 0
call esi
push eax
call edi
test eax, eax
je 0x4d9beb
push ebx
push dword [ebp + 0xc]
push dword [ebp - 0x68]
call eax
test eax, eax
jne 0x4d9beb
movaps xmm0, xmmword [0x5428d0]
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x40], 0x747865
push eax
movups xmmword [ebp - 0x50], xmm0
call esi
push eax
call edi
test eax, eax
je 0x4d9bd5
push 0
push dword [ebp - 0x68]
call eax
pop edi
pop esi
mov eax, 2
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f8955
mov esp, ebp
pop ebp
ret
movaps xmm0, xmmword [0x5428d0]
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x54], 0x747865
push eax
movups xmmword [ebp - 0x64], xmm0
call esi
push eax
call edi
test eax, eax
je 0x4d9c15
push 0
push dword [ebp - 0x68]
call eax
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f8955
mov esp, ebp
pop ebp
ret
Function at 0x4e0f40
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x57254c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push edi
push ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], 0x10
mov eax, dword [esi + 0x194]
or edi, 0xffffffff
mov ebx, dword [esi]
push ecx
push eax
mov dword [ebp - 0x1c], eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4e0f98
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x10
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
push dword [ebp - 0x1c]
push esi
call fcn.004cc4c0
add esp, 8
cmp edi, 0xffffffff
jne 0x4e0fcd
push str.Error_accept__ing_server_connect
push ebx
call fcn.004cbd00
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f8955
mov esp, ebp
pop ebp
ret
push str.Connection_accepted_from_server_n
push ebx
call fcn.004cbdb0
push 1
mov byte [esi + 0x360], 0
push edi
mov dword [esi + 0x194], edi
call fcn.004ee360
mov byte [esi + 0x1a1], 1
add esp, 0x10
mov eax, dword [ebx + 0x198]
test eax, eax
je 0x4e1032
push 1
push edi
push dword [ebx + 0x19c]
call eax
add esp, 0xc
test eax, eax
je 0x4e1032
push esi
call fcn.004e14c0
add esp, 4
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f8955
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f8955
mov esp, ebp
pop ebp
ret

Function at 0x4e34e0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
lea eax, [ecx - 0xc8]
mov edx, dword [edi]
cmp eax, 0x64
jb 0x4e350f
push str.Couldnt_set_desired_mode
push edx
call fcn.004cbd00
add esp, 8
lea eax, [esi + 0x11]
pop edi
pop esi
pop ebp
ret
cmp ecx, 0xc8
je 0x4e3526
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push edx
call fcn.004cbdb0
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp eax, 0x13
jne 0x4e353d
push edi
call fcn.004e3270
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebp
ret
cmp eax, 0x14
jne 0x4e3551
push edi
call fcn.004e2320
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebp
ret
cmp eax, 0x15
jne 0x4e3565
push edi
call fcn.004e3250
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebp
ret
cmp eax, 0x16
jne 0x4e3575
push edi
call fcn.004e33c0
mov esi, eax
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x4e84c0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x57254c]
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 0x4e850d
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.004cbd00
add esp, 0xc
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f8955
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x4e8535
shr eax, 8
test al, al
jne 0x4e8535
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f8955
mov esp, ebp
pop ebp
ret
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.004cbd00
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 2
pop esi
call fcn.004f8955
mov esp, ebp
pop ebp
ret

Function at 0x4e8da0
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 + 0x190]
mov byte [ebp + 8], 0xff
mov byte [ebp + 9], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x4e8de8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.004cbd00
add esp, 0xc
push dword [ebp + 0x10]
push ebx
push str.SENT
push dword [esi]
call fcn.004e8650
add esp, 0x10
pop edi
pop esi
pop ebx
pop ebp
ret