Function at 0x41ee40
Capabilities:
Delete registry key
Delete registry value
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x517b80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 0x230]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41eeee
lea eax, [ebp - 0x218]
push eax
push 0x4e5444
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x41eeee
mov eax, dword [ebp - 0x218]
mov ecx, dword [ebp - 0x214]
push 0
push 0
push 0x10
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x228]
push eax
push 0
push dword [ebp - 0x230]
mov dword [ebp - 0x228], 1
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x21c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x41eee2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x230]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x22c]
push eax
push 0x4e5470
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x41f10c
push 4
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 2
push eax
push 4
push 0
push 0x4e54c8
push dword [ebp - 0x22c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 1
push eax
push 4
push 0
push 0x4e54d4
push dword [ebp - 0x22c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 3
push eax
push 4
push 0
push 0x4e54f0
push dword [ebp - 0x22c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
lea eax, [ebp - 0x20c]
push 0x4e54fc
push eax
call fcn.00402dc0
lea ecx, [ebp - 0x20c]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41efa3
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push 0x4e550c
push dword [ebp - 0x22c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
push dword [ebp - 0x22c]
call fcn.0041e240
add esp, 8
push 0x4e5520
push 0x4e4c44
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [ebp - 0x234], 0x4e5530
mov eax, 0x7a
mov ecx, esi
mov word [ebp - 0x238], ax
lea eax, [ebp - 0x238]
push eax
call dword [0x4dc8a4]
call esi
push 0x4e55b0
push reloc.WS2_32.dll_bind
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x4e5618
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x4e5688
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x4e54c8
push dword [ebp - 0x22c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x4e54d4
push dword [ebp - 0x22c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x4e54f0
push dword [ebp - 0x22c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x4e550c
push dword [ebp - 0x22c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x22c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x41f101
cmp edi, 0xc000010e
je 0x41f101
mov esi, dword [0x52d90c]
test esi, esi
jne 0x41f0d8
push 0x4e528c
push 0x4e4c44
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [0x52d90c], esi
push edi
mov ecx, esi
call dword [0x4dc8a4]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a71aa
mov esp, ebp
pop ebp
ret
push 0
push ebx
call fcn.0041f120
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a71aa
mov esp, ebp
pop ebp
ret