joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5a6eda
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x5a6ee5
xor eax, eax
ret
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [esp + 0x14]
not eax
mov ecx, 0xff
cmp edi, 8
jb 0x5a6fa0
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x6605f0]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x6605f0]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x6605f0]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x6605f0]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x6605f0]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x6605f0]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x6605f0]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x6605f0]
inc edx
sub edi, 8
dec esi
jne 0x5a6f05
pop ebx
test edi, edi
je 0x5a6fb9
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x6605f0]
inc edx
dec edi
jne 0x5a6fa4
pop edi
not eax
pop esi
ret

Function at 0x5a7450
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x5a7484
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x5a747f
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x5a74ac
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x5a7495
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x10]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.005b5620
add esp, 0xc
add dword [esi + 0x18], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret

Function at 0x5a8249
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x6b278c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x5a82f3
movzx ecx, word [esi]
test cx, cx
je 0x5a82f3
mov eax, esi
mov edx, esi
movzx ecx, cx
cmp cx, 0x2f
je 0x5a8287
cmp cx, 0x5c
jne 0x5a8289
mov eax, edx
inc edx
inc edx
movzx ecx, word [edx]
test cx, cx
jne 0x5a827b
cmp eax, esi
je 0x5a82c7
push edi
sub eax, esi
mov edi, eax
sar edi, 1
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.005bcab6
xor eax, eax
mov word [ebp + edi*2 - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.005a8249
add esp, 0x14
pop edi
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.005b4dbe
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.005b4d90
add esp, 0x10
push 0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.005b4b30
leave
ret
Function at 0x5a9824
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x5a989f
cmp dword [esi + 4], 0xffffffff
jne 0x5a989f
push edi
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x660bec
push edi
call fcn.005b4d90
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop edi
jne 0x5a9871
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x5a9871
mov eax, 0x2000000
jmp 0x5a98a4
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.005a7266
add esp, 0x10
test eax, eax
jne 0x5a988f
mov eax, dword [ebp + 0x10]
jmp 0x5a98a4
push eax
call fcn.005a9420
mov dword [esi], eax
mov eax, dword [0x6b7f70]
pop ecx
jmp 0x5a98a4
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc
Function at 0x5ae740
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, eax
mov eax, dword [edi + 8]
mov esi, eax
and esi, 7
je 0x5ae765
cmp eax, esi
jge 0x5ae75d
mov eax, edi
call fcn.005ae1ce
mov ecx, esi
shr dword [edi + 0xc], cl
sub dword [edi + 8], esi
xor ecx, ecx
cmp dword [edi + 8], ecx
jle 0x5ae787
mov al, byte [edi + 0xc]
shr dword [edi + 0xc], 8
add dword [edi + 8], 0xfffffff8
mov byte [ebp + ecx - 4], al
inc ecx
cmp dword [edi + 8], 0
jg 0x5ae76c
cmp ecx, 4
jge 0x5ae7a3
mov esi, dword [edi + 4]
mov eax, dword [edi]
cmp eax, esi
jb 0x5ae794
xor dl, dl
jmp 0x5ae799
mov dl, byte [eax]
inc eax
mov dword [edi], eax
mov byte [ebp + ecx - 4], dl
inc ecx
cmp ecx, 4
jl 0x5ae78a
movzx esi, byte [ebp - 3]
movzx eax, byte [ebp - 4]
movzx ecx, byte [ebp - 2]
shl esi, 8
add esi, eax
movzx eax, byte [ebp - 1]
shl eax, 8
add eax, ecx
mov ecx, esi
xor ecx, 0xffff
cmp eax, ecx
je 0x5ae7d5
mov eax, str.zlib_corrupt
call fcn.005a9d3f
jmp 0x5ae811
mov eax, dword [edi]
add eax, esi
cmp eax, dword [edi + 4]
jbe 0x5ae7e5
mov eax, str.read_past_buffer
jmp 0x5ae7ce
mov eax, dword [edi + 0x10]
lea ecx, [eax + esi]
cmp ecx, dword [edi + 0x18]
jbe 0x5ae7fb
push esi
call fcn.005ae29d
pop ecx
test eax, eax
je 0x5ae811
push esi
push dword [edi]
push dword [edi + 0x10]
call fcn.005b5620
add dword [edi], esi
add dword [edi + 0x10], esi
xor eax, eax
add esp, 0xc
inc eax
pop edi
pop esi
leave
ret

Function at 0x5b4b30
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6b278c]
jne 0x5b4b3a
repz ret
jmp fcn.005c28bc
Function at 0x5d287f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.005c2073
and dword [ebp - 4], 0
cmp dword [0x6b8e60], 0
mov ebx, eax
jne 0x5d2930
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x5d29e1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x5d29e1
push eax
call fcn.005c2001
mov dword [esp], 0x666bd8
push edi
mov dword [0x6b8e60], eax
call esi
push eax
call fcn.005c2001
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x6b8e64], eax
call esi
push eax
call fcn.005c2001
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x6b8e68], eax
call esi
push eax
call fcn.005c2001
pop ecx
mov dword [0x6b8e70], eax
test eax, eax
je 0x5d2930
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.005c2001
pop ecx
mov dword [0x6b8e6c], eax
mov eax, dword [0x6b8e6c]
cmp eax, ebx
je 0x5d2988
cmp dword [0x6b8e70], ebx
je 0x5d2988
push eax
call fcn.005c207c
push dword [0x6b8e70]
mov esi, eax
call fcn.005c207c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x5d2988
test edi, edi
je 0x5d2988
call esi
test eax, eax
je 0x5d297f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x5d297f
test byte [ebp - 0xc], 1
jne 0x5d2988
or dword [ebp + 0x10], 0x200000
jmp 0x5d29c1
mov eax, dword [0x6b8e64]
cmp eax, ebx
je 0x5d29c1
push eax
call fcn.005c207c
pop ecx
test eax, eax
je 0x5d29c1
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x5d29c1
mov eax, dword [0x6b8e68]
cmp eax, ebx
je 0x5d29c1
push eax
call fcn.005c207c
pop ecx
test eax, eax
je 0x5d29c1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x6b8e60]
call fcn.005c207c
pop ecx
test eax, eax
je 0x5d29e1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x5d29e3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5e16c0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x6b278c]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x5e1712
mov eax, dword [esp]
cmp al, 2
jne 0x5e170c
shr eax, 8
cmp al, 2
jne 0x5e170c
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.005b4b30
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.005b4b30
add esp, 0x194
ret

