Function at 0x41dcf0
Capabilities:
Delete file
Delete service
Get common file path
Move file
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x4d044c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf003f
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x41df95
push 0x10000
push str.K7Elam
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
je 0x41dd4e
push ebx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
mov eax, 1
push ebx
cmovne esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x41df95
push str.K7ElmSgn.dll
xor esi, esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41df95
push str.RmvK7ElamSignatureBlob
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41dd90
call eax
test eax, eax
mov eax, 1
cmovne esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test esi, esi
je 0x41df95
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.004644e0
add esp, 0xc
mov dword [ebp - 0x110], 0xfe
lea eax, [ebp - 0x10c]
xor esi, esi
mov dword [ebp - 0x10c], esi
push eax
push 1
push esi
push str.SystemCurrentControlSetControlEarlyLaunch
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41df95
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x108]
push eax
push esi
push esi
push str.BackupPath
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41de3b
lea ecx, [ebp - 0x108]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x41de15
mov eax, dword [0x4c3708]
mov esi, 1
mov dword [ecx], eax
mov eax, dword [0x4c370c]
mov dword [ecx + 4], eax
mov eax, dword [0x4c3710]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x10c]
test eax, eax
je 0x41de4c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x41df95
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x41de7d
push 4
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x41df95
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.004644e0
add esp, 0xc
mov dword [ebp - 0x110], 0
lea eax, [ebp - 0x108]
xor ebx, ebx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x41df7f
lea edi, [ebp - 0x108]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x41dec0
mov ecx, 7
mov esi, str.System32DriversK7Elam.sys
rep movsd dword es:[edi], dword [esi]
push str.IsWow64Process
push str.kernel32
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [ebp - 0x10c], ebx
test esi, esi
je 0x41df4c
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [ebp - 0x10c], ebx
je 0x41df4c
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x41df4c
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Wow64DisableWow64FsRedirection
push esi
call ebx
push str.Wow64RevertWow64FsRedirection
push esi
mov edi, eax
call ebx
mov ebx, eax
test edi, edi
je 0x41df4c
lea eax, [ebp - 0x110]
push eax
call edi
mov esi, eax
jmp 0x41df4e
xor esi, esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x41df6f
push 4
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test esi, esi
je 0x41df7f
test ebx, ebx
je 0x41df7f
push dword [ebp - 0x110]
call ebx
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004606ac
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004606ac
mov esp, ebp
pop ebp
ret