Function at 0x406f0b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41b28c
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2124
call fcn.0041ab10
mov eax, dword [0x42600c]
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 - 0x2128], ecx
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x2134], eax
lea eax, [ebp - 0x2014]
push eax
mov dword [ebp - 0x211c], ecx
mov dword [ebp - 0x212c], esi
mov dword [ebp - 0x2124], edi
mov dword [ebp - 0x2120], ebx
call fcn.0040757b
test eax, eax
js 0x4072d6
lea edx, [ebp - 0x2120]
lea ecx, [ebp - 0x2014]
call fcn.00406dda
test eax, eax
jne 0x406fa3
mov eax, 0x80020009
jmp 0x4072d6
mov ecx, dword [ebp - 0x2128]
call fcn.00407d0b
mov ecx, dword [ebp - 0x2128]
lea eax, [ebp - 0x2014]
push eax
call fcn.0040757b
test eax, eax
js 0x4072d6
movzx eax, word [ebp - 0x2120]
sub eax, 8
je 0x40729d
sub eax, 9
je 0x407166
push 2
pop edi
sub eax, edi
je 0x40711d
sub eax, 0x3ff5
jne 0x4072bc
lea eax, [ebp - 0x2014]
push eax
call fcn.0040d7ad
pop ecx
add eax, edi
mov dword [ebp - 0x2118], ebx
mul edi
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 1
cmp edx, ebx
ja 0x4072f2
cmp eax, 0xffffffff
ja 0x4072f2
cmp eax, 0x100
jbe 0x40703b
push eax
lea ecx, [ebp - 0x2118]
call fcn.0040385f
jmp 0x40705d
lea esi, [ebp - 0x2114]
mov dword [ebp - 0x2118], esi
jmp 0x407063
mov esi, dword [ebp - 0x2118]
test esi, esi
je 0x4070fc
cmp word [ebp - 0x2014], 0
lea edi, [ebp - 0x2014]
je 0x4070ae
push edi
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [edi]
cmp ecx, 0x5c
jne 0x4070a0
cmp word [eax], 0x30
jne 0x4070a0
xor ecx, ecx
push eax
mov word [esi], cx
call dword [sym.imp.USER32.dll_CharNextW]
mov edi, eax
jmp 0x4070a6
mov word [esi], cx
add edi, 2
add esi, 2
cmp word [edi], bx
jne 0x40707b
xor eax, eax
mov dword [esi], eax
mov esi, dword [ebp - 0x2118]
test esi, esi
jne 0x4070c0
push 0xd
jmp 0x4070fe
mov edi, ebx
mov ebx, esi
push ebx
call fcn.0040d7ad
inc eax
pop ecx
lea ebx, [ebx + eax*2]
lea edi, [edi + eax*2]
cmp eax, 1
jne 0x4070c4
mov eax, dword [ebp - 0x212c]
xor ebx, ebx
push edi
push esi
push 7
push ebx
push dword [ebp - 0x2124]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, dword [ebp - 0x2118]
mov edi, eax
jmp 0x4070ff
push 0xe
pop edi
lea eax, [ebp - 0x2114]
cmp esi, eax
je 0x4072af
lea ecx, [ebp - 0x2118]
call fcn.004038c5
jmp 0x4072af
lea eax, [ebp - 0x2130]
push eax
push ebx
push ebx
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
test eax, eax
js 0x4072d6
mov eax, dword [ebp - 0x2130]
push 4
mov dword [ebp - 0x211c], eax
lea eax, [ebp - 0x211c]
push eax
push 4
push ebx
push dword [ebp - 0x2124]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x4072ad
lea eax, [ebp - 0x2014]
push eax
call fcn.0040d7ad
mov dword [ebp - 0x2130], eax
pop ecx
test al, 1
jne 0x4071f7
cdq
sub eax, edx
mov dword [ebp - 0x2118], ebx
sar eax, 1
mov dword [ebp - 0x2120], eax
mov dword [ebp - 4], 3
mov byte [ebp - 4], 4
cmp eax, 0x100
jbe 0x4071dc
push eax
lea ecx, [ebp - 0x2118]
call fcn.0040385f
mov ecx, dword [ebp - 0x2118]
mov eax, dword [ebp - 0x2120]
jmp 0x4071e8
lea ecx, [ebp - 0x2114]
mov dword [ebp - 0x2118], ecx
test ecx, ecx
jne 0x407201
lea ecx, [ebp - 0x2118]
call fcn.004038c5
mov eax, 0x80004005
jmp 0x4072d6
push eax
push ebx
push ecx
call fcn.0040a160
add esp, 0xc
mov dword [ebp - 0x211c], ebx
cmp dword [ebp - 0x2130], 0
mov edx, ebx
jle 0x40725d
mov ebx, dword [ebp - 0x2130]
mov cx, word [ebp + edx*2 - 0x2014]
mov edi, edx
mov esi, dword [ebp - 0x2118]
shr edi, 1
call fcn.00406e8b
and edx, 1
shl edx, 2
push 4
pop ecx
sub ecx, edx
mov edx, dword [ebp - 0x211c]
shl al, cl
or byte [edi + esi], al
inc edx
mov dword [ebp - 0x211c], edx
cmp edx, ebx
jl 0x407223
xor ebx, ebx
push dword [ebp - 0x2120]
mov eax, dword [ebp - 0x212c]
push dword [ebp - 0x2118]
push 3
push ebx
push dword [ebp - 0x2124]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
lea eax, [ebp - 0x2114]
cmp dword [ebp - 0x2118], eax
je 0x4072af
lea ecx, [ebp - 0x2118]
call fcn.004038c5
jmp 0x4072af
push ecx
lea eax, [ebp - 0x2014]
mov ecx, esi
push eax
push edi
call fcn.00406e3a
mov edi, eax
test edi, edi
je 0x4072bc
mov ecx, edi
call fcn.0040756d
jmp 0x4072d6
push dword [ebp - 0x2134]
mov ecx, dword [ebp - 0x2128]
call fcn.0040757b
xor ecx, ecx
test eax, eax
cmovs ecx, eax
mov eax, ecx
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.00408808
leave
ret 0xc
push 0x80070216
call fcn.00402460
int3