Function at 0x440826
Capabilities:
Query environment variable
Resolve function by parsing pe exports
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c4
push ebx
push esi
push edi
push 1
mov edi, edx
mov esi, ecx
push 8
push str.Activate
mov ecx, edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x60], esi
call fcn.0043b7cc
mov ebx, eax
mov dword [esp + 0x40], ebx
test ebx, ebx
jne 0x440865
mov eax, 0x80004005
jmp 0x44132e
push ecx
xor eax, eax
mov ecx, ebx
push eax
push str.Rescan
call fcn.0043b6e0
test eax, eax
je 0x4408aa
mov eax, dword [eax + 4]
test eax, eax
jne 0x440885
mov eax, 0x4934ec
push 0x491870
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
jne 0x4408aa
mov edx, edi
mov ecx, esi
call fcn.0044239a
cmp eax, 1
je 0x4408aa
xor eax, eax
jmp 0x44132e
call fcn.0043d5bb
push eax
lea ecx, [esp + 0x24]
call fcn.0043bbe8
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x14], edi
test eax, eax
je 0x4408d4
mov dword [eax], edi
mov dword [eax + 4], edi
jmp 0x440c8b
mov eax, dword [esi]
cmp dword [eax + 0x14], edi
je 0x440c8b
push ecx
push edi
push str.Restart
mov ecx, ebx
call fcn.0043b6e0
test eax, eax
je 0x440c8b
mov eax, dword [eax + 4]
test eax, eax
jne 0x440901
mov eax, 0x4934ec
push eax
lea ecx, [esp + 0x24]
call fcn.0043c8e4
push edi
push 0x7c
lea ecx, [esp + 0x28]
call fcn.0043ca57
push edi
lea ecx, [esp + 0x24]
call fcn.0043c971
call fcn.0043d5bb
push eax
lea ecx, [esp + 0x14]
call fcn.0043bbe8
mov edi, dword [esp + 0x20]
xor ebx, ebx
mov esi, edi
cmp word [edi], bx
je 0x440982
push str.Explorer
push esi
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
jne 0x4409f1
push 0x49b248
call sym.Dismx86.exe_DismMultiLanguage
push eax
lea ecx, [esp + 0x14]
call fcn.0043ca2b
push 0x2c
lea ecx, [esp + 0x14]
call fcn.0043c971
mov ecx, esi
call fcn.0044ccce
lea esi, [esi + eax*2]
add esi, 2
cmp word [esi], bx
jne 0x44093d
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x10]
mov eax, dword [esi - 0xc]
dec eax
push eax
call fcn.0043d882
push esi
push 0x49b254
call sym.Dismx86.exe_DismMultiLanguage
push eax
lea eax, [esp + 0x30]
push eax
call fcn.0044af44
add esp, 0xc
mov ebx, eax
push 0x31
push 0x4880b0
call sym.Dismx86.exe_DismMultiLanguage
push eax
mov eax, dword [0x4ad18c]
push dword [ebx]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [esp + 0x28]
mov ebx, eax
add ecx, 0xfffffff0
call fcn.0043d912
cmp ebx, 1
je 0x4409fa
mov ebx, 0x4c7
lea ecx, [esi - 0x10]
call fcn.0043d912
jmp 0x44131b
mov esi, dword [esp + 0x10]
push 0xb
pop ebx
jmp 0x4409e4
or dword [esp + 0x50], 0xffffffff
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
push 0x20
xor ebx, ebx
pop ecx
mov dword [esp + 0x34], ebx
call fcn.00437b16
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esp + 0x30], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x40]
mov dword [esp + 0x40], ebx
push eax
push 1
push ebx
push ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.WTSAPI32.dll_WTSEnumerateProcessesW]
test eax, eax
je 0x440b01
mov ecx, dword [esp + 0x1c]
mov edx, ebx
mov dword [esp + 0x24], edx
test ecx, ecx
je 0x440af7
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + eax]
cmp eax, dword [esp + 0x50]
jne 0x440ae7
mov eax, dword [esp + 0x18]
mov eax, dword [ebx + eax + 8]
test eax, eax
je 0x440ae7
push eax
lea ecx, [esp + 0x2c]
call fcn.0043c2b8
mov ecx, eax
call fcn.00439a70
mov ecx, dword [esp + 0x18]
add ecx, 4
add ecx, ebx
push eax
lea eax, [esp + 0x4c]
mov dword [esp + 0x1c], ecx
push eax
lea ecx, [esp + 0x38]
call fcn.004431ab
mov ecx, dword [eax]
mov eax, dword [esp + 0x18]
add ecx, 0x14
mov edx, dword [ecx + 4]
cmp edx, dword [ecx + 8]
je 0x440acc
mov eax, dword [eax]
mov dword [edx], eax
add dword [ecx + 4], 4
jmp 0x440ad3
push eax
push edx
call fcn.0043505b
mov ecx, dword [esp + 0x28]
lea ecx, [ecx - 0x10]
call fcn.0043d912
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
inc edx
add ebx, 0x10
mov dword [esp + 0x24], edx
cmp edx, ecx
jb 0x440a67
push dword [esp + 0x3c]
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
xor eax, eax
mov ebx, edi
mov dword [esp + 0x18], ebx
cmp word [edi], ax
je 0x440c76
xor esi, esi
push str.Explorer
push ebx
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
jne 0x440c58
push str.explorer.exe
lea ecx, [esp + 0x28]
call fcn.0043c2b8
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x38]
call fcn.00443449
mov edi, dword [esp + 0x78]
cmp byte [edi + 0xd], 0
jne 0x440b63
push dword [edi + 0x10]
lea ecx, [esp + 0x28]
call fcn.00432a00
test eax, eax
jns 0x440b67
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x24]
lea ecx, [ecx - 0x10]
call fcn.0043d912
cmp edi, dword [esp + 0x30]
je 0x440c1e
mov eax, dword [edi + 0x18]
mov ebx, dword [edi + 0x14]
mov dword [esp + 0x48], eax
cmp ebx, eax
je 0x440c1a
push dword [ebx]
push esi
cmp dword [esp + 0x34], esi
jne 0x440be0
push 0x100403
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x440c0d
lea eax, [esp + 0x28]
push eax
push 2
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x440bf1
lea eax, [esp + 0x2c]
push eax
push 1
push 2
push esi
push 0xf01ff
push dword [esp + 0x3c]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x440bf1
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x440c0d
push 1
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x1388
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add ebx, 4
cmp ebx, dword [esp + 0x48]
jne 0x440b8f
mov ebx, dword [esp + 0x18]
push 0x208
lea eax, [esp + 0xcc]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [esp + 0xc8]
push 0x104
push eax
push str._userprofile_AppDataLocaliconcache.db
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [esp + 0xc8]
call fcn.0044d546
mov ecx, ebx
call fcn.0044ccce
lea ebx, [ebx + eax*2]
add ebx, 2
mov dword [esp + 0x18], ebx
cmp word [ebx], si
jne 0x440b14
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x30]
call fcn.00443153
lea ecx, [esi - 0x10]
call fcn.0043d912
mov ebx, dword [esp + 0x40]
mov eax, dword [ebp + 0x10]
lea edi, [esp + 0x60]
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x5c], eax
xor eax, eax
mov dword [esp + 0x58], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
test ecx, ecx
je 0x440d09
mov esi, dword [ebx + 0x1c]
test esi, esi
je 0x440cf4
xor ebx, ebx
cmp dword [esi + 0x18], 1
jne 0x440ce9
push ecx
push ebx
push str.Work
mov ecx, esi
call fcn.0043b6e0
test eax, eax
je 0x440ce2
mov eax, dword [eax + 4]
test eax, eax
jne 0x440cd3
mov eax, 0x4934ec
push 0xa
push ebx
push eax
call dword [sym.imp.msvcrt.dll_wcstoul]
add esp, 0xc
jmp 0x440ce5
xor eax, eax
inc eax
add dword [esp + 0x60], eax
mov esi, dword [esi + 0x30]
test esi, esi
jne 0x440caf
mov ebx, dword [esp + 0x40]
cmp dword [esp + 0x60], 0
je 0x440d09
lea eax, [esp + 0x58]
mov dword [ebp + 0xc], 0x44134b
mov dword [ebp + 0x10], eax
mov eax, dword [esp + 0x54]
mov edi, dword [ebx + 0x1c]
mov eax, dword [eax]
mov dword [esp + 0x10], eax
test edi, edi
je 0x4411a6
mov esi, dword [esp + 0x14]
mov ebx, dword [ebp + 8]
cmp dword [edi + 0x18], 1
jne 0x44119b
push ecx
push 2
push 0x49b300
mov ecx, edi
call fcn.0043b6e0
test eax, eax
je 0x440d7e
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x440d4e
mov eax, dword [eax + 0xc]
jmp 0x440d55
mov ecx, 0x4934ec
xor eax, eax
push 1
push eax
push ecx
mov ecx, dword [esp + 0x78]
call fcn.0043b7cc
test eax, eax
je 0x441342
mov ecx, dword [esp + 0x54]
mov edx, eax
call fcn.00442367
cmp eax, 1
jne 0x441193
push ecx
xor eax, eax
mov ecx, edi
push eax
push str.Work
call fcn.0043b6e0
test eax, eax
je 0x440db2
mov eax, dword [eax + 4]
test eax, eax
jne 0x440d9e
mov eax, 0x4934ec
push 0xa
push 0
push eax
call dword [sym.imp.msvcrt.dll_wcstoul]
add esp, 0xc
mov dword [esp + 0x68], eax
jmp 0x440dba
mov dword [esp + 0x68], 1
cmp dword [edi], 0
je 0x441137
mov eax, dword [edi + 8]
sub eax, 6
je 0x4410da
sub eax, 1
je 0x440ff4
sub eax, 1
je 0x440f97
sub eax, 1
je 0x440f18
sub eax, 1
je 0x440ee9
sub eax, 4
je 0x440eba
sub eax, 1
jne 0x441137
mov ecx, dword [edi]
mov edx, str.SetServiceStart
push 0xf
call fcn.00443f8e
pop ecx
test eax, eax
jne 0x440e8b
test ebx, ebx
jne 0x441131
push ecx
push eax
push str.Name
mov ecx, edi
call fcn.0043b6e0
mov esi, eax
test esi, esi
jne 0x440e41
mov dword [esp + 0x14], 0x80004005
jmp 0x44113f
push ecx
xor eax, eax
mov ecx, edi
push eax
push 0x4916c8
call fcn.0043b6e0
test eax, eax
je 0x440e34
mov eax, dword [eax + 4]
test eax, eax
jne 0x440e61
mov eax, 0x4934ec
mov esi, dword [esi + 4]
test esi, esi
jne 0x440e6d
mov esi, 0x4934ec
push 0xa
push 0
push eax
call dword [sym.imp.msvcrt.dll_wcstoul]
add esp, 0xc
push eax
push esi
push dword [esp + 0x18]
call sym.Dismx86.exe_DismSetServiceStart
jmp 0x440fe9
mov ecx, dword [edi]
mov edx, str.FileCreateByZIP
push 0xf
call fcn.00443f8e
pop ecx
test eax, eax
jne 0x441137
test ebx, ebx
jne 0x441131
mov ecx, dword [esp + 0x10]
mov edx, edi
call fcn.004405a1
jmp 0x440fe9
mov ecx, dword [edi]
mov edx, str.ExplorerNotify
push 0xe
call fcn.00443f8e
pop ecx
test eax, eax
jne 0x441137
test ebx, ebx
jne 0x441131
mov ecx, dword [esp + 0x10]
mov edx, edi
call fcn.0043e827
jmp 0x440fe9
mov ecx, dword [edi]
mov edx, str.AddPackage
push 9
call fcn.00443f8e
pop ecx
test eax, eax
jne 0x441131
test ebx, ebx
jne 0x441131
mov ecx, dword [esp + 0x10]
mov edx, edi
call fcn.00440089
jmp 0x440fe9
mov ecx, dword [edi]
mov edx, str.RegDelete
push 9
call fcn.00443f8e
pop ecx
test eax, eax
jne 0x440f43
test ebx, ebx
jne 0x441131
mov ecx, dword [esp + 0x10]
mov edx, edi
call fcn.0043e494
jmp 0x440fe9
mov ecx, dword [edi]
mov edx, str.ImportReg
push 9
call fcn.00443f8e
pop ecx
test eax, eax
jne 0x440f6b
test ebx, ebx
jne 0x441131
mov ecx, dword [esp + 0x10]
mov edx, edi
call fcn.0043ff8c
jmp 0x440fe9
mov ecx, dword [edi]
mov edx, str.AddDriver
push 9
call fcn.00443f8e
pop ecx
test eax, eax
jne 0x441131
test ebx, ebx
jne 0x441131
mov ecx, dword [esp + 0x10]
mov edx, edi
call fcn.004402f2
jmp 0x440fe9
mov ecx, dword [edi]
mov edx, str.RegWrite
push 8
call fcn.00443f8e
pop ecx
test eax, eax
jne 0x440fbf
test ebx, ebx
jne 0x441131
mov ecx, dword [esp + 0x10]
mov edx, edi
call fcn.0043dc93
jmp 0x440fe9
mov ecx, dword [edi]
mov edx, str.FileMove
push 8
call fcn.00443f8e
pop ecx
test eax, eax
jne 0x441137
test ebx, ebx
jne 0x441131
mov ecx, dword [esp + 0x10]
mov edx, edi
call fcn.00440455
mov esi, eax
mov dword [esp + 0x14], esi
jmp 0x441131
mov ecx, dword [edi]
mov edx, str.General
push 7
call fcn.00443f8e
pop ecx
test eax, eax
jne 0x441055
mov ebx, dword [ebp + 8]
lea ecx, [esp + 0x30]
push dword [ebp + 0x10]
mov dword [esp + 0x34], eax
mov edx, edi
push dword [ebp + 0xc]
mov dword [esp + 0x3c], eax
mov eax, ebx
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [esp + 0x18]
push eax
call fcn.0043f8a0
mov esi, eax
mov dword [esp + 0x14], esi
test ebx, ebx
je 0x441131
test esi, esi
jne 0x441143
mov eax, dword [esp + 0x30]
add dword [ebx], eax
mov eax, dword [esp + 0x34]
jmp 0x44112e
mov ecx, dword [edi]
mov edx, str.RegMove
push 7
call fcn.00443f8e
pop ecx
test eax, eax
jne 0x441080
test ebx, ebx
jne 0x441131
mov ecx, dword [esp + 0x10]
mov edx, edi
call fcn.0043e5a0
jmp 0x440fe9
mov ecx, dword [edi]
mov edx, str.CScript
push 7
call fcn.00443f8e
pop ecx
test eax, eax
jne 0x441137
mov ebx, dword [ebp + 8]
lea ecx, [esp + 0x48]
push dword [ebp + 0x10]
mov dword [esp + 0x4c], eax
mov edx, edi
push dword [ebp + 0xc]
mov dword [esp + 0x54], eax
mov eax, ebx
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [esp + 0x18]
push eax
call fcn.0043f81e
mov esi, eax
mov dword [esp + 0x14], esi
test ebx, ebx
je 0x441131
test esi, esi
jne 0x441143
mov eax, dword [esp + 0x48]
add dword [ebx], eax
mov eax, dword [esp + 0x4c]
jmp 0x44112e
mov ecx, dword [edi]
mov edx, str.Custom
push 6
call fcn.00443f8e
pop ecx
test eax, eax
jne 0x441137
mov ebx, dword [ebp + 8]
lea ecx, [esp + 0x40]
push dword [ebp + 0x10]
mov dword [esp + 0x44], eax
mov edx, edi
push dword [ebp + 0xc]
mov dword [esp + 0x4c], eax
mov eax, ebx
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [esp + 0x18]
push eax
call fcn.0043fead
mov esi, eax
mov dword [esp + 0x14], esi
test ebx, ebx
je 0x441131
test esi, esi
jne 0x441143
mov eax, dword [esp + 0x40]
add dword [ebx], eax
mov eax, dword [esp + 0x44]
adc dword [ebx + 4], eax
test esi, esi
je 0x441193
jmp 0x441143
mov dword [esp + 0x14], 0x80004002
mov esi, dword [esp + 0x14]
push ecx
push 9
push str.SkipError
mov ecx, edi
call fcn.0043b6e0
test eax, eax
je 0x4411a6
mov eax, dword [eax + 4]
test eax, eax
jne 0x441184
mov eax, 0x4934ec
jmp 0x441184
push 0x10
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.msvcrt.dll_wcstoul]
add esp, 0xc
cmp eax, esi
je 0x441335
mov eax, dword [esp + 0x18]
add eax, 2
xor ecx, ecx
mov dword [esp + 0x18], eax
cmp word [eax], cx
jne 0x441164
test esi, esi
jne 0x4411a6
mov eax, dword [esp + 0x68]
add dword [esp + 0x64], eax
mov edi, dword [edi + 0x30]
test edi, edi
jne 0x440d25
mov edi, dword [esp + 0x20]
xor eax, eax
mov ebx, edi
cmp word [edi], ax
je 0x441317
xor edi, edi
push str.Explorer
push ebx
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
jne 0x4412fd
push 0x104
lea eax, [esp + 0xcc]
push eax
push str.__SystemRoot_explorer.exe_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0x40
lea eax, [esp + 0x88]
mov dword [esp + 0x84], 0x44
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [esp + 0xac], 1
mov dword [esp + 0x1c], edi
push 5
pop eax
push edi
push dword [esp + 0x30]
mov word [esp + 0xb8], ax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
or dword [esp + 0x10], 0xffffffff
lea eax, [esp + 0x10]
push eax
push ecx
push ecx
call fcn.0043da43
mov esi, eax
test esi, esi
je 0x441260
mov ecx, dword [esp + 0x10]
call fcn.0043d92a
mov esi, eax
test esi, esi
je 0x441260
push dword [esp + 0x10]
push edi
call dword [sym.imp.ADVAPI32.dll_SetThreadToken]
mov esi, eax
cmp dword [esp + 0x10], 0xffffffff
je 0x441271
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x4412ae
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x84]
push eax
push edi
push dword [esp + 0x28]
lea eax, [esp + 0xd8]
push 0x400
push edi
push edi
push edi
push eax
push edi
push dword [esp + 0x54]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
test esi, esi
jne 0x4412db
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x84]
push eax
push edi
push dword [esp + 0x28]
lea eax, [esp + 0xd8]
push 0x400
push edi
push edi
push edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4412ed
push dword [esp + 0x70]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x74]
call esi
cmp dword [esp + 0x1c], edi
je 0x4412fd
push dword [esp + 0x1c]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov ecx, ebx
call fcn.0044ccce
lea ebx, [ebx + eax*2]
add ebx, 2
cmp word [ebx], di
jne 0x4411b9
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x14]
lea ecx, [esp + 0x2c]
call fcn.00439864
lea ecx, [edi - 0x10]
call fcn.0043d912
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [esp + 0x14], eax
mov esi, eax
jmp 0x441193
mov edi, dword [esp + 0x20]
push 0xb
pop ebx
jmp 0x44131b