Function at 0x582a90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7a451e
mov eax, dword fs:[0]
push eax
sub esp, 0x1a8
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 dword [ebp - 0xd8], edx
mov edi, ecx
mov dword [ebp - 0xe0], edi
mov dword [ebp - 0xe8], edi
xorps xmm0, xmm0
mov dword [ebp - 0xc8], 0
movq qword [edi], xmm0
mov dword [edi + 8], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov eax, 1
movq qword [ebp - 0x44], xmm0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1b4]
push eax
call fcn.00583200
mov esi, eax
xor ecx, ecx
mov eax, dword [esi]
lea edx, [esi + 4]
test eax, eax
je 0x582b61
nop dword [eax + eax]
lea eax, [ecx + 0xa9]
xor word [edx + ecx*2], ax
inc ecx
mov eax, dword [esi]
cmp ecx, eax
jb 0x582b50
xor ecx, ecx
mov dword [ebp - 0x38], reloc.OLEAUT32.dll_SysReAllocString
mov word [edx + eax*2], cx
xor eax, eax
mov dword [ebp - 0x24], ecx
mov ecx, edx
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x582b83
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x34]
call fcn.004044f0
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x44]
call fcn.0045bfa0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.00404490
lea eax, [ebp - 0x1b4]
push eax
call fcn.00583200
mov esi, eax
xor ecx, ecx
mov eax, dword [esi]
lea edx, [esi + 4]
test eax, eax
je 0x582be2
lea eax, [ecx + 0xa9]
xor word [edx + ecx*2], ax
inc ecx
mov eax, dword [esi]
cmp ecx, eax
jb 0x582bd1
xor ecx, ecx
mov dword [ebp - 0x38], SysStringLen
mov word [edx + eax*2], cx
xor eax, eax
mov dword [ebp - 0x24], ecx
mov ecx, edx
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x582c04
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x34]
call fcn.004044f0
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x44]
call fcn.0045bfa0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.00404490
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0xdc], ecx
mov dword [ebp - 0xe0], eax
cmp ecx, eax
je 0x5831cd
mov eax, dword [ecx]
mov dword [ebp - 0xc0], eax
lea eax, [ecx + 4]
push eax
lea ecx, [ebp - 0xbc]
call fcn.00404120
push 0x30
lea eax, [ebp - 0xa4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [ebp - 0xa4], 0
add esp, 0xc
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 7
mov word [ebp - 0x94], ax
mov word [ebp - 0x7c], ax
mov byte [ebp - 0x7a], al
xor ecx, ecx
mov dword [ebp - 0x14], eax
xorps xmm0, xmm0
mov dword [ebp - 0xcc], ecx
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
push 0xf003f
push 0x100
lea eax, [ebp - 0xc0]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0xa4]
call fcn.0057f2d0
test al, al
je 0x582f27
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0xa4]
call fcn.00580380
xor ecx, ecx
mov dword [ebp - 0xe4], eax
mov dword [ebp - 0xd0], ecx
xor esi, esi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0xd4], esi
cmp ecx, eax
je 0x582d7b
call fcn.00404220
mov edx, dword [ebp - 0xe4]
mov ecx, dword [edx]
mov esi, dword [edx + 4]
mov eax, dword [edx + 8]
mov dword [edx], 0
mov dword [edx + 4], 0
mov dword [ebp - 0xcc], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], eax
mov dword [edx + 8], 0
mov dword [ebp - 0xd0], ecx
mov dword [ebp - 0xd4], esi
lea ecx, [ebp - 0x124]
call fcn.00404220
mov eax, dword [ebp - 0xd0]
cmp eax, esi
je 0x582f27
mov esi, dword [ebp - 0xc4]
nop word [eax + eax]
push eax
lea ecx, [ebp - 0x74]
call fcn.00404120
lea eax, [ebp - 0xbc]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x148]
call fcn.00404120
push 1
push 0x7cf384
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.00407c50
mov dword [ebp - 0x4c], 0
xor ecx, ecx
mov dword [ebp - 0x48], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x5c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x4c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov eax, dword [ebp - 0xc4]
or eax, 2
mov dword [ebp - 0xc8], eax
mov byte [ebp - 4], 9
lea eax, [ebp - 0x74]
cmp dword [ebp - 0x60], 8
lea ecx, [ebp - 0x5c]
push dword [ebp - 0x64]
cmovae eax, dword [ebp - 0x74]
push eax
call fcn.00407c50
xor ecx, ecx
or esi, 6
mov dword [ebp - 0xc4], esi
mov dword [ebp - 0xc8], esi
movups xmm1, xmmword [eax]
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0x38], eax
xor eax, eax
movq qword [ebp - 0xf0], xmm0
movups xmmword [ebp - 0x100], xmm1
mov dword [ebp - 0xf0], ecx
movups xmmword [ebp - 0x34], xmm1
mov dword [ebp - 0xec], 7
movq qword [ebp - 0x24], xmm0
mov word [ebp - 0x100], ax
lea ecx, [ebp - 0x100]
call fcn.00404490
lea ecx, [ebp - 0x5c]
call fcn.00404490
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 0xc
call fcn.00404490
push dword [ebp - 0xd8]
mov edx, 0x100
lea ecx, [ebp - 0x38]
call fcn.005840c0
add esp, 4
test al, al
je 0x582ef8
mov ecx, dword [edi + 4]
cmp dword [edi + 8], ecx
je 0x582eec
mov eax, dword [ebp - 0x38]
mov dword [ecx], eax
lea eax, [ebp - 0x34]
add ecx, 4
push eax
call fcn.00404120
add dword [edi + 4], 0x1c
jmp 0x582ef8
lea eax, [ebp - 0x38]
push eax
push ecx
mov ecx, edi
call fcn.00584a90
lea ecx, [ebp - 0x34]
call fcn.00404490
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 6
call fcn.00404490
mov eax, dword [ebp - 0xd0]
add eax, 0x18
mov dword [ebp - 0xd0], eax
cmp eax, dword [ebp - 0xd4]
jne 0x582da0
push 0xf003f
push 0x200
lea eax, [ebp - 0xc0]
push eax
lea ecx, [ebp - 0xa4]
call fcn.0057f2d0
test al, al
je 0x583144
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0xa4]
call fcn.00580380
mov esi, eax
lea eax, [ebp - 0x1c]
cmp eax, esi
je 0x582f98
mov ecx, eax
call fcn.00404220
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 8]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [ebp - 0xcc], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], eax
mov dword [esi + 8], 0
lea ecx, [ebp - 0x130]
call fcn.00404220
mov eax, dword [ebp - 0xcc]
cmp eax, dword [ebp - 0x18]
je 0x583144
mov esi, dword [ebp - 0xc4]
nop dword [eax + eax]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00404120
lea eax, [ebp - 0xbc]
mov byte [ebp - 4], 0xd
push eax
lea ecx, [ebp - 0x148]
call fcn.00404120
push 1
push 0x7cf384
mov ecx, eax
mov byte [ebp - 4], 0xe
call fcn.00407c50
mov dword [ebp - 0x64], 0
xor ecx, ecx
mov dword [ebp - 0x60], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x74], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x64], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov eax, dword [ebp - 0xc4]
or eax, 8
mov dword [ebp - 0xc8], eax
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x5c]
cmp dword [ebp - 0x48], 8
lea ecx, [ebp - 0x74]
push dword [ebp - 0x4c]
cmovae eax, dword [ebp - 0x5c]
push eax
call fcn.00407c50
xor ecx, ecx
or esi, 0x18
mov dword [ebp - 0xc4], esi
mov dword [ebp - 0xc8], esi
movups xmm1, xmmword [eax]
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0x38], eax
xor eax, eax
movq qword [ebp - 0x108], xmm0
movups xmmword [ebp - 0x118], xmm1
mov dword [ebp - 0x108], ecx
movups xmmword [ebp - 0x34], xmm1
mov dword [ebp - 0x104], 7
movq qword [ebp - 0x24], xmm0
mov word [ebp - 0x118], ax
lea ecx, [ebp - 0x118]
call fcn.00404490
lea ecx, [ebp - 0x74]
call fcn.00404490
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 0x12
call fcn.00404490
push dword [ebp - 0xd8]
mov edx, 0x200
lea ecx, [ebp - 0x38]
call fcn.005840c0
add esp, 4
test al, al
je 0x583118
mov eax, dword [edi + 4]
cmp dword [edi + 8], eax
je 0x58310c
mov ecx, dword [ebp - 0x38]
mov dword [eax], ecx
lea ecx, [eax + 4]
lea eax, [ebp - 0x34]
push eax
call fcn.00404120
add dword [edi + 4], 0x1c
jmp 0x583118
lea ecx, [ebp - 0x38]
push ecx
push eax
mov ecx, edi
call fcn.00584a90
lea ecx, [ebp - 0x34]
call fcn.00404490
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 6
call fcn.00404490
mov eax, dword [ebp - 0xcc]
add eax, 0x18
mov dword [ebp - 0xcc], eax
cmp eax, dword [ebp - 0x18]
jne 0x582fc0
lea ecx, [ebp - 0x1c]
call fcn.00404220
mov eax, dword [ebp - 0xa4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x583169
push eax
call esi
mov dword [ebp - 0xa4], 0
lea ecx, [ebp - 0x94]
mov dword [ebp - 0xa0], 0
mov byte [ebp - 0x7c], 0
call fcn.00404490
mov eax, dword [ebp - 0xa4]
test eax, eax
je 0x583199
push eax
call esi
mov dword [ebp - 0xa4], 0
lea ecx, [ebp - 0xbc]
mov dword [ebp - 0xa0], 0
mov byte [ebp - 4], 1
call fcn.00404490
mov ecx, dword [ebp - 0xdc]
add ecx, 0x1c
mov dword [ebp - 0xdc], ecx
cmp ecx, dword [ebp - 0xe0]
jne 0x582c53
lea ecx, [ebp - 0x44]
call fcn.0045c1a0
mov eax, edi
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