Function at 0x45d7d0
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 0x7f9af8
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x68
mov eax, dword [0x90cf34]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov dword [ebp - 4], 0
mov edx, 1
movups xmm0, xmmword [0x8d5bd8]
mov edi, dword [0x18011f4]
movups xmmword [ebp - 0x60], xmm0
movups xmm0, xmmword [0x8d5be8]
movups xmmword [ebp - 0x50], xmm0
psrldq xmm0, 0xf
movd eax, xmm0
test al, al
je 0x45d9e2
xor edx, edx
mov dword [ebp - 0x64], edx
cmp edi, 2
jl 0x45d9b0
movaps xmm0, xmmword [0x8d5ce0]
mov eax, 1
movaps xmm4, xmmword [0x8d5c60]
xor ecx, ecx
movaps xmm3, xmmword [0x8d5cd0]
movaps xmm6, xmmword [0x8d5c80]
movd xmm5, eax
mov eax, 0x1f
movaps xmmword [ebp - 0x40], xmm0
mov edx, dword [ebp - 0x40]
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
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
pand xmm1, xmmword [0x8d5cc0]
packuswb xmm1, xmm1
movd xmm0, edx
paddb xmm1, xmm0
movd xmm0, dword [ebp + ecx - 0x60]
pxor xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movd dword [ebp + ecx - 0x60], 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
pand xmm1, xmmword [0x8d5cc0]
packuswb xmm1, xmm1
movd xmm0, edx
paddb xmm1, xmm0
movd xmm0, dword [ebp + ecx - 0x5c]
pxor xmm1, xmm0
movd dword [ebp + ecx - 0x5c], xmm1
add ecx, 8
cmp ecx, 0x20
jl 0x45d8b0
jmp 0x45d9dd
mov eax, 0x94f2095
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 0x64]
movsx eax, al
mov cl, dl
imul eax, eax, 0x37
sub cl, al
add cl, 0x32
xor byte [ebp + edx - 0x60], cl
inc edx
mov dword [ebp - 0x64], edx
cmp edx, 0x20
jl 0x45d9b0
mov edx, 1
cmp byte [0x8d5bd7], 0
movq xmm0, qword [0x8d5bcc]
mov eax, dword [0x8d5bd4]
movq qword [ebp - 0x3c], xmm0
mov dword [ebp - 0x34], eax
je 0x45db47
xor ecx, ecx
cmp edi, 2
jl 0x45db20
movaps xmm2, xmmword [0x8d5c60]
mov eax, 0x1f
movaps xmm5, xmmword [0x8d5cd0]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
mov ecx, 8
pmuldq xmm0, xmm5
pmuldq xmm1, xmm5
shufps xmm1, xmm0, 0xdd
movd xmm6, edx
psrad xmm1, xmm6
movd xmm7, eax
mov eax, dword [0x8d5ce0]
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x8d5c80]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x8d5c70]
paddd xmm2, xmmword [0x8d5c60]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x8d5cc0]
packuswb xmm1, xmm1
movd xmm0, eax
paddb xmm1, xmm0
movd xmm0, dword [0x8d5bcc]
pxor xmm1, xmm0
movaps xmm0, xmm2
movd dword [ebp - 0x3c], xmm1
movaps xmm1, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm5
pmuldq xmm1, xmm5
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x8d5c80]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x8d5cc0]
packuswb xmm1, xmm1
movd xmm0, eax
paddb xmm1, xmm0
movd xmm0, dword [ebp - 0x38]
pxor xmm1, xmm0
movd dword [ebp - 0x38], xmm1
nop dword [eax + eax]
mov eax, 0x94f2095
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dl, cl
movsx eax, al
imul eax, eax, 0x37
sub dl, al
add dl, 0x32
xor byte [ebp + ecx - 0x3c], dl
inc ecx
cmp ecx, 0xc
jl 0x45db20
lea eax, [ebp - 0x64]
mov dword [ebp - 0x64], 0
push eax
push 0x20119
push 0
lea eax, [ebp - 0x60]
push eax
push 0x80000002
call dword [0x810044]
test eax, eax
jne 0x45dc18
mov edi, dword [0x810040]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x68]
push eax
push 0
lea eax, [ebp - 0x6c]
push eax
push 0
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x64]
call edi
test eax, eax
jne 0x45dc0f
mov ecx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x1c]
cmp ecx, eax
ja 0x45dbb3
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], ecx
cmovae eax, dword [ebp - 0x2c]
mov byte [eax + ecx], 0
jmp 0x45dbc0
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004039b0
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x68]
push ecx
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0x6c]
push eax
push 0
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x64]
call edi
test eax, eax
jne 0x45dc0f
mov ecx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x1c]
dec ecx
cmp ecx, eax
ja 0x45dc02
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], ecx
cmovae eax, dword [ebp - 0x2c]
mov byte [eax + ecx], 0
jmp 0x45dc0f
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004039b0
push dword [ebp - 0x64]
call dword [0x810068]
movups xmm0, xmmword [ebp - 0x2c]
mov dword [esi + 0x10], 0
mov eax, esi
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x1c]
movq qword [esi + 0x10], xmm0
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.0059961f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret