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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x629960]
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.004f64c0
lea esi, [ebp - 0x108]
add esp, 0x10
lea ecx, [esi + 1]
lea esp, [esp]
mov al, byte [esi]
inc esi
test al, al
jne 0x4ec810
sub esi, ecx
mov ecx, dword [edi + 0x130]
test ecx, ecx
je 0x4ec84a
cmp dword [edi + 0x45d8], 0
jne 0x4ec84a
lea edx, [ebp - 0x108]
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x4ec832
mov dword [edi + 0x45d8], 1
cmp dword [edi + 0x324], 0
je 0x4ec88c
mov byte [ebp + esi - 0x108], 0xa
inc esi
cmp esi, 0x102
jae 0x4ec8d8
mov eax, dword [edi + 0x19c]
mov byte [ebp + esi - 0x108], 0
test eax, eax
je 0x4ec89c
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.004a16e5
mov esp, ebp
pop ebp
ret
push dword [edi + 0x128]
push 1
push 2
push 0x5cb744
call fcn.004a2a2c
push dword [edi + 0x128]
lea eax, [ebp - 0x108]
push 1
push esi
push eax
call fcn.004a2a2c
mov ecx, dword [ebp - 4]
add esp, 0x20
xor ecx, ebp
pop edi
pop esi
call fcn.004a16e5
mov esp, ebp
pop ebp
ret
call fcn.004a6885
int3

Function at 0x4ec8e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x629960]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4ec997
cmp dword [edi + 0x324], 0
je 0x4ec997
push esi
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x808]
push 0x801
push eax
call fcn.004f64c0
lea esi, [ebp - 0x808]
add esp, 0x10
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4ec931
mov eax, dword [edi + 0x19c]
sub esi, ecx
test eax, eax
je 0x4ec96a
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.004a16e5
mov esp, ebp
pop ebp
ret
push dword [edi + 0x128]
push 1
push 2
push 0x5cb744
call fcn.004a2a2c
push dword [edi + 0x128]
lea eax, [ebp - 0x808]
push 1
push esi
push eax
call fcn.004a2a2c
add esp, 0x20
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004a16e5
mov esp, ebp
pop ebp
ret
Function at 0x4ecb90
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 0x4ecc0e
push esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x4ecbde
pop esi
pop edi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
pop ebp
ret
push esi
push dword [ebp + 8]
call fcn.004f82a0
push eax
mov eax, dword [ebp + 8]
push str.Send_failure:__s
push dword [eax]
call fcn.004ec7d0
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 0x4ecc20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
mov eax, dword [0x629960]
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.004f6430
mov edx, eax
add esp, 8
mov dword [ebp - 0xbc], edx
test edx, edx
jne 0x4ecc6c
lea eax, [edx + 0x1b]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a16e5
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 0x4ecc73
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 0x4ecce4
mov eax, dword [ebp - 0xb4]
test eax, eax
je 0x4ecdf3
cmp eax, 0x51
jne 0x4ecdef
mov dword [ebp - 0xb0], 0
cmp dword [ebx + 0x324], 0
mov dword [ebp - 0xa8], 0
je 0x4ecdd0
cmp dword [ebx + 0x2d8], 0
je 0x4ecdb1
mov eax, dword [ebp - 0xb8]
mov eax, dword [eax + 0x84]
test eax, eax
je 0x4ecdb1
push eax
push 0x5cb7d8
push str.Data
push str.__s__s__s_
lea eax, [ebp - 0xa4]
push 0xa0
push eax
call fcn.004f63d0
lea esi, [ebp - 0xa4]
add esp, 0x18
lea ecx, [esi + 1]
lea esp, [esp]
mov al, byte [esi]
inc esi
test al, al
jne 0x4ecd50
mov eax, dword [ebx + 0x19c]
sub esi, ecx
test eax, eax
je 0x4ecd7f
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 0x4ecdd0
jmp 0x4ecdab
push dword [ebx + 0x128]
push 1
push 2
push 0x5cb744
call fcn.004a2a2c
push dword [ebx + 0x128]
lea eax, [ebp - 0xa4]
push 1
push esi
push eax
call fcn.004a2a2c
add esp, 0x20
mov esi, dword [ebp - 0xac]
mov eax, dword [ebx + 0x19c]
test eax, eax
je 0x4ecdd0
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 0x4ecdfa
mov esi, dword [ebp - 0xac]
sub edi, eax
add esi, eax
mov dword [ebp - 0xac], esi
jmp 0x4ecc84
mov esi, eax
jmp 0x4ece00
mov esi, 0x37
jmp 0x4ece00
mov esi, dword [ebp - 0xa8]
push dword [ebp - 0xbc]
call dword [0x62ab38]
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004a16e5
mov esp, ebp
pop ebp
ret

