Function at 0x41e7c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7f5860
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x908074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
movups xmm0, xmmword [0x8cdd0c]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [0x8cdd1c]
movq qword [ebp - 0x30], xmm0
cmp word [0x8cdd22], ax
je 0x41e961
xor esi, esi
cmp dword [0x17f9f7c], 2
jl 0x41e930
movaps xmm2, xmmword [0x8d1650]
mov eax, 5
movaps xmm4, xmmword [0x8d1710]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
mov esi, 8
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
movd xmm5, eax
psrad xmm1, xmm5
mov eax, 0x1f
movaps xmm0, xmm1
movd xmm6, eax
mov eax, 0x8cdd0c
psrld xmm0, xmm6
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x8d1680]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x8d1660]
paddd xmm2, xmmword [0x8d1650]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
paddw xmm1, xmmword [0x8d16b0]
movq xmm0, qword [eax]
pxor xmm1, xmm0
movaps xmm0, xmm2
movq qword [ebp - 0x40], xmm1
movaps xmm1, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm6
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x8d1680]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, qword [ebp - 0x38]
paddw xmm1, xmmword [0x8d16b0]
pxor xmm1, xmm0
movq qword [ebp - 0x38], xmm1
nop
mov eax, 0x92492493
mov ecx, 1
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
lea eax, [ecx*8]
sub eax, ecx
lea eax, [esi + eax*8]
xor word [ebp + esi*2 - 0x40], ax
inc esi
cmp esi, 0xc
jl 0x41e930
cmp dword [0x1803eac], 8
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
mov edx, 0x1803e98
cmovae edx, dword [0x1803e98]
mov ecx, 0x80000001
push eax
call fcn.00410930
mov eax, dword [0x8cde18]
add esp, 8
cmp word [0x8cde1a], 0
mov dword [ebp - 0x44], eax
je 0x41e9d1
xor esi, esi
nop dword [eax]
mov eax, 0x92492493
mov ecx, 1
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
lea eax, [ecx*8]
sub eax, ecx
lea eax, [esi + eax*8]
xor word [ebp + esi*2 - 0x44], ax
inc esi
cmp esi, 2
jl 0x41e9a0
sub esp, 0x18
lea ecx, [ebp - 0x44]
mov edx, esp
mov dword [ebp - 0x48], esp
xor eax, eax
lea esi, [ecx + 2]
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41e9f2
sub ecx, esi
lea eax, [ebp - 0x44]
sar ecx, 1
push ecx
push eax
mov ecx, edx
call fcn.0040db70
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
push 0x17f09a0
call fcn.00404170
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0
call fcn.004117d0
add esp, 0x30
mov byte [ebp - 4], 2
cmp word [0x8cde1a], 0
mov eax, dword [0x8cde18]
mov dword [ebp - 0x44], eax
je 0x41ea81
xor esi, esi
nop word [eax + eax]
mov eax, 0x92492493
mov ecx, 1
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
lea eax, [ecx*8]
sub eax, ecx
lea eax, [esi + eax*8]
xor word [ebp + esi*2 - 0x44], ax
inc esi
cmp esi, 2
jl 0x41ea50
sub esp, 0x18
lea ecx, [ebp - 0x44]
mov edx, esp
mov dword [ebp - 0x48], esp
xor eax, eax
lea esi, [ecx + 2]
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41eaa2
sub ecx, esi
lea eax, [ebp - 0x44]
sar ecx, 1
push ecx
push eax
mov ecx, edx
call fcn.0040db70
sub esp, 0x18
mov byte [ebp - 4], 3
mov ecx, esp
push 0x1803e08
call fcn.00404170
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 2
call fcn.004117d0
mov ecx, dword [ebp - 0x5c]
mov eax, 0x2aaaaaab
sub ecx, dword [ebp - 0x60]
add esp, 0x30
imul ecx
mov ecx, dword [ebp - 0x50]
mov eax, 0x2aaaaaab
sub ecx, dword [ebp - 0x54]
sar edx, 2
mov esi, edx
shr esi, 0x1f
add esi, edx
imul ecx
mov dword [ebp - 0x44], esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jne 0x41ebc3
lea eax, [esi - 1]
xor edi, edi
test eax, eax
je 0x41eb68
xor esi, esi
mov eax, dword [ebp - 0x60]
add eax, esi
cmp dword [eax + 0x14], 8
jb 0x41eb30
mov eax, dword [eax]
push eax
call fcn.006c0a91
mov ecx, dword [ebp - 0x54]
add esp, 4
add ecx, esi
mov dword [ebp - 0x48], eax
cmp dword [ecx + 0x14], 8
jb 0x41eb49
mov ecx, dword [ecx]
push ecx
call fcn.006c0a91
add esp, 4
cmp dword [ebp - 0x48], eax
jg 0x41ebbc
jl 0x41ebc3
mov eax, dword [ebp - 0x44]
inc edi
dec eax
add esi, 0x18
cmp edi, eax
jb 0x41eb23
mov esi, dword [ebp - 0x44]
mov eax, dword [ebp - 0x60]
lea esi, [esi + esi*2]
shl esi, 3
add eax, 0xffffffe8
add eax, esi
cmp dword [eax + 0x14], 8
jb 0x41eb7e
mov eax, dword [eax]
push eax
call fcn.006c0a91
mov ecx, dword [ebp - 0x54]
add esp, 4
add ecx, 0xffffffe8
mov edi, eax
add ecx, esi
cmp dword [ecx + 0x14], 8
jb 0x41eb99
mov ecx, dword [ecx]
push ecx
call fcn.006c0a91
add esp, 4
cmp edi, eax
jl 0x41ebc3
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [0x80f6b8]
test eax, eax
je 0x41ebc3
mov esi, 1
jmp 0x41ebc5
xor esi, esi
lea ecx, [ebp - 0x54]
call fcn.0040a100
lea ecx, [ebp - 0x60]
call fcn.0040a100
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x41ec0b
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41ec01
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41ec28
push edx
push ecx
call fcn.00479a82
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 - 0x10]
xor ecx, ebp
call fcn.00479846
mov esp, ebp
pop ebp
ret
call fcn.006ba549
int3