joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4013c0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x412d00
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x412eaa
push ebx
mov ebx, dword [esp + 0x10]
nop word [eax + eax]
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x64
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x8a
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
xor byte [esi + ebx], 0xe2
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x53
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x16
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
add esp, 0x44
push eax
call fcn.004013a7
add byte [esi + ebx], 0x57
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xad
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xa1
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x54
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x34
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x82
add esp, 0x40
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x67
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
xor byte [esi + ebx], 0xf3
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x45
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x4b
add esp, 0x30
inc esi
cmp esi, edi
jb 0x412d20
pop ebx
pop edi
pop esi
ret

Function at 0x4035da
Capabilities:
Terminate process

Disassembly:
jmp 0x451bc9
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x451bda
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405907
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x40370b
Capabilities:
Query environment variable

Disassembly:
jmp 0x49b072
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49b083
pop esi
ret
push ebx
push edi
push esi
call fcn.0049af59
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403fda
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49b0ab
push ebx
push esi
push edi
call fcn.004056fa
add esp, 0xc
push 0
call fcn.00406244
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x401080
Capabilities:
Encode data using xor
Encrypt data using blowfish
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0
push ebx
mov ebx, ecx
mov dword [ebp - 0x14], ebx
jne 0x40109e
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp + 0xc]
cmp edx, 4
jge 0x4010b2
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp edx, 0x38
jle 0x4010c3
mov eax, 3
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
lea edi, [ebx + 0x48]
mov dword [ebp - 8], ebx
mov ecx, 0x400
mov dword [ebp - 0xc], 0x12
mov esi, 0x4431a8
mov eax, 0x4441a8
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
sub eax, ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], eax
lea eax, [ecx + 1]
xor edi, edi
cmp eax, edx
cmovl edi, eax
xor ecx, ecx
lea eax, [edi + 1]
cmp eax, edx
cmovl ecx, eax
xor edx, edx
lea eax, [ecx + 1]
cmp eax, dword [ebp + 0xc]
cmovl edx, eax
mov eax, dword [ebp - 4]
movzx esi, byte [eax + ebx]
movzx eax, byte [edi + ebx]
mov edi, dword [ebp - 8]
shl esi, 8
or esi, eax
movzx eax, byte [ecx + ebx]
shl esi, 8
xor ecx, ecx
or esi, eax
movzx eax, byte [edx + ebx]
shl esi, 8
or esi, eax
lea eax, [edx + 1]
mov edx, dword [ebp + 0xc]
cmp eax, edx
cmovl ecx, eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], ecx
mov eax, dword [eax + edi]
xor eax, esi
mov dword [edi], eax
add edi, 4
sub dword [ebp - 0xc], 1
mov dword [ebp - 8], edi
jne 0x4010f0
mov ebx, dword [ebp - 0x14]
xor esi, esi
mov dword [ebp + 0xc], 0
mov dword [ebp + 8], 0
nop dword [eax]
lea eax, [ebp + 8]
mov ecx, ebx
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.004011e0
mov eax, dword [ebp + 0xc]
mov dword [ebx + esi*4], eax
mov eax, dword [ebp + 8]
mov dword [ebx + esi*4 + 4], eax
add esi, 2
cmp esi, 0x12
jl 0x401170
lea esi, [ebx + 0x4c]
mov dword [ebp - 0xc], 4
nop
mov edi, 0x80
lea eax, [ebp + 8]
mov ecx, ebx
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.004011e0
mov eax, dword [ebp + 0xc]
mov dword [esi - 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], eax
add esi, 8
sub edi, 1
jne 0x4011a5
sub dword [ebp - 0xc], 1
jne 0x4011a0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4011e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 8
push edi
mov edi, ecx
test eax, eax
je 0x401269
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x401269
mov ecx, dword [ecx]
mov eax, dword [eax]
push ebx
push esi
mov dword [ebp - 4], ecx
xor ebx, ebx
xor eax, dword [edi + ebx*4]
inc ebx
mov ecx, eax
mov dword [ebp - 8], eax
shr ecx, 0x10
mov edx, eax
movzx ecx, cl
shr edx, 0x18
mov esi, dword [edi + ecx*4 + 0x448]
mov ecx, eax
add esi, dword [edi + edx*4 + 0x48]
mov edx, dword [ebp - 8]
shr ecx, 8
movzx ecx, cl
movzx eax, al
xor esi, dword [edi + ecx*4 + 0x848]
add esi, dword [edi + eax*4 + 0xc48]
xor esi, dword [ebp - 4]
mov dword [ebp - 4], edx
mov eax, esi
cmp ebx, 0x10
jl 0x401202
mov ecx, dword [edi + 0x44]
xor ecx, edx
mov edx, dword [ebp + 8]
pop esi
pop ebx
mov dword [edx], ecx
mov ecx, dword [edi + 0x40]
xor ecx, eax
mov eax, dword [ebp + 0xc]
pop edi
mov dword [eax], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret 8

Function at 0x401280
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 8
push edi
mov edi, ecx
test eax, eax
je 0x40130b
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x40130b
mov ecx, dword [ecx]
mov eax, dword [eax]
push ebx
push esi
mov dword [ebp - 4], ecx
mov ebx, 0x11
xor eax, dword [edi + ebx*4]
dec ebx
mov ecx, eax
mov dword [ebp - 8], eax
shr ecx, 0x10
mov edx, eax
movzx ecx, cl
shr edx, 0x18
mov esi, dword [edi + ecx*4 + 0x448]
mov ecx, eax
add esi, dword [edi + edx*4 + 0x48]
mov edx, dword [ebp - 8]
shr ecx, 8
movzx ecx, cl
movzx eax, al
xor esi, dword [edi + ecx*4 + 0x848]
add esi, dword [edi + eax*4 + 0xc48]
xor esi, dword [ebp - 4]
mov dword [ebp - 4], edx
mov eax, esi
cmp ebx, 1
jg 0x4012a5
mov ecx, dword [edi]
xor ecx, edx
mov edx, dword [ebp + 8]
pop esi
pop ebx
mov dword [edx], ecx
mov ecx, dword [edi + 4]
xor ecx, eax
mov eax, dword [ebp + 0xc]
pop edi
mov dword [eax], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x401770
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x44a00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0x114], edx
mov dword [ebp - 0x11c], ecx
test edi, edi
jle 0x40181d
xor edx, edx
lea eax, [ebp - 0x124]
test ecx, ecx
cmove eax, edx
lea edx, [ebx + 1]
mov dword [ebp - 0x118], eax
push eax
push 0
lea eax, [ebp - 0x110]
mov dword [ebp - 0x124], ecx
push eax
push 0
push edx
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x10c], ebx
mov dword [ebp - 0x110], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x401830
push 0
mov eax, edi
sub eax, esi
push eax
mov eax, dword [ebp - 0x114]
add eax, esi
push eax
push ebx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x401830
mov ecx, dword [ebp - 0x11c]
lea edx, [ebx + 1]
add esi, eax
mov eax, dword [ebp - 0x118]
cmp esi, edi
jl 0x4017b6
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041be62
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041be62
mov esp, ebp
pop ebp
ret
Function at 0x401850
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get socket status
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x44a00c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push 0
push 1
push 2
mov ebx, edx
mov edi, ecx
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
test esi, esi
js 0x4018b5
xorps xmm0, xmm0
mov eax, 2
movups xmmword [ebp - 0x18], xmm0
push ebx
mov word [ebp - 0x18], ax
call dword [sym.imp.WS2_32.dll_htons]
push edi
mov word [ebp - 0x16], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x4018d0
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x4018c9
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041be62
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x230]
push eax
push 0x8004667e
push esi
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x22c], 1
mov dword [ebp - 0x120], esi
mov dword [ebp - 0x124], 1
mov dword [ebp - 0x230], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push 0x10
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jns 0x401980
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4018ae
mov eax, dword [ebp + 8]
mov dword [ebp - 0x23c], eax
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x124]
mov dword [ebp - 0x238], 0
push eax
lea eax, [ebp - 0x22c]
push eax
push 0
lea eax, [esi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x4018ae
lea eax, [ebp - 0x124]
push eax
push esi
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
jne 0x4018ae
push 4
lea eax, [ebp - 0x234]
mov dword [ebp - 0x234], 1
push eax
push 1
push 6
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041be62
mov esp, ebp
pop ebp
ret

Function at 0x401b50
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0
push 0x80
push 4
push 0
push 6
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401b7e
pop edi
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x401b9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x401bae
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x401c10
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x44a00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
mov dword [ebp - 0x424], 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, eax
test ebx, ebx
je 0x401d68
mov ecx, 0x43
xor eax, eax
push esi
nop dword [eax]
test bl, 1
je 0x401d58
cmp eax, 2
jl 0x401d58
add al, 0x41
mov word [ebp - 0x428], cx
mov byte [ebp - 0x428], al
lea eax, [ebp - 0x430]
push eax
call fcn.004230b2
add esp, 4
xor ecx, ecx
mov al, byte [ebp + ecx - 0x428]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0xd], al
test al, al
jne 0x401c82
lea ecx, [ebp - 0xc]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x401c98
mov ax, word [0x444258]
mov word [ecx], ax
mov al, byte [0x44425a]
mov byte [ecx + 2], al
lea eax, [ebp - 0xc]
push 0
push eax
call fcn.00427ffb
add esp, 8
cmp eax, 0xffffffff
je 0x401d4d
xor ecx, ecx
nop dword [eax]
mov al, byte [ebp + ecx - 0xc]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x421], al
test al, al
jne 0x401cd0
xor eax, eax
mov cl, byte [ebp + eax - 0x428]
lea eax, [eax + 1]
mov byte [ebp + eax - 0x115], cl
test cl, cl
jne 0x401ce4
push 0x104
lea eax, [ebp - 0x31c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x420]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, dword [edi]
lea eax, [ebp - 0x420]
push eax
mov byte [ebp - 0x10], 1
push dword [esi + 4]
push esi
call fcn.00404ec0
mov edx, eax
mov ecx, 0x3e4beb
mov eax, dword [edi + 4]
sub ecx, eax
cmp ecx, 1
jb 0x401d9f
lea ecx, [eax + 1]
mov dword [edi + 4], ecx
mov dword [esi + 4], edx
mov eax, dword [edx + 4]
mov dword [eax], edx
mov eax, dword [ebp - 0x424]
mov ecx, 0x43
inc eax
shr ebx, 1
mov dword [ebp - 0x424], eax
jne 0x401c50
pop esi
push dword [edi + 4]
mov eax, dword [edi]
lea ecx, [ebp - 0x424]
push ecx
push eax
mov dword [ebp - 0x424], 0x401bc0
mov ecx, edi
push dword [eax]
lea eax, [ebp - 0x428]
push eax
call fcn.00404dc0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0041be62
mov esp, ebp
pop ebp
ret
push str.list_T__too_long
call fcn.0041be15
int3
Function at 0x406700
Capabilities:
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x28
mov eax, dword [0x44a00c]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
push edi
push 0
test ecx, ecx
mov eax, str.0.0.0.0
push 1
cmovne eax, ecx
mov edi, edx
push 2
mov dword [esp + 0x14], eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
test esi, esi
jns 0x406759
push str.create_socket_eror_n
call fcn.00401410
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0041be62
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
mov dword [esp + 0xc], 1
mov eax, 2
movaps xmmword [esp + 0x10], xmm0
push 4
mov word [esp + 0x14], ax
lea eax, [esp + 0x10]
push eax
push 4
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
push dword [esp + 8]
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x14], eax
movzx eax, word [edi]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x12], ax
lea eax, [esp + 0x10]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x4067ec
call fcn.00422fff
push dword [edi]
push dword [esp + 0xc]
push dword [eax]
push str.bind_FTP_sock_err_errno__d____s:_d___n
call fcn.00401410
add esp, 0x10
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0041be62
mov esp, ebp
pop ebp
ret
cmp dword [edi], 0
jne 0x40684c
lea eax, [esp + 8]
mov dword [esp + 8], 0x10
push eax
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jns 0x40683d
call fcn.00422fff
push dword [eax]
push str.gethostname_function_error_errno__d_n
call fcn.00401410
add esp, 8
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0041be62
mov esp, ebp
pop ebp
ret
push dword [esp + 0x12]
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [edi], eax
push 5
push esi
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
jns 0x406867
call fcn.00422fff
push dword [eax]
push str.listen_error_errno__d_n
jmp 0x40681a
mov ecx, dword [esp + 0x2c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.0041be62
mov esp, ebp
pop ebp
ret
Function at 0x407020
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
push esi
push edi
mov edi, ecx
mov ecx, str.0.0.0.0
cmovne ecx, eax
mov esi, ecx
lea eax, [edi + 0x10]
nop dword [eax]
mov dl, byte [esi]
lea esi, [esi + 1]
mov byte [eax], dl
lea eax, [eax + 1]
test dl, dl
jne 0x407040
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 0xc]
mov dword [edi + 0x90], eax
mov dword [edi], 1
call fcn.00406700
push 8
mov dword [edi + 0xc], eax
call fcn.0041be73
add esp, 4
lea ecx, [ebp + 0xc]
mov dword [eax], 0x406300
push ecx
push 0
push eax
push 0x403180
push 0x100000
push 0
mov dword [eax + 4], edi
call fcn.0041f92d
add esp, 0x18
mov dword [edi + 0x94], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 8

