Function at 0x4768b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52fcc6
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2128
call fcn.004d3090
mov eax, dword [0x58e5a4]
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 - 0x2120], ecx
mov dword [ebp - 0x211c], ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2128], ebx
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x2124], edi
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2138], eax
lea eax, [ebp - 0x2014]
push eax
call fcn.00477980
test eax, eax
js 0x476d6e
push str.SMDB
lea eax, [ebp - 0x2014]
push eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
call esi
test eax, eax
jne 0x47693e
lea esi, [eax + 8]
jmp 0x476987
push 0x5678a4
lea eax, [ebp - 0x2014]
push eax
call esi
test eax, eax
jne 0x476957
mov esi, 0x4008
jmp 0x476987
push 0x5678a8
lea eax, [ebp - 0x2014]
push eax
call esi
test eax, eax
jne 0x47696e
lea esi, [eax + 0x13]
jmp 0x476987
push 0x5678ac
lea eax, [ebp - 0x2014]
push eax
call esi
test eax, eax
jne 0x476d69
lea esi, [eax + 0x11]
mov ecx, dword [ebp - 0x2120]
call fcn.004799f0
lea eax, [ebp - 0x2014]
push eax
mov ecx, dword [ebp - 0x2120]
call fcn.00477980
test eax, eax
js 0x476d6e
cmp esi, 0x13
ja 0x476c00
je 0x476b97
cmp esi, 8
je 0x476b5c
cmp esi, 0x11
jne 0x476d4d
lea ebx, [ebp - 0x2014]
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x4769d6
sub ebx, ecx
sar ebx, 1
mov dword [ebp - 0x2130], ebx
mov dword [ebp - 0x2134], ebx
test bl, 1
jne 0x476a88
mov eax, ebx
cdq
sub eax, edx
mov esi, eax
sar esi, 1
mov dword [ebp - 0x212c], esi
mov dword [ebp - 0x2118], 0
mov dword [ebp - 4], 4
mov byte [ebp - 4], 5
push esi
lea ecx, [ebp - 0x2118]
call fcn.00476de0
mov dword [ebp - 4], 4
jmp 0x476a5e
mov eax, dword [ebp - 0x2118]
test eax, eax
jne 0x476a92
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x2114]
cmp dword [ebp - 0x2118], eax
je 0x476a88
lea ecx, [ebp - 0x2118]
call fcn.00477740
mov eax, 0x80004005
jmp 0x476d6e
push esi
push 0
push eax
call fcn.004d52d0
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 0x211c], ecx
test ebx, ebx
jle 0x476b12
mov edi, dword [ebp - 0x2130]
movzx edx, word [ebp + ecx*2 - 0x2014]
lea ebx, [edx - 0x30]
cmp ebx, 0x36
ja case.0x476ac7.58
movzx eax, byte [ebx + 0x476d9c]
jmp dword [eax*4 + 0x476d8c]
lea ebx, [edx - 0x37]
jmp case.0x476ac7.48
lea ebx, [edx - 0x57]
jmp case.0x476ac7.48
xor ebx, ebx
shr ecx, 1
mov esi, dword [ebp - 0x2118]
add esi, ecx
mov eax, dword [ebp - 0x211c]
and eax, 1
shl eax, 2
mov ecx, 4
sub ecx, eax
shl bl, cl
or byte [esi], bl
mov ecx, dword [ebp - 0x211c]
inc ecx
mov dword [ebp - 0x211c], ecx
cmp ecx, edi
jl 0x476ab0
mov esi, dword [ebp - 0x212c]
push esi
push dword [ebp - 0x2118]
push 3
push 0
push dword [ebp - 0x2124]
mov eax, dword [ebp - 0x2128]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x2114]
cmp dword [ebp - 0x2118], eax
je 0x476d3e
lea ecx, [ebp - 0x2118]
call fcn.00477740
jmp 0x476d3e
lea ecx, [ebp - 0x2014]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x476b65
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 0x476d3e
mov dword [ebp - 0x2130], 0
mov dword [ebp - 4], 3
lea eax, [ebp - 0x2134]
push eax
push 0
push 0
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
test eax, eax
jns 0x476bd0
mov dword [ebp - 4], 0xffffffff
jmp 0x476d6e
mov eax, dword [ebp - 0x2134]
mov dword [ebp - 0x212c], eax
push 4
lea eax, [ebp - 0x212c]
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 0x476d3e
cmp esi, 0x4008
jne 0x476d4d
lea ecx, [ebp - 0x2014]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x476c15
sub ecx, edx
sar ecx, 1
add ecx, 2
mov dword [ebp - 0x2118], 0
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
push ecx
lea ecx, [ebp - 0x2118]
call fcn.00476e10
mov dword [ebp - 4], 0
jmp 0x476c6a
mov edi, dword [ebp - 0x2118]
test edi, edi
je 0x476d19
lea esi, [ebp - 0x2014]
cmp word [ebp - 0x2014], 0
je 0x476cbc
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
nop
push esi
call ebx
movzx ecx, word [esi]
cmp ecx, 0x5c
jne 0x476cad
cmp word [eax], 0x30
jne 0x476cad
xor ecx, ecx
mov word [edi], cx
push eax
call ebx
mov esi, eax
jmp 0x476cb3
mov word [edi], cx
add esi, 2
add edi, 2
cmp word [esi], 0
jne 0x476c90
xor eax, eax
mov dword [edi], eax
mov ebx, dword [ebp - 0x2118]
test ebx, ebx
jne 0x476ccf
lea esi, [eax + 0xd]
jmp 0x476d1e
xor esi, esi
mov edx, ebx
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x476ce0
sub ecx, edi
sar ecx, 1
inc ecx
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x476cd3
push esi
push ebx
push 7
push 0
push dword [ebp - 0x2124]
mov eax, dword [ebp - 0x2128]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
jmp 0x476d1e
mov esi, 0xe
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x2114]
cmp dword [ebp - 0x2118], eax
je 0x476d3e
lea ecx, [ebp - 0x2118]
call fcn.00477780
test esi, esi
je 0x476d4d
push esi
call fcn.00477040
add esp, 4
jmp 0x476d6e
push dword [ebp - 0x2138]
mov ecx, dword [ebp - 0x2120]
call fcn.00477980
xor ecx, ecx
test eax, eax
cmovs ecx, eax
mov eax, ecx
jmp 0x476d6e
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.004d2a60
mov esp, ebp
pop ebp
ret 0xc