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

Disassembly:
mov eax, 0x100129c3
call sub.MSVCRT.dll__EH_prolog
push ecx
mov eax, 0x1174
call fcn.10012400
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi]
xor esi, esi
lea eax, [edi + 0x28]
mov dword [eax], esi
mov dword [edi + 0x2c], ecx
inc dword [eax]
cmp dword [ebp + 8], esi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], edi
lea ecx, [edi + 0x12c]
je 0x100102f5
mov dword [ecx], esi
jmp 0x100102fd
mov edx, dword [0x1001cbdc]
mov dword [ecx], edx
push ecx
push esi
push esi
push eax
push esi
call sub.WSOCK32.dll_select
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10010345
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2734
jne 0x10010323
cmp dword [ebp + 8], esi
jne 0x10010489
push eax
lea eax, [ebp - 0x184]
push str.connection::get_buffer___unexpected_error_from_select:__d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x184]
push eax
call fcn.1000fafb
add esp, 0x10
cmp ebx, esi
jne 0x10010352
cmp dword [ebp + 8], esi
jne 0x10010489
push esi
push dword [edi + 0x20]
push dword [edi + 4]
push dword [edi]
call sub.WSOCK32.dll_recv
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 0x1c], ebx
je 0x10010397
cmp ebx, 0xffffffff
jne 0x10010493
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x10010489
cmp eax, 0x2741
jle 0x100103a1
cmp eax, 0x2746
jle 0x10010397
cmp eax, 0x2749
jne 0x100103a1
mov eax, 0xfb0
jmp 0x100106bf
push eax
lea eax, [ebp - 0x184]
push str.connection::get_buffer___unexpected_error:__d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x184]
push eax
call fcn.1000fafb
add esp, 0x10
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x28]
mov dword [edi + 0x14], eax
mov dword [edi + 0xc], esi
call fcn.1000103b
cmp dword [0x10023d24], esi
mov dword [ebp - 4], esi
je 0x100106b1
mov ecx, dword [0x10023d24]
mov byte [ebp - 4], 1
call fcn.1000faea
test eax, eax
je 0x100106b1
push dword [edi + 0x14]
lea ecx, [ebp - 0x40]
push dword [edi + 4]
call fcn.1000c884
mov ecx, dword [0x10023d24]
push eax
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 2
call fcn.1000d847
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.10008955
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.1000102d
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.1000102d
lea ecx, [ebp - 0x28]
call fcn.1000112f
push eax
lea ecx, [ebp - 0x28]
call fcn.1000c89a
push eax
push dword [edi + 4]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea ecx, [ebp - 0x28]
call fcn.1000112f
mov dword [edi + 0x14], eax
cmp byte [0x10024344], 0
je 0x100106b1
push str.superDebug:_Decrypted_n
call fcn.100013bb
pop ecx
jmp 0x100106b1
mov eax, 0xfad
jmp 0x100106bf
cmp byte [0x10024344], 0
je 0x100103c6
mov al, byte [0x10023708]
push ebx
push str.superDebug:_Received__u_bytes:_n
mov byte [ebp + 0xb], al
mov byte [0x10023708], 0
call fcn.100013bb
cmp byte [0x10024344], 2
pop ecx
pop ecx
jne 0x100105a3
mov eax, dword [edi + 4]
mov esi, 0x3e8
cmp dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], eax
jle 0x1001054f
push 0x3ea
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push esi
push dword [ebp - 0x14]
mov edi, eax
push edi
call sub.MSVCRT.dll_memcpy
push 0xa
push edi
mov byte [edi + 0x3e8], 0
call sub.MSVCRT.dll_strrchr
add esp, 0x18
test eax, eax
je 0x10010516
inc eax
mov ecx, edi
sub ecx, eax
mov byte [eax], 0
sub eax, edi
add ebx, ecx
add dword [ebp - 0x14], eax
jmp 0x1001051b
sub ebx, esi
add dword [ebp - 0x14], esi
push edi
push 0x10013204
call fcn.100013bb
push edi
call sub.MSVCRT.dll_strlen
add esp, 0xc
cmp byte [eax + edi - 1], 0xa
je 0x10010541
push 0x10013278
call fcn.100013bb
pop ecx
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
cmp ebx, esi
pop ecx
jg 0x100104d9
mov edi, dword [ebp - 0x18]
test ebx, ebx
je 0x10010667
lea eax, [ebx + 2]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push ebx
push dword [ebp - 0x14]
mov esi, eax
push esi
mov dword [ebp - 0x18], esi
call sub.MSVCRT.dll_memcpy
push dword [ebp - 0x18]
add esi, ebx
push 0x10013204
mov byte [esi], 0
call fcn.100013bb
add esp, 0x18
cmp byte [esi - 1], 0xa
je 0x10010595
push 0x10013278
call fcn.100013bb
pop ecx
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x10010667
push 0x42
lea eax, [ebp - 0x84]
push 0x20
push eax
call sub.MSVCRT.dll_memset
xor edi, edi
add esp, 0xc
cmp dword [ebp - 0x1c], edi
jle 0x1001063b
cmp edi, 0x10
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 4]
mov bl, byte [esi + eax]
jne 0x100105f9
lea eax, [ebp - 0x84]
push eax
lea eax, [esi - 0x10]
push eax
push str.superDebug:__05X__s_r_n
mov byte [ebp - 0x42], 0
call fcn.100013bb
push 0x42
lea eax, [ebp - 0x84]
push 0x20
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
xor edi, edi
movzx eax, bl
push eax
lea eax, [ebp - 0x14]
push str.__02X
push eax
call sub.MSVCRT.dll_sprintf
push 3
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + edi - 0x84]
lea eax, [eax + edi*2]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x18
cmp bl, 0x20
jb 0x1001062e
cmp bl, 0x7e
jbe 0x10010630
mov bl, 0x2e
mov byte [ebp + edi - 0x52], bl
inc edi
inc esi
cmp esi, dword [ebp - 0x1c]
jl 0x100105bd
cmp edi, 0x10
mov byte [ebp - 0x42], 0
jne 0x10010645
dec esi
lea eax, [ebp - 0x84]
push eax
mov eax, esi
push 0x10
pop ecx
cdq
idiv ecx
sub esi, edx
push esi
push str.superDebug:__05X__s_r_n
call fcn.100013bb
mov edi, dword [ebp - 0x18]
add esp, 0xc
mov al, byte [ebp + 0xb]
mov byte [0x10023708], al
xor esi, esi
jmp 0x100103c6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.1000102d
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4