Function at 0x5e1860
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x3c
push ebx
push ebp
push esi
xor esi, esi
push edi
mov dword [esp + 0x10], esi
lea ecx, [ecx]
test esi, esi
jne 0x5e198d
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x18], esi
call fcn.005eefc0
mov ecx, dword [eax + 0xc]
mov edi, dword [eax]
mov ebx, dword [eax + 4]
mov ebp, dword [eax + 8]
mov eax, dword [esp + 0x54]
lea edx, [esp + 0x1c]
push edx
push 0x3e8
push esi
push esi
push eax
mov dword [esp + 0x40], ecx
call fcn.005eda00
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x5e198d
cmp dword [esp + 0x18], esi
jne 0x5e1946
lea ecx, [esp + 0x3c]
push ecx
call fcn.005eefc0
mov edx, dword [esp + 0x2c]
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edi
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebp
mov dword [ecx + 0xc], edx
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
call fcn.005ef000
add esp, 0x20
cmp edx, esi
jg 0x5e1946
jl 0x5e190e
cmp eax, 0xa
ja 0x5e1946
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 2
mov dword [esp + 0x10], eax
jle 0x5e194a
cmp eax, 0xa
jge 0x5e1936
lea ecx, [eax - 1]
mov eax, 1
shl eax, cl
push eax
call fcn.005e59f0
add esp, 4
jmp 0x5e194a
mov eax, 0x3e8
push eax
call fcn.005e59f0
add esp, 4
jmp 0x5e194a
mov dword [esp + 0x10], esi
mov edx, dword [esp + 0x50]
lea ecx, [esp + 0x14]
push ecx
push edx
call fcn.005eee80
mov esi, eax
add esp, 8
test esi, esi
jne 0x5e198d
cmp dword [esp + 0x14], eax
jne 0x5e1870
mov ecx, dword [esp + 0x50]
lea eax, [esp + 0x18]
push eax
push ecx
call fcn.005eca80
add esp, 8
test eax, eax
je 0x5e1870
mov eax, dword [eax + 8]
test esi, esi
je 0x5e199c
sub esi, 3
neg esi
sbb esi, esi
and esi, 0x10
add esi, 0x1b
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
Function at 0x5ef320
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x5ef352
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x5ef480
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
xor ebx, ebx
push edi
mov edi, eax
cmp dword [esi + 0x1e0], ebx
je 0x5ef4c4
push 1
push esi
call fcn.005ed6c0
mov eax, dword [esi + 0x16c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x1e0]
push eax
push ebp
push ecx
push edi
push esi
call edx
push ebx
push esi
mov edi, eax
call fcn.005ed6c0
add esp, 0x24
mov eax, edi
pop edi
pop ebp
pop ebx
ret
test edi, edi
jl 0x5ef4fc
cmp edi, 2
jg 0x5ef4fc
mov eax, dword [esi + 0x168]
push eax
push 1
lea ecx, [edi + edi*2 + 0x668dd0]
push 2
push ecx
call fcn.005b7f37
mov edx, dword [esi + 0x168]
mov eax, dword [esp + 0x20]
push edx
push 1
push ebp
push eax
call fcn.005b7f37
add esp, 0x20
pop edi
pop ebp
mov eax, ebx
pop ebx
ret

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

Disassembly:
mov ecx, dword [ebx + 0x330]
push ebp
mov ebp, dword [ebx + eax*4 + 0x1a8]
push esi
lea esi, [eax + 0x1d]
shl esi, 4
add esi, ebx
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [ecx + 0x40], 3
je 0x5efb7f
cmp dword [ebx + eax*4 + 0x1c0], 0x5ef850
jne 0x5efb7f
cmp dword [esi], 0
je 0x5efb1a
test edi, edi
je 0x5efb7f
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
call fcn.005e5a20
add esp, 0x14
cmp eax, 0xffffffff
je 0x5efb7f
test al, 1
je 0x5efb7f
cmp dword [esi], 0
jne 0x5efb61
mov edx, dword [ebx]
mov eax, dword [edx + 0x500]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x6b3f80]
mov edi, dword [esi + 4]
xor ecx, ecx
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
cmp eax, ecx
je 0x5efb7c
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x5efb7f
add dword [esi + 8], eax
pop edi
pop esi
pop ebp
ret
mov dword [esi + 4], ecx
pop edi
pop esi
pop ebp
ret
Function at 0x5efb90
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [ebx + eax*4 + 0x1a8]
push edi
call fcn.005efae0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push 0
push eax
push ecx
push esi
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [esp + 0x20]
mov esi, eax
mov dword [edi], 0
cmp esi, 0xffffffff
jne 0x5efc12
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x5efbe9
pop ebp
mov dword [edi], 0x51
pop edi
pop esi
xor eax, eax
pop ebx
ret
push ebp
push ebx
call fcn.005f7550
mov edx, dword [ebx]
push eax
push str.Send_failure:__s
push edx
call fcn.005ef690
mov eax, dword [ebx]
mov dword [eax + 0x4964], ebp
add esp, 0x14
mov dword [edi], 0x37
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x5f1e60
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 0xc]
push eax
call fcn.005f1e30
add esp, 4
mov dword [esp + 0xc], eax
jmp fcn.005c7562

