Function at 0x40e78e
Capabilities:
Delete registry value
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x474
push ebx
push esi
push edi
lea eax, [ebp - 0x474]
push eax
push 0xf003f
push 0
push 0x46cd14
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x104], eax
cmp dword [ebp - 0x104], 0
je 0x40e7d0
jmp 0x40eadd
cmp dword [ebp + 0xc], 1
jne 0x40e980
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [ebp + 8]
add eax, 0x14c
push eax
mov eax, dword [ebp + 8]
add eax, 0x10f
push eax
mov eax, dword [ebp + 8]
add eax, 0x10
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
push 0x46cd58
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
lea edi, [ebp - 0x468]
xor eax, eax
mov ecx, 0x80
rep stosd dword es:[edi], eax
mov dword [ebp - 0x46c], 0x10
mov eax, dword [ebp - 0x46c]
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x468]
add esi, 0x184
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 8]
mov al, byte [eax + 0x148]
mov ecx, dword [ebp - 0x46c]
mov byte [ebp + ecx - 0x468], al
inc dword [ebp - 0x46c]
add dword [ebp - 0x46c], 0x10
mov eax, dword [ebp - 0x46c]
mov byte [ebp + eax - 0x468], 0x22
add dword [ebp - 0x46c], 2
mov edi, dword [ebp + 8]
add edi, 0x10
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov edx, edi
mov ebx, dword [ebp - 0x46c]
lea edi, [ebp + ebx - 0x468]
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add dword [ebp - 0x46c], 0x37
mov edi, dword [ebp + 8]
add edi, 0x10f
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov edx, edi
mov ebx, dword [ebp - 0x46c]
lea edi, [ebp + ebx - 0x468]
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add dword [ebp - 0x46c], 0x14
mov edi, dword [ebp + 8]
add edi, 0x14c
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov edx, edi
mov ebx, dword [ebp - 0x46c]
lea edi, [ebp + ebx - 0x468]
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add dword [ebp - 0x46c], 0x19
mov eax, dword [ebp - 0x46c]
mov byte [ebp + eax - 0x468], 0
inc dword [ebp - 0x46c]
mov eax, dword [ebp - 0x46c]
push eax
lea eax, [ebp - 0x468]
push eax
push 3
push 0
lea eax, [ebp - 0x100]
push eax
mov eax, dword [ebp - 0x474]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x104], eax
jmp 0x40ead0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [ebp + 8]
add eax, 0x14c
push eax
mov eax, dword [ebp + 8]
add eax, 0x10f
push eax
mov eax, dword [ebp + 8]
add eax, 0x10
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
push str._08X__s_s_s_04d
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
lea edi, [ebp - 0x268]
xor eax, eax
mov ecx, 0x58
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x470], 0x163
lea eax, [ebp - 0x470]
push eax
lea eax, [ebp - 0x268]
push eax
push 0
push 0
lea eax, [ebp - 0x100]
push eax
mov eax, dword [ebp - 0x474]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x104], eax
cmp dword [ebp - 0x104], 0
jne 0x40ea5d
lea eax, [ebp - 0x268]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x148]
push eax
push 0
mov eax, dword [ebp + 8]
add eax, 0x184
push eax
lea eax, [ebp - 0x100]
push eax
push 0
call fcn.0040e174
add esp, 0x18
lea eax, [ebp - 0x100]
push eax
mov eax, dword [ebp - 0x474]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov dword [ebp - 0x104], eax
jmp 0x40ea71
lea eax, [ebp - 0x100]
push eax
push str._r_nASLmissing___s_
call fcn.00452380
add esp, 8
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x148], 0
mov eax, dword [ebp + 8]
mov byte [eax + 0x10], 0
mov eax, dword [ebp + 8]
mov byte [eax + 0x10f], 0
mov eax, dword [ebp + 8]
mov byte [eax + 0x14c], 0
mov eax, dword [ebp + 8]
add eax, 0x184
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov eax, dword [ebp - 0x474]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret