Function at 0x41fc48
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
add eax, 0xa
push 8
cdq
pop ecx
idiv ecx
mov ebx, edx
test ebx, ebx
je 0x41fc69
push ecx
pop eax
sub eax, ebx
mov ebx, eax
mov edi, dword [sym.imp.MSVCRT.dll_rand]
call edi
and al, 0xf8
push 1
or al, bl
pop esi
mov byte [ebp - 0xc], al
mov eax, ebx
dec ebx
test eax, eax
je 0x41fc8d
inc ebx
call edi
mov byte [ebp + esi - 0xc], al
inc esi
dec ebx
jne 0x41fc83
mov ebx, dword [ebp + 0x24]
push dword [ebp + 0x18]
xor eax, eax
lea edi, [ebp - 0x14]
and dword [ebx], 0
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 4], eax
call dword [sym.imp.WS2_32.dll_htonl]
mov edi, eax
mov al, byte [ebp + 0x10]
mov byte [ebp - 0x44], al
lea eax, [ebp - 0x44]
push 5
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x43], edi
push eax
call fcn.0041feac
lea eax, [ebp - 0x36]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0x14]
push edi
call fcn.00420c2d
mov al, byte [ebp + 0x14]
push 5
mov byte [ebp - 0x41], al
lea eax, [ebp - 0x41]
push eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x40], edi
call fcn.0041feac
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp - 0x36]
add esp, 0x28
xor edi, edi
sub eax, ecx
lea ecx, [ebp + edi - 0x36]
mov dl, byte [eax + ecx]
xor dl, byte [ecx]
xor byte [ebp + edi - 0x24], dl
inc edi
cmp edi, 0x10
jb 0x41fcf9
lea edi, [ebp - 0x14]
mov dword [ebp + 0x10], 1
sub edi, dword [ebp + 0x20]
mov dword [ebp + 0x14], edi
cmp esi, 8
jge 0x41fd32
call dword [sym.imp.MSVCRT.dll_rand]
mov byte [ebp + esi - 0xc], al
inc esi
inc dword [ebp + 0x10]
cmp esi, 8
jne 0x41fd8f
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0xc]
xor esi, esi
sub ecx, eax
lea eax, [ebp + esi - 0xc]
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc esi
cmp esi, 8
jl 0x41fd3e
push dword [ebp + 0x20]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00420b85
mov eax, dword [ebp + 0x20]
add esp, 0xc
mov dword [ebp + 0x24], edi
push 8
pop esi
mov cl, byte [edi + eax]
xor byte [eax], cl
inc eax
dec esi
jne 0x41fd69
lea esi, [ebp - 0xc]
lea edi, [ebp - 0x14]
add dword [ebx], 8
mov ecx, dword [ebp + 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor esi, esi
sub dword [ebp + 0x14], 8
mov edi, dword [ebp + 0x14]
mov dword [ebp - 4], ecx
mov dword [ebp + 0x20], eax
cmp dword [ebp + 0x10], 2
jle 0x41fd1c
cmp dword [ebp + 0xc], 0
je 0x41fe23
lea edi, [ebp - 0x14]
sub edi, dword [ebp + 0x20]
mov dword [ebp + 0x10], edi
cmp esi, 8
jge 0x41fdc0
mov eax, dword [ebp + 8]
inc esi
inc dword [ebp + 8]
dec dword [ebp + 0xc]
mov al, byte [eax]
cmp esi, 8
mov byte [ebp + esi - 0xd], al
jne 0x41fe1d
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0xc]
xor esi, esi
sub ecx, eax
lea eax, [ebp + esi - 0xc]
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc esi
cmp esi, 8
jl 0x41fdcc
push dword [ebp + 0x20]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00420b85
mov eax, dword [ebp + 0x20]
add esp, 0xc
mov dword [ebp + 0x24], edi
push 8
pop esi
mov cl, byte [edi + eax]
xor byte [eax], cl
inc eax
dec esi
jne 0x41fdf7
lea esi, [ebp - 0xc]
lea edi, [ebp - 0x14]
add dword [ebx], 8
mov ecx, dword [ebp + 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor esi, esi
sub dword [ebp + 0x10], 8
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], ecx
mov dword [ebp + 0x20], eax
cmp dword [ebp + 0xc], 0
jne 0x41fda8
lea edi, [ebp - 0x14]
mov dword [ebp + 0x10], 1
sub edi, dword [ebp + 0x20]
mov dword [ebp + 0xc], edi
cmp esi, 8
jge 0x41fe44
and byte [ebp + esi - 0xc], 0
inc esi
inc dword [ebp + 0x10]
cmp esi, 8
jne 0x41fea1
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0xc]
xor esi, esi
sub ecx, eax
lea eax, [ebp + esi - 0xc]
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc esi
cmp esi, 8
jl 0x41fe50
push dword [ebp + 0x20]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00420b85
mov eax, dword [ebp + 0x20]
add esp, 0xc
mov dword [ebp + 0x24], edi
push 8
pop esi
mov cl, byte [edi + eax]
xor byte [eax], cl
inc eax
dec esi
jne 0x41fe7b
lea esi, [ebp - 0xc]
lea edi, [ebp - 0x14]
add dword [ebx], 8
mov ecx, dword [ebp + 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor esi, esi
sub dword [ebp + 0xc], 8
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov dword [ebp + 0x20], eax
cmp dword [ebp + 0x10], 7
jle 0x41fe33
pop edi
pop esi
pop ebx
leave
ret