Function at 0x5f3850
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x14
xor eax, eax
cmp dword [esi + 0x6e8], eax
push 4
lea ecx, [esp + 4]
push ecx
setne al
push 8
push 0xffff
push edi
mov dword [esp + 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x5f388e
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.005ef600
add esp, 0xc
add esp, 0x14
ret
mov edx, dword [esi + 0x6ec]
push edx
mov dword [esp + 0xc], 1
call fcn.005f1e40
imul eax, eax, 0x3e8
mov dword [esp + 4], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x6f0]
push eax
call fcn.005f1e40
imul eax, eax, 0x3e8
add esp, 8
push 0
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0xc
lea edx, [esp + 0x20]
push edx
push 0x98000004
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x5f3907
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.005ef600
add esp, 0x10
add esp, 0x14
ret
Function at 0x5f3f90
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x108
mov eax, dword [0x6b278c]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
mov ebx, dword [esp + 0x110]
cmp dword [ebx + 0x94], 2
push ebp
mov ebp, dword [ebx]
je 0x5f411f
cmp dword [ebx + 0x288], 0
push esi
push edi
jne 0x5f4114
cmp dword [ebx + 0x2f8], 0
jne 0x5f4114
mov esi, dword [esp + 0x120]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x98]
push ecx
mov edi, 0x80
push esi
mov dword [esp + 0x1c], edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x5f4024
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.005f7550
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebp
call fcn.005ef690
add esp, 0x18
jmp 0x5f411d
push edi
lea edx, [esp + 0x18]
push 0
push edx
mov dword [esp + 0x1c], edi
call fcn.005b4de0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x5f4071
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.005f7550
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebp
call fcn.005ef690
add esp, 0x18
jmp 0x5f411d
lea edx, [ebx + 0x138]
push edx
lea esi, [ebx + 0x10a]
lea eax, [esp + 0x98]
push esi
push eax
call fcn.005f3f30
add esp, 0xc
test eax, eax
jne 0x5f40be
call fcn.005b787a
mov esi, eax
call fcn.005b787a
mov ecx, dword [esi]
push ecx
push ebx
mov edi, eax
call fcn.005f7550
mov edx, dword [edi]
push eax
push edx
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.005ef690
add esp, 0x18
jmp 0x5f411d
lea edi, [ebx + 0x60]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
lea eax, [ebx + 0x16c]
push eax
lea ecx, [ebx + 0x13c]
push ecx
lea edx, [esp + 0x1c]
push edx
movsw word es:[edi], word [esi]
call fcn.005f3f30
add esp, 0xc
test eax, eax
jne 0x5f4114
call fcn.005b787a
mov esi, eax
call fcn.005b787a
mov edi, eax
mov eax, dword [esi]
push eax
push ebx
call fcn.005f7550
mov ecx, dword [edi]
push eax
push ecx
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.005ef690
add esp, 0x18
jmp 0x5f411d
push ebx
call fcn.005f3eb0
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x10c]
pop ebp
pop ebx
xor ecx, esp
call fcn.005b4b30
add esp, 0x108
ret

