Function at 0x59ac50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7a6ca0
mov eax, dword fs:[0]
push eax
sub esp, 0xec
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 esi, dword [ebp + 8]
cmp dword [esi + 0x10], 0
jne 0x59ac8d
xor al, al
jmp 0x59afeb
push 0x30
lea eax, [ebp - 0x5c]
mov byte [ebp - 0x5d], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [ebp - 0x3c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x38], 7
add esp, 0xc
mov word [ebp - 0x4c], ax
movups xmmword [ebp - 0x5c], xmm0
mov word [ebp - 0x34], ax
mov byte [ebp - 0x32], al
mov dword [ebp - 4], eax
xor ecx, ecx
mov dword [ebp - 0x90], 0x11
mov dword [ebp - 0x8c], 0xc500fa
mov dword [ebp - 0x88], 0xd800cd
mov dword [ebp - 0x84], 0xcf00da
mov dword [ebp - 0x80], 0xd500dd
mov dword [ebp - 0x7c], 0xf100ed
mov dword [ebp - 0x78], 0xd500df
mov dword [ebp - 0x74], 0xc500c6
mov dword [ebp - 0x70], 0xcb00d2
mov dword [ebp - 0x6c], 0xba00e5
nop word [eax + eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0x8c], ax
inc ecx
mov eax, dword [ebp - 0x90]
cmp ecx, eax
jb 0x59ad20
xor ecx, ecx
mov word [ebp + eax*2 - 0x8c], cx
lea eax, [ebp - 0x8c]
push esi
push eax
lea eax, [ebp - 0xf8]
push eax
call fcn.0041ee30
mov dword [ebp - 0x18], 0
xor ecx, ecx
mov dword [ebp - 0x14], 0
add esp, 0xc
mov dword [ebp - 0x2c], SysStringLen
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 1
call fcn.00404490
push 0xf003f
push 0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x5c]
call fcn.0057f2d0
test al, al
je 0x59adc2
mov byte [ebp - 0x64], 1
jmp 0x59afac
mov dword [ebp - 0xb8], 0x11
xor eax, eax
mov dword [ebp - 0xb4], 0xc500fa
mov dword [ebp - 0xb0], 0xd800cd
mov dword [ebp - 0xac], 0xcf00da
mov dword [ebp - 0xa8], 0xd500dd
mov dword [ebp - 0xa4], 0xf100ed
mov dword [ebp - 0xa0], 0xd500df
mov dword [ebp - 0x9c], 0xc500c6
mov dword [ebp - 0x98], 0xcb00d2
mov dword [ebp - 0x94], 0xba00e5
nop dword [eax + eax]
lea ecx, [eax + 0xa9]
xor word [ebp + eax*2 - 0xb4], cx
inc eax
mov ecx, dword [ebp - 0xb8]
cmp eax, ecx
jb 0x59ae30
xor eax, eax
mov dword [ebp - 0x84], reloc.OLEAUT32.dll_SysReAllocString
mov word [ebp + ecx*2 - 0xb4], ax
lea eax, [ebp - 0xb4]
push esi
push eax
lea eax, [ebp - 0xd0]
push eax
call fcn.0041ee30
xor ecx, ecx
add esp, 0xc
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xe0], xmm0
movups xmmword [ebp - 0x80], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0x28]
movq qword [ebp - 0x68], xmm0
movq qword [ebp - 0x70], xmm0
mov dword [ebp - 0x2c], reloc.OLEAUT32.dll_SysReAllocString
call fcn.00404490
movups xmm0, xmmword [ebp - 0xe0]
xor eax, eax
mov dword [ebp - 0x70], 0
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x6c], 7
movups xmmword [ebp - 0x28], xmm0
mov word [ebp - 0x80], ax
movq xmm0, qword [ebp - 0x68]
movq qword [ebp - 0x18], xmm0
call fcn.00404490
lea ecx, [ebp - 0xd0]
call fcn.00404490
push 0xf003f
push 0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x5c]
call fcn.0057f2d0
test al, al
je 0x59af0f
mov byte [ebp - 0x64], 1
jmp 0x59afac
push esi
lea eax, [ebp - 0xd0]
push 0x7cf384
push eax
call fcn.0041ee30
add esp, 0xc
mov dword [ebp - 0x64], SysStringLen
lea ecx, [ebp - 0x84]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.0045c550
mov ecx, dword [eax]
lea esi, [eax + 4]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], ecx
cmp eax, esi
je 0x59af75
mov ecx, eax
call fcn.00404490
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x80]
call fcn.00404490
lea ecx, [ebp - 0xd0]
call fcn.00404490
push 0xf003f
push 0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x5c]
call fcn.0057f2d0
movzx ecx, byte [ebp - 0x5d]
test al, al
mov edx, 1
cmovne ecx, edx
mov dword [ebp - 0x64], ecx
lea ecx, [ebp - 0x28]
call fcn.00404490
mov eax, dword [ebp - 0x5c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x59afcb
push eax
call esi
mov dword [ebp - 0x5c], 0
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x58], 0
mov byte [ebp - 0x34], 0
call fcn.00404490
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x59afe8
push eax
call esi
mov al, byte [ebp - 0x64]
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