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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa40
mov eax, dword [0x4dc6e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
push 0x4baa08
mov dword [ebp - 0xa38], eax
call fcn.0043e9d0
push edi
lea eax, [ebp - 0x20c]
push 0x4baa38
push eax
call fcn.00426350
add esp, 0x10
lea eax, [ebp - 0xa34]
push eax
lea eax, [ebp - 0x20c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x43eb82
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048fc6c
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp - 0xa30]
push 4
push eax
push 4
push 0
push 0x4b4b24
push dword [ebp - 0xa34]
mov dword [ebp - 0xa30], 1
call esi
push 4
lea eax, [ebp - 0xa30]
mov dword [ebp - 0xa30], 1
push eax
push 4
push 0
push 0x4baa84
push dword [ebp - 0xa34]
call esi
push 4
lea eax, [ebp - 0xa30]
mov dword [ebp - 0xa30], 3
push eax
push 4
push 0
push 0x4b4b30
push dword [ebp - 0xa34]
call esi
push dword [ebp - 0xa38]
lea eax, [ebp - 0x824]
push 0x4baaa0
push eax
call fcn.00426350
lea ecx, [ebp - 0x824]
add esp, 0xc
lea edx, [ecx + 2]
jmp 0x43ec20
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43ec20
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x824]
push eax
push 1
push 0
push 0x4b0f98
push dword [ebp - 0xa34]
call esi
push dword [ebp - 0xa34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x4baab0
push 0x4afa34
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
mov dword [ebp - 0xa38], eax
lea eax, [ebp - 0xa2c]
push 0x4baac0
push eax
call fcn.00426350
mov eax, dword [0x4dfc84]
add esp, 0xc
test eax, eax
jne 0x43ecac
push 0x4ba9ac
push 0x4afa34
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4dfc84], eax
lea ecx, [ebp - 0xa2c]
push ecx
lea ecx, [ebp - 0xa40]
push ecx
call eax
lea eax, [ebp - 0xa40]
push eax
call dword [ebp - 0xa38]
mov dword [ebp - 0xa38], eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push 0x4bab30
push eax
call fcn.00426350
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea eax, [ebp - 0x414]
add esp, 0xc
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push 0x4bab40
push eax
call fcn.00426350
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
lea eax, [ebp - 0x20c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov esi, dword [ebp - 0xa38]
test esi, esi
je 0x43ed89
cmp esi, 0xc000010e
je 0x43ed89
mov eax, dword [0x4dfc80]
test eax, eax
jne 0x43ed6c
push 0x4afa1c
push 0x4afa34
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4dfc80], eax
push esi
call eax
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048fc6c
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 0x61c]
push 0x4ba9dc
push eax
call fcn.00426350
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
lea eax, [ebp - 0x61c]
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push eax
call esi
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x43edf8
push edi
lea eax, [ebp - 0x61c]
push 0x4ba9ec
push eax
call fcn.00426350
add esp, 0xc
lea eax, [ebp - 0x61c]
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push eax
call esi
mov dword [ebx], eax
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebx], 0xffffffff
pop esi
setne al
xor ecx, ebp
pop edi
pop ebx
call fcn.0048fc6c
mov esp, ebp
pop ebp
ret