Function at 0x407380
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x411c
call fcn.00438a40
mov eax, dword [0x44a00c]
xor eax, esp
mov dword [esp + 0x4118], eax
push ebx
push esi
push edi
lea eax, [esp + 0x120]
mov esi, ecx
push str.220_welcome_light_ftp_server__copyright_Fanxiushu_2016._r_n
push eax
mov dword [esp + 0x14], esi
call fcn.00401480
lea edx, [esp + 0x128]
add esp, 8
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4073c6
sub edx, ecx
mov ecx, dword [esi + 8]
push 0xf
push edx
lea edx, [esp + 0x128]
call fcn.00401770
add esp, 8
xor ebx, ebx
mov ecx, dword [esi + 4]
mov eax, 0x14
cmp byte [ecx + 8], 0
jne 0x40750d
cmp byte [esi + 0x28], 0
mov ecx, dword [ecx + 0xc8]
mov esi, dword [esi + 8]
cmove ecx, eax
xor edx, edx
mov dword [esp + 0x1c], esi
test ecx, ecx
mov dword [esp + 0x18], 1
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ecx
cmove eax, edx
mov dword [esp + 0x14], 0
push eax
push edx
push edx
lea eax, [esp + 0x24]
push eax
lea eax, [esi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x407506
je 0x407506
push 0
mov eax, 0x3fff
sub eax, ebx
push eax
lea eax, [esp + 0x128]
add eax, ebx
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
js 0x407506
jle 0x407506
add ebx, eax
cmp ebx, 0x4000
jae 0x40752f
lea edi, [esp + 0x120]
mov byte [esp + ebx + 0x120], 0
mov eax, edi
push 0x444254
push eax
call fcn.0041e000
mov esi, eax
add esp, 8
test esi, esi
je 0x4074ee
mov ecx, dword [esp + 0xc]
push edi
mov byte [esi], 0
call fcn.004084d0
test eax, eax
js 0x4074ff
lea edi, [esi + 2]
push 0x444254
push edi
call fcn.0041e000
mov esi, eax
add esp, 8
test esi, esi
jne 0x4074a7
sub ebx, edi
lea ebx, [esp + ebx + 0x120]
test ebx, ebx
jle 0x4074ee
push ebx
lea eax, [esp + 0x124]
push edi
push eax
call fcn.0041ccf0
add esp, 0xc
cmp ebx, 0x4000
jge 0x40750d
mov esi, dword [esp + 0xc]
jmp 0x4073e6
push str.FTP:_deal_command_error._n
jmp 0x407512
push str.FTP_Read_Socket_Header_Error._n
jmp 0x407512
push str._FTP:_quit._n
call fcn.00401410
mov ecx, dword [esp + 0x4128]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041be62
mov esp, ebp
pop ebp
ret
call fcn.0041bfdc
int3
Function at 0x4077a0
Capabilities:
Get socket status
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x494
mov eax, dword [0x44a00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [str.0.0.0.0]
push ebx
push esi
push edi
mov dword [ebp - 0x178], eax
mov ebx, ecx
mov eax, dword [0x444510]
push 0xf8
mov dword [ebp - 0x174], eax
lea eax, [ebp - 0x170]
push 0
push eax
call fcn.0041ea80
lea ecx, [ebx + 0x10]
add esp, 0xc
cmp dword [ecx + 0x14], 0x10
jb 0x4077ef
mov ecx, dword [ecx]
lea edx, [ebp - 0x178]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x4077f5
lea eax, [ebp - 0x484]
mov dword [ebp - 0x484], 0
push eax
mov ecx, ebx
call fcn.00407690
mov esi, eax
test esi, esi
jns 0x407842
push str.not_create_temp_listen_socket._n
call fcn.00401410
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041be62
mov esp, ebp
pop ebp
ret
movzx ecx, word [ebp - 0x484]
movzx eax, cl
push eax
shr ecx, 8
lea eax, [ebp - 0x10]
push ecx
push str._d__d
push eax
call fcn.00401480
lea eax, [ebp - 0x178]
push eax
lea eax, [ebp - 0x78]
push 0x444734
push eax
call fcn.00401480
add esp, 0x1c
cmp byte [ebp - 0x78], 0
je 0x40788e
lea eax, [ebp - 0x78]
cmp byte [eax], 0x2e
jne 0x407888
mov byte [eax], 0x2c
inc eax
cmp byte [eax], 0
jne 0x407880
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x178]
push str._s_s
push eax
call fcn.00401480
lea eax, [ebp - 0x178]
push eax
lea eax, [ebp - 0x378]
push str.227_Entering_Passive_Mode___s_._r_n
push eax
call fcn.00401480
lea ecx, [ebp - 0x378]
add esp, 0x1c
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4078d0
mov eax, dword [ebx + 4]
sub ecx, edx
lea edx, [ebp - 0x378]
push dword [eax + 0xc8]
push ecx
mov ecx, dword [ebx + 8]
call fcn.00401770
add esp, 8
test eax, eax
jg 0x407919
push str._write_socket_error._n
call fcn.00401410
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041be62
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 4]
mov dword [ebp - 0x47c], esi
mov dword [ebp - 0x480], 1
mov eax, dword [eax + 0xc8]
mov dword [ebp - 0x490], eax
lea eax, [ebp - 0x490]
push eax
push 0
push 0
lea eax, [ebp - 0x480]
mov dword [ebp - 0x48c], 0
push eax
lea eax, [esi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jg 0x40798a
push str.not_get_data_client._n
call fcn.00401410
add esp, 4
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041be62
mov esp, ebp
pop ebp
ret
push 0
push 0
push esi
call dword [sym.imp.WS2_32.dll_accept]
push esi
mov edi, eax
call dword [sym.imp.WS2_32.dll_closesocket]
test edi, edi
js 0x40782e
push 4
lea eax, [ebp - 0x488]
mov dword [ebp - 0x488], 1
push eax
push 1
push 6
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp - 4]
xor eax, eax
mov dword [ebx + 0xc], edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0041be62
mov esp, ebp
pop ebp
ret