Function at 0x477340
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x67de6b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2124
call fcn.0058b400
mov eax, dword [0x78a6d4]
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 - 0x211c], ecx
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x2134], eax
lea eax, [ebp - 0x2014]
push eax
mov dword [ebp - 0x212c], ecx
mov dword [ebp - 0x2124], edi
mov dword [ebp - 0x2120], ebx
call fcn.00477190
test eax, eax
js 0x4777b1
push str.SMDB
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4773cc
lea esi, [eax + 8]
jmp 0x477421
push 0x703884
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4773e9
mov esi, 0x4008
jmp 0x477421
push 0x703888
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x477404
lea esi, [eax + 0x13]
jmp 0x477421
push 0x70388c
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4777ac
lea esi, [eax + 0x11]
mov ecx, dword [ebp - 0x211c]
call fcn.00477140
mov ecx, dword [ebp - 0x211c]
lea eax, [ebp - 0x2014]
push eax
call fcn.00477190
test eax, eax
js 0x4777b1
cmp esi, 0x13
ja 0x477644
je 0x4775fb
cmp esi, 8
je 0x4775c9
cmp esi, 0x11
jne 0x477790
lea eax, [ebp - 0x2014]
push eax
call fcn.0059a3bd
mov ebx, eax
add esp, 4
mov dword [ebp - 0x2128], ebx
test bl, 1
jne 0x47750c
cdq
sub eax, edx
mov dword [ebp - 0x2118], 0
mov ecx, eax
sar ecx, 1
mov dword [ebp - 0x2130], ecx
mov dword [ebp - 4], 3
mov byte [ebp - 4], 4
cmp ecx, 0x100
jbe 0x4774f1
push ecx
lea ecx, [ebp - 0x2118]
call fcn.004793b0
mov eax, dword [ebp - 0x2118]
mov ecx, dword [ebp - 0x2130]
jmp 0x4774fd
lea eax, [ebp - 0x2114]
mov dword [ebp - 0x2118], eax
test eax, eax
jne 0x477516
lea ecx, [ebp - 0x2118]
call fcn.004793a0
mov eax, 0x80004005
jmp 0x4777b1
push ecx
push 0
push eax
call fcn.0058d130
add esp, 0xc
xor esi, esi
test ebx, ebx
jle 0x477581
mov edi, dword [ebp - 0x2128]
nop
movzx ebx, word [ebp + esi*2 - 0x2014]
lea eax, [ebx - 0x30]
cmp eax, 0x36
ja case.0x477547.58
movzx eax, byte [eax + 0x4777ec]
jmp dword [eax*4 + 0x4777dc]
sub bl, 0x30
jmp 0x47755f
sub bl, 0x37
jmp 0x47755f
sub bl, 0x57
jmp 0x47755f
xor bl, bl
mov eax, esi
mov edx, esi
and eax, 1
shr edx, 1
add edx, dword [ebp - 0x2118]
mov ecx, 4
shl eax, 2
inc esi
sub ecx, eax
shl bl, cl
or byte [edx], bl
cmp esi, edi
jl 0x477530
push dword [ebp - 0x2130]
mov eax, dword [ebp - 0x2124]
push dword [ebp - 0x2118]
push 3
push 0
push dword [ebp - 0x2120]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
lea eax, [ebp - 0x2114]
cmp dword [ebp - 0x2118], eax
je 0x477783
lea ecx, [ebp - 0x2118]
call fcn.004793a0
jmp 0x477783
lea eax, [ebp - 0x2014]
push eax
call fcn.0059a3bd
add esp, 4
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x2014]
push eax
push 1
push 0
push ebx
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
jmp 0x477783
lea eax, [ebp - 0x212c]
push eax
push 0
push 0
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
test eax, eax
js 0x4777b1
mov eax, dword [ebp - 0x212c]
push 4
mov dword [ebp - 0x2128], eax
lea eax, [ebp - 0x2128]
push eax
push 4
push 0
push ebx
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
jmp 0x477783
cmp esi, 0x4008
jne 0x477790
lea eax, [ebp - 0x2014]
push eax
call fcn.0059a3bd
add esp, 4
mov dword [ebp - 0x2118], 0
add eax, 2
mov ecx, 2
mov dword [ebp - 4], 0
mul ecx
mov byte [ebp - 4], 1
test edx, edx
jne 0x4777cf
cmp eax, 0xffffffff
ja 0x4777cf
cmp eax, 0x100
jbe 0x4776a4
push eax
lea ecx, [ebp - 0x2118]
call fcn.004793b0
jmp 0x4776c4
lea esi, [ebp - 0x2114]
mov dword [ebp - 0x2118], esi
jmp 0x4776ca
mov esi, dword [ebp - 0x2118]
test esi, esi
je 0x477769
cmp word [ebp - 0x2014], 0
lea edi, [ebp - 0x2014]
je 0x477716
push edi
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [edi]
cmp ecx, 0x5c
jne 0x477707
cmp word [eax], 0x30
jne 0x477707
xor ecx, ecx
push eax
mov word [esi], cx
call dword [sym.imp.USER32.dll_CharNextW]
mov edi, eax
jmp 0x47770d
mov word [esi], cx
add edi, 2
add esi, 2
cmp word [edi], 0
jne 0x4776e2
xor eax, eax
mov dword [esi], eax
mov esi, dword [ebp - 0x2118]
test esi, esi
jne 0x477729
lea edi, [eax + 0xd]
jmp 0x47776e
xor ebx, ebx
mov edi, esi
nop dword [eax]
push edi
call fcn.0059a3bd
inc eax
add esp, 4
lea edi, [edi + eax*2]
lea ebx, [ebx + eax*2]
cmp eax, 1
jne 0x477730
mov eax, dword [ebp - 0x2124]
push ebx
push esi
push 7
push 0
push dword [ebp - 0x2120]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, dword [ebp - 0x2118]
mov edi, eax
jmp 0x47776e
mov edi, 0xe
lea eax, [ebp - 0x2114]
cmp esi, eax
je 0x477783
lea ecx, [ebp - 0x2118]
call fcn.004793a0
test edi, edi
je 0x477790
mov ecx, edi
call fcn.00476550
jmp 0x4777b1
push dword [ebp - 0x2134]
mov ecx, dword [ebp - 0x211c]
call fcn.00477190
xor ecx, ecx
test eax, eax
cmovs ecx, eax
mov eax, ecx
jmp 0x4777b1
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.0058a893
mov esp, ebp
pop ebp
ret 0xc
push 0x80070216
call fcn.00453590
nop dword [eax]
dec esi
jne 4683814
add byte [ebx + 0x75], dl
inc edi
add byte [eax + 0x75], bl
inc edi
add byte [ebp + 0x75], bl
inc edi
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [ebx], al
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
int3
int3