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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x617960]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push 0x100
push eax
call fcn.004e8470
lea esi, [ebp - 0x108]
add esp, 0x10
lea ecx, [esi + 1]
lea esp, [esp]
mov al, byte [esi]
inc esi
test al, al
jne 0x4de7a0
sub esi, ecx
mov ecx, dword [edi + 0x130]
test ecx, ecx
je 0x4de7da
cmp dword [edi + 0x45d8], 0
jne 0x4de7da
lea edx, [ebp - 0x108]
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x4de7c2
mov dword [edi + 0x45d8], 1
cmp dword [edi + 0x324], 0
je 0x4de81c
mov byte [ebp + esi - 0x108], 0xa
inc esi
cmp esi, 0x102
jae 0x4de868
mov eax, dword [edi + 0x19c]
mov byte [ebp + esi - 0x108], 0
test eax, eax
je 0x4de82c
push dword [edi + 0x12c]
lea ecx, [ebp - 0x108]
push esi
push ecx
push 0
push edi
call eax
add esp, 0x14
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049355b
mov esp, ebp
pop ebp
ret
push dword [edi + 0x128]
push 1
push 2
push 0x5bc63c
call fcn.00494416
push dword [edi + 0x128]
lea eax, [ebp - 0x108]
push 1
push esi
push eax
call fcn.00494416
mov ecx, dword [ebp - 4]
add esp, 0x20
xor ecx, ebp
pop edi
pop esi
call fcn.0049355b
mov esp, ebp
pop ebp
ret
call fcn.00498485
int3

Function at 0x4de870
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x617960]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4de927
cmp dword [edi + 0x324], 0
je 0x4de927
push esi
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x808]
push 0x801
push eax
call fcn.004e8470
lea esi, [ebp - 0x808]
add esp, 0x10
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4de8c1
mov eax, dword [edi + 0x19c]
sub esi, ecx
test eax, eax
je 0x4de8fa
push dword [edi + 0x12c]
lea ecx, [ebp - 0x808]
push esi
push ecx
push 0
push edi
call eax
add esp, 0x14
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049355b
mov esp, ebp
pop ebp
ret
push dword [edi + 0x128]
push 1
push 2
push 0x5bc63c
call fcn.00494416
push dword [edi + 0x128]
lea eax, [ebp - 0x808]
push 1
push esi
push eax
call fcn.00494416
add esp, 0x20
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0049355b
mov esp, ebp
pop ebp
ret
Function at 0x4deb20
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
push edi
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ecx + eax*4 + 0x134]
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [ebp + 0x18]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x4deb9e
push esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x4deb6e
pop esi
pop edi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
pop ebp
ret
push esi
push dword [ebp + 8]
call fcn.004ea250
push eax
mov eax, dword [ebp + 8]
push str.Send_failure:__s
push dword [eax]
call fcn.004de760
mov eax, dword [ebp + 8]
add esp, 0x14
mov eax, dword [eax]
mov dword [eax + 0x45dc], esi
mov eax, edi
mov dword [ebx], 0x37
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4debb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
mov eax, dword [0x617960]
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.004e83e0
mov edx, eax
add esp, 8
mov dword [ebp - 0xbc], edx
test edx, edx
jne 0x4debfc
lea eax, [edx + 0x1b]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049355b
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 0x4dec03
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 0x4dec74
mov eax, dword [ebp - 0xb4]
test eax, eax
je 0x4ded83
cmp eax, 0x51
jne 0x4ded7f
mov dword [ebp - 0xb0], 0
cmp dword [ebx + 0x324], 0
mov dword [ebp - 0xa8], 0
je 0x4ded60
cmp dword [ebx + 0x2d8], 0
je 0x4ded41
mov eax, dword [ebp - 0xb8]
mov eax, dword [eax + 0x84]
test eax, eax
je 0x4ded41
push eax
push 0x5bc6d0
push str.Data
push str.__s__s__s_
lea eax, [ebp - 0xa4]
push 0xa0
push eax
call fcn.004e8380
lea esi, [ebp - 0xa4]
add esp, 0x18
lea ecx, [esi + 1]
lea esp, [esp]
mov al, byte [esi]
inc esi
test al, al
jne 0x4dece0
mov eax, dword [ebx + 0x19c]
sub esi, ecx
test eax, eax
je 0x4ded0f
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 0x4ded60
jmp 0x4ded3b
push dword [ebx + 0x128]
push 1
push 2
push 0x5bc63c
call fcn.00494416
push dword [ebx + 0x128]
lea eax, [ebp - 0xa4]
push 1
push esi
push eax
call fcn.00494416
add esp, 0x20
mov esi, dword [ebp - 0xac]
mov eax, dword [ebx + 0x19c]
test eax, eax
je 0x4ded60
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 0x4ded8a
mov esi, dword [ebp - 0xac]
sub edi, eax
add esi, eax
mov dword [ebp - 0xac], esi
jmp 0x4dec14
mov esi, eax
jmp 0x4ded90
mov esi, 0x37
jmp 0x4ded90
mov esi, dword [ebp - 0xa8]
push dword [ebp - 0xbc]
call dword [0x618b38]
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0049355b
mov esp, ebp
pop ebp
ret

