Function at 0x597270
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7a5216
mov eax, dword fs:[0]
push eax
sub esp, 0x104
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, dword [ebp + 8]
lea eax, [ebp - 0x74]
mov edi, dword [ebp + 0xc]
push 0x30
push 0
push eax
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [ebp - 0x54], 0
xorps xmm0, xmm0
mov dword [ebp - 0x50], 7
add esp, 0xc
mov word [ebp - 0x64], ax
movups xmmword [ebp - 0x74], xmm0
mov word [ebp - 0x4c], ax
mov byte [ebp - 0x4a], al
mov dword [ebp - 4], eax
xor ecx, ecx
mov dword [ebp - 0xac], 0x17
mov dword [ebp - 0xa8], 0xf600eb
mov dword [ebp - 0xa4], 0xef00fc
mov dword [ebp - 0xa0], 0xfc00eb
mov dword [ebp - 0x9c], 0xfa00ec
mov dword [ebp - 0x98], 0x82009c
mov dword [ebp - 0x94], 0xa200ae
mov dword [ebp - 0x90], 0xb600b7
mov dword [ebp - 0x8c], 0xb400a3
mov dword [ebp - 0x88], 0x8a0094
mov dword [ebp - 0x84], 0x980086
mov dword [ebp - 0x80], 0x890085
mov dword [ebp - 0x7c], 0xcf0092
nop word [eax + eax]
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0xa8], ax
inc ecx
mov eax, dword [ebp - 0xac]
cmp ecx, eax
jb 0x597360
xor ecx, ecx
mov word [ebp + eax*2 - 0xa8], cx
lea eax, [ebp - 0xa8]
push esi
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.0041ee30
mov dword [ebp - 0x30], 0
xor ecx, ecx
mov dword [ebp - 0x2c], 0
add esp, 0xc
mov dword [ebp - 0x44], reloc.OLEAUT32.dll_SysReAllocString
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0x110]
mov byte [ebp - 4], 1
call fcn.00404490
push 0xf003f
push 0
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x74]
call fcn.0057e150
test al, al
jne 0x597402
mov byte [ebp - 0x75], 1
jmp 0x5976d1
mov dword [ebp - 0x9c], 0xf
xor ecx, ecx
mov dword [ebp - 0x98], 0xf000e4
mov dword [ebp - 0x94], 0xeb00d4
mov dword [ebp - 0x90], 0xd200ce
mov dword [ebp - 0x8c], 0xec00dd
mov dword [ebp - 0x88], 0xb300a5
mov dword [ebp - 0x84], 0xa600b4
mov dword [ebp - 0x80], 0xf600b6
mov dword [ebp - 0x7c], 0xc700f4
nop dword [eax + eax]
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x98], ax
inc ecx
mov eax, dword [ebp - 0x9c]
cmp ecx, eax
jb 0x597460
xor ecx, ecx
mov dword [ebp - 0xe0], 0x17
mov word [ebp + eax*2 - 0x98], cx
xor eax, eax
mov dword [ebp - 0xdc], 0xf600eb
mov dword [ebp - 0xd8], 0xef00fc
mov dword [ebp - 0xd4], 0xfc00eb
mov dword [ebp - 0xd0], 0xfa00ec
mov dword [ebp - 0xcc], 0x82009c
mov dword [ebp - 0xc8], 0xa200ae
mov dword [ebp - 0xc4], 0xb600b7
mov dword [ebp - 0xc0], 0xb400a3
mov dword [ebp - 0xbc], 0x8a0094
mov dword [ebp - 0xb8], 0x980086
mov dword [ebp - 0xb4], 0x890085
mov dword [ebp - 0xb0], 0xcf0092
nop word [eax + eax]
lea ecx, [eax + 0xb8]
xor word [ebp + eax*2 - 0xdc], cx
inc eax
mov ecx, dword [ebp - 0xe0]
cmp eax, ecx
jb 0x597510
xor eax, eax
mov word [ebp + ecx*2 - 0xdc], ax
lea eax, [ebp - 0xdc]
push esi
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0041ee30
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 2
push ecx
push eax
lea eax, [ebp - 0xf8]
push eax
call fcn.00408060
mov esi, eax
add esp, 0x18
lea eax, [ebp - 0x40]
cmp eax, esi
je 0x597593
mov ecx, eax
call fcn.00404490
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0xf8]
call fcn.00404490
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00404490
push 0xf003f
push 0
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x74]
call fcn.0057e150
test al, al
je 0x5976cd
xor eax, eax
mov dword [ebp - 0x100], 0
mov dword [ebp - 0xfc], 7
mov word [ebp - 0x110], ax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xf8]
push eax
push 0x7cd378
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0xe4], 7
mov word [ebp - 0xf8], ax
call fcn.004044f0
lea eax, [ebp - 0x110]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0xf8]
push eax
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x74]
call fcn.0057e2d0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
movq qword [ebp - 0x18], xmm0
mov word [eax], cx
lea ecx, [ebp - 0x90]
call fcn.00404490
lea ecx, [ebp - 0xf8]
call fcn.00404490
lea ecx, [ebp - 0x110]
mov byte [ebp - 4], 7
call fcn.00404490
test edi, edi
je 0x597696
lea eax, [ebp - 0x28]
cmp edi, eax
je 0x597696
cmp dword [ebp - 0x14], 8
mov ecx, edi
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004044f0
cmp dword [ebp - 0x18], 0
jne 0x5976aa
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x75], 0
call fcn.00404490
jmp 0x5976d1
lea eax, [ebp - 0x28]
push eax
call fcn.0058ea60
test al, al
je 0x5976c5
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x75], 1
call fcn.00404490
jmp 0x5976d1
lea ecx, [ebp - 0x28]
call fcn.00404490
mov byte [ebp - 0x75], 0
lea ecx, [ebp - 0x40]
call fcn.00404490
mov eax, dword [ebp - 0x74]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x5976f0
push eax
call esi
mov dword [ebp - 0x74], 0
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x70], 0
mov byte [ebp - 0x4c], 0
call fcn.00404490
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x59770d
push eax
call esi
mov al, byte [ebp - 0x75]
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 8