Function at 0x5f4140
Capabilities:
Set socket configuration

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, dword [edi]
push 4
lea eax, [esp + 0x10]
push eax
push 1
push 6
push ecx
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x5f4189
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.005f7550
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.005ef600
add esp, 0x14
pop edi
pop esi
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.005ef600
add esp, 8
pop edi
pop esi
ret
Function at 0x5f42e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x1f0], 0
je 0x5f42f0
xor eax, eax
ret
mov eax, dword [eax + 0x1a8]
cmp eax, 0xffffffff
je 0x5f42ed
push 2
push 1
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
neg eax
sbb eax, eax
neg eax
ret
Function at 0x5f5590
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ebx
push ebp
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
xor ebx, ebx
mov dword [eax], ebx
mov eax, dword [esp + 0x20]
push edx
push eax
push ecx
mov dword [esp + 0x18], ebx
xor ebp, ebp
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 0xc], eax
cmp eax, ebx
jne 0x5f5741
push edi
mov edi, dword [esp + 0x14]
cmp edi, ebx
je 0x5f571f
push esi
jmp 0x5f55e0
cmp dword [edi + 4], 2
jne 0x5f5698
cmp dword [edi + 0x18], ebx
je 0x5f5698
mov eax, dword [edi + 0x10]
cmp eax, ebx
jbe 0x5f5698
cmp eax, 0x10
jb 0x5f5698
push 0x20
call dword [0x6b3f80]
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x5f56a5
mov edx, dword [edi]
mov dword [esi], edx
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
push 0x10
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], 0x10
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
call dword [0x6b3f80]
add esp, 4
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x5f56af
mov ecx, dword [edi + 0x18]
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov eax, dword [edi + 0x14]
cmp eax, ebx
je 0x5f5685
push eax
call dword [0x6b3f8c]
add esp, 4
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x5f56c3
cmp dword [esp + 0x10], ebx
jne 0x5f568f
mov dword [esp + 0x10], esi
cmp ebp, ebx
je 0x5f5696
mov dword [ebp + 0x1c], esi
mov ebp, esi
mov edi, dword [edi + 0x1c]
cmp edi, ebx
jne 0x5f55e0
jmp 0x5f56df
mov dword [esp + 0x14], 8
jmp 0x5f56df
push esi
mov dword [esp + 0x18], 8
call dword [0x6b3f84]
add esp, 4
jmp 0x5f56df
mov edx, dword [esi + 0x18]
push edx
mov dword [esp + 0x18], 8
call dword [0x6b3f84]
push esi
call dword [0x6b3f84]
add esp, 8
mov eax, dword [esp + 0x18]
pop esi
cmp eax, ebx
je 0x5f56ef
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [esp + 0x10], ebx
je 0x5f5719
mov eax, dword [esp + 0xc]
push eax
call fcn.005f5550
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
mov ecx, ebx
pop ebp
mov dword [esp + 4], ebx
mov dword [edx], ecx
pop ebx
add esp, 0xc
ret
cmp dword [esp + 0xc], ebx
jne 0x5f5732
push 0x2af9
mov dword [esp + 0x14], 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
mov dword [edx], ecx
pop edi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x5f6dc0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push eax
push ecx
push 0
push 0
call fcn.005b8935
add esp, 0x18
test eax, eax
je 0x5f6de3
cmp eax, 0xffffffff
jne 0x5f6de5
xor eax, eax
ret
Function at 0x5feef0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push str.Connected_for_receive
push 0x668bb0
push ecx
call fcn.005ef600
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.005fe040
test eax, eax
jne 0x5fef20
mov eax, esi
jmp fcn.005fe4e0
ret
Function at 0x5ff390
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x88
mov eax, dword [0x6b278c]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
mov ebp, dword [esp + 0x94]
mov ebx, dword [ebp]
push esi
mov esi, dword [ebp + 0x500]
push edi
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x80
mov edx, dword [esi + 0x154]
mov eax, dword [esi + 0x15c]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esi + 0x14]
push 0
add edx, 4
lea edi, [esi + 0x15c]
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x5ff41f
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esi + 0xc8]
push ecx
call fcn.005b5620
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov dword [esi + 0x148], edx
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x5ff45a
push str.Received_too_short_packet
push ebx
call fcn.005ef690
add esp, 8
mov dword [esi + 0xc], 7
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005b4b30
add esp, 0x88
ret
mov eax, edi
call fcn.005fe1f0
movzx eax, ax
mov dword [esi + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x5ff473
jmp dword [eax*4 + 0x5ff568]
cmp edx, 4
jle case.0x5ff473.4
mov eax, edi
call fcn.005fe200
movzx ecx, word [esi + 0x40]
inc ecx
cmp cx, ax
jne case.0x5ff473.4
add edx, 0xfffffffc
push edx
mov edx, dword [edi]
add edx, 4
push edx
push 1
push ebp
call fcn.005efaa0
mov edi, eax
add esp, 0x10
test edi, edi
je 0x5ff4c6
mov ecx, 5
mov eax, esi
call fcn.005ff310
mov eax, edi
jmp 0x5ff441
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [ebx + 0x90], eax
mov ecx, dword [ebx + 0x90]
adc dword [ebx + 0x94], edx
mov eax, dword [ebx + 0x94]
push eax
push ecx
push ebx
call fcn.0060eb00
jmp 0x5ff53e
mov eax, edi
call fcn.005fe200
movzx edx, ax
mov eax, dword [edi]
add eax, 4
push eax
push 0x668bb0
push ebx
mov dword [esi + 8], edx
call fcn.005ef600
jmp 0x5ff53e
mov ecx, dword [edi]
add edx, 0xfffffffe
push edx
add ecx, 2
push ecx
push esi
call fcn.005fe290
add esp, 0xc
test eax, eax
je case.0x5ff473.4
jmp 0x5ff441
push str.Internal_error:_Unexpected_packet
push 0x66b014
push ebx
call fcn.005ef690
add esp, 0xc
push ebp
call fcn.0060eda0
add esp, 4
test eax, eax
je 0x5ff43f
mov ecx, 5
mov eax, esi
call fcn.005ff310
mov eax, 0x2a
jmp 0x5ff441

Function at 0x600e70
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x6b278c]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x600ea5
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.005ef690
add esp, 0xc
jmp 0x600ede
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [esp]
cmp al, 2
jne 0x600ed0
shr eax, 8
test al, al
jne 0x600ed0
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.005b4b30
add esp, 0x194
ret
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.005ef690
add esp, 8
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.005b4b30
add esp, 0x194
ret