Function at 0x585950
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7a35a7
mov eax, dword fs:[0]
push eax
sub esp, 0x154
mov eax, dword [0x82f184]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
mov esi, dword [ebp + 0x10]
xor ecx, ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x160], edi
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x160], esi
movq qword [ebp - 0x40], xmm0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], cx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.00403b80
lea edx, [ebp - 0x34]
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.00417ac0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.00404220
lea ecx, [ebp - 0x34]
call fcn.00404490
mov ecx, dword [ebp - 0x3c]
mov eax, 0x38e38e39
sub ecx, dword [ebp - 0x40]
imul ecx
push 0
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x585a2b
mov ecx, edi
call fcn.00770fe0
lea ecx, [ebp - 0x40]
call fcn.0041b0e0
mov eax, edi
jmp 0x585f0c
xor eax, eax
mov dword [ebp - 0x48], 0
push 0x7cd378
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
call fcn.004044f0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x40]
mov dword [ebp - 0x15c], eax
cmp edi, eax
je 0x585c1f
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
push edi
lea ecx, [ebp - 0x34]
movups xmmword [ebp - 0x34], xmm0
movups xmmword [ebp - 0x24], xmm0
call fcn.00404120
lea eax, [edi + 0x18]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403f00
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
cmp eax, ecx
jne 0x585acd
xor eax, eax
mov dword [ebp - 0x124], 0
push eax
push 0x7cd378
lea ecx, [ebp - 0x134]
mov dword [ebp - 0x120], 7
mov word [ebp - 0x134], ax
call fcn.004044f0
jmp 0x585af8
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
mov ecx, dword [ebp - 0x1c]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*2]
lea eax, [eax - 3]
lea eax, [ecx + eax*8]
push eax
lea ecx, [ebp - 0x134]
call fcn.00404120
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x585b02
mov eax, dword [esi]
push dword [esi + 0x10]
cmp dword [ebp - 0x120], 8
lea ecx, [ebp - 0x134]
mov edx, dword [ebp - 0x124]
cmovae ecx, dword [ebp - 0x134]
push eax
push 0
call fcn.00408350
add esp, 0xc
lea ecx, [ebp - 0x134]
mov esi, eax
call fcn.00404490
cmp esi, 0xffffffff
jne 0x585b6a
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call fcn.00404220
lea ecx, [ebp - 0x34]
call fcn.00404490
mov esi, dword [ebp - 0x160]
add edi, 0x24
cmp edi, dword [ebp - 0x15c]
jne 0x585a64
jmp 0x585c1c
push 1
xor eax, eax
mov dword [ebp - 0x13c], 0
push 0x7cd374
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x138], 7
mov word [ebp - 0x14c], ax
call fcn.004044f0
lea eax, [ebp - 0x14c]
mov byte [ebp - 4], 8
push eax
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x134]
call fcn.00405fb0
add esp, 4
lea ecx, [ebp - 0x14c]
call fcn.00404490
lea ecx, [ebp - 0x58]
call fcn.00404490
movups xmm0, xmmword [ebp - 0x134]
xor eax, eax
lea ecx, [ebp - 0x134]
mov word [ebp - 0x134], ax
movups xmmword [ebp - 0x58], xmm0
movq xmm0, qword [ebp - 0x124]
movq qword [ebp - 0x48], xmm0
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x120], 7
call fcn.00404490
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call fcn.00404220
lea ecx, [ebp - 0x34]
call fcn.00404490
mov edi, dword [ebp - 0x40]
cmp dword [ebp - 0x48], 0
jne 0x585ce9
mov ecx, dword [ebp - 0x3c]
mov eax, 0x38e38e39
sub ecx, edi
mov dword [ebp - 0x13c], 0
imul ecx
push 1
sar edx, 3
lea ecx, [ebp - 0x14c]
mov eax, edx
mov dword [ebp - 0x138], 7
shr eax, 0x1f
add eax, edx
push 0x7cd374
lea eax, [eax + eax*8]
lea eax, [eax - 3]
lea esi, [edi + eax*4]
xor eax, eax
mov word [ebp - 0x14c], ax
call fcn.004044f0
lea eax, [ebp - 0x14c]
mov byte [ebp - 4], 9
push eax
mov edx, esi
lea ecx, [ebp - 0x134]
call fcn.00405fb0
add esp, 4
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x14c]
call fcn.00404490
lea ecx, [ebp - 0x58]
call fcn.00404490
movups xmm0, xmmword [ebp - 0x134]
xor eax, eax
lea ecx, [ebp - 0x134]
mov word [ebp - 0x134], ax
movups xmmword [ebp - 0x58], xmm0
movq xmm0, qword [ebp - 0x124]
movq qword [ebp - 0x48], xmm0
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x120], 7
call fcn.00404490
mov eax, 0xe
mov dword [ebp - 0x154], 0xd400e4
mov dword [ebp - 0x158], eax
xor ecx, ecx
mov dword [ebp - 0x150], 0xd500db
mov dword [ebp - 0x14c], 0xdb00d5
mov dword [ebp - 0x148], 0xcc00db
mov dword [ebp - 0x144], 0xef00b4
mov dword [ebp - 0x140], 0xb000a8
mov dword [ebp - 0x13c], 0xab00ab
mov dword [ebp - 0x138], 0xc6
nop word [eax + eax]
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x154], ax
inc ecx
mov eax, dword [ebp - 0x158]
cmp ecx, eax
jb 0x585d50
xor ecx, ecx
mov word [ebp + eax*2 - 0x154], cx
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.00421b40
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 0xc
push eax
lea ecx, [ebp - 0x34]
call fcn.00403b80
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 0xd
push eax
call fcn.00418540
add esp, 4
mov byte [ebp - 0x115], al
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xa
call fcn.00404220
lea ecx, [ebp - 0x34]
call fcn.00404490
cmp byte [ebp - 0x115], 0
jne 0x585e02
mov ecx, dword [ebp - 0x11c]
push 0
call fcn.00770fe0
jmp 0x585eeb
xor eax, eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 0xf
push eax
lea ecx, [ebp - 0x34]
call fcn.00403b80
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 0x10
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.00418020
add esp, 8
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x12
call fcn.00404220
lea ecx, [ebp - 0x34]
call fcn.00404490
xorps xmm0, xmm0
lea ecx, [ebp - 0x70]
push 0
movups xmmword [ebp - 0x70], xmm0
movq qword [ebp - 0x60], xmm0
call fcn.00770fe0
push 0x74
lea eax, [ebp - 0x114]
mov byte [ebp - 4], 0x13
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x114]
call fcn.00773690
push 1
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 0x14
push eax
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x114]
call fcn.00774de0
mov ecx, dword [ebp - 0x11c]
test al, al
jne 0x585ec4
push 0
call fcn.00770fe0
jmp 0x585ecd
lea eax, [ebp - 0x70]
push eax
call fcn.00770aa0
lea ecx, [ebp - 0x114]
call fcn.00430850
lea ecx, [ebp - 0x70]
call fcn.007711e0
lea ecx, [ebp - 0xa0]
call fcn.00407a10
lea ecx, [ebp - 0x88]
call fcn.00404490
lea ecx, [ebp - 0x58]
call fcn.00404490
lea ecx, [ebp - 0x40]
call fcn.0041b0e0
mov eax, dword [ebp - 0x11c]
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.0076d59e
mov esp, ebp
pop ebp
ret 0xc