Function at 0x61ed80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7b2572
mov eax, dword fs:[0]
push eax
sub esp, 0x2bc
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, ecx
lea edi, [esi + 4]
mov dword [ebp - 0x118], 0
mov dword [esi], 0x30
push edi
push dword [edi + 4]
mov dword [ebp - 0x174], edi
push dword [edi]
call fcn.00451ac0
mov eax, dword [edi]
add esp, 0xc
mov dword [edi + 4], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x28]
movq qword [ebp - 0x28], xmm0
mov ecx, esi
mov dword [ebp - 0x20], 0
push eax
call fcn.0061e270
mov dword [ebp - 4], 0
mov eax, 0x2aaaaaab
mov edi, dword [ebp - 0x24]
mov ecx, edi
mov esi, dword [ebp - 0x28]
sub ecx, esi
imul ecx
mov dword [ebp - 0x11c], esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x61f417
push 5
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ecx, eax
mov dword [ebp - 0x118], ecx
test ecx, ecx
jne 0x61f04c
push 0xb0
push eax
lea eax, [ebp - 0xf0]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xf0], 0x7d4f80
lea ecx, [ebp - 0x88]
mov dword [ebp - 0xe0], 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 - 0xd8]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0xf0]
mov dword [ebp - 0x118], 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], 2
mov eax, dword [ebp - 0xf0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xf0], vtable..7.0
mov eax, dword [ebp - 0xf0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xf4], eax
lea ecx, [ebp - 0xd8]
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 - 0xd8], 0x7c6164
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 0
mov byte [ebp - 4], 3
xor ecx, ecx
mov dword [ebp - 0x154], 0x15
mov dword [ebp - 0x150], 0xc900f7
mov dword [ebp - 0x14c], 0xd500df
mov dword [ebp - 0x148], 0xfe00ef
mov dword [ebp - 0x144], 0xde00f3
mov dword [ebp - 0x140], 0xa000ae
mov dword [ebp - 0x13c], 0xa600a5
mov dword [ebp - 0x138], 0xe900b6
mov dword [ebp - 0x134], 0xa200e6
mov dword [ebp - 0x130], 0xbb00ba
mov dword [ebp - 0x12c], 0xb900a5
mov dword [ebp - 0x128], 0xcd00ec
nop dword [eax]
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x150], ax
inc ecx
mov eax, dword [ebp - 0x154]
cmp ecx, eax
jb 0x61ef70
xor ecx, ecx
mov word [ebp + eax*2 - 0x150], cx
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0xe0]
push eax
call fcn.00404740
add esp, 8
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int_]
call fcn.00434600
mov edi, eax
lea eax, [ebp - 0x228]
push eax
call fcn.0061f6f0
mov ecx, eax
call fcn.00403e20
mov esi, eax
lea eax, [ebp - 0x2c8]
push eax
call fcn.0061e960
mov ecx, eax
call fcn.00403e20
lea ecx, [ebp - 0xf0]
push ecx
push esi
push 0x54
push eax
push 0
mov ecx, edi
call fcn.00469240
mov eax, dword [ebp - 0xf0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xf0], vtable..7.0
mov eax, dword [ebp - 0xf0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xf4], eax
lea ecx, [ebp - 0xd8]
call fcn.004073e0
lea ecx, [ebp - 0xd0]
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 - 0x88]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
jmp 0x61f417
cmp esi, edi
je 0x61f410
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x61f05e
mov eax, dword [esi]
push 1
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x61f43c
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x61f3f8
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x120], eax
push ecx
push dword [ebp - 0x18]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0x61f0c4
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x61f3f8
xor eax, eax
mov dword [ebp - 0x30], 0
push eax
push 0x7cd378
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.004044f0
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 7
push eax
push 0
push 0
push 1
push edi
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfig2W]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x61f11c
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], al
call fcn.00404490
jmp 0x61f3f8
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x124], esi
push esi
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfig2W]
test eax, eax
je 0x61f1e4
test esi, esi
je 0x61f1e4
mov edx, dword [esi]
test edx, edx
je 0x61f1e4
xor eax, eax
mov dword [ebp - 0x160], 0
mov word [ebp - 0x170], ax
mov eax, edx
mov dword [ebp - 0x15c], 7
lea esi, [eax + 2]
nop word [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x61f180
sub eax, esi
lea ecx, [ebp - 0x170]
sar eax, 1
push eax
push edx
call fcn.004044f0
lea ecx, [ebp - 0x40]
call fcn.00404490
movups xmm0, xmmword [ebp - 0x170]
xor eax, eax
lea ecx, [ebp - 0x170]
mov word [ebp - 0x170], ax
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [ebp - 0x160]
movq qword [ebp - 0x30], xmm0
mov dword [ebp - 0x160], 0
mov dword [ebp - 0x15c], 7
call fcn.00404490
mov eax, dword [ebp - 0x120]
lea ecx, [ebp - 0x18c]
xorps xmm0, xmm0
mov dword [ebp - 0xf4], 0
movups xmmword [ebp - 0x114], xmm0
movups xmmword [ebp - 0x104], xmm0
push dword [eax + 0xc]
call fcn.004040b0
lea eax, [ebp - 0x18c]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x114]
call fcn.00403150
lea ecx, [ebp - 0x18c]
mov byte [ebp - 4], 0xa
call fcn.00404490
mov eax, dword [ebp - 0x120]
push eax
mov esi, dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x124]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xorps xmm0, xmm0
push 0x58
movlpd qword [ebp - 0x1c], xmm0
call fcn.0076d2e3
mov edi, eax
mov dword [ebp - 0x158], edi
push 0x58
push 0
push edi
mov byte [ebp - 4], 0xb
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x18c]
push eax
call fcn.00404120
lea eax, [ebp - 0x114]
mov byte [ebp - 4], 0xc
push eax
lea ecx, [ebp - 0x148]
call fcn.00402e80
push dword [ebp - 0x11c]
lea ecx, [ebp - 0x170]
mov byte [ebp - 4], 0xd
call fcn.00404120
lea eax, [ebp - 0x170]
mov byte [ebp - 4], 0x10
lea ecx, [edi + 4]
mov dword [edi], esi
push eax
call fcn.00404120
lea eax, [ebp - 0x18c]
mov byte [ebp - 4], 0x11
lea ecx, [edi + 0x1c]
push eax
call fcn.00404120
lea esi, [edi + 0x34]
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x148]
mov dword [ebp - 0x124], esi
push eax
mov ecx, esi
call fcn.00404120
mov byte [ebp - 4], 0x13
lea ecx, [esi + 0x18]
lea eax, [ebp - 0x130]
push eax
call fcn.00403f00
lea ecx, [ebp - 0x170]
call fcn.00404490
lea ecx, [ebp - 0x130]
call fcn.00404220
lea ecx, [ebp - 0x148]
call fcn.00404490
lea ecx, [ebp - 0x18c]
call fcn.00404490
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x158]
mov dword [ebp - 0x1c], 0
push edi
mov dword [ebp - 0x18], 0
call fcn.006223b0
mov edi, dword [ebp - 0x174]
mov byte [ebp - 4], 0x14
mov ecx, dword [edi + 4]
cmp dword [edi + 8], ecx
je 0x61f398
mov esi, dword [ebp - 0x18]
mov dword [ecx], 0
mov dword [ecx + 4], 0
test esi, esi
je 0x61f38a
lock inc dword [esi + 4]
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
mov dword [ecx + 4], esi
add dword [edi + 4], 8
jmp 0x61f3a7
lea eax, [ebp - 0x1c]
push eax
push ecx
mov ecx, edi
call fcn.00465770
mov esi, dword [ebp - 0x18]
mov byte [ebp - 4], 0x15
test esi, esi
je 0x61f3d0
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x61f3d0
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x61f3d0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea ecx, [ebp - 0xfc]
call fcn.00404220
lea ecx, [ebp - 0x114]
call fcn.00404490
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00404490
mov esi, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x118]
add esi, 0x18
mov dword [ebp - 0x11c], esi
cmp esi, dword [ebp - 0x24]
jne 0x61f054
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ecx, [ebp - 0x28]
call fcn.00404220
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 4
push 0xb0
lea eax, [ebp - 0xf0]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xf0], 0x7d4f80
lea ecx, [ebp - 0x88]
mov dword [ebp - 0xe0], 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 - 0xd8]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0xf0]
mov dword [ebp - 0x118], 2
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], 5
mov eax, dword [ebp - 0xf0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xf0], vtable..7.0
mov eax, dword [ebp - 0xf0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xf4], eax
lea ecx, [ebp - 0xd8]
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 - 0xd8], 0x7c6164
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 0
mov byte [ebp - 4], 6
xor ecx, ecx
mov dword [ebp - 0x150], 0x13
mov dword [ebp - 0x14c], 0xc900f7
mov dword [ebp - 0x148], 0xd500df
mov dword [ebp - 0x144], 0xd800ef
mov dword [ebp - 0x140], 0xc900cc
mov dword [ebp - 0x13c], 0xa200a9
mov dword [ebp - 0x138], 0xef00a7
mov dword [ebp - 0x134], 0xa000e4
mov dword [ebp - 0x130], 0xb500b4
mov dword [ebp - 0x12c], 0xbb00a7
mov dword [ebp - 0x128], 0xcb00ea
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x14c], ax
inc ecx
mov eax, dword [ebp - 0x150]
cmp ecx, eax
jb 0x61f561
xor ecx, ecx
mov word [ebp + eax*2 - 0x14c], cx
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 0xe0]
push eax
call fcn.00404740
add esp, 8
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int_]
mov edx, dword [0x83df60]
mov dword [ebp - 0x11c], edx
test edx, edx
jne 0x61f5fc
push 0x20
call fcn.0076d2e3
mov edx, eax
xorps xmm0, xmm0
mov dword [ebp - 0x158], edx
add esp, 4
xor eax, eax
mov dword [ebp - 0x11c], edx
movups xmmword [edx], xmm0
movups xmmword [edx + 0x10], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], eax
mov dword [0x83df60], edx
lea eax, [ebp - 0x228]
push eax
call fcn.0061f830
mov edi, eax
xor ecx, ecx
mov esi, dword [edi]
lea eax, [edi + 4]
mov dword [ebp - 0x120], eax
test esi, esi
je 0x61f63d
mov edx, eax
nop dword [eax]
lea eax, [ecx + 0xb8]
xor word [edx + ecx*2], ax
inc ecx
mov esi, dword [edi]
cmp ecx, esi
jb 0x61f620
mov edx, dword [ebp - 0x11c]
mov eax, dword [ebp - 0x120]
xor ecx, ecx
mov word [eax + esi*2], cx
lea eax, [ebp - 0x2c8]
push eax
call fcn.0061e960
mov edi, eax
mov esi, dword [edi]
lea eax, [edi + 4]
mov dword [ebp - 0x118], eax
test esi, esi
je 0x61f67f
mov edx, eax
lea eax, [ecx + 0xb8]
xor word [edx + ecx*2], ax
inc ecx
mov esi, dword [edi]
cmp ecx, esi
jb 0x61f662
mov edx, dword [ebp - 0x11c]
mov eax, dword [ebp - 0x118]
xor ecx, ecx
mov word [eax + esi*2], cx
lea ecx, [ebp - 0xf0]
push ecx
push dword [ebp - 0x120]
mov ecx, edx
push 0x5e
push eax
push 0
call fcn.00469240
mov eax, dword [ebp - 0xf0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xf0], vtable..7.0
mov eax, dword [ebp - 0xf0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xf4], eax
lea ecx, [ebp - 0xd8]
call fcn.004073e0
lea ecx, [ebp - 0xd0]
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 - 0x88]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
jmp 0x61f417