joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ebb90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
mov eax, dword [0x628960]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0xb8], eax
mov ebx, dword [eax]
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
call fcn.004f53d0
mov edx, eax
add esp, 8
mov dword [ebp - 0xbc], edx
test edx, edx
jne 0x4ebbdc
lea eax, [edx + 0x1b]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0676
mov esp, ebp
pop ebp
ret
push esi
push edi
mov edi, edx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x4ebbe3
sub edi, ecx
mov dword [ebp - 0xac], edx
mov esi, edx
mov ecx, dword [ebp - 0xb8]
xor eax, eax
mov edx, dword [ebp + 8]
mov dword [ebp - 0xb4], 0
cmp edx, dword [ecx + 0x138]
lea edx, [ebp - 0xb4]
push edx
push edi
sete al
push esi
push eax
push ecx
mov eax, dword [ecx + eax*4 + 0x14c]
call eax
add esp, 0x14
mov dword [ebp - 0xb0], eax
test eax, eax
jns 0x4ebc54
mov eax, dword [ebp - 0xb4]
test eax, eax
je 0x4ebd63
cmp eax, 0x51
jne 0x4ebd5f
mov dword [ebp - 0xb0], 0
cmp dword [ebx + 0x324], 0
mov dword [ebp - 0xa8], 0
je 0x4ebd40
cmp dword [ebx + 0x2d8], 0
je 0x4ebd21
mov eax, dword [ebp - 0xb8]
mov eax, dword [eax + 0x84]
test eax, eax
je 0x4ebd21
push eax
push 0x5ca7d8
push str.Data
push str.__s__s__s_
lea eax, [ebp - 0xa4]
push 0xa0
push eax
call fcn.004f5370
lea esi, [ebp - 0xa4]
add esp, 0x18
lea ecx, [esi + 1]
lea esp, [esp]
mov al, byte [esi]
inc esi
test al, al
jne 0x4ebcc0
mov eax, dword [ebx + 0x19c]
sub esi, ecx
test eax, eax
je 0x4ebcef
push dword [ebx + 0x12c]
lea ecx, [ebp - 0xa4]
push esi
push ecx
push 0
push ebx
call eax
add esp, 0x14
test eax, eax
jne 0x4ebd40
jmp 0x4ebd1b
push dword [ebx + 0x128]
push 1
push 2
push 0x5ca744
call fcn.004a1a2e
push dword [ebx + 0x128]
lea eax, [ebp - 0xa4]
push 1
push esi
push eax
call fcn.004a1a2e
add esp, 0x20
mov esi, dword [ebp - 0xac]
mov eax, dword [ebx + 0x19c]
test eax, eax
je 0x4ebd40
push dword [ebx + 0x12c]
push dword [ebp - 0xb0]
push esi
push 4
push ebx
call eax
add esp, 0x14
mov eax, dword [ebp - 0xb0]
cmp eax, edi
je 0x4ebd6a
mov esi, dword [ebp - 0xac]
sub edi, eax
add esi, eax
mov dword [ebp - 0xac], esi
jmp 0x4ebbf4
mov esi, eax
jmp 0x4ebd70
mov esi, 0x37
jmp 0x4ebd70
mov esi, dword [ebp - 0xa8]
push dword [ebp - 0xbc]
call dword [0x629b48]
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004a0676
mov esp, ebp
pop ebp
ret

