Function at 0x40c850
Capabilities:
Delete registry key
Get common file path
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x448036
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x328
mov eax, dword [0x466e54]
push ebp
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_FindWindowA]
push 0
push eax
call edi
test eax, eax
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
je 0x40c89a
push 0
push 0
push 0x403
push eax
call esi
mov ecx, dword [0x466e50]
push 0
push ecx
call edi
test eax, eax
je 0x40c8b5
push 0
push 0
push 0x403
push eax
call esi
call fcn.0043cb83
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebp, [eax + 0x10]
mov dword [esp + 0x18], ebp
mov ecx, dword [0x466e40]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x350], 0
call esi
mov edx, dword [esp + 0x10]
push str.Launcher
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call edi
call fcn.0043cb83
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
mov byte [esp + 0x33c], 1
call fcn.00404100
cmp eax, 2
je 0x40c996
cmp eax, 3
je 0x40c996
cmp eax, 5
je 0x40c972
cmp eax, 6
je 0x40c972
cmp eax, 0xa
je 0x40c972
lea ecx, [esp + 0xc]
call fcn.00401400
lea ecx, [esp + 0x18]
call fcn.00401400
xor eax, eax
mov ecx, dword [esp + 0x334]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
mov esp, ebp
pop ebp
ret
mov eax, dword [0x466dec]
push str.LAK.EXE
push eax
push str.SpoolDriversw32x863
lea ecx, [esp + 0x18]
push 0x44c3c0
push ecx
call fcn.00401d20
add esp, 0x14
jmp 0x40c9fc
lea edx, [esp + 0x14]
push edx
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x30], 0x104
call esi
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x22c]
push ecx
push 0
push 0
push str.Common_Startup
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0x14]
push eax
call edi
mov ecx, dword [0x466dec]
push str.LAA.EXE
push ecx
lea edx, [esp + 0x14]
push str._s_s
push edx
call fcn.00401d20
add esp, 0x10
xor eax, eax
mov ecx, 0x82
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
push 0x208
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, dword [esp + 0xc]
push esi
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x20]
push edx
call fcn.0040b680
lea eax, [esi - 0x10]
add esp, 4
mov byte [esp + 0x33c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ca58
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebp - 0x10]
mov dword [esp + 0x33c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ca7d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x334]
pop edi
mov eax, 1
mov dword fs:[0], ecx
pop esi
pop ebp
mov esp, ebp
pop ebp
ret