Function at 0x61fe10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7b3d02
mov eax, dword fs:[0]
push eax
sub esp, 0x2bc
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, 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.00452610
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.0061f300
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 0x6204a7
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 0x6200dc
push 0xb0
push eax
lea eax, [ebp - 0xf0]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xf0], 0x7d6f90
lea ecx, [ebp - 0x88]
mov dword [ebp - 0xe0], 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 - 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], 0x7c81a4
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], 0x7c8164
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], 0xda00e6
mov dword [ebp - 0x14c], 0xc200ce
mov dword [ebp - 0x148], 0xed00fe
mov dword [ebp - 0x144], 0xd100e2
mov dword [ebp - 0x140], 0xd300df
mov dword [ebp - 0x13c], 0xd100d4
mov dword [ebp - 0x138], 0x9a00c7
mov dword [ebp - 0x134], 0xdd0097
mov dword [ebp - 0x130], 0xc800cb
mov dword [ebp - 0x12c], 0xce00d4
mov dword [ebp - 0x128], 0xbe009d
nop dword [eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0x150], ax
inc ecx
mov eax, dword [ebp - 0x154]
cmp ecx, eax
jb 0x620000
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.004345f0
mov edi, eax
lea eax, [ebp - 0x228]
push eax
call fcn.00620780
mov ecx, eax
call fcn.00403e20
mov esi, eax
lea eax, [ebp - 0x2c8]
push eax
call fcn.0061f9f0
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.00469f50
mov eax, dword [ebp - 0xf0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xf0], 0x7c81a4
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 0x6204a7
cmp esi, edi
je 0x6204a0
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x6200ee
mov eax, dword [esi]
push 1
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x6204cc
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 0x620488
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 0x620154
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x620488
xor eax, eax
mov dword [ebp - 0x30], 0
push eax
push 0x7cf388
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 0x6201ac
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], al
call fcn.00404490
jmp 0x620488
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 0x620274
test esi, esi
je 0x620274
mov edx, dword [esi]
test edx, edx
je 0x620274
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 0x620210
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.0076e8c3
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.00623440
mov edi, dword [ebp - 0x174]
mov byte [ebp - 4], 0x14
mov ecx, dword [edi + 4]
cmp dword [edi + 8], ecx
je 0x620428
mov esi, dword [ebp - 0x18]
mov dword [ecx], 0
mov dword [ecx + 4], 0
test esi, esi
je 0x62041a
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 0x620437
lea eax, [ebp - 0x1c]
push eax
push ecx
mov ecx, edi
call fcn.00466480
mov esi, dword [ebp - 0x18]
mov byte [ebp - 4], 0x15
test esi, esi
je 0x620460
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x620460
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x620460
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 0x6200e4
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.0076eb7e
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], 0x7d6f90
lea ecx, [ebp - 0x88]
mov dword [ebp - 0xe0], 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 - 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], 0x7c81a4
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], 0x7c8164
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], 0xda00e6
mov dword [ebp - 0x148], 0xc200ce
mov dword [ebp - 0x144], 0xcb00fe
mov dword [ebp - 0x140], 0xc600dd
mov dword [ebp - 0x13c], 0xd100d8
mov dword [ebp - 0x138], 0x9800d6
mov dword [ebp - 0x134], 0xd30095
mov dword [ebp - 0x130], 0xca00c5
mov dword [ebp - 0x12c], 0xc800d6
mov dword [ebp - 0x128], 0xbc009b
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0x14c], ax
inc ecx
mov eax, dword [ebp - 0x150]
cmp ecx, eax
jb 0x6205f1
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 [0x83ff50]
mov dword [ebp - 0x11c], edx
test edx, edx
jne 0x62068c
push 0x20
call fcn.0076e8c3
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 [0x83ff50], edx
lea eax, [ebp - 0x228]
push eax
call fcn.006208c0
mov edi, eax
xor ecx, ecx
mov esi, dword [edi]
lea eax, [edi + 4]
mov dword [ebp - 0x120], eax
test esi, esi
je 0x6206cd
mov edx, eax
nop dword [eax]
lea eax, [ecx + 0xa9]
xor word [edx + ecx*2], ax
inc ecx
mov esi, dword [edi]
cmp ecx, esi
jb 0x6206b0
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.0061f9f0
mov edi, eax
mov esi, dword [edi]
lea eax, [edi + 4]
mov dword [ebp - 0x118], eax
test esi, esi
je 0x62070f
mov edx, eax
lea eax, [ecx + 0xa9]
xor word [edx + ecx*2], ax
inc ecx
mov esi, dword [edi]
cmp ecx, esi
jb 0x6206f2
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.00469f50
mov eax, dword [ebp - 0xf0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xf0], 0x7c81a4
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 0x6204a7