Function at 0x41b680
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x426014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, 0x4225cc
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
cmp edi, 0x10
mov dword [ebp - 0x90], eax
mov eax, 0x4225bc
cmovne eax, ecx
mov dword [ebp - 0x9c], edi
xor ebx, ebx
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], eax
test edi, edi
jle 0x41b716
lfence
mov eax, dword [ebp + 0xc]
movsx esi, word [eax + ebx*2]
mov ecx, esi
sar ecx, 8
lea eax, [ecx + ecx]
shl ecx, 8
movsx edx, word [eax + 0x4225d8]
sub esi, ecx
movsx eax, word [eax + 0x4225da]
sub eax, edx
shl edx, 8
imul esi, eax
mov eax, dword [ebp - 0x94]
movzx eax, byte [ebx + eax]
add esi, edx
sar esi, 3
inc ebx
inc esi
sar esi, 1
mov dword [ebp + eax*4 - 0x44], esi
cmp ebx, edi
jl 0x41b6d1
mov ebx, edi
lea eax, [ebp - 0x44]
sar ebx, 1
push ebx
push eax
lea eax, [ebp - 0x68]
mov dword [ebp - 0x94], ebx
push eax
call fcn.0041bbc0
push ebx
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.0041bbc0
add esp, 0x18
xor esi, esi
test ebx, ebx
jle 0x41b784
lea ebx, [ebp + edi*4 - 0x48]
mov edi, dword [ebp - 0x94]
mov edx, dword [ebp + esi*4 - 0x64]
lea ebx, [ebx - 4]
add edx, dword [ebp + esi*4 - 0x68]
mov ecx, dword [ebp + esi*4 - 0x88]
sub ecx, dword [ebp + esi*4 - 0x8c]
lea eax, [ecx + edx]
sub ecx, edx
neg eax
mov dword [ebp + esi*4 - 0x44], eax
inc esi
mov dword [ebx + 4], ecx
cmp esi, edi
jl 0x41b752
mov edi, dword [ebp - 0x9c]
mov dword [ebp - 0x94], 0
nop
xor esi, esi
xor ebx, ebx
test edi, edi
jle 0x41b7c6
mov eax, dword [ebp + ebx*4 - 0x44]
cdq
xor eax, edx
sub eax, edx
cmp eax, esi
mov edx, eax
mov eax, ebx
cmovle eax, dword [ebp - 0x98]
cmovle edx, esi
inc ebx
mov dword [ebp - 0x98], eax
mov esi, edx
cmp ebx, edi
jl 0x41b798
mov dword [ebp - 0x98], eax
jmp 0x41b7cc
mov eax, dword [ebp - 0x98]
sar esi, 4
inc esi
sar esi, 1
cmp esi, 0x7fff
jle 0x41b939
lea ecx, [eax + 1]
mov edx, 0x27ffe
cmp esi, edx
mov eax, 0x7fff
lfence
cmovl edx, esi
imul ecx, edx
sub eax, edx
shl eax, 0xe
cdq
sar ecx, 2
idiv ecx
add eax, 0xffbe
push eax
lea eax, [ebp - 0x44]
push edi
push eax
call fcn.0041bfc0
mov eax, dword [ebp - 0x94]
add esp, 0xc
inc eax
mov dword [ebp - 0x94], eax
cmp eax, 0xa
jl 0x41b790
jne 0x41b939
xor ecx, ecx
test edi, edi
jle 0x41ba4d
mov ebx, dword [ebp - 0x90]
cmp edi, 8
jb 0x41b8fa
lea eax, [ebp + edi*4 - 0x48]
lea edx, [ebx - 2]
lea edx, [edx + edi*2]
cmp ebx, eax
ja 0x41b862
lea eax, [ebp - 0x44]
cmp edx, eax
jae 0x41b8fa
movaps xmm2, xmmword [0x41fdf0]
mov eax, 4
mov edx, edi
and edx, 0xfffffff8
movd xmm1, eax
mov eax, 1
movd xmm3, eax
mov eax, 5
movd xmm4, eax
nop dword [eax]
movups xmm0, xmmword [ebp + ecx*4 - 0x44]
psrad xmm0, xmm1
paddd xmm0, xmm2
psrad xmm0, xmm3
packssdw xmm0, xmm0
movq qword [ebx + ecx*2], xmm0
punpcklwd xmm0, xmm0
psrad xmm0, 0x10
pslld xmm0, xmm4
movups xmmword [ebp + ecx*4 - 0x44], xmm0
movups xmm0, xmmword [ebp + ecx*4 - 0x34]
psrad xmm0, xmm1
paddd xmm0, xmm2
psrad xmm0, xmm3
packssdw xmm0, xmm0
movq qword [ebx + ecx*2 + 8], xmm0
punpcklwd xmm0, xmm0
psrad xmm0, 0x10
pslld xmm0, xmm4
movups xmmword [ebp + ecx*4 - 0x34], xmm0
add ecx, 8
mov eax, ecx
cmp ecx, edx
jl 0x41b890
cmp eax, edi
jge 0x41ba53
mov edx, 0xffff8000
nop
mov eax, dword [ebp + ecx*4 - 0x44]
sar eax, 4
inc eax
sar eax, 1
cmp eax, 0x7fff
jle 0x41b918
mov eax, 0x7fff
jmp 0x41b920
cmp eax, 0xffff8000
cmovl eax, edx
movzx eax, ax
mov word [ebx + ecx*2], ax
cwde
shl eax, 5
mov dword [ebp + ecx*4 - 0x44], eax
inc ecx
cmp ecx, edi
jl 0x41b900
jmp 0x41ba53
xor ecx, ecx
test edi, edi
jle 0x41ba4d
mov ebx, dword [ebp - 0x90]
cmp edi, 0x10
jb 0x41ba38
lea eax, [ebp + edi*4 - 0x48]
lea edx, [ebx - 2]
lea edx, [edx + edi*2]
cmp ebx, eax
ja 0x41b96b
lea eax, [ebp - 0x44]
cmp edx, eax
jae 0x41ba38
movaps xmm2, xmmword [0x41fdf0]
mov eax, 4
mov esi, edi
and esi, 0xfffffff0
movd xmm1, eax
mov eax, 1
movd xmm3, eax
lea eax, [ebx + 0x10]
nop dword [eax]
movups xmm0, xmmword [ebp + ecx*4 - 0x44]
lea eax, [eax + 0x20]
psrad xmm0, xmm1
paddd xmm0, xmm2
psrad xmm0, xmm3
pshuflw xmm0, xmm0, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm0, xmm0, 0xd8
movq qword [eax - 0x30], xmm0
movups xmm0, xmmword [ebp + ecx*4 - 0x34]
psrad xmm0, xmm1
paddd xmm0, xmm2
psrad xmm0, xmm3
pshuflw xmm0, xmm0, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm0, xmm0, 0xd8
movq qword [eax - 0x28], xmm0
movups xmm0, xmmword [ebp + ecx*4 - 0x24]
psrad xmm0, xmm1
paddd xmm0, xmm2
psrad xmm0, xmm3
pshuflw xmm0, xmm0, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm0, xmm0, 0xd8
movq qword [eax - 0x20], xmm0
movups xmm0, xmmword [ebp + ecx*4 - 0x14]
add ecx, 0x10
mov edx, ecx
psrad xmm0, xmm1
paddd xmm0, xmm2
psrad xmm0, xmm3
pshuflw xmm0, xmm0, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm0, xmm0, 0xd8
movq qword [eax - 0x18], xmm0
cmp ecx, esi
jl 0x41b990
cmp edx, edi
jge 0x41ba53
mov eax, dword [ebp + ecx*4 - 0x44]
sar eax, 4
inc eax
sar eax, 1
mov word [ebx + ecx*2], ax
inc ecx
cmp ecx, edi
jl 0x41ba38
jmp 0x41ba53
mov ebx, dword [ebp - 0x90]
xor esi, esi
push edi
push ebx
call fcn.0041b140
add esp, 8
cmp eax, 0x1a36e
jge 0x41bbad
mov ecx, esi
mov edx, 2
shl edx, cl
mov eax, 0x10000
sub eax, edx
push eax
lea eax, [ebp - 0x44]
push edi
push eax
lfence
call fcn.0041bfc0
add esp, 0xc
xor eax, eax
test edi, edi
jle 0x41bba3
cmp edi, 0x10
jb 0x41bb90
lea ecx, [ebp + edi*4 - 0x48]
lea edx, [edi - 1]
lea edx, [ebx + edx*2]
cmp ebx, ecx
ja 0x41bab7
lea ecx, [ebp - 0x44]
cmp edx, ecx
jae 0x41bb90
movaps xmm2, xmmword [0x41fdf0]
mov ecx, edi
and ecx, 0xfffffff0
mov dword [ebp - 0x9c], ecx
mov ecx, 4
movd xmm1, ecx
mov ecx, 1
movd xmm3, ecx
lea ecx, [ebx + 0x10]
nop
movups xmm0, xmmword [ebp + eax*4 - 0x44]
lea ecx, [ecx + 0x20]
psrad xmm0, xmm1
paddd xmm0, xmm2
psrad xmm0, xmm3
pshuflw xmm0, xmm0, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm0, xmm0, 0xd8
movq qword [ecx - 0x30], xmm0
movups xmm0, xmmword [ebp + eax*4 - 0x34]
psrad xmm0, xmm1
paddd xmm0, xmm2
psrad xmm0, xmm3
pshuflw xmm0, xmm0, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm0, xmm0, 0xd8
movq qword [ecx - 0x28], xmm0
movups xmm0, xmmword [ebp + eax*4 - 0x24]
psrad xmm0, xmm1
paddd xmm0, xmm2
psrad xmm0, xmm3
pshuflw xmm0, xmm0, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm0, xmm0, 0xd8
movq qword [ecx - 0x20], xmm0
movups xmm0, xmmword [ebp + eax*4 - 0x14]
add eax, 0x10
mov edx, eax
psrad xmm0, xmm1
paddd xmm0, xmm2
psrad xmm0, xmm3
pshuflw xmm0, xmm0, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm0, xmm0, 0xd8
movq qword [ecx - 0x18], xmm0
cmp eax, dword [ebp - 0x9c]
jl 0x41bae0
cmp edx, edi
jge 0x41bba3
nop dword [eax]
mov ecx, dword [ebp + eax*4 - 0x44]
sar ecx, 4
inc ecx
sar ecx, 1
mov word [ebx + eax*2], cx
inc eax
cmp eax, edi
jl 0x41bb90
inc esi
cmp esi, 0x10
jl 0x41ba55
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041c5a7
mov esp, ebp
pop ebp
ret