Function at 0x4606e0
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 0x464f7d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x58
mov eax, dword [0x47b040]
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 - 0x48], edi
mov dword [ebp - 0x44], edi
mov eax, dword [0x53db60]
mov dword [ebp - 0x44], edi
cmp eax, dword [0x53db64]
jne 0x460926
cmp byte [0x474cff], 0
movups xmm0, xmmword [str.XEFCG]
movups xmmword [ebp - 0x60], xmm0
movq xmm0, qword [0x474cf8]
movq qword [ebp - 0x50], xmm0
je 0x4608a2
xor ecx, ecx
cmp dword [0x53d9f0], 2
jl 0x460881
movaps xmm0, xmmword [0x4751c0]
lea eax, [ebp - 0x60]
movaps xmm4, xmmword [0x4750c0]
mov edx, 4
movaps xmm3, xmmword [0x4754d0]
xor esi, esi
movaps xmm5, xmmword [0x4750f0]
sub edx, eax
movaps xmm6, xmmword [0x475170]
movaps xmmword [ebp - 0x40], xmm0
mov eax, dword [ebp - 0x40]
movd xmm0, esi
lea ecx, [ebp - 0x60]
pshufd xmm2, xmm0, 0
add ecx, esi
paddd xmm2, xmm4
add esi, 8
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, eax
lea eax, [edx + ecx]
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [ecx]
xorps xmm2, xmm0
movd xmm0, eax
movd dword [ecx], xmm2
pshufd xmm2, xmm0, 0
mov eax, dword [ebp - 0x40]
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, 4
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, eax
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [ecx + 4]
xorps xmm2, xmm0
movd dword [ecx + 4], xmm2
cmp esi, 0x18
jl 0x4607a4
jmp 0x4608a2
mov eax, 0x5397829d
mul ecx
shr edx, 4
movsx eax, dl
mov dl, cl
imul eax, eax, 0x31
sub dl, al
add dl, 0x30
xor byte [ebp + ecx - 0x60], dl
inc ecx
cmp ecx, 0x18
jl 0x460881
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x40], xmm0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4608c0
sub ecx, edx
lea eax, [ebp - 0x60]
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.00401b80
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push eax
mov ecx, 0x53db60
call fcn.004138e0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0xf
jbe 0x460926
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x46091c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4609a0
push ecx
push edx
call fcn.004617c7
add esp, 8
mov dword [edi], 0
mov eax, 0x2aaaaaab
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov ecx, dword [0x53db64]
sub ecx, dword [0x53db60]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x460a29
cmp eax, 0xaaaaaaa
ja 0x460a49
lea esi, [eax + eax*2]
shl esi, 3
mov dword [ebp - 0x44], esi
test esi, esi
je 0x4609b1
cmp esi, 0x1000
jb 0x4609a6
lea eax, [esi + 0x23]
cmp eax, esi
jbe 0x460a4e
push eax
call fcn.00461797
add esp, 4
test eax, eax
je 0x4609a0
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x4609b1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push esi
call fcn.00461797
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x44]
mov dword [edi], esi
add eax, esi
mov dword [edi + 4], esi
mov dword [edi + 8], eax
mov dword [ebp - 0x68], edi
mov eax, dword [ebp - 0x48]
xorps xmm0, xmm0
mov dword [ebp - 4], 1
mov ecx, dword [0x53db64]
mov edi, dword [0x53db60]
movq qword [ebp - 0x34], xmm0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 2
cmp edi, ecx
je 0x460a16
nop word [eax + eax]
push edi
mov ecx, esi
call fcn.00412010
add esi, 0x18
add edi, 0x18
mov dword [ebp - 0x30], esi
cmp edi, dword [ebp - 0x44]
jne 0x460a00
push ecx
mov edx, esi
mov ecx, esi
call fcn.00414610
mov edi, dword [ebp - 0x48]
add esp, 4
mov dword [edi + 4], esi
mov eax, edi
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.00461666
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004135f0
call fcn.004011d0
int3