Function at 0x40c408
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x64]
mov eax, dword [ebp + 0x70]
sub esp, 0x914
test eax, eax
je 0x40c424
cmp word [eax], 0
je 0x40c424
mov al, 1
jmp 0x40c426
xor al, al
push ebx
push esi
xor ecx, ecx
push edi
movzx eax, al
inc ecx
sub ecx, eax
push 5
mov dword [ebp + 0x60], ecx
pop ecx
push 0x8c
lea eax, [ebp - 0x3ec]
push 0
mov esi, 0x402968
lea edi, [ebp - 0x400]
push eax
rep movsd dword es:[edi], dword [esi]
call sub.MSVCRT.dll_memset
push 5
pop ecx
mov esi, 0x402950
lea edi, [ebp - 0x220]
rep movsd dword es:[edi], dword [esi]
mov ebx, 0x8a
push ebx
lea eax, [ebp - 0x20a]
push 0
push eax
movsw word es:[edi], word [esi]
call sub.MSVCRT.dll_memset
push 7
pop ecx
mov esi, 0x402930
lea edi, [ebp - 0x360]
rep movsd dword es:[edi], dword [esi]
push 0x82
lea eax, [ebp - 0x342]
push 0
push eax
movsw word es:[edi], word [esi]
call sub.MSVCRT.dll_memset
push 5
pop ecx
mov esi, 0x402918
lea edi, [ebp - 0x4a0]
rep movsd dword es:[edi], dword [esi]
push ebx
lea eax, [ebp - 0x48a]
push 0
push eax
movsw word es:[edi], word [esi]
call sub.MSVCRT.dll_memset
push 5
pop ecx
mov esi, 0x402900
lea edi, [ebp - 0x2c0]
rep movsd dword es:[edi], dword [esi]
push ebx
xor ebx, ebx
lea eax, [ebp - 0x2aa]
push ebx
push eax
movsw word es:[edi], word [esi]
call sub.MSVCRT.dll_memset
push 0x1f
pop ecx
mov esi, 0x402880
lea edi, [ebp - 0x6a8]
rep movsd dword es:[edi], dword [esi]
push 0x18a
lea eax, [ebp - 0x62a]
push ebx
push eax
movsw word es:[edi], word [esi]
call sub.MSVCRT.dll_memset
add esp, 0x48
push 0x11
pop ecx
mov esi, 0x402838
lea edi, [ebp - 0x8b0]
rep movsd dword es:[edi], dword [esi]
push 0x1c2
lea eax, [ebp - 0x86a]
push ebx
push eax
movsw word es:[edi], word [esi]
call sub.MSVCRT.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
add esp, 0xc
push dword [ebp + 0x6c]
lea eax, [ebp - 0x6a8]
push eax
call esi
push dword [ebp + 0x6c]
lea eax, [ebp - 0x8b0]
push eax
call esi
push 0x402814
lea eax, [ebp - 0x8b0]
push eax
call esi
push 0x9e
lea eax, [ebp - 0x3e]
push ebx
push eax
mov word [ebp - 0x40], bx
call sub.MSVCRT.dll_memset
add esp, 0xc
push dword [ebp + 0x70]
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0x40]
push eax
call ebx
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
lea eax, [eax + eax + 4]
push eax
lea eax, [ebp - 0x40]
push eax
push 7
lea eax, [ebp - 0x400]
push eax
lea eax, [ebp - 0x6a8]
push eax
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push edi
call esi
lea eax, [ebp - 0x40]
push eax
call ebx
lea eax, [eax + eax + 4]
push eax
lea eax, [ebp - 0x40]
push eax
push 7
lea eax, [ebp - 0x400]
push eax
lea eax, [ebp - 0x8b0]
push eax
push edi
call esi
and word [ebp - 0xe0], 0
push 0x9e
lea eax, [ebp - 0xde]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push dword [ebp + 0x74]
lea eax, [ebp - 0xe0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0xe0]
push eax
call ebx
lea eax, [eax + eax + 4]
push eax
lea eax, [ebp - 0xe0]
push eax
push 7
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x6a8]
push eax
push edi
call esi
lea eax, [ebp - 0xe0]
push eax
call ebx
lea eax, [eax + eax + 4]
push eax
lea eax, [ebp - 0xe0]
push eax
push 7
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x8b0]
push eax
push edi
call esi
and word [ebp - 0x180], 0
push 0x9e
lea eax, [ebp - 0x17e]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push dword [ebp + 0x78]
lea eax, [ebp - 0x180]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x180]
push eax
call ebx
lea eax, [eax + eax + 4]
push eax
lea eax, [ebp - 0x180]
push eax
push 7
lea eax, [ebp - 0x360]
push eax
lea eax, [ebp - 0x6a8]
push eax
push edi
call esi
lea eax, [ebp - 0x180]
push eax
call ebx
lea eax, [eax + eax + 4]
push eax
lea eax, [ebp - 0x180]
push eax
push 7
lea eax, [ebp - 0x360]
push eax
lea eax, [ebp - 0x8b0]
push eax
push edi
call esi
push dword [ebp + 0x7c]
call ebx
add eax, eax
push eax
push dword [ebp + 0x7c]
lea eax, [ebp - 0x4a0]
push 1
push eax
lea eax, [ebp - 0x6a8]
push eax
push edi
call esi
push 4
pop ebx
push ebx
lea eax, [ebp + 0x60]
push eax
push ebx
lea eax, [ebp - 0x2c0]
push eax
lea eax, [ebp - 0x6a8]
push eax
push edi
call esi
push ebx
lea eax, [ebp + 0x60]
push eax
push ebx
lea eax, [ebp - 0x2c0]
push eax
lea eax, [ebp - 0x8b0]
push eax
push edi
call esi
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
add ebp, 0x64
leave
ret