Function at 0x41ecc0
Capabilities:
Enumerate processes
Set registry value

Disassembly:
sub esp, 0x258
mov eax, dword [0x48e050]
xor eax, esp
mov dword [esp + 0x254], eax
mov eax, dword [esp + 0x270]
push ebx
push ebp
xor ebp, ebp
push esi
xor esi, esi
neg eax
sbb eax, eax
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x26c]
and eax, 0x100
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x274]
add eax, 0xf003f
mov dword [esp + 0xc], edx
mov dword [esp + 0x14], ebp
mov ebx, eax
cmp ecx, reloc.WS2_32.dll_accept
je 0x41edbd
lea eax, [esp + 0x10]
push eax
push ebx
push ebp
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41ed9c
mov ecx, dword [esp + 0x270]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x268]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x18]
push eax
push esi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x41ed85
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0xc]
push eax
push str.RegSetValueEx_error:__d
mov dword [ecx], eax
call fcn.00404c20
mov edx, dword [esp + 0x18]
add esp, 8
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
jmp 0x41efd0
mov edx, dword [esp + 0x10]
push edx
mov ebp, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
jmp 0x41efd0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0xc]
push eax
push str.RegOpenKeyEx_error:__d
mov dword [ecx], eax
call fcn.00404c20
add esp, 8
mov eax, ebp
jmp 0x41efd0
push ebp
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
cmp ebp, 0xffffffff
je 0x41efce
lea edx, [esp + 0x2c]
push edx
push ebp
mov dword [esp + 0x34], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x41edf3
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41efce
lea eax, [esp + 0x50]
push 0x478fa0
push eax
call fcn.0043ec25
add esp, 8
test eax, eax
jne 0x41ee2a
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x41ee2a
mov eax, dword [esp + 0x278]
cmp eax, dword [esp + 0x24]
je 0x41ee3b
lea ecx, [esp + 0x2c]
push ecx
push ebp
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x41edf3
jmp 0x41ee3f
mov esi, dword [esp + 0x34]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebp
push esi
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x41efce
lea edx, [esp + 0x14]
push edx
push 0xe
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push esi
mov dword [esp + 0x2c], eax
call ebp
cmp dword [esp + 0x28], 0
je 0x41efb4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41efb4
push eax
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov ebp, eax
test ebp, ebp
jne 0x41eec3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0xc]
push eax
push str.Set_Value_ImpersonateLoggedOnUser_error:__d
mov dword [ecx], eax
call fcn.00404c20
mov edx, dword [esp + 0x1c]
add esp, 8
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41efce
lea eax, [esp + 0x20]
push eax
push 0xf003f
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
test eax, eax
jne 0x41ef85
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x10]
push ecx
push ebx
push eax
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x41ef62
mov eax, dword [esp + 0x270]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x268]
push eax
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x41ef4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0xc]
push eax
push str.RegSetValueEx_error:__d
mov dword [edx], eax
call fcn.00404c20
mov eax, dword [esp + 0x18]
add esp, 8
push eax
call esi
mov edx, dword [esp + 0x20]
push edx
call esi
jmp 0x41ef9f
mov eax, dword [esp + 0x10]
push eax
mov ebp, 1
call esi
mov edx, dword [esp + 0x20]
push edx
call esi
jmp 0x41ef9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0xc]
push eax
push str.RegOpenKeyEx_error:__d
mov dword [ecx], eax
call fcn.00404c20
mov edx, dword [esp + 0x28]
add esp, 8
push edx
call esi
jmp 0x41ef9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0xc]
push eax
push str.RegOpenCurrentUser_error:__d
mov dword [ecx], eax
call fcn.00404c20
add esp, 8
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov eax, ebp
jmp 0x41efd0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0xc]
push eax
push str.Set_Value_OpenProcessToken_error:__d
mov dword [ecx], eax
call fcn.00404c20
add esp, 8
xor eax, eax
mov ecx, dword [esp + 0x260]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043e4c7
add esp, 0x258
ret 0x18