Function at 0x586760
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7a4ca0
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x831184]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov edi, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x130], 0x13
mov dword [ebp - 0x12c], 0xf900f5
mov dword [ebp - 0x128], 0xcf00ce
mov dword [ebp - 0x124], 0xdc00d8
mov dword [ebp - 0x120], 0x9000ca
mov dword [ebp - 0x11c], 0xc000e1
mov dword [ebp - 0x118], 0xd200d6
mov dword [ebp - 0x114], 0xc400d0
mov dword [ebp - 0x110], 0xd600d2
mov dword [ebp - 0x10c], 0xdf00da
mov dword [ebp - 0x108], 0xbc00c8
nop dword [eax]
nop word [eax + eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0x12c], ax
inc ecx
mov eax, dword [ebp - 0x130]
cmp ecx, eax
jb 0x586810
xor ecx, ecx
mov word [ebp + eax*2 - 0x12c], cx
lea ecx, [ebp - 0xe8]
mov eax, dword [edx + 0xc]
add eax, 0x84
push eax
call fcn.00404120
lea eax, [ebp - 0x12c]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0xe8]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00408060
add esp, 0xc
lea ecx, [ebp - 0xe8]
call fcn.00404490
xor eax, eax
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 7
mov word [ebp - 0xf4], ax
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xd4], eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0xf4]
call fcn.00403b80
lea eax, [ebp - 0xf4]
mov byte [ebp - 4], 5
push eax
call fcn.00418540
add esp, 4
mov byte [ebp - 0xcd], al
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 2
call fcn.00404220
lea ecx, [ebp - 0xf4]
call fcn.00404490
cmp byte [ebp - 0xcd], 0
jne 0x5868fd
mov byte [ebp - 0xcd], 0
jmp 0x586aa3
xor eax, eax
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 7
mov word [ebp - 0xf4], ax
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xd4], eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0xf4]
call fcn.00403b80
lea eax, [ebp - 0xf4]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00418020
add esp, 8
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 0xa
call fcn.00404220
lea ecx, [ebp - 0xf4]
call fcn.00404490
xorps xmm0, xmm0
lea ecx, [ebp - 0x28]
push 0
movups xmmword [ebp - 0x28], xmm0
movq qword [ebp - 0x18], xmm0
call fcn.007725c0
push 0x74
lea eax, [ebp - 0xcc]
mov byte [ebp - 4], 0xb
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0xcc]
call fcn.00774c70
push 1
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0xcc]
call fcn.007763c0
test al, al
je 0x586a81
lea ecx, [ebp - 0xe0]
mov dword [ebp - 0xe0], 0xa
mov dword [ebp - 0xdc], 0xc9dfd2cc
mov dword [ebp - 0xd8], 0xdfc6ddc3
mov dword [ebp - 0xd4], 0xb3c1df
call fcn.004131e0
push eax
lea ecx, [ebp - 0x28]
call fcn.00772ae0
mov esi, eax
mov ecx, esi
call fcn.007740b0
test al, al
je 0x586a81
xor eax, eax
mov dword [ebp - 0x104], 8
lea ecx, [ebp - 0x104]
mov dword [ebp - 0x100], 0xd8dfcfda
mov dword [ebp - 0xfc], 0xc3c8c0c4
mov byte [ebp - 0xf8], 0xb1
mov word [ebp - 0xf7], ax
mov byte [ebp - 0xf5], al
call fcn.004131e0
push eax
mov ecx, esi
call fcn.00772ae0
mov esi, eax
mov ecx, esi
call fcn.007740b0
test al, al
je 0x586a81
sub esp, 0x18
mov ecx, esp
push esi
call fcn.00772080
mov ecx, edi
call fcn.00772890
mov byte [ebp - 0xcd], 1
jmp 0x586a88
mov byte [ebp - 0xcd], 0
lea ecx, [ebp - 0xcc]
call fcn.00430850
lea ecx, [ebp - 0x28]
call fcn.007727c0
lea ecx, [ebp - 0x58]
call fcn.00407a10
lea ecx, [ebp - 0x40]
call fcn.00404490
mov al, byte [ebp - 0xcd]
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.0076eb7e
mov esp, ebp
pop ebp
ret 4