Function at 0x4deec0
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 0x4deee9
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 0x4def1f
push dword [esi + 0x128]
lea eax, [eax + eax*2]
push 1
add eax, 0x5bc63c
push 2
push eax
call fcn.00494416
push dword [esi + 0x128]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00494416
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4df150
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 0x4df19a
mov eax, dword [edi + 0xc]
test eax, eax
je 0x4df19a
push 0x4dfd30
lea ecx, [ebp - 8]
mov dword [ebp - 8], esi
push ecx
mov dword [ebp - 4], 0
push dword [eax + 0x64]
call fcn.004e7890
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x4df1a3
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 0x4df1ac
mov dword [eax], esi
cmp dword [esi + 0x154], 0
mov edi, dword [esi + 0x134]
je 0x4df1d1
push esi
call fcn.004d6fa0
add esp, 4
test eax, eax
jne 0x4df1e4
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 0x4df19a
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4df710
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x617960]
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 0x4df899
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 0x4df78e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.004ea250
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.004de760
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049355b
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x84]
mov dword [ebp - 0x108], 0x80
push 0
push eax
call fcn.00495000
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 0x4df7f7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.004ea250
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.004de760
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049355b
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.004dfd50
add esp, 0xc
test eax, eax
jne 0x4df848
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.004ea250
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.004de760
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049355b
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.004dfd50
add esp, 0xc
test eax, eax
jne 0x4df899
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.004ea250
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.004de760
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049355b
mov esp, ebp
pop ebp
ret
push edi
call fcn.004df480
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0049355b
mov esp, ebp
pop ebp
ret
Function at 0x4e00c0
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 0x4e0100
push dword [ebp + 0xc]
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.004de870
add esp, 0xc
pop esi
pop ebp
ret

