Function at 0x500970
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7415a6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe4
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x38], esi
call fcn.004cfa90
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x34], 0x757eea
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edx
push 0
lea eax, [ebp - 0x10]
mov byte [ebp - 0x10], 0x3d
push 1
push eax
lea ecx, [ebp - 0x2c]
call fcn.00515060
mov esi, dword [ebp - 0x28]
mov dword [ebp - 0x3c], eax
cmp eax, 0xffffffff
jne 0x5009f2
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x84], ecx
jmp 0x500a61
lea edx, [eax + 1]
mov edi, dword [ebp - 0x2c]
cmp esi, edx
mov dword [ebp - 0x14], 0xffffffff
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], edi
cmovb edx, esi
mov dword [ebp - 0x8c], edi
cmp edx, 0xffffffff
mov dword [ebp - 0x1c], edx
lea ecx, [ebp - 0x14]
cmovae ecx, eax
lea eax, [ebp - 0x28]
cmp esi, dword [ecx]
cmovae eax, ecx
lea ecx, [ebp - 0x14]
mov eax, dword [eax]
sub eax, edx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], eax
add edx, edi
mov eax, dword [ebp - 0x3c]
test eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
cmove ecx, eax
mov dword [ebp - 0x84], edx
lea eax, [ebp - 0x28]
cmp esi, dword [ecx]
cmovae eax, ecx
mov ecx, dword [ebp - 0x20]
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x80], ecx
movups xmm0, xmmword [ebp - 0x8c]
movups xmmword [ebp - 0x34], xmm0
test ecx, ecx
je 0x500ed9
push 0
lea eax, [ebp - 0x10]
mov byte [ebp - 0x10], 0x2c
push 1
push eax
lea ecx, [ebp - 0x2c]
call fcn.00515060
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
jne 0x500ab8
mov ecx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x98], ecx
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0
jmp 0x500b27
mov esi, dword [ebp - 0x28]
lea edx, [eax + 1]
cmp esi, edx
mov dword [ebp - 0x20], 0xffffffff
lea eax, [ebp - 0x14]
cmovb edx, esi
lea ecx, [ebp - 0x20]
cmp edx, 0xffffffff
mov dword [ebp - 0x14], edx
cmovae ecx, eax
lea eax, [ebp - 0x28]
cmp esi, dword [ecx]
cmovae eax, ecx
lea ecx, [ebp - 0x20]
mov edi, dword [eax]
mov eax, dword [ebp - 0x2c]
sub edi, edx
add edx, eax
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x1c]
test eax, eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x14]
cmove ecx, eax
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x94], edx
mov dword [ebp - 0x90], edi
cmp esi, dword [ecx]
mov esi, dword [ebp - 0x44]
cmovae eax, ecx
mov eax, dword [eax]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x9c], esi
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0xf
mov byte [ebp - 0x7c], 0
movups xmm0, xmmword [ebp - 0x9c]
movups xmmword [ebp - 0x34], xmm0
test eax, eax
je 0x500b64
push dword [ebp - 0x24]
lea ecx, [ebp - 0x7c]
push eax
call fcn.00483e90
mov dword [ebp - 0x64], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0xf
mov byte [ebp - 0x64], 0
test esi, esi
je 0x500b94
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x64]
push esi
call fcn.00483e90
movq xmm0, qword [ebp - 0x6c]
mov eax, 0xf
movups xmm1, xmmword [ebp - 0x7c]
mov dword [ebp - 0x6c], 0
movq qword [ebp - 0xc8], xmm0
movups xmm0, xmmword [ebp - 0x64]
mov dword [ebp - 0x68], eax
movups xmmword [ebp - 0xd8], xmm1
mov byte [ebp - 0x7c], 0
movups xmmword [ebp - 0xf0], xmm0
mov byte [ebp - 0x64], 0
movups xmmword [ebp - 0xc0], xmm0
movq xmm0, qword [ebp - 0x54]
movq qword [ebp - 0x40], xmm0
movq qword [ebp - 0xb0], xmm0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0xc4]
lea esi, [ebp - 0xd8]
mov edx, dword [ebp - 0xc8]
cmp eax, 0x10
mov dword [ebp - 0x1c], eax
mov edi, 0x811c9dc5
movd eax, xmm1
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], edx
cmovae esi, eax
mov dword [ebp - 0x14], eax
xor ecx, ecx
test edx, edx
je 0x500c36
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edi
imul edi, eax, 0x1000193
cmp ecx, edx
jb 0x500c25
mov esi, dword [ebp - 0x38]
lea eax, [ebp - 0xd8]
push edi
push eax
lea eax, [ebp - 0x4c]
mov ecx, esi
push eax
call fcn.004cd330
cmp dword [ebp - 0x48], 0
jne 0x500e53
cmp dword [esi + 8], 0x4924924
je 0x500ef5
lea eax, [esi + 4]
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0xa8], eax
push 0x38
mov byte [ebp - 4], 3
mov dword [ebp - 0xa4], 0
call fcn.00512870
mov esi, eax
lea ecx, [ebp - 0xd8]
mov eax, dword [ebp - 0x18]
add esp, 4
cmp dword [ebp - 0x1c], 0x10
mov dword [ebp - 0xa4], esi
cmovae ecx, dword [ebp - 0x14]
mov dword [esi + 8], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [ebp - 0x44], ecx
cmp eax, 0x10
jae 0x500cce
movups xmm0, xmmword [ecx]
mov ecx, 0xf
movups xmmword [esi + 8], xmm0
jmp 0x500d44
mov ecx, eax
mov edx, bind
or ecx, 0xf
cmp ecx, 0x7fffffff
cmova ecx, edx
mov dword [ebp - 0x20], ecx
inc ecx
cmp ecx, 0x1000
jb 0x500d17
lea eax, [ecx + 0x23]
cmp eax, ecx
jbe 0x500ef0
push eax
call fcn.00512870
add esp, 4
test eax, eax
je 0x500eeb
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
mov eax, dword [ebp - 0x18]
jmp 0x500d2d
test ecx, ecx
je 0x500d2b
push ecx
call fcn.00512870
mov ecx, eax
add esp, 4
mov eax, dword [ebp - 0x18]
jmp 0x500d2d
xor ecx, ecx
inc eax
mov dword [esi + 8], ecx
push eax
push dword [ebp - 0x44]
push ecx
call fcn.00700d60
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov ecx, dword [ebp - 0x20]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
movups xmm0, xmmword [ebp - 0xf0]
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
movups xmmword [esi + 0x20], xmm0
mov dword [ebp - 0xb0], 0
movq xmm0, qword [ebp - 0x40]
movq qword [esi + 0x30], xmm0
mov dword [ebp - 0xac], 0xf
mov byte [ebp - 0xc0], 0
mov edx, dword [ebp - 0x38]
mov byte [ebp - 4], 4
mov eax, dword [edx + 8]
inc eax
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x75a370]
mov eax, dword [edx + 0x1c]
cvtpd2ps xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x75a370]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, dword [edx]
seta al
test al, al
je 0x500dff
mov ecx, edx
call fcn.004cf3a0
mov ecx, dword [ebp - 0x38]
lea eax, [esi + 8]
push edi
push eax
lea eax, [ebp - 0xe0]
push eax
call fcn.004cd330
mov edx, dword [ebp - 0x38]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], eax
jmp 0x500e02
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ecx + 4]
inc dword [edx + 8]
mov dword [esi + 4], eax
mov dword [esi], ecx
mov dword [eax], esi
mov dword [ecx + 4], esi
mov dword [ebp - 0x24], eax
mov eax, dword [edx + 0x18]
and eax, edi
mov dword [ebp - 0x3c], ecx
mov ecx, dword [edx + 0xc]
mov edi, dword [ebp - 0xa0]
mov dword [ebp - 0xa4], 0
mov edx, dword [ecx + eax*8]
cmp edx, dword [edi]
jne 0x500e3c
mov dword [ecx + eax*8], esi
jmp 0x500e4f
cmp edx, dword [ebp - 0x3c]
jne 0x500e46
mov dword [ecx + eax*8], esi
jmp 0x500e53
mov edx, dword [ebp - 0x24]
cmp dword [ecx + eax*8 + 4], edx
jne 0x500e53
mov dword [ecx + eax*8 + 4], esi
mov edx, dword [ebp - 0xac]
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x500e8d
mov ecx, dword [ebp - 0xc0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x500e83
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x500eeb
push edx
push ecx
call fcn.00512900
add esp, 8
mov eax, dword [ebp - 0x1c]
cmp eax, 0x10
jb 0x500ebf
mov ecx, dword [ebp - 0x14]
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x500eb5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x500eeb
push edx
push ecx
call fcn.00512900
add esp, 8
cmp dword [ebp - 0x28], 0
mov edx, 0xf
mov byte [ebp - 4], 0
mov dword [ebp - 4], 0xffffffff
jne 0x5009b4
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 8
call fcn.0070b6e4
call fcn.00483bc0
push str.unordered_map_set_too_long
call fcn.006ea2aa
int3