Function at 0x41533f
Capabilities:
Read file on windows
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov eax, 0x205c
call fcn.0041af10
sub esp, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
shl edx, 2
add eax, edx
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
shl edx, 2
add eax, edx
mov eax, dword [eax]
mov eax, dword [eax + 0x20]
test eax, eax
je 0x415724
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
shl edx, 2
add eax, edx
mov eax, dword [eax]
mov edx, dword [eax + 0x20]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
shl ecx, 2
add eax, ecx
mov eax, dword [eax]
mov eax, dword [eax + 0x28]
sub edx, eax
mov dword [ebp - 0x28], edx
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
mov dword [esp + 0xc], 0
mov dword [esp + 8], edx
lea edx, [ebp - 0x202c]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_recv]
call eax
sub esp, 0x10
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
shl edx, 2
add eax, edx
mov eax, dword [eax]
mov eax, dword [eax + 8]
cmp eax, 1
jne 0x415426
mov dword [esp], 2
mov eax, dword [dbg.__acrt_iob_func]
call eax
mov dword [esp + 0x10], str.Tried_to_treat_a_DATAGRAM_socket_like_a_stream.
mov dword [esp + 0xc], 0x130
mov dword [esp + 8], str.libs_select_group.c
mov dword [esp + 4], str.Unrecoverable_error_in__s__d_:__s_n_n
mov dword [esp], eax
call sym._fprintf_4
call sym._abort
cmp dword [ebp - 0x2c], 0
jns 0x4154cc
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
shl edx, 2
add eax, edx
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x4154b5
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
shl edx, 2
add eax, edx
mov eax, dword [eax]
mov ebx, dword [eax + 0x18]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
shl edx, 2
add eax, edx
mov eax, dword [eax]
mov esi, dword [eax + 0x34]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
shl edx, 2
add eax, edx
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esp], eax
call dbg.getlastsocketerror
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call ebx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dbg.select_handle_response
jmp 0x415c0c
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dbg.select_group_remove_and_close_socket
jmp 0x415c0c
cmp dword [ebp - 0x2c], 0
jne 0x415551
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
shl edx, 2
add eax, edx
mov eax, dword [eax]
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x41553a
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
shl edx, 2
add eax, edx
mov eax, dword [eax]
mov eax, dword [eax + 0x1c]
mov edx, dword [ebp + 8]
mov edx, dword [edx]
mov ecx, dword [ebp + 0xc]
shl ecx, 2
add edx, ecx
mov edx, dword [edx]
mov edx, dword [edx + 0x34]
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x20]
mov dword [esp + 4], edx
mov edx, dword [ebp + 8]
mov dword [esp], edx
call eax
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dbg.select_handle_response
jmp 0x415c0c
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dbg.select_group_remove_and_close_socket
jmp 0x415c0c
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp + 8]
mov edx, dword [edx]
mov ecx, dword [ebp + 0xc]
shl ecx, 2
add edx, ecx
mov edx, dword [edx]
mov ecx, dword [edx + 0x24]
mov edx, dword [ebp + 8]
mov edx, dword [edx]
mov ebx, dword [ebp + 0xc]
shl ebx, 2
add edx, ebx
mov edx, dword [edx]
mov edx, dword [edx + 0x28]
add edx, ecx
mov dword [esp + 8], eax
lea eax, [ebp - 0x202c]
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._memcpy
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
shl edx, 2
add eax, edx
mov eax, dword [eax]
mov ecx, dword [eax + 0x28]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ebx, dword [ebp + 0xc]
shl ebx, 2
add eax, ebx
mov eax, dword [eax]
add edx, ecx
mov dword [eax + 0x28], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
shl edx, 2
add eax, edx
mov eax, dword [eax]
mov eax, dword [eax + 0x28]
mov edx, dword [ebp + 8]
mov edx, dword [edx]
mov ecx, dword [ebp + 0xc]
shl ecx, 2
add edx, ecx
mov edx, dword [edx]
mov edx, dword [edx + 0x20]
cmp edx, eax
jae 0x41561c
mov dword [esp], 2
mov eax, dword [dbg.__acrt_iob_func]
call eax
mov dword [esp + 0x10], str.Something_caused_data_corruption__overflow__
mov dword [esp + 0xc], 0x14b
mov dword [esp + 8], str.libs_select_group.c
mov dword [esp + 4], str.Unrecoverable_error_in__s__d_:__s_n_n
mov dword [esp], eax
call sym._fprintf_4
call sym._abort
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
shl edx, 2
add eax, edx
mov eax, dword [eax]
mov edx, dword [eax + 0x28]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
shl ecx, 2
add eax, ecx
mov eax, dword [eax]
mov eax, dword [eax + 0x20]
cmp edx, eax
jne 0x415c0c
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
shl edx, 2
add eax, edx
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 8]
mov edx, dword [edx]
mov ecx, dword [ebp + 0xc]
shl ecx, 2
add edx, ecx
mov edx, dword [edx]
mov ebx, dword [edx + 0x34]
mov edx, dword [ebp + 8]
mov edx, dword [edx]
mov ecx, dword [ebp + 0xc]
shl ecx, 2
add edx, ecx
mov edx, dword [edx]
mov ecx, dword [edx + 0x28]
mov edx, dword [ebp + 8]
mov edx, dword [edx]
mov esi, dword [ebp + 0xc]
shl esi, 2
add edx, esi
mov edx, dword [edx]
mov edx, dword [edx + 0x24]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], 0xffff
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x20]
mov dword [esp + 4], edx
mov edx, dword [ebp + 8]
mov dword [esp], edx
call eax
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dbg.select_handle_response
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
shl edx, 2
add eax, edx
mov eax, dword [eax]
mov edx, dword [eax + 0x28]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
shl ecx, 2
add eax, ecx
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._memset
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
shl edx, 2
add eax, edx
mov eax, dword [eax]
mov dword [eax + 0x28], 0
jmp 0x415c0c
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
shl edx, 2
add eax, edx
mov eax, dword [eax]
mov eax, dword [eax + 8]
test eax, eax
je 0x415755
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
shl edx, 2
add eax, edx
mov eax, dword [eax]
mov eax, dword [eax + 8]
cmp eax, 3
jne 0x4159c2
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
shl edx, 2
add eax, edx
mov eax, dword [eax]
mov eax, dword [eax + 8]
test eax, eax
jne 0x415797
mov dword [esp + 8], 0x2000
lea eax, [ebp - 0x202c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dbg.tcp_recv
mov dword [addr.sin_zero], eax
jmp 0x4157f4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
shl edx, 2
add eax, edx
mov eax, dword [eax]
mov eax, dword [eax + 8]
cmp eax, 3
jne 0x4157f4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
shl edx, 2
add eax, edx
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x10], 0
lea edx, [addr.sin_zero]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x2000
lea edx, [ebp - 0x202c]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_ReadFile]
call eax
sub esp, 0x14
mov dword [ebp - 0x1c], eax
mov eax, dword [addr.sin_zero]
test eax, eax
js 0x415808
cmp dword [ebp - 0x1c], 0
jne 0x4158a4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
shl edx, 2
add eax, edx
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x41588d
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
shl edx, 2
add eax, edx
mov eax, dword [eax]
mov ebx, dword [eax + 0x18]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
shl edx, 2
add eax, edx
mov eax, dword [eax]
mov esi, dword [eax + 0x34]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
shl edx, 2
add eax, edx
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esp], eax
call dbg.getlastsocketerror
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call ebx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dbg.select_handle_response
jmp 0x4159bd
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dbg.select_group_remove_and_close_socket
jmp 0x4159bd
mov eax, dword [addr.sin_zero]
test eax, eax
jne 0x41592d
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
shl edx, 2
add eax, edx
mov eax, dword [eax]
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x415916
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
shl edx, 2
add eax, edx
mov eax, dword [eax]
mov eax, dword [eax + 0x1c]
mov edx, dword [ebp + 8]
mov edx, dword [edx]
mov ecx, dword [ebp + 0xc]
shl ecx, 2
add edx, ecx
mov edx, dword [edx]
mov edx, dword [edx + 0x34]
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x20]
mov dword [esp + 4], edx
mov edx, dword [ebp + 8]
mov dword [esp], edx
call eax
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dbg.select_handle_response
jmp 0x415c0b
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dbg.select_group_remove_and_close_socket
jmp 0x415c0b
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
shl edx, 2
add eax, edx
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x415c0b
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
shl edx, 2
add eax, edx
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 8]
mov edx, dword [edx]
mov ecx, dword [ebp + 0xc]
shl ecx, 2
add edx, ecx
mov edx, dword [edx]
mov edx, dword [edx + 0x34]
mov ecx, dword [addr.sin_zero]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], 0xffff
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
lea edx, [ebp - 0x202c]
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x20]
mov dword [esp + 4], edx
mov edx, dword [ebp + 8]
mov dword [esp], edx
call eax
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dbg.select_handle_response
jmp 0x415c0b
jmp 0x415c0b
mov dword [ebp - 0x2044], 0x10
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
lea eax, [ebp - 0x2040]
mov dword [esp], eax
call sym._memset
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x2044]
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x2040]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x2000
lea edx, [ebp - 0x202c]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_recvfrom]
call eax
sub esp, 0x18
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
js 0x415a3b
cmp dword [ebp - 0x24], 0xffffffff
jne 0x415ad7
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
shl edx, 2
add eax, edx
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x415ac0
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
shl edx, 2
add eax, edx
mov eax, dword [eax]
mov ebx, dword [eax + 0x18]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
shl edx, 2
add eax, edx
mov eax, dword [eax]
mov esi, dword [eax + 0x34]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
shl edx, 2
add eax, edx
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esp], eax
call dbg.getlastsocketerror
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call ebx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dbg.select_handle_response
jmp 0x415c0c
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dbg.select_group_remove_and_close_socket
jmp 0x415c0c
cmp dword [ebp - 0x24], 0
jne 0x415b5c
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
shl edx, 2
add eax, edx
mov eax, dword [eax]
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x415b45
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
shl edx, 2
add eax, edx
mov eax, dword [eax]
mov eax, dword [eax + 0x1c]
mov edx, dword [ebp + 8]
mov edx, dword [edx]
mov ecx, dword [ebp + 0xc]
shl ecx, 2
add edx, ecx
mov edx, dword [edx]
mov edx, dword [edx + 0x34]
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x20]
mov dword [esp + 4], edx
mov edx, dword [ebp + 8]
mov dword [esp], edx
call eax
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dbg.select_handle_response
jmp 0x415c0c
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dbg.select_group_remove_and_close_socket
jmp 0x415c0c
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
shl edx, 2
add eax, edx
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x415c0c
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
shl edx, 2
add eax, edx
mov eax, dword [eax]
mov ebx, dword [eax + 0x10]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
shl edx, 2
add eax, edx
mov eax, dword [eax]
mov edi, dword [eax + 0x34]
movzx eax, word [ebp - 0x203e]
movzx eax, ax
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_ntohs]
call eax
sub esp, 4
movzx esi, ax
mov eax, dword [ebp - 0x203c]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_inet_ntoa]
call eax
sub esp, 4
mov edx, dword [ebp - 0x24]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edx
lea eax, [ebp - 0x202c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call ebx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dbg.select_handle_response
jmp 0x415c0c
nop
nop
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret