Function at 0x405d68
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x2108]
mov eax, 0x2108
call fcn.00422df0
push 0xffffffffffffffff
push 0x436382
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x44e080]
xor eax, ebp
mov dword [ebp + 0x2104], 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 - 0x1c], ecx
mov eax, dword [ebp + 0x2118]
mov edi, dword [ebp + 0x2110]
mov ebx, dword [ebp + 0x2114]
mov dword [ebp - 0x2c], eax
lea eax, [ebp + 0x104]
push eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], ebx
call fcn.004064dc
test eax, eax
js 0x406134
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
lea eax, [ebp + 0x104]
push str.SMDB
push eax
call esi
test eax, eax
jne 0x405df9
push 8
jmp 0x405e40
push 0x443968
lea eax, [ebp + 0x104]
push eax
call esi
test eax, eax
jne 0x405e12
mov esi, 0x4008
jmp 0x405e41
push 0x44396c
lea eax, [ebp + 0x104]
push eax
call esi
test eax, eax
jne 0x405e28
push 0x13
jmp 0x405e40
push 0x443970
lea eax, [ebp + 0x104]
push eax
call esi
test eax, eax
jne 0x40612f
push 0x11
pop esi
mov ecx, dword [ebp - 0x1c]
call fcn.00406b7f
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp + 0x104]
push eax
call fcn.004064dc
test eax, eax
js 0x406134
sub esi, 8
je 0x4060e1
sub esi, 9
je 0x405fc7
push 2
pop edi
sub esi, edi
je 0x405f8e
sub esi, 0x3ff5
jne 0x406119
lea eax, [ebp + 0x104]
push eax
call fcn.00425b9b
xor ebx, ebx
add eax, edi
pop ecx
mov dword [ebp], ebx
mul edi
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 1
cmp edx, ebx
ja 0x406159
jb 0x405eb9
cmp eax, 0xffffffff
ja 0x406159
cmp eax, 0x100
jbe 0x405ecb
push eax
lea ecx, [ebp]
call fcn.00405863
jmp 0x405ee1
lea esi, [ebp + 4]
mov dword [ebp], esi
jmp 0x405ee4
mov esi, dword [ebp]
test esi, esi
je 0x405f73
cmp word [ebp + 0x104], 0
lea edi, [ebp + 0x104]
je 0x405f31
push edi
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [edi]
cmp ecx, 0x5c
jne 0x405f23
push 0x30
pop edx
cmp word [eax], dx
jne 0x405f23
xor ecx, ecx
push eax
mov word [esi], cx
call dword [sym.imp.USER32.dll_CharNextW]
mov edi, eax
jmp 0x405f29
mov word [esi], cx
add edi, 2
add esi, 2
cmp word [edi], bx
jne 0x405efc
xor eax, eax
mov dword [esi], eax
mov esi, dword [ebp]
test esi, esi
jne 0x405f40
push 0xd
jmp 0x405f75
mov edi, ebx
mov ebx, esi
push ebx
call fcn.00425b9b
inc eax
pop ecx
lea ebx, [ebx + eax*2]
lea edi, [edi + eax*2]
cmp eax, 1
jne 0x405f44
mov eax, dword [ebp - 0x18]
xor ebx, ebx
push edi
push esi
push 7
push ebx
push dword [ebp - 0x14]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, dword [ebp]
mov edi, eax
jmp 0x405f76
push 0xe
pop edi
lea eax, [ebp + 4]
cmp esi, eax
je 0x40610c
lea ecx, [ebp]
call fcn.0040584e
jmp 0x40610c
lea eax, [ebp - 0x24]
xor ebx, ebx
push eax
push ebx
push ebx
lea eax, [ebp + 0x104]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
test eax, eax
js 0x406134
mov eax, dword [ebp - 0x24]
push 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x18]
push 4
push ebx
push dword [ebp - 0x14]
push dword [eax]
jmp 0x406104
lea eax, [ebp + 0x104]
push eax
call fcn.00425b9b
mov dword [ebp - 0x28], eax
pop ecx
test al, 1
jne 0x406033
cdq
xor ebx, ebx
sub eax, edx
mov dword [ebp], ebx
mov esi, eax
sar esi, 1
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], 3
mov byte [ebp - 4], 4
cmp esi, 0x100
jbe 0x406021
push esi
lea ecx, [ebp]
call fcn.00405863
mov eax, dword [ebp]
jmp 0x406027
lea eax, [ebp + 4]
mov dword [ebp], eax
test eax, eax
jne 0x40603d
lea ecx, [ebp]
call fcn.0040584e
mov eax, 0x80004005
jmp 0x406134
push esi
push ebx
push eax
call fcn.00423750
mov edi, dword [ebp - 0x28]
add esp, 0xc
test edi, edi
jle 0x4060b8
mov esi, ebx
movzx ecx, word [ebp + esi*2 + 0x104]
mov eax, esi
cdq
sub eax, edx
mov edx, ecx
sar eax, 1
add eax, dword [ebp]
mov dword [ebp - 0x28], eax
mov eax, ecx
push 0x30
pop ecx
cmp ax, cx
jb 0x40609a
cmp eax, 0x39
jbe 0x406095
cmp eax, 0x40
jbe 0x40609a
cmp eax, 0x46
jbe 0x406090
cmp eax, 0x60
jbe 0x40609a
cmp edx, 0x66
ja 0x40609a
sub dl, 0x57
jmp 0x40609c
sub dl, 0x37
jmp 0x40609c
sub dl, 0x30
jmp 0x40609c
mov dl, bl
mov eax, esi
and eax, 1
shl eax, 2
push 4
pop ecx
sub ecx, eax
mov eax, dword [ebp - 0x28]
shl dl, cl
or byte [eax], dl
inc esi
cmp esi, edi
jl 0x406051
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
push esi
push dword [ebp]
push 3
push ebx
push dword [ebp - 0x14]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x40610c
lea ecx, [ebp]
call fcn.0040584e
jmp 0x40610c
lea eax, [ebp + 0x104]
push eax
call fcn.00425b9b
pop ecx
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp + 0x104]
push eax
push 1
push 0
push ebx
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
je 0x406119
mov ecx, edi
call fcn.004064ce
jmp 0x406134
push dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
call fcn.004064dc
xor ecx, ecx
test eax, eax
cmovs ecx, eax
mov eax, ecx
jmp 0x406134
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 + 0x2104]
xor ecx, ebp
call fcn.00421c45
add ebp, 0x2108
leave
ret 0xc
push 0x80070216
call fcn.0040268b
int3