Function at 0x501360
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x741653
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov edx, dword [ebp + 0xc]
push ebx
push esi
mov esi, ecx
mov ebx, edx
cmp dword [edx + 0x14], 0x10
push edi
mov dword [ebp - 0x10], esi
jb 0x501390
mov ebx, dword [edx]
xor ecx, ecx
mov edi, 0x811c9dc5
cmp dword [edx + 0x10], ecx
jbe 0x5013b2
nop dword [eax]
movzx eax, byte [ecx + ebx]
inc ecx
xor eax, edi
imul edi, eax, 0x1000193
cmp ecx, dword [edx + 0x10]
jb 0x5013a0
push edi
push edx
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.004cd330
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x5013e2
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [esi + 8], 0x3ffffff
je 0x5015aa
lea eax, [esi + 4]
mov dword [ebp - 0x24], eax
push 0x40
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
call fcn.00512870
mov ebx, eax
add esp, 4
mov dword [ebp - 0x20], ebx
push dword [ebp + 0xc]
lea esi, [ebx + 8]
mov ecx, esi
mov dword [ebp - 0x14], esi
call fcn.00480e80
add esi, 0x18
mov byte [ebp - 4], 1
mov dword [ebp + 0xc], esi
push 0x20
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.00512870
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 4], eax
lea ecx, [esi + 0xc]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [esi + 0x18], 7
mov dword [esi + 0x1c], 8
mov dword [esi], 0x3f800000
push dword [esi + 4]
mov byte [ebp - 4], 3
push 0x10
call fcn.00491eb0
mov esi, dword [ebp - 0x10]
mov dword [ebp - 4], 4
mov eax, dword [esi + 8]
inc eax
movss xmm3, dword [esi]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x75a370]
mov eax, dword [esi + 0x1c]
cvtpd2ps xmm2, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movaps xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x75a370]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, xmm3
jbe 0x501547
divss xmm2, xmm3
sub esp, 8
cvtps2pd xmm0, xmm2
movsd qword [ebp - 0x1c], xmm0
fld qword [ebp - 0x1c]
fstp qword [esp]
call fcn.00711190
fstp qword [ebp - 0x1c]
movsd xmm0, qword [ebp - 0x1c]
add esp, 8
cvtpd2ps xmm0, xmm0
call fcn.006feff0
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [esi + 0x1c]
cmp eax, ecx
jae 0x50152b
cmp eax, 0x200
jae 0x501529
shl eax, 3
cmp eax, ecx
jae 0x50152b
mov eax, ecx
push eax
mov ecx, esi
call fcn.00503600
push edi
lea eax, [ebx + 8]
mov ecx, esi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004cd330
mov edx, dword [eax]
jmp 0x50154a
mov edx, dword [ebp - 0x1c]
mov eax, dword [esi + 8]
mov ecx, dword [edx + 4]
inc eax
mov dword [esi + 8], eax
mov dword [ebx], edx
mov dword [ebx + 4], ecx
mov dword [ecx], ebx
mov dword [edx + 4], ebx
mov eax, dword [esi + 0x18]
and eax, edi
mov dword [ebp + 0xc], ecx
mov ecx, dword [esi + 0xc]
mov edi, dword [ebp - 0x24]
mov esi, dword [ecx + eax*8]
cmp esi, dword [edi]
jne 0x501578
mov dword [ecx + eax*8], ebx
jmp 0x50158a
cmp esi, edx
jne 0x501581
mov dword [ecx + eax*8], ebx
jmp 0x50158e
mov edx, dword [ebp + 0xc]
cmp dword [ecx + eax*8 + 4], edx
jne 0x50158e
mov dword [ecx + eax*8 + 4], ebx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword [eax], ebx
mov byte [eax + 4], 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.unordered_map_set_too_long
call fcn.006ea2aa
int3