Function at 0x589170
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x748f80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1dc
push ebx
push esi
xor ebx, ebx
lea ecx, [ebp - 0x50]
push edi
mov dword [ebp - 0x10], ebx
call fcn.004cdc80
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], ebx
cmp dword [eax + 0x10], ebx
jne 0x5891d1
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x50]
push eax
call fcn.004dff40
lea ecx, [ebp - 0x50]
call fcn.004b0fb0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0xf
mov byte [ebp - 0x88], 0
push 1
push 1
push eax
lea ecx, [ebp - 0x1e8]
mov byte [ebp - 4], 1
call fcn.0052b4b0
push 0x2c
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x1e8]
push eax
call fcn.0052b1b0
add esp, 0xc
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
jne 0x58963a
mov dword [ebp - 0x138], 0x791488
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xd8], 0x75a66c
push 0
push 0
lea eax, [ebp - 0x128]
mov byte [ebp - 4], 3
or ebx, 2
lea ecx, [ebp - 0x138]
push eax
mov dword [ebp - 0x10], ebx
call fcn.004cd850
mov eax, dword [ebp - 0x138]
push 1
mov dword [ebp - 4], 4
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x138], 0x791484
mov eax, dword [ebp - 0x138]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ebp + ecx - 0x13c], eax
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x128]
call fcn.00515850
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
push 0x3d
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x138]
push eax
call fcn.0052b1b0
add esp, 0xc
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
jne 0x589519
mov eax, dword [ebp - 0x138]
mov eax, dword [eax + 4]
mov eax, dword [ebp + eax - 0x108]
mov esi, dword [eax + 4]
mov ecx, esi
mov dword [ebp - 0x8c], esi
mov eax, dword [esi]
call dword [eax + 4]
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 8
push eax
call fcn.00499790
add esp, 4
mov ecx, dword [eax]
push 0xa
mov edx, dword [ecx + 0x20]
mov ecx, eax
call edx
mov byte [ebp + 0xc], al
mov byte [ebp - 4], 7
test esi, esi
je 0x589387
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
test eax, eax
je 0x589387
mov ecx, dword [eax]
push 1
mov edx, dword [ecx]
mov ecx, eax
call edx
push dword [ebp + 0xc]
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x138]
push eax
call fcn.0052b1b0
add esp, 0xc
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
jne 0x589519
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x28]
mov edi, dword [ebp - 0x18]
mov esi, 0x811c9dc5
cmovae edx, dword [ebp - 0x28]
xor ecx, ecx
test edi, edi
je 0x5893d7
movzx eax, byte [ecx + edx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edi
jb 0x5893c6
push esi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x50]
call fcn.004cd330
mov edi, dword [ebp - 0x2c]
test edi, edi
jne 0x5894fe
cmp dword [ebp - 0x48], 0x4924924
je 0x5896a6
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x58], eax
push 0x38
mov byte [ebp - 4], 9
mov dword [ebp - 0x54], edi
call fcn.00512870
mov edi, eax
add esp, 4
lea eax, [ebp - 0x28]
mov dword [ebp - 0x54], edi
lea ebx, [edi + 8]
push eax
mov ecx, ebx
call fcn.00480e80
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0xf
mov ecx, dword [ebp - 0x48]
mov byte [ebp - 4], 0xa
lea eax, [ecx + 1]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x75a370]
mov eax, dword [ebp - 0x34]
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 [ebp - 0x50]
seta al
test al, al
je 0x5894b4
lea ecx, [ebp - 0x50]
call fcn.004cf3a0
push esi
push ebx
lea eax, [ebp - 0x140]
push eax
lea ecx, [ebp - 0x50]
call fcn.004cd330
mov ecx, dword [ebp - 0x48]
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], eax
jmp 0x5894b7
mov edx, dword [ebp - 0x30]
mov ebx, dword [edx + 4]
inc ecx
mov dword [ebp - 0x48], ecx
mov dword [edi], edx
mov dword [edi + 4], ebx
mov dword [ebx], edi
mov dword [edx + 4], edi
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x44]
and eax, esi
mov dword [ebp - 0x54], 0
mov esi, dword [ecx + eax*8]
cmp esi, dword [ebp - 0x4c]
jne 0x5894e4
mov dword [ecx + eax*8], edi
jmp 0x5894f3
cmp esi, edx
jne 0x5894ed
mov dword [ecx + eax*8], edi
jmp 0x5894f7
cmp dword [ecx + eax*8 + 4], ebx
jne 0x5894f7
mov dword [ecx + eax*8 + 4], edi
mov ebx, dword [ebp - 0x10]
mov byte [ebp - 4], 7
lea ecx, [edi + 0x20]
lea eax, [ebp - 0x70]
cmp ecx, eax
je 0x589519
cmp dword [ebp - 0x5c], 0x10
push dword [ebp - 0x60]
cmovae eax, dword [ebp - 0x70]
push eax
call fcn.00483e90
mov edx, dword [ebp - 0x5c]
mov byte [ebp - 4], 6
cmp edx, 0x10
jb 0x589551
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x589547
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5896a1
push edx
push ecx
call fcn.00512900
add esp, 8
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 5
cmp edx, 0x10
jb 0x589589
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x58957f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5896a1
push edx
push ecx
call fcn.00512900
add esp, 8
mov eax, dword [ebp - 0x138]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x138], 0x791484
mov eax, dword [ebp - 0x138]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ebp + ecx - 0x13c], eax
lea ecx, [ebp - 0x128]
call fcn.0049a640
mov eax, dword [ebp - 0x138]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x138], 0x761ce0
mov eax, dword [ebp - 0x138]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x13c], eax
lea eax, [ebp - 0xd8]
mov byte [ebp - 4], 0xb
push eax
mov dword [ebp - 0xd8], 0x75a5ec
call fcn.006eac65
push 0x2c
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x1e8]
push eax
call fcn.0052b1b0
add esp, 0x10
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
je 0x589230
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x50]
push eax
mov ecx, esi
call fcn.004dff40
lea ecx, [ebp - 0x1e8]
call fcn.0052b5a0
mov edx, dword [ebp - 0x74]
cmp edx, 0x10
jb 0x589686
mov ecx, dword [ebp - 0x88]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x58967c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5896a1
push edx
push ecx
call fcn.00512900
add esp, 8
lea ecx, [ebp - 0x50]
call fcn.004b0fb0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0070b6e4
push str.unordered_map_set_too_long
call fcn.006ea2aa
int3