Function at 0x4ebea0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x19c]
test eax, eax
je 0x4ebec9
push dword [esi + 0x12c]
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 0x4ebeff
push dword [esi + 0x128]
lea eax, [eax + eax*2]
push 1
add eax, 0x5ca744
push 2
push eax
call fcn.004a1a2e
push dword [esi + 0x128]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.004a1a2e
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4ec130
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 + 0x59c]
test esi, esi
je 0x4ec17a
mov eax, dword [edi + 0xc]
test eax, eax
je 0x4ec17a
push 0x4ecd10
lea ecx, [ebp - 8]
mov dword [ebp - 8], esi
push ecx
mov dword [ebp - 4], 0
push dword [eax + 0x64]
call fcn.004f4880
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x4ec183
mov dword [edi + 0x59c], 0
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4ec18c
mov dword [eax], esi
cmp dword [esi + 0x154], 0
mov edi, dword [esi + 0x134]
je 0x4ec1b1
push esi
call fcn.004e3f80
add esp, 4
test eax, eax
jne 0x4ec1c4
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
push 2
push 1
lea eax, [ebp + 0xb]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x4ec17a
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4ec6f0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x628960]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x1d0], 0
mov ebx, dword [edi]
jne 0x4ec879
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 0x4ec76e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.004f7240
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.004eb740
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0676
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x84]
mov dword [ebp - 0x108], 0x80
push 0
push eax
call fcn.004a2440
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 0x4ec7d7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.004f7240
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.004eb740
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0676
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0xcc]
push eax
lea eax, [edi + 0x9e]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.004ecd30
add esp, 0xc
test eax, eax
jne 0x4ec828
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.004f7240
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.004eb740
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0676
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0x100]
push eax
lea eax, [edi + 0xd0]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.004ecd30
add esp, 0xc
test eax, eax
jne 0x4ec879
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.004f7240
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.004eb740
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0676
mov esp, ebp
pop ebp
ret
push edi
call fcn.004ec460
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004a0676
mov esp, ebp
pop ebp
ret
Function at 0x4ed0a0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 4
cmp dword [esi + 0x450], eax
setne al
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 8
push 0xffff
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x4ed0e0
push dword [ebp + 0xc]
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.004eb850
add esp, 0xc
pop esi
pop ebp
ret

