Function at 0x486c50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0796
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2128
call fcn.004af1f0
mov eax, dword [0x532804]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x2128], ecx
mov dword [ebp - 0x2124], ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2130], ebx
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x212c], edi
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2138], eax
lea eax, [ebp - 0x2014]
push eax
call fcn.00487dd0
test eax, eax
jns 0x486cc5
lfence
jmp 0x487167
push str.SMDB
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x486ce0
lea esi, [eax + 8]
jmp 0x486d35
push 0x4ed764
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x486cfd
mov esi, 0x4008
jmp 0x486d35
push 0x4ed768
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x486d18
lea esi, [eax + 0x13]
jmp 0x486d35
push 0x4ed76c
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x487162
lea esi, [eax + 0x11]
lfence
mov ecx, dword [ebp - 0x2128]
call fcn.0048abc0
lea eax, [ebp - 0x2014]
push eax
mov ecx, dword [ebp - 0x2128]
call fcn.00487dd0
test eax, eax
js 0x486cbd
cmp esi, 0x13
ja 0x486fdd
je 0x486f67
cmp esi, 8
je 0x486f2c
cmp esi, 0x11
jne 0x487142
lea ebx, [ebp - 0x2014]
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x486d87
sub ebx, ecx
sar ebx, 1
mov dword [ebp - 0x2018], ebx
mov dword [ebp - 0x2134], ebx
test bl, 1
jne 0x486e4f
mov eax, ebx
cdq
sub eax, edx
mov esi, eax
sar esi, 1
mov dword [ebp - 0x201c], esi
push 0x104
push 0
lea eax, [ebp - 0x2120]
push eax
call fcn.004afbb4
add esp, 0xc
mov dword [ebp - 0x2120], 0
mov dword [ebp - 4], 4
mov byte [ebp - 4], 5
push esi
lea ecx, [ebp - 0x2120]
call fcn.004871d0
mov dword [ebp - 4], 4
jmp 0x486e25
mov eax, dword [ebp - 0x2120]
test eax, eax
jne 0x486e59
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x211c]
cmp dword [ebp - 0x2120], eax
je 0x486e4f
lea ecx, [ebp - 0x2120]
call fcn.004876d0
mov eax, 0x80004005
jmp 0x487167
push esi
push 0
push eax
call fcn.004afbb4
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 0x2124], ecx
test ebx, ebx
jle 0x486ee2
mov edi, dword [ebp - 0x2018]
nop word [eax + eax]
movzx edx, word [ebp + ecx*2 - 0x2014]
lea ebx, [edx - 0x30]
cmp ebx, 0x36
ja case.0x486e97.58
movzx eax, byte [ebx + 0x487198]
jmp dword [eax*4 + 0x487188]
lea ebx, [edx - 0x37]
jmp case.0x486e97.48
lea ebx, [edx - 0x57]
jmp case.0x486e97.48
xor ebx, ebx
shr ecx, 1
mov esi, dword [ebp - 0x2120]
add esi, ecx
mov eax, dword [ebp - 0x2124]
and eax, 1
shl eax, 2
mov ecx, 4
sub ecx, eax
shl bl, cl
or byte [esi], bl
mov ecx, dword [ebp - 0x2124]
inc ecx
mov dword [ebp - 0x2124], ecx
cmp ecx, edi
jl 0x486e80
mov esi, dword [ebp - 0x201c]
push esi
push dword [ebp - 0x2120]
push 3
push 0
push dword [ebp - 0x212c]
mov eax, dword [ebp - 0x2130]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x211c]
cmp dword [ebp - 0x2120], eax
je 0x487133
lea ecx, [ebp - 0x2120]
call fcn.004876d0
jmp 0x487133
lea ecx, [ebp - 0x2014]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x486f35
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x2014]
push eax
push 1
push 0
push edi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
jmp 0x487133
mov dword [ebp - 0x2134], 0
mov dword [ebp - 0x2134], 0
mov dword [ebp - 4], 3
lea eax, [ebp - 0x201c]
push eax
push 0
push 0
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
test eax, eax
jns 0x486fad
lfence
mov dword [ebp - 4], 0xffffffff
jmp 0x487167
mov eax, dword [ebp - 0x201c]
mov dword [ebp - 0x2018], eax
push 4
lea eax, [ebp - 0x2018]
push eax
push 4
push 0
push edi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
jmp 0x487133
cmp esi, 0x4008
jne 0x487142
lea ecx, [ebp - 0x2014]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x486ff2
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 2]
push 0x104
push 0
lea eax, [ebp - 0x2120]
push eax
call fcn.004afbb4
add esp, 0xc
mov dword [ebp - 0x2120], 0
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
push esi
lea ecx, [ebp - 0x2120]
call fcn.00487200
mov dword [ebp - 4], 0
jmp 0x48705d
mov edi, dword [ebp - 0x2120]
test edi, edi
je 0x48710e
lea esi, [ebp - 0x2014]
cmp word [ebp - 0x2014], 0
je 0x4870b4
nop dword [eax + eax]
push esi
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [esi]
cmp ecx, 0x5c
jne 0x4870a5
cmp word [eax], 0x30
jne 0x4870a5
xor ecx, ecx
mov word [edi], cx
push eax
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
jmp 0x4870ab
mov word [edi], cx
add esi, 2
add edi, 2
cmp word [esi], 0
jne 0x487080
xor eax, eax
mov dword [edi], eax
mov ebx, dword [ebp - 0x2120]
test ebx, ebx
jne 0x4870c7
lea esi, [eax + 0xd]
jmp 0x487113
xor esi, esi
mov edx, ebx
nop dword [eax + eax]
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4870d5
sub ecx, edi
sar ecx, 1
inc ecx
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x4870d0
push esi
push ebx
push 7
push 0
push dword [ebp - 0x212c]
mov eax, dword [ebp - 0x2130]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
jmp 0x487113
mov esi, 0xe
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x211c]
cmp dword [ebp - 0x2120], eax
je 0x487133
lea ecx, [ebp - 0x2120]
call fcn.004876d0
test esi, esi
je 0x487142
push esi
call fcn.00487390
add esp, 4
jmp 0x487167
lfence
push dword [ebp - 0x2138]
mov ecx, dword [ebp - 0x2128]
call fcn.00487dd0
test eax, eax
js 0x486cbd
xor eax, eax
jmp 0x487167
mov eax, 0x80020009
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004aeb30
mov esp, ebp
pop ebp
ret 0xc