Function at 0x4798a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5947cb
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2124
call fcn.004c6d00
mov eax, dword [0x6340c4]
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.004796f0
test eax, eax
js 0x479d11
push str.SMDB
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x47992c
lea esi, [eax + 8]
jmp 0x479981
push 0x5d90a0
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x479949
mov esi, 0x4008
jmp 0x479981
push 0x5d90a4
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x479964
lea esi, [eax + 0x13]
jmp 0x479981
push 0x5d90a8
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x479d0c
lea esi, [eax + 0x11]
mov ecx, dword [ebp - 0x211c]
call fcn.004796a0
mov ecx, dword [ebp - 0x211c]
lea eax, [ebp - 0x2014]
push eax
call fcn.004796f0
test eax, eax
js 0x479d11
cmp esi, 0x13
ja 0x479ba4
je 0x479b5b
cmp esi, 8
je 0x479b29
cmp esi, 0x11
jne 0x479cf0
lea eax, [ebp - 0x2014]
push eax
call fcn.004d4367
mov ebx, eax
add esp, 4
mov dword [ebp - 0x2128], ebx
test bl, 1
jne 0x479a6c
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 0x479a51
push ecx
lea ecx, [ebp - 0x2118]
call fcn.00481bd0
mov eax, dword [ebp - 0x2118]
mov ecx, dword [ebp - 0x2130]
jmp 0x479a5d
lea eax, [ebp - 0x2114]
mov dword [ebp - 0x2118], eax
test eax, eax
jne 0x479a76
lea ecx, [ebp - 0x2118]
call fcn.00481b10
mov eax, 0x80004005
jmp 0x479d11
push ecx
push 0
push eax
call fcn.004c76f0
add esp, 0xc
xor esi, esi
test ebx, ebx
jle 0x479ae1
mov edi, dword [ebp - 0x2128]
nop
movzx ebx, word [ebp + esi*2 - 0x2014]
lea eax, [ebx - 0x30]
cmp eax, 0x36
ja case.0x479aa7.58
movzx eax, byte [eax + 0x479d4c]
jmp dword [eax*4 + 0x479d3c]
sub bl, 0x30
jmp 0x479abf
sub bl, 0x37
jmp 0x479abf
sub bl, 0x57
jmp 0x479abf
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 0x479a90
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 0x479ce3
lea ecx, [ebp - 0x2118]
call fcn.00481b10
jmp 0x479ce3
lea eax, [ebp - 0x2014]
push eax
call fcn.004d4367
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 0x479ce3
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 0x479d11
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 0x479ce3
cmp esi, 0x4008
jne 0x479cf0
lea eax, [ebp - 0x2014]
push eax
call fcn.004d4367
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 0x479d2f
cmp eax, 0xffffffff
ja 0x479d2f
cmp eax, 0x100
jbe 0x479c04
push eax
lea ecx, [ebp - 0x2118]
call fcn.00481bd0
jmp 0x479c24
lea esi, [ebp - 0x2114]
mov dword [ebp - 0x2118], esi
jmp 0x479c2a
mov esi, dword [ebp - 0x2118]
test esi, esi
je 0x479cc9
cmp word [ebp - 0x2014], 0
lea edi, [ebp - 0x2014]
je 0x479c76
push edi
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [edi]
cmp ecx, 0x5c
jne 0x479c67
cmp word [eax], 0x30
jne 0x479c67
xor ecx, ecx
push eax
mov word [esi], cx
call dword [sym.imp.USER32.dll_CharNextW]
mov edi, eax
jmp 0x479c6d
mov word [esi], cx
add edi, 2
add esi, 2
cmp word [edi], 0
jne 0x479c42
xor eax, eax
mov dword [esi], eax
mov esi, dword [ebp - 0x2118]
test esi, esi
jne 0x479c89
lea edi, [eax + 0xd]
jmp 0x479cce
xor ebx, ebx
mov edi, esi
nop dword [eax]
push edi
call fcn.004d4367
inc eax
add esp, 4
lea edi, [edi + eax*2]
lea ebx, [ebx + eax*2]
cmp eax, 1
jne 0x479c90
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 0x479cce
mov edi, 0xe
lea eax, [ebp - 0x2114]
cmp esi, eax
je 0x479ce3
lea ecx, [ebp - 0x2118]
call fcn.00481b10
test edi, edi
je 0x479cf0
mov ecx, edi
call fcn.00478aa0
jmp 0x479d11
push dword [ebp - 0x2134]
mov ecx, dword [ebp - 0x211c]
call fcn.004796f0
xor ecx, ecx
test eax, eax
cmovs ecx, eax
mov eax, ecx
jmp 0x479d11
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.004c59c5
mov esp, ebp
pop ebp
ret 0xc
push 0x80070216
call fcn.00443030
nop dword [eax]
scasb al, byte es:[edi]
lcall 71, 0x9ab30047
mov eax, 0xbd00479a
lcall 0, 0x47
add byte [eax], al
add byte [eax], al
add byte [eax], al
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ecx]
add dword [ecx], eax
add dword [ecx], eax
add dword [ebx], 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 [edx]
add al, byte [edx]
add al, byte [edx]
add cl, ah
int3