Function at 0x4d99e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x2118
call fcn.0064e0b0
mov esi, ecx
mov eax, dword [0x7aa024]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea edi, [ebp - 0x2010]
push 0x2000
push 0xff
push edi
call fcn.00650600
add esp, 0xc
mov ecx, esi
push edi
call fcn.0068c3c0
test eax, eax
js 0x4d9c3b
push str.SMDB
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4d9a80
push 0x7455d4
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4d9a86
push 0x7455d8
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4d9a8c
push 0x7455dc
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor ecx, ecx
mov edx, 0x11
mov ebx, 0x80020009
test eax, eax
cmovne edx, ecx
jne 0x4d9c3d
mov dword [ebp - 0x211c], edx
jmp 0x4d9a96
mov ax, 8
jmp 0x4d9a90
mov ax, 0x4008
jmp 0x4d9a90
mov ax, 0x13
mov dword [ebp - 0x211c], eax
mov eax, dword [esi]
mov edi, 0x800013
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
add ecx, 0xfffffff7
cmp ecx, 0x17
ja 0x4d9aba
bt edi, ecx
jae 0x4d9aba
push eax
call ebx
mov dword [esi], eax
jmp 0x4d9aa3
mov ecx, esi
lea edi, [ebp - 0x2010]
push edi
call fcn.0068c3c0
test eax, eax
js 0x4d9c3b
movzx eax, word [ebp - 0x211c]
cmp eax, 0x12
jg 0x4d9c10
cmp eax, 0x11
jne 0x4d9c71
lea eax, [ebp - 0x2010]
push eax
call fcn.0066b526
add esp, 4
mov ebx, 0x80004005
test al, 1
jne 0x4d9c3d
mov edi, eax
shr edi, 0x1f
mov dword [ebp - 0x211c], eax
add edi, eax
sar edi, 1
lea eax, [ebp - 0x2110]
push 0x100
push 0xff
push eax
call fcn.00650600
lea edx, [ebp - 0x2110]
add esp, 0xc
mov dword [edx - 4], 0
mov dword [ebp - 0x2120], edi
cmp edi, 0x101
jae 0x4d9e2d
mov dword [ebp - 0x2114], edx
test edx, edx
je 0x4d9c56
push dword [ebp - 0x2120]
push 0
mov dword [ebp - 0x2124], edx
push edx
call fcn.00650600
add esp, 0xc
cmp dword [ebp - 0x211c], 0
jle 0x4d9bdd
xor eax, eax
xor edx, edx
movzx ecx, word [ebp + edx*2 - 0x2010]
lea ebx, [ecx - 0x30]
cmp ebx, 0xa
jb 0x4d9bab
lea ebx, [ecx - 0x41]
cmp ebx, 6
jb 0x4d9bb3
lea edi, [ecx - 0x61]
mov ebx, 0
cmp edi, 6
jae 0x4d9bbb
add ecx, 0xa9
jmp 0x4d9bb9
add ecx, 0xd0
jmp 0x4d9bb9
add ecx, 0xc9
mov ebx, ecx
mov ecx, eax
not cl
and cl, 4
shl ebx, cl
mov ecx, dword [ebp - 0x2114]
mov edi, edx
shr edi, 1
or byte [ecx + edi], bl
inc edx
add eax, 4
cmp dword [ebp - 0x211c], edx
jne 0x4d9b7e
push dword [ebp - 0x2120]
push dword [ebp - 0x2114]
push 3
push 0
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov eax, dword [ebp - 0x2114]
mov ebx, 0x80004005
mov edx, dword [ebp - 0x2124]
jmp 0x4d9c5a
cmp eax, 0x13
jne 0x4d9c94
lea eax, [ebp - 0x2118]
mov dword [eax], 0xffffffff
xor ecx, ecx
lea edx, [ebp - 0x2010]
push eax
push ecx
push ecx
push edx
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
test eax, eax
jns 0x4d9cfc
mov ebx, eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0064d372
mov eax, ebx
add esp, 0x2118
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
xor eax, eax
xor edi, edi
lea ecx, [ebp - 0x2110]
cmp eax, ecx
jne 0x4d9e4c
test edx, edx
je 0x4d9c3d
jmp 0x4d9e05
cmp eax, 8
jne 0x4d9e09
lea edi, [ebp - 0x2010]
push edi
call fcn.0066b526
add esp, 4
add eax, eax
add eax, 2
push eax
push edi
push 1
jmp 0x4d9d12
cmp eax, 0x4008
jne 0x4d9e09
lea eax, [ebp - 0x2010]
push eax
call fcn.0066b526
add esp, 4
mov edi, eax
add edi, 2
lea eax, [ebp - 0x2110]
push 0x100
push 0xff
push eax
call fcn.00650600
mov eax, edi
lea edi, [ebp - 0x2110]
add esp, 0xc
mov dword [edi - 4], 0
add eax, eax
jb 0x4d9e6c
cmp eax, 0x101
jb 0x4d9d29
lea edi, [ebp - 0x2114]
mov ecx, edi
push eax
call fcn.0068c390
mov edi, dword [edi]
jmp 0x4d9d2f
mov eax, dword [ebp - 0x2118]
lea ecx, [ebp - 0x2114]
mov dword [ecx], eax
mov eax, 4
push eax
push ecx
push eax
push 0
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
jmp 0x4d9e05
mov dword [ebp - 0x2114], edi
lea edx, [ebp - 0x2010]
xor ecx, ecx
test edi, edi
jne 0x4d9d45
mov edi, 0xe
jmp 0x4d9df0
cmp word [ebp - 0x2010], 0
je 0x4d9d92
mov dword [ebp - 0x211c], edi
push edx
mov edi, edx
call ebx
mov edx, edi
movzx ecx, word [edi]
cmp cx, 0x5c
jne 0x4d9d7d
cmp word [eax], 0x30
jne 0x4d9d7d
mov edi, dword [ebp - 0x211c]
mov word [edi], 0
push eax
call ebx
mov edx, eax
jmp 0x4d9d89
mov edi, dword [ebp - 0x211c]
mov word [edi], cx
add edx, 2
add edi, 2
cmp word [edx], 0
jne 0x4d9d4f
mov dword [edi], 0
mov eax, dword [ebp - 0x2114]
mov edi, 0xd
test eax, eax
mov ecx, 0
je 0x4d9df0
xor ebx, ebx
mov dword [ebp - 0x211c], eax
mov edi, eax
push edi
call fcn.0066b526
add esp, 4
lea edi, [edi + eax*2]
add edi, 2
lea ebx, [ebx + eax*2]
add ebx, 2
test eax, eax
jne 0x4d9db6
push ebx
push dword [ebp - 0x211c]
push 7
push 0
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov ecx, dword [ebp - 0x2114]
lea eax, [ebp - 0x2110]
cmp ecx, eax
je 0x4d9e05
lea ecx, [ebp - 0x2114]
call fcn.0068c680
test edi, edi
jne 0x4d9e1f
mov ecx, esi
push dword [ebp + 0x10]
call fcn.0068c3c0
mov ebx, eax
sar ebx, 0x1f
and ebx, eax
jmp 0x4d9c3d
push edi
call fcn.0068c660
add esp, 4
jmp 0x4d9c3b
lea ebx, [ebp - 0x2114]
mov ecx, ebx
push dword [ebp - 0x2120]
call fcn.0068c390
mov edx, dword [ebx]
mov ebx, 0x80004005
jmp 0x4d9b52
lea ecx, [ebp - 0x2114]
mov dword [ebp - 0x211c], edi
mov edi, edx
call fcn.0068c680
mov edx, edi
mov edi, dword [ebp - 0x211c]
jmp 0x4d9c68
push 0x80070216
call fcn.006a9890
int3