Function at 0x412080
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 0x66c999
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xa8
mov eax, dword [0x74b1ac]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 4], 0
mov edx, 5
movups xmm0, xmmword [0x70a5a4]
mov ecx, dword [0x7fe91c]
pextrw eax, xmm0, 7
movups xmmword [ebp - 0x24], xmm0
test ax, ax
je 0x412223
xor esi, esi
cmp ecx, 2
jl 0x4121f0
movaps xmm2, xmmword [0x70a720]
mov eax, 0x1f
movaps xmm4, xmmword [0x70a7a0]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
movd xmm5, edx
psrad xmm1, xmm5
movd xmm6, eax
mov eax, 0x70a5a4
movaps xmm0, xmm1
psrld xmm0, xmm6
paddd xmm0, xmm1
pmulld xmm0, xmmword [str.33339999]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x70a730]
paddd xmm2, xmmword [0x70a720]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
paddw xmm1, xmmword [0x70a760]
movq xmm0, qword [eax]
pxor xmm1, xmm0
movaps xmm0, xmm2
movq qword [ebp - 0x24], 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 [str.33339999]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, qword [ebp - 0x1c]
paddw xmm1, xmmword [0x70a760]
pxor xmm1, xmm0
movq qword [ebp - 0x1c], xmm1
jmp 0x412223
mov eax, 0xa0a0a0a1
mov ecx, esi
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x33
sub ecx, eax
add ecx, 0x36
xor word [ebp + esi*2 - 0x24], cx
inc esi
cmp esi, 8
jl 0x4121f0
mov ecx, dword [0x7fe91c]
mov edx, 5
cmp dword [edi + 0x890], 8
lea eax, [edi + 0x87c]
mov dword [ebp - 0xb0], eax
jb 0x412240
mov eax, dword [eax]
mov dword [ebp - 0xb0], eax
mov eax, dword [edi + 0x8b0]
mov dword [ebp - 0xb8], eax
mov eax, dword [edi + 0x8ac]
add edi, 0x894
mov dword [ebp - 0xb4], eax
cmp dword [edi + 0x14], 8
jb 0x412266
mov edi, dword [edi]
movups xmm0, xmmword [0x70a6b4]
cmp dword [ebx + 0x1c], 8
lea eax, [ebx + 8]
cmovae eax, dword [ebx + 8]
xor esi, esi
mov dword [ebp - 0xac], eax
mov ax, word [0x70a6ec]
mov word [ebp - 0x58], ax
movups xmmword [ebp - 0x90], xmm0
movups xmm0, xmmword [0x70a6c4]
movups xmmword [ebp - 0x80], xmm0
movups xmm0, xmmword [0x70a6d4]
movups xmmword [ebp - 0x70], xmm0
movq xmm0, qword [0x70a6e4]
movq qword [ebp - 0x60], xmm0
cmp ecx, 2
jl 0x4123e0
movaps xmm4, xmmword [0x70a720]
mov eax, 0x1f
movaps xmm3, xmmword [0x70a7a0]
movaps xmm6, xmmword [str.33339999]
movd xmm5, edx
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
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
movq xmm0, qword [0x70a760]
paddw xmm1, xmm0
movq xmm0, qword [ebp + esi*2 - 0x90]
pxor xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movq qword [ebp + esi*2 - 0x90], 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
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
movq xmm0, qword [0x70a760]
paddw xmm1, xmm0
movq xmm0, qword [ebp + esi*2 - 0x88]
pxor xmm1, xmm0
movq qword [ebp + esi*2 - 0x88], xmm1
add esi, 8
cmp esi, 0x18
jl 0x4122e0
cmp esi, 0x1d
jge 0x41240b
mov eax, 0xa0a0a0a1
mov ecx, esi
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x33
sub ecx, eax
add ecx, 0x36
xor word [ebp + esi*2 - 0x90], cx
inc esi
cmp esi, 0x1d
jl 0x4123e0
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0xb0]
lea eax, [ebp - 0x90]
push dword [ebp - 0xb8]
push dword [ebp - 0xb4]
push edi
push dword [ebp - 0xac]
push eax
lea eax, [ebp - 0x3c]
push str._s_proonekeytype_suser_ssys_dbit_dchannel_sver_s
push eax
call fcn.00404f60
mov byte [ebp - 4], 1
lea edx, [ebp - 0x3c]
cmp dword [ebp - 0x28], 8
cmovae edx, dword [ebp - 0x3c]
add esp, 0xc
mov esi, esp
mov dword [ebp - 0xac], esp
mov ecx, edx
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
lea edi, [ecx + 2]
mov word [esi], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412470
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.00409b90
mov byte [ebp - 4], 2
cmp word [str._sDJf_], 0
movups xmm0, xmmword [0x70a4ec]
mov eax, dword [0x70a4fc]
mov dword [ebp - 0x40], eax
movups xmmword [ebp - 0x50], xmm0
je 0x4124d8
xor esi, esi
nop dword [eax + eax]
mov eax, 0xa0a0a0a1
mov ecx, esi
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x33
sub ecx, eax
add ecx, 0x36
xor word [ebp + esi*2 - 0x50], cx
inc esi
cmp esi, 0xa
jl 0x4124b0
sub esp, 0x18
lea ecx, [ebp - 0x50]
mov edx, esp
lea esi, [ecx + 2]
xor eax, eax
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 0x4124f6
sub ecx, esi
lea eax, [ebp - 0x50]
sar ecx, 1
push ecx
push eax
mov ecx, edx
call fcn.00409b90
mov byte [ebp - 4], 1
call fcn.00404cb0
add esp, 0x18
lea eax, [ebp - 0x3c]
mov ecx, esp
push eax
call fcn.004088b0
lea ecx, [ebp - 0xa8]
call fcn.004074d0
add esp, 0x18
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x54]
call fcn.004054b0
mov edx, dword [ebp - 0x40]
cmp edx, 0x10
jb 0x412578
mov ecx, dword [ebp - 0x54]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41256e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412652
push edx
push ecx
call fcn.004cd516
add esp, 8
mov edx, dword [ebp - 0x94]
cmp edx, 0x10
jb 0x4125b2
mov ecx, dword [ebp - 0xa8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4125a8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412657
push edx
push ecx
call fcn.004cd516
add esp, 8
mov edx, dword [ebp - 0x28]
cmp edx, 8
jb 0x4125e8
mov ecx, dword [ebp - 0x3c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4125de
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41265c
push edx
push ecx
call fcn.004cd516
add esp, 8
mov edx, dword [ebx + 0x1c]
xor eax, eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 7
mov word [ebp - 0x3c], ax
cmp edx, 8
jb 0x412632
mov ecx, dword [ebx + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412628
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412661
push edx
push ecx
call fcn.004cd516
add esp, 8
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.004cd30a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x18
call fcn.004e9059
call fcn.004e9059
call fcn.004e9059
call fcn.004e9059
int3