joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4890be
Capabilities:
Log keystrokes
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, dword [0x55215c]
push esi
mov esi, dword [ebp + 8]
movzx edx, cx
mov dword [esi], eax
cmp edx, 0x25
ja 0x489152
je 0x489148
mov eax, edx
sub eax, 0xd
je 0x48913e
sub eax, 0xe
je 0x489134
sub eax, 5
je 0x48912a
sub eax, 1
je 0x489120
sub eax, 1
je 0x489116
sub eax, 1
je 0x48910c
sub eax, 1
jne 0x48918b
push str.Home
jmp 0x4892b2
push 0x529844
jmp 0x4892b2
push str.PageDown
jmp 0x4892b2
push str.PageUp
jmp 0x4892b2
push str.Space
jmp 0x4892b2
push 0x5297f8
jmp 0x4892b2
push 0x529800
jmp 0x4892b2
push str.Left
jmp 0x4892b2
mov eax, edx
sub eax, 0x26
je 0x4892ad
sub eax, 1
je 0x4892a6
sub eax, 1
je 0x48929f
dec eax
sub eax, 1
je 0x489298
sub eax, 3
je 0x489291
sub eax, 1
je 0x48928a
cmp cx, 0x30
jb 0x489197
cmp cx, 0x39
jbe 0x4891a0
lea eax, [ecx - 0x41]
cmp ax, 0x19
ja 0x4891b8
movzx eax, cx
mov ecx, esi
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 1
call fcn.00402250
jmp 0x4892b9
lea eax, [ecx - 0x60]
cmp ax, 9
ja 0x4891cc
lea eax, [edx - 0x60]
push eax
push str.Num__d
jmp 0x48920e
cmp cx, 0x6a
jne 0x4891dc
push 0x5298b8
jmp 0x4892b2
cmp cx, 0x6b
jne 0x4891ec
push str.Num_
jmp 0x4892b2
cmp cx, 0x6e
jne 0x4891fc
push str.Num_Del
jmp 0x4892b2
lea eax, [ecx - 0x70]
cmp ax, 0xb
ja 0x489237
lea eax, [edx - 0x6f]
push eax
push 0x5298e0
lea eax, [ebp + 8]
push eax
push esi
call fcn.0044a1b2
mov ecx, dword [ebp + 8]
add esp, 0x10
add ecx, 0xfffffff4
cmp ecx, dword [0x552158]
je 0x4892b9
call fcn.00401a90
jmp 0x4892b9
push 2
push edx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov cl, al
movsx eax, cl
cmp eax, 0x3d
jg 0x489262
je 0x489271
cmp eax, 0x27
je 0x489271
cmp eax, 0x2b
jle 0x4892b9
cmp eax, 0x2f
jle 0x489271
cmp eax, 0x3b
je 0x489271
jmp 0x4892b9
cmp eax, 0x5b
jl 0x4892b9
cmp eax, 0x5d
jle 0x489271
cmp eax, 0x60
jne 0x4892b9
movsx ax, cl
mov ecx, esi
movzx eax, ax
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 1
call fcn.00454606
jmp 0x4892b9
push str.Delete
jmp 0x4892b2
push str.Insert
jmp 0x4892b2
push str.Print
jmp 0x4892b2
push str.Down
jmp 0x4892b2
push str.Right
jmp 0x4892b2
push 0x52980c
mov ecx, esi
call fcn.00401f40
mov eax, esi
pop esi
pop ebp
ret

