Function at 0x656120
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7b8559
mov eax, dword fs:[0]
push eax
sub esp, 0x35c
mov eax, dword [0x82f184]
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 edi, ecx
mov dword [ebp - 0x1ac], 0
call fcn.006588b0
test al, al
je 0x6569ae
push 0x30
lea eax, [ebp - 0x58]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [ebp - 0x38], 0
xorps xmm0, xmm0
mov dword [ebp - 0x34], 7
add esp, 0xc
mov word [ebp - 0x48], ax
movups xmmword [ebp - 0x58], xmm0
mov word [ebp - 0x30], ax
mov byte [ebp - 0x2e], al
mov dword [ebp - 4], eax
xor ecx, ecx
mov dword [ebp - 0x1a8], 0x1f
mov dword [ebp - 0x1a4], 0xd600eb
mov dword [ebp - 0x1a0], 0xcf00dc
mov dword [ebp - 0x19c], 0xdc00cb
mov dword [ebp - 0x198], 0xda00cc
mov dword [ebp - 0x194], 0x91009c
mov dword [ebp - 0x190], 0xaf00ad
mov dword [ebp - 0x18c], 0xa600ad
mov dword [ebp - 0x188], 0xa200af
mov dword [ebp - 0x184], 0x9500bb
mov dword [ebp - 0x180], 0xa4008d
mov dword [ebp - 0x17c], 0xaa00a3
mov dword [ebp - 0x178], 0xaa00a2
mov dword [ebp - 0x174], 0x92008c
mov dword [ebp - 0x170], 0xa100ba
mov dword [ebp - 0x16c], 0xb800bb
mov dword [ebp - 0x168], 0xd700b3
nop dword [eax + eax]
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x1a4], ax
inc ecx
mov eax, dword [ebp - 0x1a8]
cmp ecx, eax
jb 0x656250
xor ecx, ecx
mov word [ebp + eax*2 - 0x1a4], cx
mov eax, dword [edi + 4]
mov dword [ebp - 0x140], eax
xor eax, eax
mov dword [ebp - 0x12c], ecx
lea ecx, [ebp - 0x1a4]
mov dword [ebp - 0x128], 7
lea edx, [ecx + 2]
mov word [ebp - 0x13c], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x6562a0
sub ecx, edx
lea eax, [ebp - 0x1a4]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x13c]
call fcn.004044f0
push 0xf003f
push 0
lea eax, [ebp - 0x140]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x58]
call fcn.0057e150
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 0
mov bl, al
call fcn.00404490
test bl, bl
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x656512
push 0xb0
lea eax, [ebp - 0x120]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x120], 0x7d4f80
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0x110], 0x7d5218
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 - 0x108]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x1ac], 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], 3
mov eax, dword [ebp - 0x120]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method..7.virtual_0], vtable..7.0
mov eax, dword [ebp - 0x120]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x124], eax
lea ecx, [ebp - 0x108]
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 - 0x108], 0x7c6164
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xcc], 0
mov byte [ebp - 4], 4
xor ecx, ecx
mov dword [ebp - 0x158], 0x17
mov dword [ebp - 0x154], 0xcb00fd
mov dword [ebp - 0x150], 0xd400c8
mov dword [ebp - 0x14c], 0x8700ce
mov dword [ebp - 0x148], 0xed009e
mov dword [ebp - 0x144], 0xa600a5
mov dword [ebp - 0x140], 0xb000ab
mov dword [ebp - 0x13c], 0xb700b0
mov dword [ebp - 0x138], 0xfd00bf
mov dword [ebp - 0x134], 0xa600f2
mov dword [ebp - 0x130], 0xae00ba
mov dword [ebp - 0x12c], 0xe500a2
mov dword [ebp - 0x128], 0xcf00e7
nop dword [eax]
nop dword [eax + eax]
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x154], ax
inc ecx
mov eax, dword [ebp - 0x158]
cmp ecx, eax
jb 0x656440
xor ecx, ecx
mov word [ebp + eax*2 - 0x154], cx
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.00404740
add esp, 8
call fcn.00434600
mov edi, eax
lea eax, [ebp - 0x2ac]
push eax
call fcn.00656b60
mov ecx, eax
call fcn.00403e20
mov esi, eax
lea eax, [ebp - 0x368]
push eax
call fcn.006569d0
mov ecx, eax
call fcn.00403e20
lea ecx, [ebp - 0x120]
push ecx
push esi
push 0x1f
push eax
push 0
mov ecx, edi
call fcn.00469240
mov eax, dword [ebp - 0x120]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method..7.virtual_0], vtable..7.0
mov eax, dword [ebp - 0x120]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x124], eax
lea ecx, [ebp - 0x108]
call fcn.004073e0
lea ecx, [ebp - 0x100]
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 - 0xb8]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
mov byte [ebp - 0x121], 0
jmp 0x65697a
mov eax, 0x1c
mov byte [ebp - 0x121], 0
mov dword [ebp - 0x164], eax
xor ecx, ecx
mov dword [ebp - 0x160], 0xdc00fc
mov dword [ebp - 0x15c], 0xda00dc
mov dword [ebp - 0x158], 0xd100c9
mov dword [ebp - 0x154], 0xec00ca
mov dword [ebp - 0x150], 0xa000a5
mov dword [ebp - 0x14c], 0xa000b0
mov dword [ebp - 0x148], 0x9500ac
mov dword [ebp - 0x144], 0xa800b4
mov dword [ebp - 0x140], 0xa000be
mov dword [ebp - 0x13c], 0xae00ae
mov dword [ebp - 0x138], 0x8800be
mov dword [ebp - 0x134], 0xae00a0
mov dword [ebp - 0x130], 0xbd00b2
mov dword [ebp - 0x12c], 0xb700b7
mov dword [ebp - 0x128], 0xd4
nop dword [eax]
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x160], ax
inc ecx
mov eax, dword [ebp - 0x164]
cmp ecx, eax
jb 0x6565c0
xor ecx, ecx
mov word [ebp + eax*2 - 0x160], cx
xor eax, eax
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x160]
mov dword [ebp - 0x14], 7
lea edx, [ecx + 2]
mov word [ebp - 0x28], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x656600
sub ecx, edx
lea eax, [ebp - 0x160]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.004044f0
push 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x58]
call fcn.0057e7a0
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.00404490
cmp esi, 1
jne 0x656952
lea ecx, [ebp - 0x1f0]
mov dword [ebp - 0x1f0], 0x1e
mov dword [ebp - 0x1ec], 0xdc00fc
mov dword [ebp - 0x1e8], 0xda00dc
mov dword [ebp - 0x1e4], 0xd100c9
mov dword [ebp - 0x1e0], 0xec00ca
mov dword [ebp - 0x1dc], 0xa000a5
mov dword [ebp - 0x1d8], 0xa000b0
mov dword [ebp - 0x1d4], 0x9500ac
mov dword [ebp - 0x1d0], 0xa800b4
mov dword [ebp - 0x1cc], 0xa000be
mov dword [ebp - 0x1c8], 0xae00ae
mov dword [ebp - 0x1c4], 0x9e00be
mov dword [ebp - 0x1c0], 0xae00ab
mov dword [ebp - 0x1bc], 0xb200a2
mov dword [ebp - 0x1b8], 0x8600ba
mov dword [ebp - 0x1b4], 0x990086
mov dword [ebp - 0x1b0], 0xd6
call fcn.00403e20
mov edx, eax
mov dword [ebp - 0x1f8], 0
mov ecx, edx
mov dword [ebp - 0x1f4], 7
xor eax, eax
mov word [ebp - 0x208], ax
lea eax, [ecx + 2]
mov dword [ebp - 0x1ac], eax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x656720
sub ecx, dword [ebp - 0x1ac]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x208]
call fcn.004044f0
xor eax, eax
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x128], 7
mov word [ebp - 0x13c], ax
lea eax, [ebp - 0x13c]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x58]
call fcn.0057e2d0
lea ecx, [ebp - 0x13c]
call fcn.00404490
lea ecx, [ebp - 0x208]
mov byte [ebp - 4], 9
call fcn.00404490
lea ecx, [ebp - 0x1a4]
mov dword [ebp - 0x1a4], 0x1c
mov dword [ebp - 0x1a0], 0xdc00fc
mov dword [ebp - 0x19c], 0xda00dc
mov dword [ebp - 0x198], 0xd100c9
mov dword [ebp - 0x194], 0xec00ca
mov dword [ebp - 0x190], 0xa000a5
mov dword [ebp - 0x18c], 0xa000b0
mov dword [ebp - 0x188], 0x9500ac
mov dword [ebp - 0x184], 0xa800b4
mov dword [ebp - 0x180], 0xa000be
mov dword [ebp - 0x17c], 0xae00ae
mov dword [ebp - 0x178], 0x8600be
mov dword [ebp - 0x174], 0xb600ab
mov dword [ebp - 0x170], 0xbe00a7
mov dword [ebp - 0x16c], 0xb700a0
mov dword [ebp - 0x168], 0xd4
call fcn.00403e20
mov edx, eax
mov dword [ebp - 0x12c], 0
mov ecx, edx
mov dword [ebp - 0x128], 7
xor eax, eax
mov word [ebp - 0x13c], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x656864
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x13c]
call fcn.004044f0
xor eax, eax
mov dword [ebp - 0x1f8], 0
mov dword [ebp - 0x1f4], 7
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x208]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x58]
call fcn.0057e2d0
lea ecx, [ebp - 0x208]
call fcn.00404490
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 0xe
call fcn.00404490
call fcn.00451010
lea ecx, [ebp - 0x70]
push ecx
mov ecx, eax
call fcn.0058a560
test al, al
jne 0x6568fd
call fcn.00451010
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.0058a560
test al, al
je 0x656942
mov ecx, dword [ebp - 0x60]
test ecx, ecx
je 0x656920
cmp ecx, 3
jb 0x656920
lea edx, [edi + 8]
lea eax, [ebp - 0x70]
cmp edx, eax
je 0x65693b
cmp dword [ebp - 0x5c], 8
push ecx
cmovae eax, dword [ebp - 0x70]
mov ecx, edx
jmp 0x656935
lea ecx, [edi + 8]
lea eax, [ebp - 0x28]
cmp ecx, eax
je 0x65693b
cmp dword [ebp - 0x14], 8
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004044f0
mov byte [ebp - 0x121], 1
lea ecx, [ebp - 0x70]
call fcn.00404490
lea ecx, [ebp - 0x28]
call fcn.00404490
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x656963
push eax
call ebx
mov dword [ebp - 0x58], 0
push dword [edi + 4]
mov dword [ebp - 0x54], 0
mov byte [ebp - 0x30], 0
call ebx
mov ecx, edi
call fcn.00659530
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x65698b
push eax
call ebx
mov dword [ebp - 0x58], 0
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x54], 0
mov byte [ebp - 0x30], 0
call fcn.00404490
mov ecx, dword [ebp - 0x58]
test ecx, ecx
je 0x6569a8
push ecx
call ebx
mov al, byte [ebp - 0x121]
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.0076d59e
mov esp, ebp
pop ebp
ret