Function at 0x1078d5d
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xec
mov eax, dword [0x1084428]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [esi]
cmp eax, dword [ecx + 0x2350]
mov ebx, dword [ecx + eax*4 + 0x232c]
mov edx, dword [ebx]
mov dword [ebp - 0xd8], ecx
mov dword [ebp - 0xec], eax
mov dword [ebp - 0xe8], edx
jae 0x1078da4
mov eax, dword [ebx + 0x440]
test eax, eax
jne 0x1078dae
mov eax, 0x80004005
jmp 0x10792d7
xor edx, edx
test eax, eax
push edi
mov edi, 0xffff
mov dword [ebp - 0xd0], 0x7fffffff
jbe 0x1078e32
lea eax, [ebx + 0x444]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0xd4]
mov eax, dword [eax]
cmp eax, 1
jne 0x1078de6
cmp dword [ebx + 0x2a5c], 0
je 0x1078e27
cmp eax, 3
jne 0x1078df3
mov dword [ebp - 0xd0], eax
jmp 0x1078e10
cmp eax, 2
jne 0x1078e12
cmp dword [ecx + 0x252c], 0
je 0x1078e12
cmp dword [ebp - 0xd0], 3
je 0x1078e12
mov dword [ebp - 0xd0], eax
mov edi, edx
add dword [ebp - 0xd4], 0xca8
inc edx
cmp edx, dword [ebx + 0x440]
jb 0x1078dd0
jmp 0x1078e29
mov edi, edx
mov eax, 0xffff
cmp edi, eax
jne 0x1078e3c
mov eax, 0x82000005
jmp 0x10792d6
imul edi, edi, 0xca8
lea edi, [edi + ebx + 0x444]
mov dword [edi + 0xc9c], eax
mov ecx, dword [ebx + 0x2a4c]
test ecx, ecx
je 0x1078eae
and dword [ebp - 0xd0], 0
cmp dword [edi + 0xe0], 0
jbe 0x1078eae
lea eax, [edi + 0xec]
cmp dword [eax - 8], ecx
jne 0x1078e89
mov edx, dword [eax - 4]
cmp edx, dword [ebx + 0x2a50]
jne 0x1078e89
mov edx, dword [eax]
cmp edx, dword [ebx + 0x2a54]
je 0x1078ea2
inc dword [ebp - 0xd0]
mov edx, dword [ebp - 0xd0]
add eax, 0x14
cmp edx, dword [edi + 0xe0]
jb 0x1078e6f
jmp 0x1078eae
mov eax, dword [ebp - 0xd0]
mov dword [edi + 0xc9c], eax
cmp dword [edi + 0xc9c], 0xffff
jne 0x10790a3
cmp dword [edi], 3
jne 0x1078f5b
xor ecx, ecx
or edx, 0xffffffff
cmp dword [edi + 0xe0], ecx
mov dword [ebp - 0xd4], ecx
mov dword [edi + 0xc9c], ecx
jbe 0x1078fc6
lea eax, [edi + 0xec]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0xd0]
mov eax, dword [eax - 4]
cmp eax, 0x190
je 0x1078f49
cmp eax, edx
jb 0x1078f0f
jne 0x1078f49
cmp dword [ebp - 0xd4], 0
jne 0x1078f49
and dword [ebp - 0xd4], 0
mov edx, eax
mov eax, dword [ebp - 0xd0]
mov dword [edi + 0xc9c], ecx
mov eax, dword [eax]
cmp eax, 0x17
je 0x1078f3f
cmp eax, 0x18
je 0x1078f3f
cmp eax, 0x19
je 0x1078f3f
cmp eax, 0x1a
je 0x1078f3f
cmp eax, 0x1e
jne 0x1078f49
mov dword [ebp - 0xd4], 1
add dword [ebp - 0xd0], 0x14
inc ecx
cmp ecx, dword [edi + 0xe0]
jb 0x1078ef0
jmp 0x1078fc6
xor edx, edx
cmp dword [edi + 0xe0], edx
mov dword [ebp - 0xe0], edx
mov dword [edi + 0xc9c], edx
jbe 0x1078fc6
lea eax, [edi + 0xec]
mov ecx, dword [eax - 8]
cmp ecx, dword [ebx + 0x430]
jne 0x1078fb2
mov ecx, dword [eax - 4]
cmp ecx, dword [ebx + 0x434]
jne 0x1078fb2
cmp dword [ebp - 0xe0], 0
jne 0x1078f9c
mov dword [edi + 0xc9c], edx
mov ecx, dword [eax]
cmp ecx, 0x16
mov dword [ebp - 0xe0], 1
je 0x1078fc0
cmp ecx, 0x15
je 0x1078fc0
inc edx
add eax, 0x14
cmp edx, dword [edi + 0xe0]
jb 0x1078f77
jmp 0x1078fc6
mov dword [edi + 0xc9c], edx
cmp dword [edi + 0xc9c], 0xffff
jne 0x10790a3
xor eax, eax
cmp dword [edi + 0xe0], eax
mov dword [ebp - 0xe4], eax
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xd0], eax
jbe 0x10790a3
lea eax, [edi + 0xec]
mov ecx, dword [eax]
cmp ecx, 0x16
mov edx, dword [eax - 8]
je 0x107901b
cmp ecx, 0x15
mov dword [ebp - 0xd4], 0x10
jne 0x1079025
mov dword [ebp - 0xd4], 0x20
cmp edx, dword [ebp - 0xe4]
ja 0x107905e
mov ecx, dword [eax - 4]
cmp ecx, dword [ebp - 0xe0]
ja 0x107905e
mov ecx, dword [eax - 8]
cmp ecx, dword [ebp - 0xe4]
jne 0x1079088
mov ecx, dword [eax - 4]
cmp ecx, dword [ebp - 0xe0]
jne 0x1079088
mov edx, dword [ebp - 0xd4]
cmp edx, dword [ebp - 0xdc]
jbe 0x1079088
jmp 0x1079064
mov edx, dword [ebp - 0xd4]
mov ecx, dword [eax - 8]
mov dword [ebp - 0xe4], ecx
mov ecx, dword [eax - 4]
mov dword [ebp - 0xe0], ecx
mov ecx, dword [ebp - 0xd0]
mov dword [ebp - 0xdc], edx
mov dword [edi + 0xc9c], ecx
inc dword [ebp - 0xd0]
mov ecx, dword [ebp - 0xd0]
add eax, 0x14
cmp ecx, dword [edi + 0xe0]
jb 0x1079002
and dword [ebp - 0xdc], 0
mov eax, dword [edi + 0xc9c]
mov ecx, dword [edi]
mov dword [esi + 8], ecx
lea eax, [eax + eax*4]
lea eax, [edi + eax*4 + 0xe4]
mov ecx, dword [eax + 0xc]
mov dword [esi + 0xc], ecx
mov ecx, dword [ebp - 0xe8]
mov dword [esi + 4], ecx
mov ecx, dword [eax + 8]
mov dword [esi + 0x1c], ecx
mov ecx, dword [eax]
mov dword [esi + 0x14], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 0x18], ecx
xor ecx, ecx
inc ecx
mov dword [esi + 0x44], ecx
xor edx, edx
mov dword [esi + 0x30], edx
mov dword [esi + 0x40], edx
mov eax, dword [eax + 0x10]
mov dword [esi + 0x38], eax
mov eax, dword [ebp - 0xd8]
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], edx
mov ecx, dword [eax + 0x26d4]
mov dword [esi + 0x28], ecx
mov ecx, dword [ebx + 0x2a64]
mov dword [esi + 0x2c], ecx
mov ecx, dword [eax + 0x2530]
mov dword [esi + 0x34], ecx
lea ecx, [esi + 0x10]
push ecx
lea ecx, [esi + 0x14]
push ecx
push dword [esi + 0xc]
mov ecx, dword [ebp - 0xd8]
mov dword [esi + 0x3c], edx
push dword [ecx + 0xc]
mov eax, dword [eax + 0x2354]
push dword [esi + 8]
mov edx, dword [eax]
push dword [ebp - 0xec]
push eax
call dword [edx + 0x3c]
test eax, eax
mov dword [ebp - 0xd0], eax
jl 0x107917f
mov ecx, dword [ebp - 0xd8]
push dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov dword [ebp - 0xd0], eax
xor eax, eax
cmp dword [ebp - 0xd0], eax
jge 0x10791a9
mov ecx, dword [esi + 0x10]
cmp ecx, eax
je 0x107917f
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
and dword [esi + 0x10], 0
mov ecx, dword [ebp - 0xd8]
push edi
mov dword [ebp - 0xdc], 1
call fcn.010771e4
test eax, eax
jne 0x10790aa
cmp dword [ebp - 0xd0], eax
jl 0x10792d0
cmp dword [ebp - 0xdc], eax
je 0x10792d0
mov ecx, dword [ebp - 0xd8]
add ecx, 0x253c
cmp word [ecx], ax
je 0x10792d0
mov edx, dword [esi + 0x14]
mov dword [ebx + 0x2a4c], edx
mov edx, dword [esi + 0x18]
push eax
lea edi, [ebx + 0x2a50]
mov dword [edi], edx
mov edx, dword [esi + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebx + 0x2a54], edx
lea edx, [ebp - 0xdc]
push edx
push eax
push 0xf003f
push eax
push eax
push eax
push ecx
push 0x80000001
call esi
test eax, eax
jne 0x10792d0
mov eax, dword [ebp - 0xe8]
inc eax
push eax
lea eax, [ebp - 0xcc]
push 0x1009ee8
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
xor eax, eax
push eax
lea ecx, [ebp - 0xd8]
push ecx
push eax
push 0xf003f
push eax
push eax
push eax
lea eax, [ebp - 0xcc]
push eax
push dword [ebp - 0xdc]
call esi
test eax, eax
jne 0x10792c4
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea eax, [ebx + 0x2a4c]
push eax
push 4
push 0
push 0x1009e88
push dword [ebp - 0xd8]
call esi
push 4
push edi
push 4
xor edi, edi
push edi
push 0x1009e78
push dword [ebp - 0xd8]
call esi
push 4
lea eax, [ebx + 0x2a54]
push eax
push 4
push edi
push 0x1009e68
push dword [ebp - 0xd8]
call esi
push 0x10
add ebx, 0x41c
push ebx
push 3
push edi
push 0x1009ed0
push dword [ebp - 0xd8]
call esi
push dword [ebp - 0xd8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0xdc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xd0]
pop edi
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.010123a2
leave
ret 4