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

Disassembly:
push 0x30
mov eax, 0x1059519
call fcn.01022092
mov eax, dword [ebp + 0x1c]
xor ebx, ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x14], 1
mov dword [eax], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x24], ebx
call fcn.010155dc
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x18]
call fcn.010155dc
mov byte [ebp - 4], 1
push 0x1012778
lea ecx, [ebp - 0x20]
call fcn.01016a0f
mov byte [ebp - 4], 2
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x20]
push eax
call fcn.01035e1c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.010151a6
push dword [0x10645d4]
lea ecx, [ebp + 0xc]
call fcn.01016a0f
mov byte [ebp - 4], 3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.01035e1c
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.010151a6
push ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push dword [ebp - 0x18]
mov esi, reloc.OLEAUT32.dll_SysReAllocString
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
je 0x104df0a
push dword [edi]
push eax
push 0x1011520
push 3
call fcn.0103aac4
add esp, 0x10
mov dword [ebp - 0x14], ebx
jmp 0x104df45
cmp dword [ebp + 0x10], ebx
jne 0x104df18
mov dword [ebp - 0x24], 1
jmp 0x104df45
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 7
push ebx
push dword [0x10645d8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
je 0x104df3e
push dword [edi]
push eax
push 0x1011718
jmp 0x104defb
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0x10], ebx
je 0x104df53
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x24], ebx
je 0x104df62
push dword [ebp - 0x18]
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [ebp + 0x18], ebx
je 0x104e060
lea ecx, [ebp - 0x3c]
call fcn.0101526d
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x10]
call fcn.010155dc
mov byte [ebp - 4], 5
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
push 2
call fcn.0103b658
test eax, eax
jne 0x104dfc2
push 0x100c220
push 3
call fcn.0103aac4
pop ecx
pop ecx
xor esi, esi
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x10]
call fcn.010151a6
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.01014fc6
jmp 0x104e063
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ebx
call fcn.0103ae0c
test eax, eax
jne 0x104dfe7
push dword [ebp + 0x10]
push 0x10116a8
push 3
call fcn.0103aac4
add esp, 0xc
jmp 0x104dfa3
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push 0x1011658
push 1
call fcn.0103aac4
add esp, 0x10
cmp dword [ebp + 0xc], 5
je 0x104e02c
cmp dword [ebp + 0xc], 9
jne 0x104e03e
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x3c]
push eax
push 8
call fcn.0103c315
test eax, eax
je 0x104dfa3
mov edx, dword [ebp + 0x1c]
lea eax, [ebp - 0x3c]
push eax
push edi
lea ecx, [ebp + 0x10]
call fcn.0104bd93
jmp 0x104e03a
push dword [ebp + 0x1c]
lea eax, [ebp + 0x10]
push eax
mov ecx, edi
call fcn.0104ba94
cmp eax, ebx
je 0x104e048
push dword [ebp + 0x10]
push 0x1011600
jmp 0x104dfdb
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x10]
call fcn.010151a6
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.01014fc6
xor esi, esi
inc esi
cmp dword [ebp - 0x14], ebx
je 0x104e070
cmp esi, ebx
je 0x104e070
xor esi, esi
jmp 0x104e075
mov esi, 0x643
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.010151a6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.010151a6
mov eax, esi
call fcn.0102217e
ret 0x18