Function at 0x41aef0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7f74a0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x3e8
mov eax, dword [0x90df34]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3e0], edx
push ecx
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.004056a0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
push eax
push ecx
lea ecx, [ebp - 0x5c]
call fcn.0041f750
push fcn.00403a60
push 1
push 0x18
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
call fcn.0059a8a6
lea ecx, [ebp - 0x3c8]
call fcn.0069a270
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x3c8]
call fcn.0069af70
lea eax, [ebp - 0x3d8]
mov dword [ebp - 0x3d8], 0x32
push eax
lea ecx, [ebp - 0x3c8]
mov word [ebp - 0x3d4], 1
mov byte [ebp - 0x3d2], 7
call fcn.0069afe0
lea eax, [ebp - 0x3cd]
mov byte [ebp - 0x3cd], 0
push eax
lea ecx, [ebp - 0x3c8]
call fcn.0069afa0
lea eax, [ebp - 0x3d8]
mov dword [ebp - 0x3d8], 0xf4240
push eax
lea ecx, [ebp - 0x3c8]
mov dword [ebp - 0x3d4], 0
call fcn.0069af40
cmp byte [0x8d2c1f], 0
mov esi, 5
mov eax, dword [0x8d2c18]
mov ecx, dword [0x8d2c1c]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x18021f4]
lea edi, [esi + 0x1a]
mov dword [ebp - 0x18], ecx
je 0x41b17a
xor edx, edx
mov dword [ebp - 0x3cc], edx
cmp eax, 2
jl 0x41b140
movaps xmm2, xmmword [0x8d6c60]
movaps xmm4, xmmword [0x8d6d00]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm1, xmm4
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
movd xmm5, esi
psrad xmm1, xmm5
movd xmm6, edi
movaps xmm0, xmm1
psrld xmm0, xmm6
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x8d6c90]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x8d6c70]
paddd xmm2, xmmword [0x8d6c60]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x8d6cc0]
movd xmm0, dword [0x8d2c18]
packuswb xmm1, xmm1
paddb xmm1, xmmword [0x8d6ce0]
pxor xmm1, xmm0
movaps xmm0, xmm2
movd dword [ebp - 0x1c], xmm1
movaps xmm1, xmm2
punpckldq xmm1, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm1, xmm4
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm6
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x8d6c90]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x8d6cc0]
packuswb xmm1, xmm1
paddb xmm1, xmmword [0x8d6ce0]
movd xmm0, ecx
pxor xmm1, xmm0
movd dword [ebp - 0x18], xmm1
jmp 0x41b17a
mov eax, 0x8d3dcb09
imul edx
add edx, dword [ebp - 0x3cc]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0x3cc]
movsx eax, al
mov cl, dl
imul eax, eax, 0x3a
sub cl, al
add cl, 0x33
xor byte [ebp + edx - 0x1c], cl
inc edx
mov dword [ebp - 0x3cc], edx
cmp edx, 8
jl 0x41b140
lea edx, [ebx + 8]
lea ecx, [ebp - 0x40]
call fcn.0041f1d0
mov esi, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0xb0], 0
lea edx, [ecx + 1]
mov dword [ebp - 0xac], 0xf
mov byte [ebp - 0xc0], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41b1b0
sub ecx, edx
lea eax, [ebp - 0x1c]
push ecx
push eax
lea ecx, [ebp - 0xc0]
call fcn.00405b40
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0xa8], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x98], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x41b23d
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41b233
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b65d
push edx
push ecx
call fcn.0059a5db
add esp, 8
mov ax, word [0x8d2c14]
xor edx, edx
movq xmm0, qword [0x8d2c0c]
mov word [ebp - 0x20], ax
mov al, byte [0x8d2c16]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
movq qword [ebp - 0x28], xmm0
mov byte [ebp - 0x1e], al
mov dword [ebp - 0x3cc], edx
nop word [eax + eax]
mov eax, 0x8d3dcb09
imul edx
add edx, dword [ebp - 0x3cc]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0x3cc]
movsx eax, al
mov cl, dl
imul eax, eax, 0x3a
sub cl, al
add cl, 0x33
xor byte [ebp + edx - 0x28], cl
inc edx
mov dword [ebp - 0x3cc], edx
cmp edx, 0xb
jl 0x41b280
xor edx, edx
lea eax, [ebp - 0x28]
cmp dword [0x18021f4], 2
lea edi, [ebp - 0x138]
mov ecx, 0x1d
mov dword [ebp - 0x3dc], eax
mov esi, 0x8d2b98
mov dword [ebp - 0x3cc], edx
rep movsd dword es:[edi], dword [esi]
jl 0x41b450
movaps xmm0, xmmword [0x8d6ce0]
mov eax, 5
movaps xmm4, xmmword [0x8d6c60]
movaps xmm3, xmmword [0x8d6d00]
movaps xmm6, xmmword [0x8d6c90]
movd xmm5, eax
mov eax, 0x1f
movaps xmmword [ebp - 0x3f0], xmm0
mov ecx, dword [ebp - 0x3f0]
movd xmm7, eax
nop word [eax + eax]
movd xmm0, edx
lea eax, [edx + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x8d6cc0]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [ebp + edx - 0x138]
pxor xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movd dword [ebp + edx - 0x138], xmm1
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckldq xmm1, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x8d6cc0]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [ebp + edx - 0x134]
pxor xmm1, xmm0
movd dword [ebp + edx - 0x134], xmm1
add edx, 8
cmp edx, 0x70
jl 0x41b330
mov dword [ebp - 0x3cc], edx
cmp edx, 0x74
jge 0x41b48d
nop word [eax + eax]
mov eax, 0x8d3dcb09
imul edx
add edx, dword [ebp - 0x3cc]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0x3cc]
movsx eax, al
mov cl, dl
imul eax, eax, 0x3a
sub cl, al
add cl, 0x33
xor byte [ebp + edx - 0x138], cl
inc edx
mov dword [ebp - 0x3cc], edx
cmp edx, 0x74
jl 0x41b450
lea eax, [ebp - 0x138]
mov dword [ebp - 0x3cc], eax
lea ecx, [ebp - 0x90]
lea eax, [ebp - 0x3cc]
push eax
lea eax, [ebp - 0x3dc]
push eax
call fcn.0041d560
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xc0]
push eax
push ecx
lea ecx, [ebp - 0x3d8]
call fcn.0041d290
push eax
lea ecx, [ebp - 0x3c8]
mov byte [ebp - 4], 9
call fcn.0069aa80
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x3d8]
mov esi, dword [ebp - 0x3d8]
push dword [esi + 4]
call fcn.0041d510
mov eax, dword [ebp - 0x3d8]
push 0x40
mov dword [eax + 4], esi
mov eax, dword [ebp - 0x3d8]
mov dword [eax], esi
mov eax, dword [ebp - 0x3d8]
mov dword [eax + 8], esi
push dword [ebp - 0x3d8]
mov dword [ebp - 0x3d4], 0
call fcn.0059a5db
add esp, 8
mov byte [ebp - 4], 4
lea eax, [ebp - 0xc0]
push fcn.0041f780
push 2
push 0x30
push eax
call fcn.0059a8a6
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x3c8]
call fcn.0069aa30
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x1b8], 0
jne 0x41b5ad
mov eax, dword [ebp - 0x210]
add eax, 0xffffff38
cmp eax, 6
ja 0x41b5ad
cmp dword [ebp - 0x1d4], 0x10
lea esi, [ebp - 0x1e8]
cmovae esi, dword [ebp - 0x1e8]
mov edx, esi
lea edi, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x41b590
mov ecx, dword [ebp - 0x3e0]
sub edx, edi
push edx
push esi
call fcn.00405b40
mov esi, 1
jmp 0x41b5af
xor esi, esi
lea ecx, [ebp - 0x218]
call fcn.0041a700
lea ecx, [ebp - 0x3c8]
call fcn.0041a110
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x41b5f5
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41b5eb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b662
push edx
push ecx
call fcn.0059a5db
add esp, 8
mov edx, dword [ebx + 0x1c]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
cmp edx, 8
jb 0x41b63d
mov ecx, dword [ebx + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41b633
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b667
push edx
push ecx
call fcn.0059a5db
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0059a3cf
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.006a7c79
call fcn.006a7c79
call fcn.006a7c79
int3