Function at 0x41e840
Capabilities:
Delete registry value
Enumerate processes

Disassembly:
sub esp, 0x254
mov eax, dword [0x48e050]
xor eax, esp
mov dword [esp + 0x250], eax
mov eax, dword [esp + 0x260]
push ebp
mov ebp, dword [esp + 0x25c]
push esi
push edi
xor edi, edi
xor esi, esi
neg eax
sbb eax, eax
and eax, 0x100
add eax, 0xf003f
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], edi
mov dword [esp + 0x20], eax
cmp ecx, reloc.WS2_32.dll_accept
je 0x41e912
lea edx, [esp + 0xc]
push edx
push eax
push edi
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41e8f5
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0xc]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x41e8de
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RegDeleteValue_error:__d
mov dword [ebx], eax
call fcn.00404c20
mov edx, dword [esp + 0x14]
add esp, 8
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x41eb07
mov edx, dword [esp + 0xc]
push edx
mov edi, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x41eb07
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RegOpenKeyEx_error:__d
mov dword [ebx], eax
call fcn.00404c20
add esp, 8
mov eax, edi
jmp 0x41eb07
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x41eb05
lea eax, [esp + 0x28]
push eax
push edi
mov dword [esp + 0x30], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x41e950
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41eb05
lea ecx, [esp + 0x4c]
push 0x478fa0
push ecx
call fcn.0043ec25
add esp, 8
test eax, eax
jne 0x41e987
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x41e987
mov ecx, dword [esp + 0x268]
cmp ecx, dword [esp + 0x24]
je 0x41e998
lea edx, [esp + 0x28]
push edx
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x41e950
jmp 0x41e99c
mov esi, dword [esp + 0x30]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x41eb05
lea eax, [esp + 0x10]
push eax
push 0xe
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push esi
mov dword [esp + 0x20], eax
call edi
cmp dword [esp + 0x1c], 0
je 0x41eaef
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41eaef
push eax
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov edi, eax
test edi, edi
jne 0x41ea1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ImpersonateLoggedOnUser_error:__d
mov dword [ebx], eax
call fcn.00404c20
mov ecx, dword [esp + 0x18]
add esp, 8
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41eb05
lea edx, [esp + 0x14]
push edx
push 0xf003f
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
test eax, eax
jne 0x41eac4
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
push ecx
push 0
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x41eaa5
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0xc]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x41ea90
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RegDeleteValue_error:__d
mov dword [ebx], eax
call fcn.00404c20
mov edx, dword [esp + 0x14]
add esp, 8
push edx
call esi
mov eax, dword [esp + 0x14]
push eax
call esi
jmp 0x41eada
mov edx, dword [esp + 0xc]
push edx
mov edi, 1
call esi
mov eax, dword [esp + 0x14]
push eax
call esi
jmp 0x41eada
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RegOpenKeyEx_error:__d
mov dword [ebx], eax
call fcn.00404c20
mov eax, dword [esp + 0x1c]
add esp, 8
push eax
call esi
jmp 0x41eada
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RegOpenCurrentUser_error:__d
mov dword [ebx], eax
call fcn.00404c20
add esp, 8
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov eax, edi
jmp 0x41eb07
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenProcessToken_error:__d
mov dword [ebx], eax
call fcn.00404c20
add esp, 8
xor eax, eax
mov ecx, dword [esp + 0x25c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0043e4c7
add esp, 0x254
ret 0xc