Function at 0x48eff7
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 0x48f05f
mov ecx, esi
call fcn.0048f064
push 0
push dword [esi + 0x248]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x3ac]
test ecx, ecx
je 0x48f03a
push 0
call fcn.0044d169
and dword [esi + 0x3ac], 0
mov ecx, dword [0x555cb4]
lea ecx, [ecx + 8]
call fcn.0048fd9a
mov ecx, dword [esi + 0x3a4]
test ecx, ecx
je 0x48f05f
pop esi
mov ecx, dword [ecx + 0x174]
pop ebp
jmp fcn.0048fb68
pop esi
pop ebp
ret 4
Function at 0x492717
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 0x49273a
mov eax, dword [ebp + 8]
mov dword [eax + 8], edi
mov dword [eax], 1
mov dword [eax + 4], edi
jmp 0x4927d7
push esi
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], edi
push eax
push ebx
call fcn.0049232d
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x49275d
push ebx
call fcn.004b7147
mov eax, dword [ebp + 8]
mov dword [eax], esi
jmp 0x4927b3
mov esi, dword [ebp + 0x10]
xor eax, eax
inc eax
test esi, esi
cmovne eax, esi
push eax
call dword [0x552180]
mov dword [ebp - 4], eax
pop ecx
push ebx
test eax, eax
jne 0x492788
call fcn.004b7147
mov eax, dword [ebp + 8]
mov dword [eax], 3
jmp 0x4927b3
push esi
push 1
push eax
call fcn.004b7393
push ebx
mov esi, eax
call fcn.004b7147
add esp, 0x14
cmp esi, dword [ebp + 0x10]
je 0x4927bc
push dword [ebp - 4]
call dword [0x552184]
mov eax, dword [ebp + 8]
mov dword [eax], 2
pop ecx
mov dword [eax + 8], edi
mov dword [eax + 4], edi
jmp 0x4927d6
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.004926c2
mov eax, dword [ebp + 8]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x49aea4
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 0x4ccfd6
Capabilities:
Read file on windows

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

Function at 0x4d2b44
Capabilities:
Set environment variable

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

Function at 0x4d9340
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x5521f4]
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 0x4d9390
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x4d938a
shr eax, 8
cmp al, 2
jne 0x4d938a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00497eb9
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.00497eb9
mov esp, ebp
pop ebp
ret
Function at 0x4e0050
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x1505
add eax, esi
mov ecx, eax
sub ecx, esi
push edi
xor edi, edi
cmp esi, eax
cmova ecx, edx
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x4e0099
mov al, byte [esi]
push eax
call fcn.004ec0a0
movsx ecx, al
lea esi, [esi + 1]
mov eax, ebx
inc edi
shl eax, 5
add esp, 4
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp edi, dword [ebp + 8]
jb 0x4e0077
pop edi
pop esi
movzx eax, bl
pop ebx
pop ebp
ret

Function at 0x4e1460
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4e1481
cmp dword [esi + 0x8c], 0
je 0x4e1481
push 2
push 3
push esi
call fcn.004ec670
add esp, 0xc
push dword [ebp + 0xc]
call fcn.004ecb70
add esp, 4
test esi, esi
je 0x4e14a4
cmp dword [esi + 0x8c], 0
je 0x4e14a4
push 3
push esi
call fcn.004ec6b0
add esp, 8
pop esi
pop ebp
ret

Function at 0x4e20f0
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x2b8], 2
jne 0x4e2105
pop ebp
jmp fcn.004e20a0
mov al, 1
pop ebp
ret
Function at 0x4e99f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x628], 0
je 0x4e9a34
push esi
push 1
push edi
call fcn.004dc7f0
push dword [edi + 0x5b4]
mov eax, dword [edi + 0x628]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.004dc7f0
add esp, 0x24
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x4e9a6a
push dword [edi + 0x5b0]
lea eax, [eax + eax*2]
push 1
add eax, 0x53aeb8
push 2
push eax
call fcn.004b767b
push dword [edi + 0x5b0]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.004b767b
add esp, 0x20
xor eax, eax
pop edi
pop ebp
ret

Function at 0x4e9e60
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 + 0x1a8]
call fcn.004ea380
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 0x4e9ee4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x4e9ebc
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.0050d6a0
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.004e9a70
mov eax, dword [edi]
add esp, 0x14
mov dword [eax + 0xd5c], esi
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x37
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
shl eax, 4
push edi
mov edx, dword [ebx + ecx*4 + 0x1a8]
lea esi, [ebx + 0x1cc]
add esi, eax
mov dword [ebp + 8], edx
mov eax, dword [ebx + 0x2b0]
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x4ea43d
cmp dword [ebx + ecx*4 + 0x1bc], 0x4e9db0
jne 0x4ea43d
cmp dword [esi], 0
je 0x4ea3cf
test edi, edi
je 0x4ea43d
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
call fcn.004e95a0
add esp, 0x14
cmp eax, 0xffffffff
je 0x4ea43d
test al, 1
je 0x4ea43d
cmp dword [esi], 0
jne 0x4ea424
mov eax, dword [ebx]
mov eax, dword [eax + 0x920]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x552c20]
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 0x4ea424
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 dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4ea43d
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4ea520
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp byte [eax + 0x1ec], 0
je 0x4ea533
xor al, al
pop ebp
ret
mov eax, dword [eax + 0x1a8]
cmp eax, 0xffffffff
je 0x4ea52f
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
setne al
pop ebp
ret