Function at 0x4ed0f0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push 4
mov esi, dword [edi]
mov eax, dword [esi + 0x354]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 1
push 6
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x4ed13a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004f7240
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004eb850
add esp, 0x14
pop edi
pop esi
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.004eb850
add esp, 8
pop edi
pop esi
pop ebp
ret
Function at 0x4f6870
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov bl, byte [esi]
test bl, bl
je 0x4f6922
mov cl, byte [edi]
test cl, cl
je 0x4f6922
movsx eax, bl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x4f689b
jmp dword [eax*4 + 0x4f6948]
mov bl, 0x41
jmp case.default.0x4f689b
mov bl, 0x42
jmp case.default.0x4f689b
mov bl, 0x43
jmp case.default.0x4f689b
mov bl, 0x44
jmp case.default.0x4f689b
mov bl, 0x45
jmp case.default.0x4f689b
mov bl, 0x46
jmp case.default.0x4f689b
mov bl, 0x47
jmp case.default.0x4f689b
mov bl, 0x48
jmp case.default.0x4f689b
mov bl, 0x49
jmp case.default.0x4f689b
mov bl, 0x4a
jmp case.default.0x4f689b
mov bl, 0x4b
jmp case.default.0x4f689b
mov bl, 0x4c
jmp case.default.0x4f689b
mov bl, 0x4d
jmp case.default.0x4f689b
mov bl, 0x4e
jmp case.default.0x4f689b
mov bl, 0x4f
jmp case.default.0x4f689b
mov bl, 0x50
jmp case.default.0x4f689b
mov bl, 0x51
jmp case.default.0x4f689b
mov bl, 0x52
jmp case.default.0x4f689b
mov bl, 0x53
jmp case.default.0x4f689b
mov bl, 0x54
jmp case.default.0x4f689b
mov bl, 0x55
jmp case.default.0x4f689b
mov bl, 0x56
jmp case.default.0x4f689b
mov bl, 0x57
jmp case.default.0x4f689b
mov bl, 0x58
jmp case.default.0x4f689b
mov bl, 0x59
jmp case.default.0x4f689b
mov bl, 0x5a
push ecx
call fcn.004f6b20
add esp, 4
cmp bl, al
jne 0x4f6922
mov bl, byte [esi + 1]
inc esi
inc edi
test bl, bl
jne 0x4f6886
movzx eax, byte [esi]
push eax
call fcn.004f6b20
movzx ecx, byte [edi]
mov bl, al
push ecx
call fcn.004f6b20
add esp, 8
xor ecx, ecx
cmp bl, al
sete cl
pop edi
pop esi
mov eax, ecx
pop ebx
pop ebp
ret
Function at 0x4f69b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp + 0x10], eax
mov bl, byte [edi]
test bl, bl
je 0x4f6a7a
lea esp, [esp]
mov cl, byte [eax]
test cl, cl
je 0x4f6a7a
test esi, esi
je 0x4f6a7e
movsx eax, bl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x4f69ed
jmp dword [eax*4 + 0x4f6ab0]
mov bl, 0x41
jmp case.default.0x4f69ed
mov bl, 0x42
jmp case.default.0x4f69ed
mov bl, 0x43
jmp case.default.0x4f69ed
mov bl, 0x44
jmp case.default.0x4f69ed
mov bl, 0x45
jmp case.default.0x4f69ed
mov bl, 0x46
jmp case.default.0x4f69ed
mov bl, 0x47
jmp case.default.0x4f69ed
mov bl, 0x48
jmp case.default.0x4f69ed
mov bl, 0x49
jmp case.default.0x4f69ed
mov bl, 0x4a
jmp case.default.0x4f69ed
mov bl, 0x4b
jmp case.default.0x4f69ed
mov bl, 0x4c
jmp case.default.0x4f69ed
mov bl, 0x4d
jmp case.default.0x4f69ed
mov bl, 0x4e
jmp case.default.0x4f69ed
mov bl, 0x4f
jmp case.default.0x4f69ed
mov bl, 0x50
jmp case.default.0x4f69ed
mov bl, 0x51
jmp case.default.0x4f69ed
mov bl, 0x52
jmp case.default.0x4f69ed
mov bl, 0x53
jmp case.default.0x4f69ed
mov bl, 0x54
jmp case.default.0x4f69ed
mov bl, 0x55
jmp case.default.0x4f69ed
mov bl, 0x56
jmp case.default.0x4f69ed
mov bl, 0x57
jmp case.default.0x4f69ed
mov bl, 0x58
jmp case.default.0x4f69ed
mov bl, 0x59
jmp case.default.0x4f69ed
mov bl, 0x5a
push ecx
call fcn.004f6b20
add esp, 4
cmp bl, al
jne 0x4f6a7a
mov eax, dword [ebp + 0x10]
inc edi
inc eax
dec esi
mov dword [ebp + 0x10], eax
mov bl, byte [edi]
test bl, bl
jne 0x4f69d0
test esi, esi
jne 0x4f6a88
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret
movzx eax, byte [edi]
push eax
call fcn.004f6b20
mov bl, al
mov eax, dword [ebp + 0x10]
movzx ecx, byte [eax]
push ecx
call fcn.004f6b20
add esp, 8
xor ecx, ecx
cmp bl, al
sete cl
pop edi
pop esi
mov eax, ecx
pop ebx
pop ebp
ret

Function at 0x4f6b20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov cl, byte [ebp + 8]
movsx eax, cl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x4f6b31
jmp dword [eax*4 + 0x4f6ba4]
mov al, 0x41
pop ebp
ret
mov al, 0x42
pop ebp
ret
mov al, 0x43
pop ebp
ret
mov al, 0x44
pop ebp
ret
mov al, 0x45
pop ebp
ret
mov al, 0x46
pop ebp
ret
mov al, 0x47
pop ebp
ret
mov al, 0x48
pop ebp
ret
mov al, 0x49
pop ebp
ret
mov al, 0x4a
pop ebp
ret
mov al, 0x4b
pop ebp
ret
mov al, 0x4c
pop ebp
ret
mov al, 0x4d
pop ebp
ret
mov al, 0x4e
pop ebp
ret
mov al, 0x4f
pop ebp
ret
mov al, 0x50
pop ebp
ret
mov al, 0x51
pop ebp
ret
mov al, 0x52
pop ebp
ret
mov al, 0x53
pop ebp
ret
mov al, 0x54
pop ebp
ret
mov al, 0x55
pop ebp
ret
mov al, 0x56
pop ebp
ret
mov al, 0x57
pop ebp
ret
mov al, 0x58
pop ebp
ret
mov al, 0x59
pop ebp
ret
mov al, 0x5a
pop ebp
ret
mov al, cl
pop ebp
ret
Function at 0x4f6c10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
cmp esi, 1
jb 0x4f6cbc
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
sub edi, edx
lea esp, [esp]
mov cl, byte [edx]
movsx eax, cl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x4f6c3d
jmp dword [eax*4 + 0x4f6cc0]
mov cl, 0x41
jmp case.default.0x4f6c3d
mov cl, 0x42
jmp case.default.0x4f6c3d
mov cl, 0x43
jmp case.default.0x4f6c3d
mov cl, 0x44
jmp case.default.0x4f6c3d
mov cl, 0x45
jmp case.default.0x4f6c3d
mov cl, 0x46
jmp case.default.0x4f6c3d
mov cl, 0x47
jmp case.default.0x4f6c3d
mov cl, 0x48
jmp case.default.0x4f6c3d
mov cl, 0x49
jmp case.default.0x4f6c3d
mov cl, 0x4a
jmp case.default.0x4f6c3d
mov cl, 0x4b
jmp case.default.0x4f6c3d
mov cl, 0x4c
jmp case.default.0x4f6c3d
mov cl, 0x4d
jmp case.default.0x4f6c3d
mov cl, 0x4e
jmp case.default.0x4f6c3d
mov cl, 0x4f
jmp case.default.0x4f6c3d
mov cl, 0x50
jmp case.default.0x4f6c3d
mov cl, 0x51
jmp case.default.0x4f6c3d
mov cl, 0x52
jmp case.default.0x4f6c3d
mov cl, 0x53
jmp case.default.0x4f6c3d
mov cl, 0x54
jmp case.default.0x4f6c3d
mov cl, 0x55
jmp case.default.0x4f6c3d
mov cl, 0x56
jmp case.default.0x4f6c3d
mov cl, 0x57
jmp case.default.0x4f6c3d
mov cl, 0x58
jmp case.default.0x4f6c3d
mov cl, 0x59
jmp case.default.0x4f6c3d
mov cl, 0x5a
mov byte [edi + edx], cl
mov al, byte [edx]
inc edx
test al, al
je 0x4f6cbb
dec esi
jne 0x4f6c30
pop edi
pop esi
pop ebp
ret
Function at 0x4f6e90
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 0x4f700d
push edi
mov edi, dword [ebp - 8]
test edi, edi
je 0x4f6ff9
push esi
lea esp, [esp]
cmp dword [edi + 4], 2
jne 0x4f6f8a
cmp dword [edi + 0x18], 0
je 0x4f6f8a
mov eax, dword [edi + 0x10]
test eax, eax
je 0x4f6f8a
cmp eax, 0x10
jb 0x4f6f8a
push 0x20
call dword [0x629b44]
mov esi, eax
add esp, 4
test esi, esi
je 0x4f6fee
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 [0x629b44]
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x4f6fdd
mov ecx, dword [edi + 0x18]
movdqu xmm0, xmmword [ecx]
movdqu xmmword [eax], xmm0
mov eax, dword [edi + 0x14]
test eax, eax
je 0x4f6f78
push eax
call dword [0x629b50]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x4f6fc3
mov eax, dword [ebp - 4]
test ebx, ebx
cmove ebx, esi
test eax, eax
je 0x4f6f87
mov dword [eax + 0x1c], esi
mov dword [ebp - 4], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x4f6ed0
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
pop esi
test eax, eax
je 0x4f6fa7
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test edi, edi
je 0x4f6ff5
push ebx
call fcn.004f6e40
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 [0x629b48]
push esi
call dword [0x629b48]
add esp, 8
jmp 0x4f6f98
push esi
mov edi, 8
call dword [0x629b48]
add esp, 4
jmp 0x4f6f98
mov edi, 8
jmp 0x4f6f98
test ebx, ebx
jne 0x4f7005
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 0x4f7a20
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.004a50a6
add esp, 0x18
test eax, eax
je 0x4f7a42
cmp eax, 0xffffffff
jne 0x4f7a44
xor eax, eax
pop ebp
ret
Function at 0x4ffc80
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x628960]
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 + 0x138]
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 0x4ffcd8
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.004ebf10
add esp, 8
cmp edi, 0xffffffff
jne 0x4ffd0d
push str.Error_accept__ing_server_connect
push ebx
call fcn.004eb740
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0676
mov esp, ebp
pop ebp
ret
push str.Connection_accepted_from_server_n
push ebx
call fcn.004eb850
push 1
push edi
mov dword [esi + 0x138], edi
call fcn.0050bb70
mov dword [esi + 0x140], 1
add esp, 0x10
mov eax, dword [ebx + 0x1a4]
test eax, eax
je 0x4ffd79
push 1
push edi
push dword [ebx + 0x1a8]
call eax
add esp, 0xc
test eax, eax
je 0x4ffd79
push edi
push esi
call fcn.004ebf10
add esp, 8
mov dword [esi + 0x138], 0xffffffff
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0676
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.004a0676
mov esp, ebp
pop ebp
ret