Function at 0x4ecf30
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 0x4ecf59
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 0x4ecf8f
push dword [esi + 0x128]
lea eax, [eax + eax*2]
push 1
add eax, 0x5cb744
push 2
push eax
call fcn.004a2a2c
push dword [esi + 0x128]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.004a2a2c
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4ed1c0
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 0x4ed20a
mov eax, dword [edi + 0xc]
test eax, eax
je 0x4ed20a
push 0x4edda0
lea ecx, [ebp - 8]
mov dword [ebp - 8], esi
push ecx
mov dword [ebp - 4], 0
push dword [eax + 0x64]
call fcn.004f58e0
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x4ed213
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 0x4ed21c
mov dword [eax], esi
cmp dword [esi + 0x154], 0
mov edi, dword [esi + 0x134]
je 0x4ed241
push esi
call fcn.004e5000
add esp, 4
test eax, eax
jne 0x4ed254
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 0x4ed20a
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4ed780
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x629960]
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 0x4ed909
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 0x4ed7fe
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.004f82a0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.004ec7d0
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a16e5
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x84]
mov dword [ebp - 0x108], 0x80
push 0
push eax
call fcn.004a3440
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 0x4ed867
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.004f82a0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.004ec7d0
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a16e5
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.004eddc0
add esp, 0xc
test eax, eax
jne 0x4ed8b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.004f82a0
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.004ec7d0
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a16e5
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.004eddc0
add esp, 0xc
test eax, eax
jne 0x4ed909
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.004f82a0
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.004ec7d0
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a16e5
mov esp, ebp
pop ebp
ret
push edi
call fcn.004ed4f0
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004a16e5
mov esp, ebp
pop ebp
ret
Function at 0x4ee130
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 0x4ee170
push dword [ebp + 0xc]
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.004ec8e0
add esp, 0xc
pop esi
pop ebp
ret