Function at 0x4e0110
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 0x4e015a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004ea250
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004de870
add esp, 0x14
pop edi
pop esi
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.004de870
add esp, 8
pop edi
pop esi
pop ebp
ret
Function at 0x4e9880
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 0x4e9932
mov cl, byte [edi]
test cl, cl
je 0x4e9932
movsx eax, bl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x4e98ab
jmp dword [eax*4 + 0x4e9958]
mov bl, 0x41
jmp case.default.0x4e98ab
mov bl, 0x42
jmp case.default.0x4e98ab
mov bl, 0x43
jmp case.default.0x4e98ab
mov bl, 0x44
jmp case.default.0x4e98ab
mov bl, 0x45
jmp case.default.0x4e98ab
mov bl, 0x46
jmp case.default.0x4e98ab
mov bl, 0x47
jmp case.default.0x4e98ab
mov bl, 0x48
jmp case.default.0x4e98ab
mov bl, 0x49
jmp case.default.0x4e98ab
mov bl, 0x4a
jmp case.default.0x4e98ab
mov bl, 0x4b
jmp case.default.0x4e98ab
mov bl, 0x4c
jmp case.default.0x4e98ab
mov bl, 0x4d
jmp case.default.0x4e98ab
mov bl, 0x4e
jmp case.default.0x4e98ab
mov bl, 0x4f
jmp case.default.0x4e98ab
mov bl, 0x50
jmp case.default.0x4e98ab
mov bl, 0x51
jmp case.default.0x4e98ab
mov bl, 0x52
jmp case.default.0x4e98ab
mov bl, 0x53
jmp case.default.0x4e98ab
mov bl, 0x54
jmp case.default.0x4e98ab
mov bl, 0x55
jmp case.default.0x4e98ab
mov bl, 0x56
jmp case.default.0x4e98ab
mov bl, 0x57
jmp case.default.0x4e98ab
mov bl, 0x58
jmp case.default.0x4e98ab
mov bl, 0x59
jmp case.default.0x4e98ab
mov bl, 0x5a
push ecx
call fcn.004e9b30
add esp, 4
cmp bl, al
jne 0x4e9932
mov bl, byte [esi + 1]
inc esi
inc edi
test bl, bl
jne 0x4e9896
movzx eax, byte [esi]
push eax
call fcn.004e9b30
movzx ecx, byte [edi]
mov bl, al
push ecx
call fcn.004e9b30
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 0x4e99c0
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 0x4e9a8a
lea esp, [esp]
mov cl, byte [eax]
test cl, cl
je 0x4e9a8a
test esi, esi
je 0x4e9a8e
movsx eax, bl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x4e99fd
jmp dword [eax*4 + 0x4e9ac0]
mov bl, 0x41
jmp case.default.0x4e99fd
mov bl, 0x42
jmp case.default.0x4e99fd
mov bl, 0x43
jmp case.default.0x4e99fd
mov bl, 0x44
jmp case.default.0x4e99fd
mov bl, 0x45
jmp case.default.0x4e99fd
mov bl, 0x46
jmp case.default.0x4e99fd
mov bl, 0x47
jmp case.default.0x4e99fd
mov bl, 0x48
jmp case.default.0x4e99fd
mov bl, 0x49
jmp case.default.0x4e99fd
mov bl, 0x4a
jmp case.default.0x4e99fd
mov bl, 0x4b
jmp case.default.0x4e99fd
mov bl, 0x4c
jmp case.default.0x4e99fd
mov bl, 0x4d
jmp case.default.0x4e99fd
mov bl, 0x4e
jmp case.default.0x4e99fd
mov bl, 0x4f
jmp case.default.0x4e99fd
mov bl, 0x50
jmp case.default.0x4e99fd
mov bl, 0x51
jmp case.default.0x4e99fd
mov bl, 0x52
jmp case.default.0x4e99fd
mov bl, 0x53
jmp case.default.0x4e99fd
mov bl, 0x54
jmp case.default.0x4e99fd
mov bl, 0x55
jmp case.default.0x4e99fd
mov bl, 0x56
jmp case.default.0x4e99fd
mov bl, 0x57
jmp case.default.0x4e99fd
mov bl, 0x58
jmp case.default.0x4e99fd
mov bl, 0x59
jmp case.default.0x4e99fd
mov bl, 0x5a
push ecx
call fcn.004e9b30
add esp, 4
cmp bl, al
jne 0x4e9a8a
mov eax, dword [ebp + 0x10]
inc edi
inc eax
dec esi
mov dword [ebp + 0x10], eax
mov bl, byte [edi]
test bl, bl
jne 0x4e99e0
test esi, esi
jne 0x4e9a98
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret
movzx eax, byte [edi]
push eax
call fcn.004e9b30
mov bl, al
mov eax, dword [ebp + 0x10]
movzx ecx, byte [eax]
push ecx
call fcn.004e9b30
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 0x4e9b30
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.0x4e9b41
jmp dword [eax*4 + 0x4e9bb4]
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 0x4e9c20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
cmp esi, 1
jb 0x4e9ccc
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.0x4e9c4d
jmp dword [eax*4 + 0x4e9cd0]
mov cl, 0x41
jmp case.default.0x4e9c4d
mov cl, 0x42
jmp case.default.0x4e9c4d
mov cl, 0x43
jmp case.default.0x4e9c4d
mov cl, 0x44
jmp case.default.0x4e9c4d
mov cl, 0x45
jmp case.default.0x4e9c4d
mov cl, 0x46
jmp case.default.0x4e9c4d
mov cl, 0x47
jmp case.default.0x4e9c4d
mov cl, 0x48
jmp case.default.0x4e9c4d
mov cl, 0x49
jmp case.default.0x4e9c4d
mov cl, 0x4a
jmp case.default.0x4e9c4d
mov cl, 0x4b
jmp case.default.0x4e9c4d
mov cl, 0x4c
jmp case.default.0x4e9c4d
mov cl, 0x4d
jmp case.default.0x4e9c4d
mov cl, 0x4e
jmp case.default.0x4e9c4d
mov cl, 0x4f
jmp case.default.0x4e9c4d
mov cl, 0x50
jmp case.default.0x4e9c4d
mov cl, 0x51
jmp case.default.0x4e9c4d
mov cl, 0x52
jmp case.default.0x4e9c4d
mov cl, 0x53
jmp case.default.0x4e9c4d
mov cl, 0x54
jmp case.default.0x4e9c4d
mov cl, 0x55
jmp case.default.0x4e9c4d
mov cl, 0x56
jmp case.default.0x4e9c4d
mov cl, 0x57
jmp case.default.0x4e9c4d
mov cl, 0x58
jmp case.default.0x4e9c4d
mov cl, 0x59
jmp case.default.0x4e9c4d
mov cl, 0x5a
mov byte [edi + edx], cl
mov al, byte [edx]
inc edx
test al, al
je 0x4e9ccb
dec esi
jne 0x4e9c40
pop edi
pop esi
pop ebp
ret
Function at 0x4e9ea0
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 0x4ea01d
push edi
mov edi, dword [ebp - 8]
test edi, edi
je 0x4ea009
push esi
lea esp, [esp]
cmp dword [edi + 4], 2
jne 0x4e9f9a
cmp dword [edi + 0x18], 0
je 0x4e9f9a
mov eax, dword [edi + 0x10]
test eax, eax
je 0x4e9f9a
cmp eax, 0x10
jb 0x4e9f9a
push 0x20
call dword [0x618b34]
mov esi, eax
add esp, 4
test esi, esi
je 0x4e9ffe
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 [0x618b34]
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x4e9fed
mov ecx, dword [edi + 0x18]
movdqu xmm0, xmmword [ecx]
movdqu xmmword [eax], xmm0
mov eax, dword [edi + 0x14]
test eax, eax
je 0x4e9f88
push eax
call dword [0x618b40]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x4e9fd3
mov eax, dword [ebp - 4]
test ebx, ebx
cmove ebx, esi
test eax, eax
je 0x4e9f97
mov dword [eax + 0x1c], esi
mov dword [ebp - 4], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x4e9ee0
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
pop esi
test eax, eax
je 0x4e9fb7
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test edi, edi
je 0x4ea005
push ebx
call fcn.004e9e50
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 [0x618b38]
push esi
call dword [0x618b38]
add esp, 8
jmp 0x4e9fa8
push esi
mov edi, 8
call dword [0x618b38]
add esp, 4
jmp 0x4e9fa8
mov edi, 8
jmp 0x4e9fa8
test ebx, ebx
jne 0x4ea015
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 0x4eaa30
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.00497cfd
add esp, 0x18
test eax, eax
je 0x4eaa52
cmp eax, 0xffffffff
jne 0x4eaa54
xor eax, eax
pop ebp
ret
Function at 0x4f2c90
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x617960]
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 0x4f2ce8
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.004def30
add esp, 8
cmp edi, 0xffffffff
jne 0x4f2d1d
push str.Error_accept__ing_server_connect
push ebx
call fcn.004de760
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049355b
mov esp, ebp
pop ebp
ret
push str.Connection_accepted_from_server_n
push ebx
call fcn.004de870
push 1
push edi
mov dword [esi + 0x138], edi
call fcn.004febb0
mov dword [esi + 0x140], 1
add esp, 0x10
mov eax, dword [ebx + 0x1a4]
test eax, eax
je 0x4f2d89
push 1
push edi
push dword [ebx + 0x1a8]
call eax
add esp, 0xc
test eax, eax
je 0x4f2d89
push edi
push esi
call fcn.004def30
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.0049355b
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.0049355b
mov esp, ebp
pop ebp
ret

Function at 0x4f5490
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 0x4f54cc
push str.Couldnt_set_desired_mode
push ebx
call fcn.004de760
add esp, 8
lea eax, [esi + 0x11]
pop edi
pop esi
pop ebx
pop ebp
ret
cmp ecx, 0xc8
je 0x4f54e3
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push ebx
call fcn.004de870
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp eax, 0x13
jne 0x4f54fb
push edi
call fcn.004f4fd0
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x14
jne 0x4f5510
push edi
call fcn.004f4b10
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x15
jne 0x4f5529
push 0xd
push 1
push edi
call fcn.004f5080
add esp, 0xc
mov esi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x16
jne 0x4f553d
push 0xe
push 1
push edi
call fcn.004f5080
add esp, 0xc
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
Function at 0x4f9520
Capabilities:
Initialize winsock library

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

Function at 0x4f9e60
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 0x4f9ea8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.004de760
add esp, 0xc
push dword [ebp + 0x10]
push ebx
push str.SENT
push dword [esi]
call fcn.004f9760
add esp, 0x10
pop edi
pop esi
pop ebx
pop ebp
ret