Function at 0x1000796c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x211c
call fcn.1006abc0
mov eax, dword [0x100db3fc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x211c], ecx
lea ecx, [ebp - 0x2004]
push edi
mov edi, dword [ebp + 0xc]
push ecx
mov ecx, eax
mov dword [ebp - 0x2118], eax
mov dword [ebp - 0x2114], ebx
mov dword [ebp - 0x2110], edi
call fcn.10008670
test eax, eax
js 0x10007c2c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
lea eax, [ebp - 0x2004]
push str.SMDB
push eax
call esi
test eax, eax
jne 0x10007810
lea esi, [eax + 8]
jmp 0x10007859
push 0x100cd0f8
lea eax, [ebp - 0x2004]
push eax
call esi
test eax, eax
jne 0x10007829
mov esi, 0x4008
jmp 0x10007859
push 0x100cd0fc
lea eax, [ebp - 0x2004]
push eax
call esi
test eax, eax
jne 0x10007840
lea esi, [eax + 0x13]
jmp 0x10007859
push 0x100cd100
lea eax, [ebp - 0x2004]
push eax
call esi
test eax, eax
jne 0x10007c26
lea esi, [eax + 0x11]
mov ecx, dword [ebp - 0x2118]
call fcn.10009b80
mov ecx, dword [ebp - 0x2118]
lea eax, [ebp - 0x2004]
push eax
call fcn.10008670
test eax, eax
js 0x10007c2b
cmp esi, 0x13
ja 0x10007a94
je 0x10007a18
cmp esi, 8
je 0x100079dd
cmp esi, 0x11
jne 0x10007bf9
lea ebx, [ebp - 0x2004]
lea ecx, [ebx + 2]
nop dword [eax + eax]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x100078b0
sub ebx, ecx
sar ebx, 1
test bl, 1
jne 0x1000791a
mov eax, ebx
mov dword [ebp - 0x2108], 0
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
mov dword [ebp - 0x210c], ecx
cmp ecx, 0x100
jbe 0x100078ff
push ecx
lea ecx, [ebp - 0x2108]
call fcn.10007c90
mov eax, dword [ebp - 0x2108]
mov ecx, dword [ebp - 0x210c]
jmp 0x1000790b
lea eax, [ebp - 0x2104]
mov dword [ebp - 0x2108], eax
test eax, eax
jne 0x10007932
lea ecx, [ebp - 0x2108]
call fcn.10008030
pop esi
pop edi
mov eax, 0x80004005
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006a60c
mov esp, ebp
pop ebp
ret 0xc
push ecx
push 0
push eax
call fcn.10076570
add esp, 0xc
xor edi, edi
test ebx, ebx
jle 0x10007995
movzx edx, word [ebp + edi*2 - 0x2004]
mov esi, edi
shr esi, 1
add esi, dword [ebp - 0x2108]
lea eax, [edx - 0x30]
cmp eax, 0x36
ja case.0x10007965.58
movzx eax, byte [eax + 0x10007c58]
jmp dword [eax*4 + 0x10007c48]
sub dl, 0x30
jmp 0x1000797d
sub dl, 0x37
jmp 0x1000797d
sub dl, 0x57
jmp 0x1000797d
xor dl, dl
mov eax, edi
mov ecx, 4
and eax, 1
inc edi
shl eax, 2
sub ecx, eax
shl dl, cl
or byte [esi], dl
cmp edi, ebx
jl 0x10007944
push dword [ebp - 0x210c]
mov eax, dword [ebp - 0x2114]
push dword [ebp - 0x2108]
push 3
push 0
push dword [ebp - 0x2110]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
lea eax, [ebp - 0x2104]
cmp dword [ebp - 0x2108], eax
je 0x10007bd9
lea ecx, [ebp - 0x2108]
call fcn.10008030
jmp 0x10007bd9
lea ecx, [ebp - 0x2004]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100079e6
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x2004]
push eax
push 1
push 0
push edi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
jmp 0x10007bd9
lea eax, [ebp - 0x2114]
mov dword [ebp - 0x210c], 0
push eax
push 0
push 0
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov esi, eax
test esi, esi
jns 0x10007a60
lea ecx, [ebp - 0x210c]
call fcn.10006c10
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006a60c
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 0x2114]
push 4
mov dword [ebp - 0x2110], eax
lea eax, [ebp - 0x2110]
push eax
push 4
push 0
push edi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x210c]
mov edi, eax
call fcn.10006c10
jmp 0x10007bd9
cmp esi, 0x4008
jne 0x10007bf9
lea ecx, [ebp - 0x2004]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10007ab0
sub ecx, edx
mov dword [ebp - 0x2108], 0
sar ecx, 1
lea eax, [ecx + 2]
mov ecx, 2
mul ecx
test edx, edx
ja 0x10007c3e
jb 0x10007ae6
cmp eax, 0xffffffff
ja 0x10007c3e
cmp eax, 0x100
jbe 0x10007b01
push eax
lea ecx, [ebp - 0x2108]
call fcn.10007c90
mov esi, dword [ebp - 0x2108]
jmp 0x10007b0d
lea esi, [ebp - 0x2104]
mov dword [ebp - 0x2108], esi
test esi, esi
je 0x10007bbf
cmp word [ebp - 0x2004], 0
lea edi, [ebp - 0x2004]
je 0x10007b5c
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
nop dword [eax + eax]
push edi
call ebx
movzx ecx, word [edi]
cmp ecx, 0x5c
jne 0x10007b4d
cmp word [eax], 0x30
jne 0x10007b4d
xor ecx, ecx
push eax
mov word [esi], cx
call ebx
mov edi, eax
jmp 0x10007b53
mov word [esi], cx
add edi, 2
add esi, 2
cmp word [edi], 0
jne 0x10007b30
xor eax, eax
mov dword [esi], eax
mov esi, dword [ebp - 0x2108]
test esi, esi
jne 0x10007b6f
lea edi, [eax + 0xd]
jmp 0x10007bc4
xor ebx, ebx
mov edx, esi
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10007b80
sub ecx, edi
sar ecx, 1
inc ecx
lea edx, [edx + ecx*2]
lea ebx, [ebx + ecx*2]
cmp ecx, 1
jne 0x10007b73
mov eax, dword [ebp - 0x2114]
push ebx
push esi
push 7
push 0
push dword [ebp - 0x2110]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, dword [ebp - 0x2108]
mov edi, eax
jmp 0x10007bc4
mov edi, 0xe
lea eax, [ebp - 0x2104]
cmp esi, eax
je 0x10007bd9
lea ecx, [ebp - 0x2108]
call fcn.10008030
test edi, edi
je 0x10007bf9
push edi
call fcn.10007d90
add esp, 4
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006a60c
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp - 0x211c]
mov ecx, dword [ebp - 0x2118]
call fcn.10008670
xor ecx, ecx
test eax, eax
pop esi
cmovs ecx, eax
pop edi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006a60c
mov esp, ebp
pop ebp
ret 0xc
mov eax, 0x80020009
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.1006a60c
mov esp, ebp
pop ebp
ret 0xc
push 0x80070216
call fcn.10001670
insb byte es:[edi], dx
jns 268467275
adc byte [ecx + 0x79], dh
add byte [eax], dl
jbe 0x10007ccb
add byte [eax], dl
jnp 0x10007ccf
add byte [eax], dl
add byte [eax], al
add byte [eax], al
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
push cs