Function at 0x502480
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, 0x51eb851f
imul ecx
push ebx
sar edx, 5
push esi
mov eax, edx
xor esi, esi
push edi
mov edi, dword [ebp + 8]
shr eax, 0x1f
add eax, edx
mov ebx, dword [edi]
cmp eax, 2
je 0x5024bc
push str.Couldnt_set_desired_mode
push ebx
call fcn.004eb740
add esp, 8
lea eax, [esi + 0x11]
pop edi
pop esi
pop ebx
pop ebp
ret
cmp ecx, 0xc8
je 0x5024d3
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push ebx
call fcn.004eb850
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp eax, 0x13
jne 0x5024eb
push edi
call fcn.00501fc0
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x14
jne 0x502500
push edi
call fcn.00501b00
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x15
jne 0x502519
push 0xd
push 1
push edi
call fcn.00502070
add esp, 0xc
mov esi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x16
jne 0x50252d
push 0xe
push 1
push edi
call fcn.00502070
add esp, 0xc
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
Function at 0x5064e0
Capabilities:
Initialize winsock library

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

Function at 0x506e20
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 + 0x134]
mov byte [ebp + 8], 0xff
mov byte [ebp + 9], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x506e68
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.004eb740
add esp, 0xc
push dword [ebp + 0x10]
push ebx
push str.SENT
push dword [esi]
call fcn.00506720
add esp, 0x10
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x506f40
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
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 + 0x46cc]
jne 0x50708c
push edi
lea eax, [ebx + 0x1cb0]
lea edi, [ebx + 0x1eb0]
mov dword [edi], eax
cmp eax, edi
jae 0x506f75
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x506f80
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x506f8b
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
movzx eax, ax
mov dword [ebp + 0xc], eax
movzx eax, word [ebx + 0x1caa]
push eax
call esi
mov ecx, dword [ebp + 0xc]
movzx edx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x506fbc
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x506fc6
mov byte [eax], ch
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x506fd0
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x506fda
mov byte [eax], dh
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x506fe5
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x506ff0
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.00506820
add esp, 0x10
push 0
push 3
push esi
mov esi, dword [ebp + 8]
push dword [esi + 0x134]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x507048
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.004eb740
add esp, 0xc
push 4
lea eax, [ebx + 0x1cb3]
push eax
push esi
call fcn.00506e80
add esp, 0xc
lea eax, [ebx + 0x1cb7]
push 0
push 2
push eax
push dword [esi + 0x134]
call dword [sym.imp.WS2_32.dll_send]
pop esi
test eax, eax
jns 0x50708b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.004eb740
add esp, 0xc
pop edi
pop ebx
mov esp, ebp
pop ebp
ret