Function at 0x667ffdd8
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x6680448c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 0x110], eax
mov eax, dword [ebp + 0x10]
push esi
push edi
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0x10c], edx
mov dword [ebp - 0x11c], eax
je 0x668001de
cmp dword [ebx], 0xd8c
jne 0x668001de
call fcn.667ffb1d
test eax, eax
jne 0x668001e1
mov ecx, dword [0x6680403c]
test ecx, ecx
je 0x667ffe47
call fcn.667ff0cd
mov ecx, dword [0x6680403c]
jmp 0x667ffe71
push 0x10
call fcn.667f30b0
test eax, eax
pop ecx
je 0x667ffe5e
mov ecx, eax
call fcn.667ffb47
mov ecx, eax
jmp 0x667ffe60
xor ecx, ecx
test ecx, ecx
mov dword [0x6680403c], ecx
je 0x667ffe6e
mov eax, dword [ecx]
jmp 0x667ffe71
push 8
pop eax
test eax, eax
jne 0x668001e1
cmp dword [ecx + 4], eax
jne 0x667ffe88
mov eax, 0x260
jmp 0x668001e1
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebx + 0x786]
push eax
call esi
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
je 0x667fff0b
lea eax, [ebx + 0x764]
push eax
call esi
test eax, eax
je 0x667fff0b
mov ecx, dword [0x6680403c]
lea eax, [ebx + 0x764]
push eax
lea eax, [ebx + 0x786]
push eax
call fcn.667ff2c0
test eax, eax
jne 0x667fff64
mov ecx, dword [0x6680403c]
lea eax, [ebx + 0x786]
push eax
call fcn.667ff21e
test eax, eax
jne 0x667fff2e
mov ecx, dword [0x6680403c]
lea eax, [ebx + 0x764]
push eax
call fcn.667ff26f
test eax, eax
jne 0x667fff5a
and word [ebx + 0x786], ax
and word [ebx + 0x764], ax
jmp 0x667fff64
lea eax, [ebx + 0x786]
push eax
call esi
test eax, eax
je 0x667fff37
mov ecx, dword [0x6680403c]
lea eax, [ebx + 0x786]
push eax
call fcn.667ff21e
test eax, eax
je 0x667fff64
push eax
lea eax, [ebx + 0x764]
jmp 0x667fff61
lea eax, [ebx + 0x764]
push eax
call esi
test eax, eax
je 0x667fff64
mov ecx, dword [0x6680403c]
lea eax, [ebx + 0x764]
push eax
call fcn.667ff26f
test eax, eax
je 0x667fff64
push eax
lea eax, [ebx + 0x786]
push eax
call edi
lea eax, [ebx + 0x786]
push eax
call esi
test eax, eax
je 0x667fff7e
lea eax, [ebx + 0x764]
push eax
call esi
test eax, eax
jne 0x667fffaf
mov ecx, dword [0x6680403c]
call fcn.667ff1f8
push eax
lea eax, [ebx + 0x786]
push eax
call edi
mov ecx, dword [0x6680403c]
lea eax, [ebx + 0x786]
push eax
call fcn.667ff21e
push eax
lea eax, [ebx + 0x764]
push eax
call edi
mov edx, dword [ebp - 0x10c]
mov ecx, dword [ebp - 0x118]
call fcn.667ffd79
test eax, eax
je 0x667fffcf
cmp eax, 0xb7
jne 0x668001e1
call fcn.667f2d09
test eax, eax
je 0x667fffde
or word [ebx + 6], 0x401
lea eax, [ebx + 0x10]
push eax
call esi
test eax, eax
jne 0x667ffff9
test byte [ebx + 4], 1
jne 0x667ffff9
push 0x667f29f8
lea eax, [ebx + 0x10]
push eax
call edi
call fcn.667fedef
test eax, eax
je 0x66800012
push 0x80
push 0x40
lea ecx, [ebx + 4]
pop edx
call fcn.667ff722
push 0xf8c
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
mov ecx, 0x363
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
xor edi, edi
push edi
push edi
push 0xf8c
push eax
push dword [ebp - 0x10c]
mov dword [ebp - 0x114], eax
push dword [ebp - 0x118]
call dword [0x66807114]
cmp dword [ebp - 0x114], ebx
mov dword [ebp - 0x108], eax
je 0x66800077
mov esi, dword [ebp - 0x114]
push dword [ebp - 0x114]
mov ecx, 0x363
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor edi, edi
call fcn.667fedef
test eax, eax
je 0x66800090
push 0x80
push 0x40
lea ecx, [ebx + 4]
pop edx
call fcn.667ff722
cmp dword [ebp - 0x108], edi
jne 0x668001d6
cmp dword [ebp - 0x110], edi
jne 0x668000ac
cmp dword [ebp - 0x11c], edi
je 0x668000d7
push dword [ebp - 0x11c]
mov edx, dword [ebp - 0x10c]
push dword [ebp - 0x110]
mov ecx, dword [ebp - 0x118]
call fcn.667fea0f
cmp eax, edi
mov dword [ebp - 0x108], eax
jne 0x668001d6
push 0x80000001
push 0x667f1f70
lea ecx, [ebp - 0x13c]
call fcn.667f2eeb
push 4
lea eax, [ebp - 0x110]
push eax
push 3
push edi
push 0x667f1f60
push dword [ebp - 0x13c]
mov dword [ebp - 0x110], 0x80
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [0x66804024], edi
jne 0x668001cb
push 0x14
pop ebx
push 0x100
push dword [ebp - 0x10c]
lea eax, [ebp - 0x104]
push eax
mov dword [ebp - 0x130], ebx
call dword [sym.imp.msvcrt.dll_wcstombs]
xor esi, esi
lea eax, [ebp - 0x104]
inc esi
push 0xc
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], esi
call fcn.667f30b0
add esp, 0x10
cmp eax, edi
mov dword [ebp - 0x120], eax
je 0x668001cb
mov dword [eax], esi
mov eax, dword [ebp - 0x120]
push 0x667f1e44
mov dword [eax + 4], esi
mov dword [ebp - 0x108], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
cmp esi, edi
je 0x668001bf
push 0x667f1e5c
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x668001ac
push ebx
lea ecx, [ebp - 0x130]
push ecx
push 0x4b
push edi
call eax
test eax, eax
jne 0x668001b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x108], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [ebp - 0x120]
call fcn.667f30c7
pop ecx
lea ecx, [ebp - 0x13c]
call fcn.667f2f19
mov eax, dword [ebp - 0x108]
jmp 0x668001e1
push 0x57
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.6680214e
leave
ret 0xc