Function at 0x4175a0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51f113
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x78
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 1
cmp byte [ebx + 8], 2
jne 0x4177f6
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebx + 8]
call fcn.0047d1c0
mov edx, ecx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x30], edx
movzx eax, byte [edx]
mov ecx, eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], connect
sub ecx, 1
je 0x417656
sub ecx, 1
je 0x41764b
mov dword [ebp - 0x24], connect
sub eax, 1
je 0x417656
sub eax, 1
je 0x41764b
mov dword [ebp - 0x24], 1
jmp 0x41765e
mov eax, dword [edx + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x28], eax
jmp 0x41765e
mov eax, dword [edx + 8]
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x40]
call fcn.0047ccf0
test al, al
je 0x4177f6
lea ecx, [ebp - 0x40]
call fcn.0047ce00
movaps xmm0, xmmword [0x543aa0]
mov edi, eax
mov word [ebp - 0x52], 0x8d86
xor ecx, ecx
movups xmmword [ebp - 0x50], xmm0
nop
mov al, cl
sub al, 0x15
xor byte [ebp + ecx - 0x52], al
inc ecx
cmp ecx, 9
jb 0x417690
mov dword [0x5585e0], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x52]
mov byte [ebp - 0x49], 0
movups xmmword [ebp - 0x6c], xmm0
mov dword [ebp - 0x5c], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x58], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4176c3
sub ecx, edx
lea eax, [ebp - 0x52]
push ecx
push eax
lea ecx, [ebp - 0x6c]
call fcn.00402b20
mov byte [ebp - 4], 2
lea eax, [ebp - 0x6c]
cmp dword [ebp - 0x58], 0x10
mov ecx, edi
cmovae eax, dword [ebp - 0x6c]
push eax
call fcn.00483b70
lea ecx, [ebp - 0x84]
push ecx
mov ecx, eax
call fcn.00483cb0
cmp dword [ebx + 0x2c], 0x10
lea ecx, [ebx + 0x18]
cmovae ecx, dword [ebx + 0x18]
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x417714
mov eax, dword [eax]
push dword [ebx + 0x28]
push ecx
mov ecx, eax
call fcn.0048f820
mov ecx, dword [ebp - 0x70]
add esp, 8
mov byte [ebp - 0x11], al
cmp ecx, 0x10
jb 0x41775c
mov edx, dword [ebp - 0x84]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x417752
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417894
push ecx
push edx
call fcn.004f7c11
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0xf
mov byte [ebp - 0x84], 0
cmp ecx, 0x10
jb 0x4177a9
mov edx, dword [ebp - 0x6c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41779f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417894
push ecx
push edx
call fcn.004f7c11
add esp, 8
cmp byte [ebp - 0x11], 0
jne 0x41783f
mov eax, dword [ebp - 0x40]
movzx eax, byte [eax]
sub eax, 1
je 0x4177ce
sub eax, 1
je 0x4177c8
inc dword [ebp - 0x34]
jmp 0x4177e2
add dword [ebp - 0x38], 0x10
jmp 0x4177e2
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], eax
call fcn.00481040
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x40]
call fcn.0047ccf0
test al, al
jne 0x417672
xorps xmm0, xmm0
lea ecx, [ebx + 8]
movq qword [esi + 8], xmm0
mov byte [esi], 5
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call fcn.0047d5c0
mov ecx, dword [ebx + 0x2c]
cmp ecx, 0x10
jb 0x41787f
mov edx, dword [ebx + 0x18]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x417875
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417894
jmp 0x417875
push edi
mov ecx, esi
call fcn.0047d620
lea ecx, [ebx + 8]
call fcn.0047d5c0
mov ecx, dword [ebx + 0x2c]
cmp ecx, 0x10
jb 0x41787f
mov edx, dword [ebx + 0x18]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x417875
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417894
push ecx
push edx
call fcn.004f7c11
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004fceb0
int3