Function at 0x497f80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf4fb
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x58be1c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x14]
push 0x12c
mov dword [ebp - 0x148], eax
lea eax, [ebp - 0x13c]
push 0
push eax
call fcn.004a8410
add esp, 0xc
lea ecx, [ebp - 0x13c]
call fcn.004122e0
mov edx, dword [esi + 0x538]
mov dword [ebp - 4], 0
cmp edx, 0x10
ja 0x498376
mov eax, dword [esi + 0x534]
test eax, eax
jne 0x49821a
cmp dword [esi + 0x530], eax
jne 0x498039
cmp edx, 0xc
jne 0x498039
movq xmm0, qword [esi + 0x520]
mov eax, dword [esi + 0x528]
movq qword [esi + 0x500], xmm0
mov dword [esi + 0x508], eax
mov dword [esi + 0x50c], 0x1000000
jmp 0x4981d8
test edx, edx
je 0x498096
mov edi, 0xfffffb10
lea ecx, [esi + 0x4f0]
sub edi, esi
nop word [eax + eax]
mov al, byte [ecx + 0x30]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
lea eax, [edi + ecx]
mov edx, dword [esi + 0x538]
cmp eax, edx
jb 0x498050
test edx, edx
je 0x498096
mov eax, edx
mov ecx, 8
imul ecx
add dword [esi + 0x540], eax
lea eax, [ebp - 0x13c]
push eax
adc dword [esi + 0x544], edx
lea eax, [esi + 0x4f0]
push eax
push esi
call fcn.0049ac00
add esp, 0xc
xorps xmm0, xmm0
lea edi, [esi + 0x4f0]
movq qword [esi + 0x520], xmm0
mov cl, byte [esi + 0x547]
mov byte [esi + 0x528], cl
mov dl, byte [esi + 0x546]
mov byte [esi + 0x529], dl
mov ah, byte [esi + 0x545]
mov byte [esi + 0x52a], ah
mov ch, byte [esi + 0x544]
mov byte [esi + 0x52b], ch
mov dh, byte [esi + 0x543]
mov byte [esi + 0x52c], dh
mov al, byte [esi + 0x542]
mov byte [ebp - 0x13d], al
mov byte [esi + 0x52d], al
mov al, byte [esi + 0x541]
mov byte [ebp - 0x13e], al
mov byte [esi + 0x52e], al
mov al, byte [esi + 0x540]
mov byte [ebp - 0x13f], al
mov byte [esi + 0x52f], al
mov al, byte [esi + 0x520]
xor byte [edi], al
mov al, byte [esi + 0x521]
xor byte [esi + 0x4f1], al
mov al, byte [esi + 0x522]
xor byte [esi + 0x4f2], al
mov al, byte [esi + 0x523]
xor byte [esi + 0x4f3], al
mov al, byte [esi + 0x524]
xor byte [esi + 0x4f4], al
mov al, byte [esi + 0x525]
xor byte [esi + 0x4f5], al
mov al, byte [esi + 0x526]
xor byte [esi + 0x4f6], al
mov al, byte [esi + 0x527]
xor byte [esi + 0x4f7], al
mov al, byte [ebp - 0x13d]
xor byte [esi + 0x4fd], al
mov al, byte [ebp - 0x13e]
xor byte [esi + 0x4fe], al
mov al, byte [ebp - 0x13f]
xor byte [esi + 0x4fa], ah
xor byte [esi + 0x4ff], al
lea eax, [ebp - 0x13c]
xor byte [esi + 0x4f8], cl
xor byte [esi + 0x4f9], dl
xor byte [esi + 0x4fb], ch
xor byte [esi + 0x4fc], dh
push eax
push edi
push esi
call fcn.0049ac00
movups xmm0, xmmword [edi]
add esp, 0xc
movups xmmword [esi + 0x500], xmm0
xorps xmm0, xmm0
movups xmmword [edi], xmm0
movups xmm0, xmmword [esi + 0x500]
movups xmmword [esi + 0x510], xmm0
xorps xmm0, xmm0
movups xmmword [esi + 0x520], xmm0
mov dword [esi + 0x538], 0
mov dword [esi + 0x540], 0
mov dword [esi + 0x544], 0
mov dword [esi + 0x534], 1
jmp 0x49822c
cmp eax, 1
jne 0x49836f
cmp edx, 0x10
jge 0x49836f
mov edi, dword [ebp - 0x148]
lea ecx, [edi + 0x4c]
call fcn.0040d580
lea ecx, [edi + 0x4c]
mov dword [ebp - 0x144], eax
call fcn.0040d5b0
xor edi, edi
mov dword [ebp - 0x148], eax
cmp dword [esi + 0x538], edi
jne 0x4982e9
mov ecx, eax
and ecx, 0xfffffff0
mov dword [ebp - 0x14c], ecx
jbe 0x4982df
mov edx, dword [ebp - 0x144]
lea ecx, [esi + 0x4f0]
add edx, 8
mov dword [ebp - 0x150], edx
nop
mov eax, dword [edx + edi - 8]
xor dword [ecx], eax
mov eax, dword [edx + edi - 4]
xor dword [ecx + 4], eax
mov eax, dword [edx + edi]
xor dword [esi + 0x4f8], eax
mov eax, dword [edx + edi + 4]
xor dword [esi + 0x4fc], eax
lea eax, [ebp - 0x13c]
push eax
push ecx
push esi
call fcn.0049ac00
mov edx, dword [ebp - 0x150]
lea ecx, [esi + 0x4f0]
add esp, 0xc
add dword [esi + 0x540], 0x80
adc dword [esi + 0x544], 0
add edi, 0x10
cmp edi, dword [ebp - 0x14c]
jb 0x498280
mov eax, dword [ebp - 0x148]
mov edx, dword [ebp - 0x144]
add edx, edi
jmp 0x4982ef
mov edx, dword [ebp - 0x144]
cmp edi, eax
jae 0x498366
sub eax, edi
lea ecx, [esi + 0x4f0]
mov dword [ebp - 0x148], eax
mov edi, eax
add ecx, dword [esi + 0x538]
mov al, byte [edx]
inc edx
mov dword [ebp - 0x144], edx
xor byte [ecx], al
inc dword [esi + 0x538]
cmp dword [esi + 0x538], 0x10
jne 0x49835b
lea eax, [ebp - 0x13c]
push eax
lea eax, [esi + 0x4f0]
push eax
push esi
call fcn.0049ac00
mov edx, dword [ebp - 0x144]
add esp, 0xc
add dword [esi + 0x540], 0x80
mov dword [esi + 0x538], 0
adc dword [esi + 0x544], 0
lea ecx, [esi + 0x4f0]
sub edi, 1
jne 0x498303
mov byte [ebp - 0x13d], 1
jmp 0x498389
push str.Internal_error_2
jmp 0x49837b
push str.Internal_error.
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x14]
mov byte [ebp - 0x13d], 0
lea ecx, [ebp - 0x13c]
call fcn.00412300
mov al, byte [ebp - 0x13d]
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.004a4dea
mov esp, ebp
pop ebp
ret 0x10