Function at 0x582f40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7a2fed
mov eax, dword fs:[0]
push eax
sub esp, 0xec
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 esi, edx
mov edi, ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
push 0x30
mov dword [ebp - 0xb0], eax
lea eax, [ebp - 0x7c]
push ecx
push eax
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0xac], ecx
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [ebp - 0x5c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x58], 7
add esp, 0xc
mov word [ebp - 0x6c], ax
movups xmmword [ebp - 0x7c], xmm0
mov word [ebp - 0x54], ax
mov byte [ebp - 0x52], al
push 0xf003f
push esi
push edi
lea ecx, [ebp - 0x7c]
mov dword [ebp - 4], eax
call fcn.0057e150
test al, al
je 0x5832a1
mov dword [ebp - 0xa8], 0xf
xor ecx, ecx
mov dword [ebp - 0xa4], 0xd700ed
mov dword [ebp - 0xa0], 0xd500d3
mov dword [ebp - 0x9c], 0xc900cf
mov dword [ebp - 0x98], 0xd300df
mov dword [ebp - 0x94], 0x9200ac
mov dword [ebp - 0x90], 0xb100b6
mov dword [ebp - 0x8c], 0xab00ad
mov dword [ebp - 0x88], 0xc700a1
nop
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0xa4], ax
inc ecx
mov eax, dword [ebp - 0xa8]
cmp ecx, eax
jb 0x583030
xor ecx, ecx
mov word [ebp + eax*2 - 0xa4], cx
xor eax, eax
mov dword [ebp - 0xb8], ecx
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0xb4], 7
lea edx, [ecx + 2]
mov word [ebp - 0xc8], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x583075
sub ecx, edx
lea eax, [ebp - 0xa4]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xc8]
call fcn.004044f0
xor eax, eax
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 7
mov word [ebp - 0x9c], ax
lea eax, [ebp - 0x9c]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0xec]
push eax
lea ecx, [ebp - 0x7c]
call fcn.0057e2d0
mov dword [ebp - 0x3c], 0
xor ecx, ecx
mov dword [ebp - 0x38], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x4c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x3c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0xec]
call fcn.00404490
lea ecx, [ebp - 0x9c]
call fcn.00404490
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 5
call fcn.00404490
cmp dword [ebp - 0x3c], 0
je 0x583299
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x9c]
movups xmmword [ebp - 0x34], xmm0
movups xmmword [ebp - 0x24], xmm0
call fcn.0041cd00
xor ecx, ecx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], cx
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], 8
call fcn.00403b80
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0xa
call fcn.00404490
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x18]
je 0x583289
mov esi, dword [ebp - 0xb0]
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
call fcn.00403a30
test al, al
jne 0x583218
lea eax, [ebp - 0xd4]
push eax
lea ecx, [ebp - 0x34]
call fcn.00403720
mov ecx, 1
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0xac], ecx
mov ecx, eax
push esi
call fcn.00403a30
test al, al
jne 0x583218
lea eax, [ebp - 0xf8]
push eax
lea ecx, [ebp - 0x34]
call fcn.00403720
mov ecx, 3
mov dword [ebp - 4], 0xc
mov dword [ebp - 0x84], ecx
mov edx, esi
mov dword [ebp - 0xac], ecx
mov ecx, eax
call fcn.00402f00
mov byte [ebp - 0x7d], 0
test al, al
je 0x58321c
mov byte [ebp - 0x7d], 1
mov eax, dword [ebp - 0x84]
test al, 2
je 0x58324b
and eax, 0xfffffffd
lea ecx, [ebp - 0xe0]
mov dword [ebp - 0x84], eax
call fcn.00404220
lea ecx, [ebp - 0xf8]
call fcn.00404490
mov eax, dword [ebp - 0x84]
test al, 1
je 0x583265
lea ecx, [ebp - 0xbc]
call fcn.00404220
lea ecx, [ebp - 0xd4]
call fcn.00404490
cmp byte [ebp - 0x7d], 0
je 0x583289
lea ecx, [ebp - 0x1c]
call fcn.00404220
lea ecx, [ebp - 0x34]
call fcn.00404490
lea ecx, [ebp - 0x4c]
call fcn.00404490
mov byte [ebp - 0x7d], 1
jmp 0x5832a5
lea ecx, [ebp - 0x1c]
call fcn.00404220
lea ecx, [ebp - 0x34]
call fcn.00404490
lea ecx, [ebp - 0x4c]
call fcn.00404490
mov byte [ebp - 0x7d], 0
mov eax, dword [ebp - 0x7c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x5832bc
push eax
call esi
mov dword [ebp - 0x7c], 0
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x78], 0
mov byte [ebp - 0x54], 0
call fcn.00404490
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x5832d9
push eax
call esi
mov al, byte [ebp - 0x7d]
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