Function at 0x41c240
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7f5880
mov eax, dword fs:[0]
push eax
sub esp, 0x1d0
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
cmp dword [0x181e304], 0
je 0x41c7ea
mov eax, dword [0x181e118]
cmp dword [eax + 0x38], 0
je 0x41c7ea
cmp word [0x8ce1e6], 0
mov eax, dword [0x8ce1e4]
mov dword [ebp - 0x18], eax
je 0x41c2c8
xor esi, esi
nop dword [eax]
mov eax, 0x4d4873ed
imul esi
mov eax, 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub eax, ecx
imul eax, eax, 0x35
add eax, esi
xor word [ebp + esi*2 - 0x18], ax
inc esi
cmp esi, 2
jl 0x41c2a0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x38]
push 0x181e288
push eax
call fcn.00411db0
push 0x181e1f8
push eax
lea eax, [ebp - 0x80]
mov dword [ebp - 4], 0
push eax
call fcn.00427b60
add esp, 0x18
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x41c305
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov ecx, 0x39
lea edi, [ebp - 0x1dc]
mov esi, 0x8ce610
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor esi, esi
cmp dword [0x1813edc], 2
jl 0x41c450
movaps xmm4, xmmword [0x8d1c60]
mov eax, 4
movaps xmm3, xmmword [0x8d1ce0]
movaps xmm6, xmmword [0x8d1c80]
movd xmm5, eax
mov eax, 0x1f
movd xmm7, eax
nop
movd xmm0, esi
lea eax, [esi + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
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
movq xmm0, qword [0x8d1cb0]
paddw xmm1, xmm0
movq xmm0, qword [ebp + esi*2 - 0x1dc]
pxor xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movq qword [ebp + esi*2 - 0x1dc], xmm1
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
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
movq xmm0, qword [0x8d1cb0]
paddw xmm1, xmm0
movq xmm0, qword [ebp + esi*2 - 0x1d4]
pxor xmm1, xmm0
movq qword [ebp + esi*2 - 0x1d4], xmm1
add esi, 8
cmp esi, 0x70
jl 0x41c350
cmp esi, 0x73
jge 0x41c47b
nop dword [eax + eax]
mov eax, 0x4d4873ed
imul esi
mov eax, 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub eax, ecx
imul eax, eax, 0x35
add eax, esi
xor word [ebp + esi*2 - 0x1dc], ax
inc esi
cmp esi, 0x73
jl 0x41c450
push dword [ebp - 0x18]
lea eax, [ebp - 0x1dc]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.0040f9e0
add esp, 0xc
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x6c]
cmp edx, 8
jb 0x41c4cf
mov ecx, dword [ebp - 0x80]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41c4c5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41cb5e
push edx
push ecx
call fcn.004787c4
add esp, 8
xor eax, eax
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 7
mov word [ebp - 0x80], ax
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x24]
cmp edx, 8
jb 0x41c521
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41c517
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41cb63
push edx
push ecx
call fcn.004787c4
add esp, 8
xor eax, eax
mov dword [ebp - 0x28], 0
cmp dword [ebp - 0x3c], 8
lea edi, [ebp - 0x50]
mov word [ebp - 0x38], ax
mov eax, dword [0x181e118]
cmovae edi, dword [ebp - 0x50]
xor esi, esi
mov dword [ebp - 0x24], 7
mov eax, dword [eax + 0x38]
mov dword [ebp - 0x20], eax
mov eax, dword [0x8ce514]
mov dword [ebp - 0x18], eax
mov ax, word [0x8ce518]
mov word [ebp - 0x14], ax
nop
mov eax, 0x4d4873ed
imul esi
mov eax, 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub eax, ecx
imul eax, eax, 0x35
add eax, esi
xor word [ebp + esi*2 - 0x18], ax
inc esi
cmp esi, 3
jl 0x41c560
push edi
lea eax, [ebp - 0x18]
push eax
call dword [ebp - 0x20]
movups xmm0, xmmword [0x8ce5c0]
mov eax, dword [0x181e118]
xor esi, esi
cmp dword [0x1813edc], 2
movups xmmword [ebp - 0xe8], xmm0
movups xmm0, xmmword [0x8ce5d0]
mov edi, dword [eax + 0x38]
movups xmmword [ebp - 0xd8], xmm0
movups xmm0, xmmword [0x8ce5e0]
movups xmmword [ebp - 0xc8], xmm0
movups xmm0, xmmword [0x8ce5f0]
movups xmmword [ebp - 0xb8], xmm0
movups xmm0, xmmword [0x8ce600]
movups xmmword [ebp - 0xa8], xmm0
jl 0x41c720
movaps xmm4, xmmword [0x8d1c60]
mov eax, 4
movaps xmm3, xmmword [0x8d1ce0]
xor ecx, ecx
movaps xmm6, xmmword [0x8d1c80]
movd xmm5, eax
mov eax, 0x1f
movd xmm7, eax
nop word [eax + eax]
movd xmm0, ecx
lea eax, [ecx + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
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
movq xmm0, qword [0x8d1cb0]
paddw xmm1, xmm0
movq xmm0, qword [ebp + ecx*2 - 0xe8]
pxor xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movq qword [ebp + ecx*2 - 0xe8], xmm1
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
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
movq xmm0, qword [0x8d1cb0]
paddw xmm1, xmm0
movq xmm0, qword [ebp + ecx*2 - 0xe0]
pxor xmm1, xmm0
movq qword [ebp + ecx*2 - 0xe0], xmm1
add ecx, 8
cmp ecx, 0x28
jl 0x41c620
jmp 0x41c74b
mov eax, 0x4d4873ed
imul esi
mov eax, 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub eax, ecx
imul eax, eax, 0x35
add eax, esi
xor word [ebp + esi*2 - 0xe8], ax
inc esi
cmp esi, 0x28
jl 0x41c720
mov eax, dword [0x8ce514]
xor esi, esi
mov dword [ebp - 0x20], eax
mov ax, word [0x8ce518]
mov word [ebp - 0x1c], ax
nop
mov eax, 0x4d4873ed
imul esi
mov eax, 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub eax, ecx
imul eax, eax, 0x35
add eax, esi
xor word [ebp + esi*2 - 0x20], ax
inc esi
cmp esi, 3
jl 0x41c760
lea eax, [ebp - 0xe8]
push eax
lea eax, [ebp - 0x20]
push eax
call edi
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x3c]
cmp edx, 8
jb 0x41c7d6
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41c7cc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41cb68
push edx
push ecx
call fcn.004787c4
add esp, 8
xor eax, eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
mov eax, dword [0x181e118]
cmp dword [eax + 0x7b0], 0
jne 0x41cb43
mov ax, word [0x8ce1e0]
xor ecx, ecx
mov word [ebp - 0x18], ax
mov al, byte [0x8ce1e2]
mov byte [ebp - 0x16], al
mov dword [ebp - 0x20], ecx
mov eax, 0x4d4873ed
imul ecx
mov al, 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub al, cl
mov ecx, dword [ebp - 0x20]
movsx eax, al
imul eax, eax, 0x35
add al, cl
xor byte [ebp + ecx - 0x18], al
inc ecx
mov dword [ebp - 0x20], ecx
cmp ecx, 3
jl 0x41c813
lea edx, [ebp - 0x18]
call fcn.00405260
test al, al
je 0x41cb43
cmp word [0x8ce1e6], 0
mov eax, dword [0x8ce1e4]
mov dword [ebp - 0x18], eax
je 0x41c88c
xor esi, esi
mov eax, 0x4d4873ed
imul esi
mov eax, 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub eax, ecx
imul eax, eax, 0x35
add eax, esi
xor word [ebp + esi*2 - 0x18], ax
inc esi
cmp esi, 2
jl 0x41c864
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x38]
push 0x181e288
push eax
call fcn.00411db0
push 0x181e228
push eax
lea eax, [ebp - 0x98]
mov dword [ebp - 4], 5
push eax
call fcn.00427b60
mov edx, dword [ebp - 0x24]
add esp, 0x18
cmp edx, 8
jb 0x41c8f4
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41c8ea
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41cb6d
push edx
push ecx
call fcn.004787c4
add esp, 8
movups xmm0, xmmword [0x8ce544]
xor eax, eax
mov dword [ebp - 0x28], 0
cmp dword [ebp - 0x84], 8
mov word [ebp - 0x38], ax
lea eax, [ebp - 0x98]
cmovae eax, dword [ebp - 0x98]
xor esi, esi
mov dword [ebp - 0x20], eax
mov eax, dword [0x8ce554]
mov dword [ebp - 0x58], eax
mov ax, word [0x8ce558]
mov dword [ebp - 0x24], 7
movups xmmword [ebp - 0x68], xmm0
mov word [ebp - 0x54], ax
nop
mov eax, 0x4d4873ed
imul esi
mov eax, 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub eax, ecx
imul eax, eax, 0x35
add eax, esi
xor word [ebp + esi*2 - 0x68], ax
inc esi
cmp esi, 0xb
jl 0x41c940
mov ecx, 0x17
lea edi, [ebp - 0xf4]
mov esi, 0x8ce560
rep movsd dword es:[edi], dword [esi]
xor esi, esi
cmp dword [0x1813edc], 2
jl 0x41cab0
movaps xmm4, xmmword [0x8d1c60]
mov eax, 4
movaps xmm3, xmmword [0x8d1ce0]
movaps xmm6, xmmword [0x8d1c80]
movd xmm5, eax
mov eax, 0x1f
movd xmm7, eax
movd xmm0, esi
lea eax, [esi + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
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
movq xmm0, qword [0x8d1cb0]
paddw xmm1, xmm0
movq xmm0, qword [ebp + esi*2 - 0xf4]
pxor xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movq qword [ebp + esi*2 - 0xf4], xmm1
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
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
movq xmm0, qword [0x8d1cb0]
paddw xmm1, xmm0
movq xmm0, qword [ebp + esi*2 - 0xec]
pxor xmm1, xmm0
movq qword [ebp + esi*2 - 0xec], xmm1
add esi, 8
cmp esi, 0x28
jl 0x41c9b0
cmp esi, 0x2e
jge 0x41cadb
nop dword [eax + eax]
mov eax, 0x4d4873ed
imul esi
mov eax, 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub eax, ecx
imul eax, eax, 0x35
add eax, esi
xor word [ebp + esi*2 - 0xf4], ax
inc esi
cmp esi, 0x2e
jl 0x41cab0
mov eax, dword [0x181e118]
push 0xff
push dword [ebp - 0x20]
cmp dword [eax + 0x6e8], 0
lea eax, [ebp - 0x68]
push 1
push eax
lea eax, [ebp - 0xf4]
push eax
push 0x80000001
call dword [0x80f6f0]
mov edx, dword [ebp - 0x84]
cmp edx, 8
jb 0x41cb43
mov ecx, dword [ebp - 0x98]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41cb39
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41cb72
push edx
push ecx
call fcn.004787c4
add esp, 8
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.00478588
mov esp, ebp
pop ebp
ret
call fcn.006bc8c9
call fcn.006bc8c9
call fcn.006bc8c9
call fcn.006bc8c9
call fcn.006bc8c9
int3