Function at 0x4a8060
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53e866
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2128
call fcn.005154a0
mov eax, dword [0x5d3b14]
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.004a8cc0
test eax, eax
jns 0x4a80d5
lfence
jmp 0x4a8577
push str.SMDB
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4a80f0
lea esi, [eax + 8]
jmp 0x4a8145
push 0x56cd38
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4a810d
mov esi, 0x4008
jmp 0x4a8145
push 0x56cd3c
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4a8128
lea esi, [eax + 0x13]
jmp 0x4a8145
push 0x56cd40
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4a8572
lea esi, [eax + 0x11]
lfence
mov ecx, dword [ebp - 0x2128]
call fcn.004aa4a0
lea eax, [ebp - 0x2014]
push eax
mov ecx, dword [ebp - 0x2128]
call fcn.004a8cc0
test eax, eax
js 0x4a80cd
cmp esi, 0x13
ja 0x4a83ed
je 0x4a8377
cmp esi, 8
je 0x4a833c
cmp esi, 0x11
jne 0x4a8552
lea ebx, [ebp - 0x2014]
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x4a8197
sub ebx, ecx
sar ebx, 1
mov dword [ebp - 0x2018], ebx
mov dword [ebp - 0x2134], ebx
test bl, 1
jne 0x4a825f
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.00515fd2
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.004a85e0
mov dword [ebp - 4], 4
jmp 0x4a8235
mov eax, dword [ebp - 0x2120]
test eax, eax
jne 0x4a8269
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x211c]
cmp dword [ebp - 0x2120], eax
je 0x4a825f
lea ecx, [ebp - 0x2120]
call fcn.004a8ba0
mov eax, 0x80004005
jmp 0x4a8577
push esi
push 0
push eax
call fcn.00515fd2
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 0x2124], ecx
test ebx, ebx
jle 0x4a82f2
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.0x4a82a7.58
movzx eax, byte [ebx + 0x4a85a8]
jmp dword [eax*4 + 0x4a8598]
lea ebx, [edx - 0x37]
jmp case.0x4a82a7.48
lea ebx, [edx - 0x57]
jmp case.0x4a82a7.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 0x4a8290
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 0x4a8543
lea ecx, [ebp - 0x2120]
call fcn.004a8ba0
jmp 0x4a8543
lea ecx, [ebp - 0x2014]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a8345
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 0x4a8543
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 0x4a83bd
lfence
mov dword [ebp - 4], 0xffffffff
jmp 0x4a8577
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 0x4a8543
cmp esi, 0x4008
jne 0x4a8552
lea ecx, [ebp - 0x2014]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a8402
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 2]
push 0x104
push 0
lea eax, [ebp - 0x2120]
push eax
call fcn.00515fd2
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.004a8610
mov dword [ebp - 4], 0
jmp 0x4a846d
mov edi, dword [ebp - 0x2120]
test edi, edi
je 0x4a851e
lea esi, [ebp - 0x2014]
cmp word [ebp - 0x2014], 0
je 0x4a84c4
nop dword [eax + eax]
push esi
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [esi]
cmp ecx, 0x5c
jne 0x4a84b5
cmp word [eax], 0x30
jne 0x4a84b5
xor ecx, ecx
mov word [edi], cx
push eax
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
jmp 0x4a84bb
mov word [edi], cx
add esi, 2
add edi, 2
cmp word [esi], 0
jne 0x4a8490
xor eax, eax
mov dword [edi], eax
mov ebx, dword [ebp - 0x2120]
test ebx, ebx
jne 0x4a84d7
lea esi, [eax + 0xd]
jmp 0x4a8523
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 0x4a84e5
sub ecx, edi
sar ecx, 1
inc ecx
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x4a84e0
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 0x4a8523
mov esi, 0xe
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x211c]
cmp dword [ebp - 0x2120], eax
je 0x4a8543
lea ecx, [ebp - 0x2120]
call fcn.004a8ba0
test esi, esi
je 0x4a8552
push esi
call fcn.004a87a0
add esp, 4
jmp 0x4a8577
lfence
push dword [ebp - 0x2138]
mov ecx, dword [ebp - 0x2128]
call fcn.004a8cc0
test eax, eax
js 0x4a80cd
xor eax, eax
jmp 0x4a8577
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.005150f0
mov esp, ebp
pop ebp
ret 0xc