Function at 0x100254aa
Capabilities:
Encode data using xor
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x403c
call fcn.10040950
push ebx
push esi
mov esi, dword [ebp + 0x10]
cmp dword [esi], 3
push edi
jne 0x100254d9
push dword [ebp + 0x14]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100253a2
add esp, 0x10
jmp 0x10025aa3
lea eax, [ebp - 0x34]
push eax
push 0x4004667f
push dword [ebp + 8]
mov byte [ebp - 0x1c], 0x2b
mov byte [ebp - 0x1b], 0xfe
mov byte [ebp - 0x1a], 0xb8
mov byte [ebp - 0x19], 2
call sub.WS2_32.dll_ioctlsocket
test eax, eax
jne 0x10025aa1
xor ebx, ebx
jmp 0x10025509
mov esi, dword [ebp + 0x10]
cmp dword [ebp - 0x34], ebx
je 0x10025aa8
lea eax, [ebp - 0x4038]
push eax
push dword [ebp + 8]
push 4
pop edi
mov eax, edi
call fcn.100252f4
test eax, eax
pop ecx
pop ecx
je 0x10025aa1
cmp dword [esi + 4], 1
jne 0x10025554
movzx esi, byte [ebp - 0x4037]
movzx eax, byte [ebp - 0x4038]
xor esi, 0xfe
shl esi, 8
xor eax, 0x2b
add esi, eax
jmp 0x1002559e
mov al, byte [ebp - 0x4037]
mov cl, al
and cl, 0x30
cmp cl, 0x10
jne 0x1002558d
lea eax, [ebp - 0x4034]
push eax
push dword [ebp + 8]
push 0x12
pop eax
call fcn.100252f4
test eax, eax
pop ecx
pop ecx
je 0x10025aa1
mov esi, dword [ebp - 0x4026]
push 0x16
pop edi
add esi, edi
jmp 0x1002559e
movzx ecx, byte [ebp - 0x4038]
and eax, 0xf
shl ecx, 4
add eax, ecx
mov esi, eax
cmp esi, edi
jl 0x10025aa1
lea ecx, [ebp + edi - 0x4038]
push ecx
push dword [ebp + 8]
mov eax, esi
sub eax, edi
call fcn.100252f4
test eax, eax
pop ecx
pop ecx
je 0x10025aa1
mov edi, 0x1004d198
cmp dword [ebp + 0x10], edi
mov byte [ebp - 0x14], 1
mov byte [ebp - 0x13], 0x82
mov byte [ebp - 0x12], 0xfc
mov byte [ebp - 0x11], 0x82
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xe], bl
mov byte [ebp - 0xd], bl
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], 0x79
mov byte [ebp - 7], 0x7d
mov byte [ebp - 6], 0x3e
mov byte [ebp - 5], 0x49
mov byte [ebp - 4], bl
mov byte [ebp - 3], bl
jne 0x10025681
cmp dword [ebp + 0x14], ebx
je 0x10025681
cmp esi, 0x12
jne 0x10025681
push 4
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x4038]
push eax
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x10025681
push 4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x402c]
push eax
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x10025681
mov ax, word [ebp - 0x4028]
push 4
mov word [0x1004d1ca], ax
lea eax, [ebp - 0x402c]
push 0x1004d188
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 2
lea eax, [ebp - 0x4028]
push 0x1004d1c8
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
cmp dword [ebp + 0x10], edi
mov byte [ebp - 0x14], 1
mov byte [ebp - 0x13], 0xc3
mov byte [ebp - 0x12], bl
mov byte [ebp - 0x11], bl
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xe], bl
mov byte [ebp - 0xd], bl
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], 0x79
mov byte [ebp - 7], 0x7d
mov byte [ebp - 6], 0x3e
mov byte [ebp - 5], 0x49
mov byte [ebp - 4], bl
mov byte [ebp - 3], bl
mov byte [ebp - 2], bl
jne 0x1002573a
cmp dword [ebp + 0x14], ebx
je 0x1002573a
cmp esi, 0x13
jne 0x1002573a
push 2
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x4038]
push eax
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x1002573a
push 4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x402c]
push eax
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x1002573a
mov ax, word [ebp - 0x4028]
push 4
mov word [0x1004d1f2], ax
lea eax, [ebp - 0x402c]
push 0x1004d188
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 2
lea eax, [ebp - 0x4028]
push 0x1004d1f0
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
cmp dword [ebp + 0x10], edi
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 0x8e
mov byte [ebp - 0x2e], 0x87
mov byte [ebp - 0x2d], 0x8f
mov byte [ebp - 0x2c], bl
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], bl
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x79
mov byte [ebp - 0x27], 0x7d
mov byte [ebp - 0x26], 0x3e
mov byte [ebp - 0x25], 0x49
mov byte [ebp - 0x24], 0x68
mov byte [ebp - 0x23], 0x42
jne 0x100257e7
cmp dword [ebp + 0x14], ebx
je 0x100257e7
cmp esi, 0xe
jne 0x100257e7
push 4
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x4038]
push eax
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x100257e7
push 6
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x4030]
push eax
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x100257e7
mov ax, word [ebp - 0x402c]
push 4
mov word [0x1004d242], ax
lea eax, [ebp - 0x4030]
push 0x1004d188
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 2
lea eax, [ebp - 0x402c]
push 0x1004d240
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
cmp dword [ebp + 0x10], 0x1004d238
mov byte [ebp - 0x18], 0x33
mov byte [ebp - 0x17], 0xfe
mov byte [ebp - 0x16], 0x81
mov byte [ebp - 0x15], 2
mov byte [ebp - 0x14], 0x1a
mov byte [ebp - 0x13], 0xcc
mov byte [ebp - 0x12], 0x89
mov byte [ebp - 0x11], 0x2c
mov byte [ebp - 0x10], 0x1a
mov byte [ebp - 0xf], 0xcc
mov byte [ebp - 0xe], 0x8d
mov byte [ebp - 0xd], 0x2c
mov byte [ebp - 0xc], 0x1d
mov byte [ebp - 0xb], 0xcc
mov byte [ebp - 0xa], 0x96
mov byte [ebp - 9], 0x35
mov byte [ebp - 8], 0x18
mov byte [ebp - 7], 0xfe
mov byte [ebp - 6], 0x38
mov byte [ebp - 5], 0x3c
mov byte [ebp - 4], 0x2b
mov byte [ebp - 3], 0xfe
mov byte [ebp - 2], 0xb8
mov byte [ebp - 1], 2
jne 0x100258ed
cmp dword [ebp + 0x14], ebx
je 0x100258ed
cmp esi, 0x18
jne 0x100258ed
push esi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x4038]
push eax
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x100258ed
mov eax, dword [ebp - 0x4026]
xor eax, 0x2b8
mov edi, str.127.0.0.1
push edi
mov word [0x1004d26a], ax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
add esi, 0xb
mov eax, esi
xor eax, 0xfe2b
mov word [ebp - 0x4038], ax
push edi
lea eax, [ebp - 0x4034]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ax, word [0x1004d268]
mov word [ebp + esi - 0x403e], ax
push 4
pop eax
cmp esi, eax
mov dword [ebp + esi - 0x403c], ebx
jle 0x100258ed
mov ecx, eax
and ecx, 3
mov cl, byte [ebp + ecx - 0x1c]
xor byte [ebp + eax - 0x4038], cl
inc eax
cmp eax, esi
jl 0x100258d8
cmp dword [ebp + 0x10], 0x1004d238
mov byte [ebp - 0x18], 0x33
mov byte [ebp - 0x17], 0xfe
mov byte [ebp - 0x16], 0xfe
mov byte [ebp - 0x15], 2
mov byte [ebp - 0x14], 0x1a
mov byte [ebp - 0x13], 0xcc
mov byte [ebp - 0x12], 0x89
mov byte [ebp - 0x11], 0x2c
mov byte [ebp - 0x10], 0x1a
mov byte [ebp - 0xf], 0xcc
mov byte [ebp - 0xe], 0x8d
mov byte [ebp - 0xd], 0x2c
mov byte [ebp - 0xc], 0x1d
mov byte [ebp - 0xb], 0xcc
mov byte [ebp - 0xa], 0x96
mov byte [ebp - 9], 0x35
mov byte [ebp - 8], 0x18
mov byte [ebp - 7], 0xfe
mov byte [ebp - 6], 0x38
mov byte [ebp - 5], 0x3c
mov byte [ebp - 4], 0x2b
mov byte [ebp - 3], 0xfe
mov byte [ebp - 2], 0xb8
mov byte [ebp - 1], 2
jne 0x10025a00
cmp dword [ebp + 0x14], ebx
je 0x10025a00
cmp esi, 0x18
jne 0x10025a00
push 0x14
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x4038]
push eax
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x10025a00
mov eax, dword [ebp - 0x4026]
mov edi, dword [ebp - 0x4024]
xor edi, dword [ebp - 0x1c]
xor eax, 0x2b8
push str.127.0.0.1
mov word [0x1004d292], ax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
add esi, 0xb
mov eax, esi
xor eax, 0xfe2b
mov word [ebp - 0x4038], ax
push str.127.0.0.1
lea eax, [ebp - 0x4034]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ax, word [0x1004d290]
mov word [ebp + esi - 0x403e], ax
push 4
pop eax
cmp esi, eax
mov dword [ebp + esi - 0x403c], edi
jle 0x10025a00
mov ecx, eax
and ecx, 3
mov cl, byte [ebp + ecx - 0x1c]
xor byte [ebp + eax - 0x4038], cl
inc eax
cmp eax, esi
jl 0x100259eb
mov eax, dword [ebp + 0x10]
cmp dword [eax], 2
jne 0x10025a71
mov eax, dword [ebp - 0x4036]
xor eax, dword [ebp - 0x4038]
cmp ax, 0x5b
jne 0x10025a71
movzx eax, byte [ebp - 0x402a]
cmp eax, ebx
lea edi, [ebp - 0x4029]
jle 0x10025a40
mov dword [ebp - 0x20], eax
inc edi
inc edi
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
dec dword [ebp - 0x20]
lea edi, [edi + eax + 0xf]
jne 0x10025a2e
lea eax, [edi + 4]
push 4
mov dword [ebp - 0x20], eax
mov ax, word [eax]
push 0x1004d188
push edi
mov word [0x1004d21a], ax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 2
push 0x1004d218
push dword [ebp - 0x20]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x4038]
push eax
push dword [ebp + 0xc]
mov eax, esi
call fcn.100252b4
test eax, eax
pop ecx
pop ecx
je 0x10025aa1
lea eax, [ebp - 0x34]
push eax
push 0x4004667f
push dword [ebp + 8]
call sub.WS2_32.dll_ioctlsocket
test eax, eax
je 0x10025506
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
lea eax, [ebp + 0x10]
push eax
mov esi, 0x8004667e
push esi
push dword [ebp + 8]
xor edi, edi
inc edi
mov dword [ebp + 0x10], edi
call sub.WS2_32.dll_ioctlsocket
test eax, eax
jne 0x10025aa1
push 2
push edi
lea eax, [ebp - 0x4038]
push eax
push dword [ebp + 8]
call sub.WS2_32.dll_recv
mov edi, eax
cmp edi, 0xffffffff
jne 0x10025aeb
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x10025aeb
xor edi, edi
lea eax, [ebp + 0x10]
push eax
push esi
push dword [ebp + 8]
mov dword [ebp + 0x10], ebx
call sub.WS2_32.dll_ioctlsocket
test eax, eax
jne 0x10025aa1
cmp edi, ebx
setne al
jmp 0x10025aa3