Function at 0x5d3510
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7aca81
mov eax, dword fs:[0]
push eax
sub esp, 0x328
mov eax, dword [0x831184]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x180], ecx
mov eax, dword [ebp + 8]
push 0x30
mov dword [ebp - 0x178], eax
lea eax, [ebp - 0x4c]
push 0
push eax
mov dword [ebp - 0x17c], 0
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [ebp - 0x2c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x28], 7
add esp, 0xc
mov word [ebp - 0x3c], ax
movups xmmword [ebp - 0x4c], xmm0
mov word [ebp - 0x24], ax
mov byte [ebp - 0x22], al
cmp byte [ebp + 0xc], 0
mov dword [ebp - 4], eax
lea eax, [ebp - 0xe4]
push eax
je 0x5d3620
call fcn.005c9490
mov edi, eax
xor ecx, ecx
mov edx, dword [edi]
lea esi, [edi + 4]
test edx, edx
je 0x5d35c1
nop
lea eax, [ecx + 0xa9]
xor word [esi + ecx*2], ax
inc ecx
mov edx, dword [edi]
cmp ecx, edx
jb 0x5d35b0
xor eax, eax
mov ecx, esi
mov word [esi + edx*2], ax
mov dword [ebp - 0x164], eax
mov dword [ebp - 0x160], 7
mov word [ebp - 0x174], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5d35e3
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x174]
call fcn.004044f0
push 0xf003f
push 0
lea eax, [ebp - 0x174]
mov byte [ebp - 4], 1
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x4c]
call fcn.0057f200
jmp 0x5d369b
call fcn.005c9490
mov edi, eax
xor ecx, ecx
mov edx, dword [edi]
lea esi, [edi + 4]
test edx, edx
je 0x5d3643
lea eax, [ecx + 0xa9]
xor word [esi + ecx*2], ax
inc ecx
mov edx, dword [edi]
cmp ecx, edx
jb 0x5d3632
xor eax, eax
mov dword [ebp - 0x160], 7
mov ecx, esi
mov word [esi + edx*2], ax
mov dword [ebp - 0x164], eax
mov word [ebp - 0x174], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5d3665
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x174]
call fcn.004044f0
push 0xf003f
push 0
lea eax, [ebp - 0x174]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x4c]
call fcn.0057f380
lea ecx, [ebp - 0x174]
mov byte [ebp - 4], 0
mov bl, al
call fcn.00404490
test bl, bl
je 0x5d3b50
mov ebx, dword [ebp - 0x178]
lea ecx, [ebp - 0x7c]
push ebx
call fcn.00404120
xor eax, eax
mov byte [ebp - 4], 3
push eax
push 0x7cf388
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 7
mov word [ebp - 0x64], ax
call fcn.004044f0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x174]
push 1
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
xor eax, eax
movq qword [ebp - 0x1c], xmm0
push 0x7d77a0
mov dword [ebp - 0x164], 0
mov dword [ebp - 0x160], 7
mov word [ebp - 0x174], ax
call fcn.004044f0
lea eax, [ebp - 0x174]
mov byte [ebp - 4], 5
push eax
mov edx, ebx
lea ecx, [ebp - 0x1c]
call fcn.00575f30
add esp, 4
lea ecx, [ebp - 0x174]
mov byte [ebp - 4], 7
call fcn.00404490
mov ecx, dword [ebp - 0x18]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x1c]
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jne 0x5d37ae
lea eax, [ebp - 0x7c]
cmp eax, esi
je 0x5d378f
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x5d3782
mov esi, dword [esi]
push eax
push esi
lea ecx, [ebp - 0x7c]
call fcn.004044f0
mov esi, dword [ebp - 0x1c]
add esi, 0x18
lea eax, [ebp - 0x64]
cmp eax, esi
je 0x5d37ae
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x5d37a4
mov esi, dword [esi]
push eax
push esi
lea ecx, [ebp - 0x64]
call fcn.004044f0
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x1b0]
call fcn.00404120
mov byte [ebp - 4], 8
mov eax, 0xc
mov dword [ebp - 0x14c], eax
xor ecx, ecx
mov dword [ebp - 0x148], 0xcf00ed
mov dword [ebp - 0x144], 0xcd00cd
mov dword [ebp - 0x140], 0xc200d8
mov dword [ebp - 0x13c], 0xe300db
mov dword [ebp - 0x138], 0xdd00d2
mov dword [ebp - 0x134], 0xd100c3
mov dword [ebp - 0x130], 0xb5
nop dword [eax]
nop dword [eax + eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0x148], ax
inc ecx
mov eax, dword [ebp - 0x14c]
cmp ecx, eax
jb 0x5d3820
xor ecx, ecx
mov word [ebp + eax*2 - 0x148], cx
xor eax, eax
mov dword [ebp - 0x188], ecx
lea ecx, [ebp - 0x148]
mov dword [ebp - 0x184], 7
lea edx, [ecx + 2]
mov word [ebp - 0x198], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5d3865
sub ecx, edx
lea eax, [ebp - 0x148]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x198]
call fcn.004044f0
lea eax, [ebp - 0x1b0]
push eax
lea eax, [ebp - 0x198]
push eax
lea ecx, [ebp - 0x4c]
call fcn.0057f630
lea ecx, [ebp - 0x198]
call fcn.00404490
lea ecx, [ebp - 0x1b0]
mov byte [ebp - 4], 7
call fcn.00404490
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x4c]
call fcn.0057f2f0
test al, al
je 0x5d3b38
push 0xb0
lea eax, [ebp - 0x12c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x12c], 0x7d6f90
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0x11c], 0x7d7228
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::constructor_void_]
push 0
lea eax, [ebp - 0x114]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x17c], 1
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::constructor_class_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t____]
mov dword [ebp - 4], 0xa
mov eax, dword [ebp - 0x12c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x12c], 0x7c81a4
mov eax, dword [ebp - 0x12c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x130], eax
lea ecx, [ebp - 0x114]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::constructor_void_]
mov dword [ebp - 0x114], 0x7c8164
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xd8], 0
mov eax, dword [ebp - 0x180]
lea ecx, [ebp - 0x198]
mov byte [ebp - 4], 0xb
mov eax, dword [eax + 0xb8]
add eax, 0xc
push eax
call fcn.00404120
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x198]
cmp dword [ebp - 0x184], 8
push dword [ebp - 0x188]
cmovae eax, dword [ebp - 0x198]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.00404c80
mov edx, 0x14
mov dword [ebp - 0x158], 0xd90089
add esp, 0xc
mov dword [ebp - 0x15c], edx
mov esi, eax
mov dword [ebp - 0x154], 0xd800ce
mov dword [ebp - 0x150], 0xdd008d
xor ecx, ecx
mov dword [ebp - 0x14c], 0xd100ca
mov dword [ebp - 0x148], 0xd100c3
mov dword [ebp - 0x144], 0x9400db
mov dword [ebp - 0x140], 0xcf00c6
mov dword [ebp - 0x13c], 0xcc00c4
mov dword [ebp - 0x138], 0xd700dc
mov dword [ebp - 0x134], 0x9c0081
mov dword [ebp - 0x130], 0xbd
nop word [eax + eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0x158], ax
inc ecx
mov edx, dword [ebp - 0x15c]
cmp ecx, edx
jb 0x5d3a50
xor eax, eax
mov word [ebp + edx*2 - 0x158], ax
lea eax, [ebp - 0x158]
push eax
push esi
call fcn.00404740
mov ecx, dword [ebx + 0x10]
add esp, 8
cmp dword [ebx + 0x14], 8
jb 0x5d3a8e
mov ebx, dword [ebx]
push ecx
push ebx
push eax
call fcn.00404c80
add esp, 0xc
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x198]
call fcn.00404490
call fcn.004345f0
mov edi, eax
lea eax, [ebp - 0x264]
push eax
call fcn.005d3bb0
mov ecx, eax
call fcn.00403e20
mov esi, eax
lea eax, [ebp - 0x334]
push eax
call fcn.005ca690
mov ecx, eax
call fcn.00403e20
lea ecx, [ebp - 0x12c]
push ecx
push esi
push 0x335
push eax
push 1
mov ecx, edi
call fcn.00469f50
mov eax, dword [ebp - 0x12c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x12c], 0x7c81a4
mov eax, dword [ebp - 0x12c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x130], eax
lea ecx, [ebp - 0x114]
call fcn.004073e0
lea ecx, [ebp - 0x10c]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
lea ecx, [ebp - 0xc4]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x1c]
call fcn.00404220
lea ecx, [ebp - 0x64]
call fcn.00404490
lea ecx, [ebp - 0x7c]
call fcn.00404490
mov eax, dword [ebp - 0x4c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x5d3b67
push eax
call esi
mov dword [ebp - 0x4c], 0
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x24], 0
call fcn.00404490
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x5d3b84
push eax
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0076eb7e
mov esp, ebp
pop ebp
ret 0xc