Function at 0x4ead10
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x566e98]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x4ead61
push 3
push 2
push eax
push 6
call fcn.0050e150
add esp, 0x10
test al, al
je 0x4ead55
mov dword [0x566e98], 2
mov esp, ebp
pop ebp
ret
mov dword [0x566e98], 1
jmp 0x4ead66
cmp eax, 2
je 0x4eada6
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 0x4ead8d
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x4eada6
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 0x4eaeb0
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 0x4eaef8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.0050d6a0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004e9b50
add esp, 0x14
pop edi
pop esi
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.004e9b50
add esp, 8
pop edi
pop esi
pop ebp
ret
Function at 0x4eb030
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x5521f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
cmp dword [ebx + 0x90], 2
mov edi, dword [ebx]
mov dword [ebp - 0x10c], edi
je 0x4eb22a
cmp byte [ebx + 0x26e], 0
push esi
jne 0x4eb220
cmp byte [ebx + 0x28a], 0
jne 0x4eb220
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 0x4eb0ce
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.0050d6a0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.004e9a70
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00497eb9
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x84]
mov dword [ebp - 0x108], 0x80
push 0
push eax
call fcn.004b0ce0
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 0x4eb137
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.0050d6a0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.004e9a70
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00497eb9
mov esp, ebp
pop ebp
ret
lea eax, [ebx + 0x138]
push eax
lea esi, [ebx + 0x10a]
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.004ea710
add esp, 0xc
test al, al
jne 0x4eb195
call fcn.004b3eaa
mov esi, eax
call fcn.004b3eaa
push dword [esi]
mov edi, eax
push ebx
call fcn.0050d6a0
push eax
push dword [edi]
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x10c]
call fcn.004e9a70
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00497eb9
mov esp, ebp
pop ebp
ret
movups xmm0, xmmword [esi]
mov eax, dword [esi + 0x28]
movups xmmword [ebx + 0x5c], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [ebx + 0x6c], xmm0
movq xmm0, qword [esi + 0x20]
movq qword [ebx + 0x7c], xmm0
mov dword [ebx + 0x84], eax
mov ax, word [esi + 0x2c]
mov word [ebx + 0x88], ax
lea eax, [ebx + 0x16c]
push eax
lea eax, [ebx + 0x13c]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.004ea710
add esp, 0xc
test al, al
jne 0x4eb220
call fcn.004b3eaa
mov esi, eax
call fcn.004b3eaa
push dword [esi]
mov edi, eax
push ebx
call fcn.0050d6a0
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x10c]
call fcn.004e9a70
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00497eb9
mov esp, ebp
pop ebp
ret
push ebx
call fcn.004eac30
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00497eb9
mov esp, ebp
pop ebp
ret
Function at 0x4ebb50
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5521f4]
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 + 0xac4], 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 0x4ebbad
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.004e9b50
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00497eb9
mov esp, ebp
pop ebp
ret
push dword [esi + 0xac8]
mov dword [ebp - 0x10], 1
call fcn.004ebde0
push dword [esi + 0xacc]
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.004ebde0
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 0x4ebc1d
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.004e9b50
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00497eb9
mov esp, ebp
pop ebp
ret

