Function at 0x45dda0
Capabilities:
Create process on windows
Disable system features via registry on windows
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x128
push ebx
mov edx, dword [0x4e9b98]
push ebp
push esi
mov eax, dword [str.SetOptions__]
mov esi, ecx
mov ecx, dword [0x4e9b94]
push edi
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], edx
mov edx, dword [str.SOFTWAREPoliciesMicrosoftWindowsWindowsUpdate]
push ecx
push 0xf003f
mov dword [esp + 0x28], eax
mov al, byte [0x4e9b9c]
push 0
push edx
push 0x80000002
mov byte [esp + 0x27], 0
mov byte [esp + 0x40], al
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x45de7e
cmp eax, 2
jne 0x45df1b
mov ecx, dword [str.SOFTWAREPoliciesMicrosoftWindowsWindowsUpdate]
lea eax, [esp + 0x14]
push 0
push eax
push 0
push 0xf003f
push 0
push 0x4f4f94
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x45de79
mov edx, dword [str.SOFTWAREPoliciesMicrosoftWindowsWindowsUpdate]
push eax
push edx
push 0x4e9b74
lea eax, [esi + 0x55]
push 0xfff
push eax
call fcn.00466ca7
mov ecx, dword [0x4d30ac]
mov edx, dword [esi]
add esp, 0x14
lea eax, [esp + 0x20]
push 0x59b
push eax
push ecx
mov ecx, esi
call dword [edx + 0x10]
pop edi
pop esi
pop ebp
mov eax, 0x10
pop ebx
add esp, 0x128
ret
mov byte [esp + 0x13], 1
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x34]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x1c]
lea eax, [esp + 0x34]
push edx
mov edx, dword [str.WUServer]
lea ecx, [esp + 0x34]
push eax
mov eax, dword [esp + 0x1c]
push ecx
push 0
mov ebx, 0x104
push edx
push eax
mov dword [esp + 0x34], ebx
call ebp
test eax, eax
je 0x45df61
cmp eax, 2
je 0x45df9c
mov ecx, dword [str.WUServer]
push eax
push ecx
push 0x4e953c
lea edx, [esi + 0x55]
push 0xfff
push edx
call fcn.00466ca7
mov edx, dword [0x4d30ac]
mov eax, dword [esi]
add esp, 0x14
lea ecx, [esp + 0x20]
push 0x5b1
push ecx
push edx
mov ecx, esi
call dword [eax + 0x10]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 0x10
pop ebx
add esp, 0x128
ret
mov edx, dword [str.SOFTWAREPoliciesMicrosoftWindowsWindowsUpdate]
push eax
push edx
push 0x4e9558
lea eax, [esi + 0x55]
push 0xfff
push eax
call fcn.00466ca7
mov ecx, dword [0x4d30ac]
mov edx, dword [esi]
add esp, 0x14
lea eax, [esp + 0x20]
push 0x5a4
push eax
push ecx
mov ecx, esi
call dword [edx + 0x10]
pop edi
pop esi
pop ebp
mov eax, 0x10
pop ebx
add esp, 0x128
ret
lea edi, [esi + 0x1064]
lea eax, [esp + 0x34]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x45df8f
test cl, cl
je 0x45df8b
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x45df8f
add eax, 2
add edi, 2
test cl, cl
jne 0x45df6b
xor eax, eax
jmp 0x45df94
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x45e01d
lea edx, [esi + 0x1064]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esp + 0x18]
push edx
push 1
push eax
mov eax, dword [str.WUServer]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x45e018
mov edx, dword [str.WUServer]
push eax
push edx
push 0x4e9b58
lea eax, [esi + 0x55]
push 0xfff
push eax
call fcn.00466ca7
mov ecx, dword [0x4d30ac]
mov edx, dword [esi]
add esp, 0x14
lea eax, [esp + 0x20]
push 0x5bc
push eax
push ecx
mov ecx, esi
call dword [edx + 0x10]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 0x10
pop ebx
add esp, 0x128
ret
mov byte [esp + 0x13], 1
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x34]
lea edx, [esp + 0x30]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x34]
push eax
mov eax, dword [str.WUStatusServer]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x34], ebx
call ebp
test eax, eax
je 0x45e0aa
cmp eax, 2
je 0x45e0e9
mov edx, dword [str.WUStatusServer]
push eax
push edx
push 0x4e953c
lea eax, [esi + 0x55]
push 0xfff
push eax
call fcn.00466ca7
mov ecx, dword [0x4d30ac]
mov edx, dword [esi]
add esp, 0x14
lea eax, [esp + 0x20]
push 0x5cb
push eax
push ecx
mov ecx, esi
call dword [edx + 0x10]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 0x10
pop ebx
add esp, 0x128
ret
lea edi, [esi + 0x1168]
lea eax, [esp + 0x34]
mov dl, byte [eax]
mov bl, byte [edi]
mov cl, dl
cmp dl, bl
jne 0x45e0dc
test cl, cl
je 0x45e0d8
mov dl, byte [eax + 1]
mov bl, byte [edi + 1]
mov cl, dl
cmp dl, bl
jne 0x45e0dc
add eax, 2
add edi, 2
test cl, cl
jne 0x45e0b4
xor eax, eax
jmp 0x45e0e1
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x45e16a
lea edx, [esi + 0x1168]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esp + 0x18]
push edx
push 1
push eax
mov eax, dword [str.WUStatusServer]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x45e165
mov edx, dword [str.WUStatusServer]
push eax
push edx
push 0x4e9b58
lea eax, [esi + 0x55]
push 0xfff
push eax
call fcn.00466ca7
mov ecx, dword [0x4d30ac]
mov edx, dword [esi]
add esp, 0x14
lea eax, [esp + 0x20]
push 0x5d6
push eax
push ecx
mov ecx, esi
call dword [edx + 0x10]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 0x10
pop ebx
add esp, 0x128
ret
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x14]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call ebp
mov edx, dword [str.SOFTWAREPoliciesMicrosoftWindowsWindowsUpdateAU]
lea ecx, [esp + 0x14]
push ecx
push 0xf003f
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x45e21e
cmp eax, 2
jne 0x45e2a8
mov ecx, dword [str.SOFTWAREPoliciesMicrosoftWindowsWindowsUpdateAU]
lea eax, [esp + 0x14]
push 0
push eax
push 0
push 0xf003f
push 0
push 0x4f4f94
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x45e219
mov edx, dword [str.SOFTWAREPoliciesMicrosoftWindowsWindowsUpdateAU]
push eax
push edx
push 0x4e9b74
lea eax, [esi + 0x55]
push 0xfff
push eax
call fcn.00466ca7
mov ecx, dword [0x4d30ac]
mov edx, dword [esi]
add esp, 0x14
lea eax, [esp + 0x20]
push 0x5ea
push eax
push ecx
mov ecx, esi
call dword [edx + 0x10]
pop edi
pop esi
pop ebp
mov eax, 0x10
pop ebx
add esp, 0x128
ret
mov byte [esp + 0x13], 1
lea edx, [esp + 0x1c]
lea eax, [esp + 0x18]
push edx
mov edx, dword [str.AUOptions]
lea ecx, [esp + 0x34]
push eax
mov eax, dword [esp + 0x1c]
push ecx
push 0
mov ebx, 4
push edx
push eax
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x45e2ee
cmp eax, 2
je 0x45e2fc
mov ecx, dword [str.AUOptions]
push eax
push ecx
push 0x4e953c
lea edx, [esi + 0x55]
push 0xfff
push edx
call fcn.00466ca7
mov edx, dword [0x4d30ac]
mov eax, dword [esi]
add esp, 0x14
lea ecx, [esp + 0x20]
push 0x5ff
push ecx
push edx
mov ecx, esi
call dword [eax + 0x10]
mov eax, dword [esp + 0x14]
push eax
call ebp
pop edi
pop esi
pop ebp
mov eax, 0x10
pop ebx
add esp, 0x128
ret
mov edx, dword [str.SOFTWAREPoliciesMicrosoftWindowsWindowsUpdateAU]
push eax
push edx
push 0x4e9558
lea eax, [esi + 0x55]
push 0xfff
push eax
call fcn.00466ca7
mov ecx, dword [0x4d30ac]
mov edx, dword [esi]
add esp, 0x14
lea eax, [esp + 0x20]
push 0x5f3
push eax
push ecx
mov ecx, esi
call dword [edx + 0x10]
pop edi
pop esi
pop ebp
mov eax, 0x10
pop ebx
add esp, 0x128
ret
mov ecx, dword [esp + 0x18]
mov eax, dword [esi + 0x126c]
cmp ecx, eax
je 0x45e372
mov eax, dword [str.AUOptions]
mov ecx, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea edx, [esi + 0x126c]
push ebx
push edx
push ebx
push 0
push eax
push ecx
call edi
test eax, eax
je 0x45e36b
mov edx, dword [str.AUOptions]
push eax
push edx
push 0x4e9b58
lea eax, [esi + 0x55]
push 0xfff
push eax
call fcn.00466ca7
mov ecx, dword [0x4d30ac]
mov edx, dword [esi]
add esp, 0x14
lea eax, [esp + 0x20]
push 0x60a
push eax
push ecx
mov ecx, esi
call dword [edx + 0x10]
mov edx, dword [esp + 0x14]
push edx
call ebp
pop edi
pop esi
pop ebp
mov eax, 0x10
pop ebx
add esp, 0x128
ret
mov byte [esp + 0x13], 1
jmp 0x45e378
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [str.ScheduledInstallDay]
lea edx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x45e3f4
cmp eax, 2
je 0x45e402
mov edx, dword [str.ScheduledInstallDay]
push eax
push edx
push 0x4e953c
lea eax, [esi + 0x55]
push 0xfff
push eax
call fcn.00466ca7
mov ecx, dword [0x4d30ac]
mov edx, dword [esi]
add esp, 0x14
lea eax, [esp + 0x20]
push 0x618
push eax
push ecx
mov ecx, esi
call dword [edx + 0x10]
mov edx, dword [esp + 0x14]
push edx
call ebp
pop edi
pop esi
pop ebp
mov eax, 0x10
pop ebx
add esp, 0x128
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x1270]
cmp eax, ecx
je 0x45e471
mov edx, dword [str.ScheduledInstallDay]
mov eax, dword [esp + 0x14]
lea ecx, [esi + 0x1270]
push ebx
push ecx
push ebx
push 0
push edx
push eax
call edi
test eax, eax
je 0x45e46c
mov ecx, dword [str.ScheduledInstallDay]
push eax
push ecx
push 0x4e9b58
lea edx, [esi + 0x55]
push 0xfff
push edx
call fcn.00466ca7
mov edx, dword [0x4d30ac]
mov eax, dword [esi]
add esp, 0x14
lea ecx, [esp + 0x20]
push 0x623
push ecx
push edx
mov ecx, esi
call dword [eax + 0x10]
mov eax, dword [esp + 0x14]
push eax
call ebp
pop edi
pop esi
pop ebp
mov eax, 0x10
pop ebx
add esp, 0x128
ret
mov byte [esp + 0x13], 1
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [str.ScheduledInstallTime]
lea eax, [esp + 0x34]
push edx
mov edx, dword [esp + 0x1c]
push eax
push 0
push ecx
push edx
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x45e4ed
cmp eax, 2
je 0x45e4fb
push eax
mov eax, dword [str.ScheduledInstallTime]
push eax
push 0x4e953c
lea ecx, [esi + 0x55]
push 0xfff
push ecx
call fcn.00466ca7
mov ecx, dword [0x4d30ac]
mov edx, dword [esi]
add esp, 0x14
lea eax, [esp + 0x20]
push 0x631
push eax
push ecx
mov ecx, esi
call dword [edx + 0x10]
mov edx, dword [esp + 0x14]
push edx
call ebp
pop edi
pop esi
pop ebp
mov eax, 0x10
pop ebx
add esp, 0x128
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x1274]
cmp eax, ecx
je 0x45e56a
mov edx, dword [str.ScheduledInstallTime]
mov eax, dword [esp + 0x14]
lea ecx, [esi + 0x1274]
push ebx
push ecx
push ebx
push 0
push edx
push eax
call edi
test eax, eax
je 0x45e565
mov ecx, dword [str.ScheduledInstallTime]
push eax
push ecx
push 0x4e9b58
lea edx, [esi + 0x55]
push 0xfff
push edx
call fcn.00466ca7
mov edx, dword [0x4d30ac]
mov eax, dword [esi]
add esp, 0x14
lea ecx, [esp + 0x20]
push 0x63c
push ecx
push edx
mov ecx, esi
call dword [eax + 0x10]
mov eax, dword [esp + 0x14]
push eax
call ebp
pop edi
pop esi
pop ebp
mov eax, 0x10
pop ebx
add esp, 0x128
ret
mov byte [esp + 0x13], 1
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [str.UseWUServer]
lea eax, [esp + 0x34]
push edx
mov edx, dword [esp + 0x1c]
push eax
push 0
push ecx
push edx
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x45e5e6
cmp eax, 2
je 0x45e5ed
push eax
mov eax, dword [str.UseWUServer]
push eax
push 0x4e953c
lea ecx, [esi + 0x55]
push 0xfff
push ecx
call fcn.00466ca7
mov ecx, dword [0x4d30ac]
mov edx, dword [esi]
add esp, 0x14
lea eax, [esp + 0x20]
push 0x64a
push eax
push ecx
mov ecx, esi
call dword [edx + 0x10]
mov edx, dword [esp + 0x14]
push edx
call ebp
pop edi
pop esi
pop ebp
mov eax, 0x10
pop ebx
add esp, 0x128
ret
cmp dword [esp + 0x18], 1
je 0x45e661
mov ecx, dword [str.UseWUServer]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push ebx
push eax
push ebx
push 0
push ecx
push edx
mov dword [esp + 0x30], 1
call edi
test eax, eax
je 0x45e65c
push eax
mov eax, dword [str.UseWUServer]
push eax
push 0x4e9b58
lea ecx, [esi + 0x55]
push 0xfff
push ecx
call fcn.00466ca7
mov ecx, dword [0x4d30ac]
mov edx, dword [esi]
add esp, 0x14
lea eax, [esp + 0x20]
push 0x656
push eax
push ecx
mov ecx, esi
call dword [edx + 0x10]
mov edx, dword [esp + 0x14]
push edx
call ebp
pop edi
pop esi
pop ebp
mov eax, 0x10
pop ebx
add esp, 0x128
ret
mov byte [esp + 0x13], 1
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [str.NoAutoUpdate]
lea edx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
test edi, edi
je 0x45e6df
cmp edi, 2
je 0x45e6e7
mov edx, dword [str.NoAutoUpdate]
push edi
push edx
push 0x4e953c
lea eax, [esi + 0x55]
push 0xfff
push eax
call fcn.00466ca7
mov ecx, dword [0x4d30ac]
mov edx, dword [esi]
add esp, 0x14
lea eax, [esp + 0x20]
push 0x664
push eax
push ecx
mov ecx, esi
call dword [edx + 0x10]
mov edx, dword [esp + 0x14]
push edx
call ebp
pop edi
pop esi
pop ebp
mov eax, 0x10
pop ebx
add esp, 0x128
ret
mov eax, dword [esp + 0x18]
test eax, eax
je 0x45e760
mov ecx, dword [str.NoAutoUpdate]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push ebx
push eax
push ebx
push 0
push ecx
push edx
mov dword [esp + 0x30], 0
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
test edi, edi
je 0x45e75c
mov eax, dword [str.NoAutoUpdate]
push edi
push eax
push 0x4e9b58
lea ecx, [esi + 0x55]
push 0xfff
push ecx
call fcn.00466ca7
mov ecx, dword [0x4d30ac]
mov edx, dword [esi]
add esp, 0x14
lea eax, [esp + 0x20]
push 0x670
push eax
push ecx
mov ecx, esi
call dword [edx + 0x10]
mov edx, dword [esp + 0x14]
push edx
call ebp
pop edi
pop esi
pop ebp
mov eax, 0x10
pop ebx
add esp, 0x128
ret
mov bl, 1
jmp 0x45e764
mov bl, byte [esp + 0x13]
mov eax, dword [esp + 0x14]
push eax
call ebp
test bl, bl
je 0x45e83e
call fcn.004753b0
cmp eax, 0x10501
jb 0x45e788
push 0
push str.GPUpdate__Target:Computer__Force
jmp 0x45e79b
call fcn.004753b0
cmp eax, 0x10500
jb 0x45e7a8
push 0
push str.secedit__refreshpolicy_machine_policy__enforce
call dword [sym.imp.KERNEL32.dll_WinExec]
mov edi, eax
cmp edi, 0x20
jge 0x45e7d7
push edi
push 0x4e9ae4
lea ecx, [esi + 0x55]
push 0xfff
push ecx
call fcn.00466ca7
mov ecx, dword [0x4d30ac]
mov edx, dword [esi]
add esp, 0x10
lea eax, [esp + 0x20]
push 0x686
push eax
push ecx
mov ecx, esi
call dword [edx + 0x10]
mov edx, dword [str.wuauserv]
push 0
push edx
mov ecx, esi
call fcn.0045da10
cmp eax, 0x10
jae 0x45e800
mov eax, dword [str.wuauserv]
push 1
push eax
mov ecx, esi
call fcn.0045da10
cmp eax, 0x10
jb 0x45e83e
push 0x4e9ac4
lea ecx, [esi + 0x55]
push 0xfff
push ecx
call fcn.00466ca7
mov ecx, dword [0x4d30ac]
mov edx, dword [esi]
add esp, 0xc
lea eax, [esp + 0x20]
push 0x68d
push eax
push ecx
mov ecx, esi
call dword [edx + 0x10]
pop edi
pop esi
pop ebp
mov eax, 0x10
pop ebx
add esp, 0x128
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x128
ret