Function at 0x4ee180
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 0x4ee1ca
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004f82a0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004ec8e0
add esp, 0x14
pop edi
pop esi
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.004ec8e0
add esp, 8
pop edi
pop esi
pop ebp
ret
Function at 0x4f78d0
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 0x4f7982
mov cl, byte [edi]
test cl, cl
je 0x4f7982
movsx eax, bl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x4f78fb
jmp dword [eax*4 + 0x4f79a8]
mov bl, 0x41
jmp case.default.0x4f78fb
mov bl, 0x42
jmp case.default.0x4f78fb
mov bl, 0x43
jmp case.default.0x4f78fb
mov bl, 0x44
jmp case.default.0x4f78fb
mov bl, 0x45
jmp case.default.0x4f78fb
mov bl, 0x46
jmp case.default.0x4f78fb
mov bl, 0x47
jmp case.default.0x4f78fb
mov bl, 0x48
jmp case.default.0x4f78fb
mov bl, 0x49
jmp case.default.0x4f78fb
mov bl, 0x4a
jmp case.default.0x4f78fb
mov bl, 0x4b
jmp case.default.0x4f78fb
mov bl, 0x4c
jmp case.default.0x4f78fb
mov bl, 0x4d
jmp case.default.0x4f78fb
mov bl, 0x4e
jmp case.default.0x4f78fb
mov bl, 0x4f
jmp case.default.0x4f78fb
mov bl, 0x50
jmp case.default.0x4f78fb
mov bl, 0x51
jmp case.default.0x4f78fb
mov bl, 0x52
jmp case.default.0x4f78fb
mov bl, 0x53
jmp case.default.0x4f78fb
mov bl, 0x54
jmp case.default.0x4f78fb
mov bl, 0x55
jmp case.default.0x4f78fb
mov bl, 0x56
jmp case.default.0x4f78fb
mov bl, 0x57
jmp case.default.0x4f78fb
mov bl, 0x58
jmp case.default.0x4f78fb
mov bl, 0x59
jmp case.default.0x4f78fb
mov bl, 0x5a
push ecx
call fcn.004f7b80
add esp, 4
cmp bl, al
jne 0x4f7982
mov bl, byte [esi + 1]
inc esi
inc edi
test bl, bl
jne 0x4f78e6
movzx eax, byte [esi]
push eax
call fcn.004f7b80
movzx ecx, byte [edi]
mov bl, al
push ecx
call fcn.004f7b80
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 0x4f7a10
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 0x4f7ada
lea esp, [esp]
mov cl, byte [eax]
test cl, cl
je 0x4f7ada
test esi, esi
je 0x4f7ade
movsx eax, bl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x4f7a4d
jmp dword [eax*4 + 0x4f7b10]
mov bl, 0x41
jmp case.default.0x4f7a4d
mov bl, 0x42
jmp case.default.0x4f7a4d
mov bl, 0x43
jmp case.default.0x4f7a4d
mov bl, 0x44
jmp case.default.0x4f7a4d
mov bl, 0x45
jmp case.default.0x4f7a4d
mov bl, 0x46
jmp case.default.0x4f7a4d
mov bl, 0x47
jmp case.default.0x4f7a4d
mov bl, 0x48
jmp case.default.0x4f7a4d
mov bl, 0x49
jmp case.default.0x4f7a4d
mov bl, 0x4a
jmp case.default.0x4f7a4d
mov bl, 0x4b
jmp case.default.0x4f7a4d
mov bl, 0x4c
jmp case.default.0x4f7a4d
mov bl, 0x4d
jmp case.default.0x4f7a4d
mov bl, 0x4e
jmp case.default.0x4f7a4d
mov bl, 0x4f
jmp case.default.0x4f7a4d
mov bl, 0x50
jmp case.default.0x4f7a4d
mov bl, 0x51
jmp case.default.0x4f7a4d
mov bl, 0x52
jmp case.default.0x4f7a4d
mov bl, 0x53
jmp case.default.0x4f7a4d
mov bl, 0x54
jmp case.default.0x4f7a4d
mov bl, 0x55
jmp case.default.0x4f7a4d
mov bl, 0x56
jmp case.default.0x4f7a4d
mov bl, 0x57
jmp case.default.0x4f7a4d
mov bl, 0x58
jmp case.default.0x4f7a4d
mov bl, 0x59
jmp case.default.0x4f7a4d
mov bl, 0x5a
push ecx
call fcn.004f7b80
add esp, 4
cmp bl, al
jne 0x4f7ada
mov eax, dword [ebp + 0x10]
inc edi
inc eax
dec esi
mov dword [ebp + 0x10], eax
mov bl, byte [edi]
test bl, bl
jne 0x4f7a30
test esi, esi
jne 0x4f7ae8
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret
movzx eax, byte [edi]
push eax
call fcn.004f7b80
mov bl, al
mov eax, dword [ebp + 0x10]
movzx ecx, byte [eax]
push ecx
call fcn.004f7b80
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 0x4f7b80
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.0x4f7b91
jmp dword [eax*4 + 0x4f7c04]
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 0x4f7c70
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
cmp esi, 1
jb 0x4f7d1c
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.0x4f7c9d
jmp dword [eax*4 + 0x4f7d20]
mov cl, 0x41
jmp case.default.0x4f7c9d
mov cl, 0x42
jmp case.default.0x4f7c9d
mov cl, 0x43
jmp case.default.0x4f7c9d
mov cl, 0x44
jmp case.default.0x4f7c9d
mov cl, 0x45
jmp case.default.0x4f7c9d
mov cl, 0x46
jmp case.default.0x4f7c9d
mov cl, 0x47
jmp case.default.0x4f7c9d
mov cl, 0x48
jmp case.default.0x4f7c9d
mov cl, 0x49
jmp case.default.0x4f7c9d
mov cl, 0x4a
jmp case.default.0x4f7c9d
mov cl, 0x4b
jmp case.default.0x4f7c9d
mov cl, 0x4c
jmp case.default.0x4f7c9d
mov cl, 0x4d
jmp case.default.0x4f7c9d
mov cl, 0x4e
jmp case.default.0x4f7c9d
mov cl, 0x4f
jmp case.default.0x4f7c9d
mov cl, 0x50
jmp case.default.0x4f7c9d
mov cl, 0x51
jmp case.default.0x4f7c9d
mov cl, 0x52
jmp case.default.0x4f7c9d
mov cl, 0x53
jmp case.default.0x4f7c9d
mov cl, 0x54
jmp case.default.0x4f7c9d
mov cl, 0x55
jmp case.default.0x4f7c9d
mov cl, 0x56
jmp case.default.0x4f7c9d
mov cl, 0x57
jmp case.default.0x4f7c9d
mov cl, 0x58
jmp case.default.0x4f7c9d
mov cl, 0x59
jmp case.default.0x4f7c9d
mov cl, 0x5a
mov byte [edi + edx], cl
mov al, byte [edx]
inc edx
test al, al
je 0x4f7d1b
dec esi
jne 0x4f7c90
pop edi
pop esi
pop ebp
ret
Function at 0x4f7ef0
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 0x4f806d
push edi
mov edi, dword [ebp - 8]
test edi, edi
je 0x4f8059
push esi
lea esp, [esp]
cmp dword [edi + 4], 2
jne 0x4f7fea
cmp dword [edi + 0x18], 0
je 0x4f7fea
mov eax, dword [edi + 0x10]
test eax, eax
je 0x4f7fea
cmp eax, 0x10
jb 0x4f7fea
push 0x20
call dword [0x62ab34]
mov esi, eax
add esp, 4
test esi, esi
je 0x4f804e
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 [0x62ab34]
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x4f803d
mov ecx, dword [edi + 0x18]
movdqu xmm0, xmmword [ecx]
movdqu xmmword [eax], xmm0
mov eax, dword [edi + 0x14]
test eax, eax
je 0x4f7fd8
push eax
call dword [0x62ab40]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x4f8023
mov eax, dword [ebp - 4]
test ebx, ebx
cmove ebx, esi
test eax, eax
je 0x4f7fe7
mov dword [eax + 0x1c], esi
mov dword [ebp - 4], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x4f7f30
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
pop esi
test eax, eax
je 0x4f8007
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test edi, edi
je 0x4f8055
push ebx
call fcn.004f7ea0
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 [0x62ab38]
push esi
call dword [0x62ab38]
add esp, 8
jmp 0x4f7ff8
push esi
mov edi, 8
call dword [0x62ab38]
add esp, 4
jmp 0x4f7ff8
mov edi, 8
jmp 0x4f7ff8
test ebx, ebx
jne 0x4f8065
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 0x4f8a80
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.004a6102
add esp, 0x18
test eax, eax
je 0x4f8aa2
cmp eax, 0xffffffff
jne 0x4f8aa4
xor eax, eax
pop ebp
ret
Function at 0x500ce0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x629960]
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 0x500d38
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.004ecfa0
add esp, 8
cmp edi, 0xffffffff
jne 0x500d6d
push str.Error_accept__ing_server_connect
push ebx
call fcn.004ec7d0
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a16e5
mov esp, ebp
pop ebp
ret
push str.Connection_accepted_from_server_n
push ebx
call fcn.004ec8e0
push 1
push edi
mov dword [esi + 0x138], edi
call fcn.0050cbf0
mov dword [esi + 0x140], 1
add esp, 0x10
mov eax, dword [ebx + 0x1a4]
test eax, eax
je 0x500dd9
push 1
push edi
push dword [ebx + 0x1a8]
call eax
add esp, 0xc
test eax, eax
je 0x500dd9
push edi
push esi
call fcn.004ecfa0
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.004a16e5
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.004a16e5
mov esp, ebp
pop ebp
ret

Function at 0x5034e0
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 0x50351c
push str.Couldnt_set_desired_mode
push ebx
call fcn.004ec7d0
add esp, 8
lea eax, [esi + 0x11]
pop edi
pop esi
pop ebx
pop ebp
ret
cmp ecx, 0xc8
je 0x503533
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push ebx
call fcn.004ec8e0
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp eax, 0x13
jne 0x50354b
push edi
call fcn.00503020
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x14
jne 0x503560
push edi
call fcn.00502b60
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x15
jne 0x503579
push 0xd
push 1
push edi
call fcn.005030d0
add esp, 0xc
mov esi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x16
jne 0x50358d
push 0xe
push 1
push edi
call fcn.005030d0
add esp, 0xc
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
Function at 0x507560
Capabilities:
Initialize winsock library

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

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