Function at 0x40c69a
Capabilities:
Contain obfuscated stackstrings
Get process heap flags
Get process heap force flags
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x509728
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
push ebx
push esi
push edi
mov eax, dword [0x5ff740]
xor eax, esp
push eax
lea eax, [esp + 0xf8]
mov dword fs:[0], eax
lea eax, [esp + 0x14]
push eax
lea esi, [esp + 0xd0]
mov dword [esp + 0x18], SysReAllocStringLen
call fcn.0040ac2c
and dword [esp + 0x100], 0
push 0x5af644
lea ecx, [esp + 0xc4]
mov dword [esp + 0xd0], 0x2001f
call fcn.0040253b
mov dword [esp + 0x1c], eax
push 0x5b1604
lea ecx, [esp + 0xbc]
mov byte [esp + 0x104], 1
call fcn.0040253b
mov dword [esp + 0xac], eax
mov ebx, 0x5af65c
push ebx
lea ecx, [esp + 0xb4]
mov byte [esp + 0x104], 2
call fcn.0040253b
mov dword [esp + 0x3c], eax
push 0x5af63c
lea ecx, [esp + 0xac]
mov byte [esp + 0x104], 3
call fcn.0040253b
mov dword [esp + 0x84], eax
mov edi, 0x5af648
push edi
lea ecx, [esp + 0xa4]
mov byte [esp + 0x104], 4
call fcn.0040253b
mov dword [esp + 0x34], eax
mov esi, 0x5b2450
push esi
lea ecx, [esp + 0x9c]
mov byte [esp + 0x104], 5
call fcn.0040253b
mov dword [esp + 0xbc], eax
push 0x5b2454
lea ecx, [esp + 0x94]
mov byte [esp + 0x104], 6
call fcn.0040253b
mov dword [esp + 0x2c], eax
push esi
lea ecx, [esp + 0x8c]
mov byte [esp + 0x104], 7
call fcn.0040253b
mov dword [esp + 0x7c], eax
mov esi, 0x5af660
push esi
lea ecx, [esp + 0x84]
mov byte [esp + 0x104], 8
call fcn.0040253b
mov dword [esp + 0x74], eax
push 0x5af684
lea ecx, [esp + 0x7c]
mov byte [esp + 0x104], 9
call fcn.0040253b
mov dword [esp + 0x44], eax
push 0x5af69c
lea ecx, [esp + 0x74]
mov byte [esp + 0x104], 0xa
call fcn.0040253b
mov dword [esp + 0x14], eax
push 0x5b275c
lea ecx, [esp + 0x6c]
mov byte [esp + 0x104], 0xb
call fcn.0040253b
push ebx
push eax
lea eax, [esp + 0x68]
push eax
mov byte [esp + 0x10c], 0xc
call fcn.00402187
mov byte [esp + 0x10c], 0xd
push dword [esp + 0x20]
push eax
lea eax, [esp + 0x6c]
push eax
call fcn.00402130
push 0x5af64c
push eax
lea eax, [esp + 0x70]
push eax
mov byte [esp + 0x124], 0xe
call fcn.00402187
push dword [esp + 0x68]
mov byte [esp + 0x128], 0xf
push eax
lea eax, [esp + 0x74]
push eax
call fcn.00402130
push 0x5af640
push eax
lea eax, [esp + 0x78]
push eax
mov byte [esp + 0x13c], 0x10
call fcn.00402187
push dword [esp + 0xb0]
mov byte [esp + 0x140], 0x11
push eax
lea eax, [esp + 0x7c]
push eax
call fcn.00402130
add esp, 0x48
push edi
push eax
lea eax, [esp + 0x38]
push eax
mov byte [esp + 0x10c], 0x12
call fcn.00402187
push dword [esp + 0x88]
mov byte [esp + 0x110], 0x13
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.00402130
push 0x5af678
push eax
lea eax, [esp + 0x44]
push eax
mov byte [esp + 0x124], 0x14
call fcn.00402187
push dword [esp + 0x50]
mov byte [esp + 0x128], 0x15
push eax
lea eax, [esp + 0xd0]
push eax
call fcn.00402130
push 0x5af664
push eax
lea eax, [esp + 0x58]
push eax
mov byte [esp + 0x13c], 0x16
call fcn.00402187
push dword [esp + 0xf8]
mov byte [esp + 0x140], 0x17
push eax
lea eax, [esp + 0x108]
push eax
call fcn.00402130
add esp, 0x48
push 0x5b244c
push eax
lea eax, [esp + 0x74]
push eax
mov byte [esp + 0x10c], 0x18
call fcn.00402187
push dword [esp + 0x40]
mov byte [esp + 0x110], 0x19
push eax
lea eax, [esp + 0xb0]
push eax
call fcn.00402130
push esi
push eax
lea eax, [esp + 0x84]
push eax
mov byte [esp + 0x124], 0x1a
call fcn.00402187
push dword [esp + 0xa8]
mov byte [esp + 0x128], 0x1b
push eax
lea eax, [esp + 0xe0]
push eax
call fcn.00402130
push 0x5af6a4
push eax
lea eax, [esp + 0x94]
push eax
mov byte [esp + 0x13c], 0x1c
call fcn.00402187
push dword [esp + 0x78]
mov byte [esp + 0x140], 0x1d
push eax
lea eax, [esp + 0xd8]
push eax
call fcn.00402130
add esp, 0x48
push 0x5af668
push eax
lea eax, [esp + 0x5c]
push eax
mov byte [esp + 0x10c], 0x1e
call fcn.00402187
push dword [esp + 0xb8]
mov byte [esp + 0x110], 0x1f
push eax
lea eax, [esp + 0xdc]
push eax
call fcn.00402130
push str.6VC
push eax
lea eax, [esp + 0x6c]
push eax
mov byte [esp + 0x124], 0x20
call fcn.00402187
push dword [esp + 0x40]
mov byte [esp + 0x128], 0x21
push eax
lea eax, [esp + 0xb8]
push eax
call fcn.00402130
push 0x5b0d34
push eax
mov byte [esp + 0x138], 0x22
lea eax, [esp + 0x50]
push eax
call fcn.00402187
add esp, 0x3c
mov ecx, dword [esp + 0x8c]
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [esp + 0x4c]
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [esp + 0xc8]
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [esp + 0x54]
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [esp + 0x94]
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [esp + 0x5c]
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [esp + 0xb4]
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [esp + 0x64]
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [esp + 0x9c]
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [esp + 0x6c]
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [esp + 0xc4]
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [esp + 0xa4]
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [esp + 0x24]
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [esp + 0x28]
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [esp + 0x30]
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [esp + 0x38]
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [esp + 0x40]
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [esp + 0x48]
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [esp + 0x50]
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [esp + 0x58]
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [esp + 0x60]
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [esp + 0x68]
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [esp + 0x70]
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [esp + 0x78]
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [esp + 0x80]
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [esp + 0x88]
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [esp + 0x90]
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [esp + 0x98]
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [esp + 0xa0]
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [esp + 0xa8]
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [esp + 0xb0]
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [esp + 0xb8]
add ecx, 0xfffffff0
call fcn.0040285b
mov byte [esp + 0x100], 0x45
mov ecx, dword [esp + 0xc0]
add ecx, 0xfffffff0
call fcn.0040285b
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.SYSRES
call fcn.0040253b
lea ecx, [esp + 0x1c]
call fcn.00406dee
push 1
push dword [esp + 0x1c]
lea esi, [esp + 0xd4]
push SysReAllocStringLen
call fcn.0040ac48
test eax, eax
je 0x40cd22
xor eax, eax
mov word [esp + 0xe4], ax
lea edi, [esp + 0xe6]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xe4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push 0x10
lea eax, [esp + 0xe8]
push eax
push 3
push 0
push str.LastRestorePointTime
push dword [esp + 0xe4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
call fcn.0040aca6
mov bl, 1
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.0040285b
lea esi, [esp + 0xcc]
call fcn.0040aca6
mov ecx, dword [esp + 0xd4]
add ecx, 0xfffffff0
call fcn.0040285b
mov al, bl
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor bl, bl
jmp 0x40cce3