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

Disassembly:
push 0x80
mov eax, 0x10594c6
call fcn.01022092
xor ebx, ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x8c]
xor edi, edi
call fcn.0103b062
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.010155dc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.0101526d
mov byte [ebp - 4], 3
xor esi, esi
inc esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x24], esi
call fcn.0101526d
mov byte [ebp - 4], 4
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 0x14]
mov dword [eax], ebx
call fcn.01014eae
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, ebx
mov dword [ebp - 0x28], eax
je 0x104da3d
cmp edi, ebx
jne 0x104db6f
lea ecx, [ebp - 0x10]
call fcn.010155dc
mov byte [ebp - 4], 5
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x28]
push eax
call fcn.01014be7
push eax
lea ecx, [ebp - 0x10]
call fcn.01015b0a
push dword [0x10645dc]
lea ecx, [ebp - 0x10]
call fcn.01014f10
test eax, eax
jne 0x104daa8
push 0x1011f90
push 2
call fcn.0103aac4
pop ecx
pop ecx
xor edi, edi
mov dword [ebp - 0x24], ebx
push dword [ebp + 8]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push 0x1011f00
push 3
call fcn.0103aac4
add esp, 0x14
push dword [0x10645dc]
lea ecx, [ebp - 0x10]
call fcn.01014f10
test eax, eax
je 0x104da15
push dword [ebp - 0x10]
lea ecx, [ebp - 0x40]
call fcn.01017b73
lea ecx, [ebp - 0x8c]
call fcn.0103ac08
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x10]
call fcn.010151a6
cmp dword [ebp - 0x28], ebx
jne 0x104d98e
cmp edi, ebx
jne 0x104db6f
push dword [ebp + 8]
push 0x1011e80
push esi
call fcn.0103aac4
add esp, 0xc
cmp dword [ebp - 0x24], ebx
je 0x104dd86
push 0x1011e30
push esi
call fcn.0103aac4
add esp, 4
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
mov dword [ebp - 0x28], ebx
lea edi, [ebp - 0x28]
call fcn.010157a2
mov byte [ebp - 4], 7
push dword [ebp + 0xc]
mov byte [ebp - 4], 4
call fcn.0104d6b6
cmp eax, ebx
je 0x104db63
push eax
push 0x1013720
push 3
call fcn.0103aac4
add esp, 0xc
xor edi, edi
jmp 0x104ddf1
push 3
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.010157a2
mov byte [ebp - 4], 6
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x8c]
call fcn.0103b51c
cmp eax, 0xb7
je 0x104dada
xor edi, edi
jmp 0x104d9e0
lea eax, [ebp - 0x14]
push eax
push 2
lea ecx, [ebp - 0x8c]
call fcn.0103b658
test eax, eax
je 0x104dad3
cmp dword [ebp + 0xc], 5
mov dword [ebp - 0x18], 0x57
mov dword [ebp - 0x1c], ebx
je 0x104db37
cmp dword [ebp + 0xc], 9
jne 0x104dad3
lea ecx, [ebp - 0x70]
call fcn.01014f7b
lea eax, [ebp - 0x70]
push eax
push 8
lea ecx, [ebp - 0x8c]
call fcn.0103c315
test eax, eax
je 0x104dad3
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp + 8]
push eax
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x14]
call fcn.0104bd93
jmp 0x104db47
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 8]
call fcn.0104ba94
cmp eax, ebx
mov dword [ebp - 0x18], eax
jne 0x104dad3
cmp dword [ebp - 0x1c], ebx
mov edi, esi
je 0x104da15
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
jmp 0x104da15
cmp dword [ebp - 0x28], ebx
mov edi, esi
je 0x104db6f
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
cmp dword [ebp - 0x38], ebx
je 0x104ddf1
lea ecx, [ebp - 0x18]
call fcn.010155dc
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x40]
cmp eax, ebx
mov dword [ebp - 0x20], eax
je 0x104dc8e
lea ecx, [ebp + 0xc]
call fcn.010155dc
mov byte [ebp - 4], 9
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x40]
call fcn.01014be7
push eax
lea ecx, [ebp + 0xc]
call fcn.01015b0a
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
call fcn.0103b4ad
lea ecx, [ebp - 0x58]
call fcn.0101526d
mov byte [ebp - 4], 0xa
push 3
push ecx
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
call fcn.010157a2
mov byte [ebp - 4], 0xb
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x8c]
call fcn.0103b51c
lea eax, [ebp - 0x58]
push eax
push 0xa
lea ecx, [ebp - 0x8c]
call fcn.0103c315
lea ecx, [ebp - 0x8c]
call fcn.0103ac08
mov eax, dword [ebp - 0x58]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x104dc6d
lea ecx, [ebp - 0x1c]
call fcn.010155dc
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x58]
call fcn.01014be7
push eax
lea ecx, [ebp - 0x1c]
call fcn.01015b0a
mov eax, dword [ebp - 0x1c]
push dword [eax - 0xc]
lea ecx, [ebp - 0x18]
push eax
call fcn.0101580d
cmp dword [ebp - 0x10], ebx
jne 0x104dc4f
cmp dword [ebp - 0x20], ebx
je 0x104dc5c
push 0x1011d98
lea ecx, [ebp - 0x18]
call fcn.01015ced
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x1c]
call fcn.010151a6
cmp dword [ebp - 0x10], ebx
jne 0x104dc15
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x58]
call fcn.01014fc6
mov byte [ebp - 4], 8
lea ecx, [ebp + 0xc]
call fcn.010151a6
cmp dword [ebp - 0x20], ebx
jne 0x104db92
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], ebx
jle 0x104dca6
push eax
push 0x1011c18
push 3
call fcn.0103aac4
add esp, 0xc
lea ecx, [ebp - 0x28]
mov dword [ebp + 0x14], ebx
call fcn.010155dc
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x24]
call fcn.010155dc
mov byte [ebp - 4], 0xe
push 0x1012778
lea ecx, [ebp + 0xc]
call fcn.01016a0f
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.01035e1c
mov byte [ebp - 4], 0xe
lea ecx, [ebp + 0xc]
call fcn.010151a6
push dword [0x10645d4]
lea ecx, [ebp - 0x20]
call fcn.01016a0f
mov byte [ebp - 4], 0x10
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.01035e1c
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x20]
call fcn.010151a6
lea eax, [ebp + 0x14]
push eax
push 0x2001f
push ebx
push dword [ebp - 0x24]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x104ddb8
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + 8], ebx
je 0x104dd8a
lea eax, [ebp + 0x10]
push eax
call fcn.01035a81
mov esi, eax
cmp esi, ebx
je 0x104dd9d
mov eax, dword [ebp + 0x10]
add eax, eax
push eax
push esi
push 7
push ebx
push dword [0x10645d8]
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x104dd7e
push 0x1011ab8
push 3
xor edi, edi
call fcn.0103aac4
pop ecx
pop ecx
push esi
call fcn.010213c8
jmp 0x104ddac
mov edi, esi
jmp 0x104ddf1
push dword [0x10645d8]
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x104ddad
push 0x1011ab8
push 3
xor edi, edi
call fcn.0103aac4
pop ecx
pop ecx
push dword [ebp + 0x14]
call dword [entry0]
jmp 0x104ddcd
cmp eax, 2
je 0x104ddcd
push 0x1011ab8
push 3
xor edi, edi
call fcn.0103aac4
pop ecx
pop ecx
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x24]
call fcn.010151a6
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x28]
call fcn.010151a6
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
call fcn.010151a6
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
call fcn.01014fc6
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.01014fc6
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.010151a6
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x8c]
call fcn.0103adc0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.010151a6
mov eax, edi
call fcn.0102217e
ret 0x10