Function at 0x4ebd90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
call fcn.004ebdb0
add esp, 4
mov dword [ebp + 0x10], eax
pop ebp
jmp fcn.004cc98d
Function at 0x4f8680
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x14]
push ebx
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [eax], ebx
lea eax, [ebp - 0xc]
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 - 0x10], eax
test eax, eax
jne 0x4f8814
push edi
mov edi, dword [ebp - 0xc]
test edi, edi
je 0x4f8800
push esi
nop dword [eax]
mov eax, dword [edi + 4]
cmp eax, 2
jne 0x4f86cf
mov eax, 0x10
jmp 0x4f86dd
cmp eax, 0x17
jne 0x4f8791
mov eax, 0x1c
cmp dword [edi + 0x18], 0
mov dword [ebp - 4], eax
je 0x4f8791
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x4f8791
cmp ecx, eax
jb 0x4f8791
push 0x20
call dword [0x552c20]
mov esi, eax
add esp, 4
test esi, esi
je 0x4f87f5
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]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 4]
push eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
call dword [0x552c20]
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x4f87e4
push dword [ebp - 4]
push dword [edi + 0x18]
push eax
call fcn.004b0760
mov eax, dword [edi + 0x14]
add esp, 0xc
test eax, eax
je 0x4f877f
push eax
call dword [0x552c2c]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x4f87ca
mov eax, dword [ebp - 8]
test ebx, ebx
cmove ebx, esi
test eax, eax
je 0x4f878e
mov dword [eax + 0x1c], esi
mov dword [ebp - 8], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x4f86c0
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
pop esi
test eax, eax
je 0x4f87ae
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test edi, edi
je 0x4f87fc
push ebx
call fcn.004f8640
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 [0x552c24]
push esi
call dword [0x552c24]
add esp, 8
jmp 0x4f879f
push esi
mov edi, 8
call dword [0x552c24]
add esp, 4
jmp 0x4f879f
mov edi, 8
jmp 0x4f879f
test ebx, ebx
jne 0x4f880c
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 0x4f8bb0
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.004b79f0
add esp, 0x18
test eax, eax
je 0x4f8bd2
cmp eax, 0xffffffff
jne 0x4f8bd4
xor eax, eax
pop ebp
ret
Function at 0x4ff290
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x5521f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x88]
push ecx
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x88], 0x80
push ecx
mov eax, dword [edi + 0x1ac]
or esi, 0xffffffff
mov ebx, dword [edi]
push eax
mov dword [ebp - 0x8c], eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4ff303
lea eax, [ebp - 0x88]
mov dword [ebp - 0x88], 0x80
push eax
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x8c]
call dword [sym.imp.WS2_32.dll_accept]
mov esi, eax
push dword [ebp - 0x8c]
push edi
call fcn.004ea450
add esp, 8
cmp esi, 0xffffffff
jne 0x4ff33b
push str.Error_accept__ing_server_connect
push ebx
call fcn.004e9a70
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00497eb9
mov esp, ebp
pop ebp
ret
push str.Connection_accepted_from_server_n
push ebx
call fcn.004e9b50
push 1
mov byte [edi + 0x278], 0
push esi
mov dword [edi + 0x1ac], esi
call fcn.0050dfc0
add esp, 0x10
mov byte [edi + 0x1b9], 1
cmp dword [ebx + 0x630], 0
je 0x4ff3b7
push 1
push ebx
call fcn.004dc7f0
mov eax, dword [ebx + 0x630]
push 1
push esi
push dword [ebx + 0x634]
call eax
push 0
push ebx
mov esi, eax
call fcn.004dc7f0
add esp, 0x1c
test esi, esi
je 0x4ff3b7
push edi
call fcn.004ff820
add esp, 4
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00497eb9
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.00497eb9
mov esp, ebp
pop ebp
ret

Function at 0x5017a0
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 0x5017cf
push str.Couldnt_set_desired_mode
push edx
call fcn.004e9a70
add esp, 8
lea eax, [esi + 0x11]
pop edi
pop esi
pop ebp
ret
cmp ecx, 0xc8
je 0x5017e6
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push edx
call fcn.004e9b50
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp eax, 0x13
jne 0x5017fd
push edi
call fcn.00501500
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebp
ret
cmp eax, 0x14
jne 0x501811
push edi
call fcn.00500560
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebp
ret
cmp eax, 0x15
jne 0x501825
push edi
call fcn.005014e0
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebp
ret
cmp eax, 0x16
jne 0x501835
push edi
call fcn.00501680
mov esi, eax
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x504830
Capabilities:
Initialize winsock library

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

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