Function at 0x445930
Capabilities:
Delete registry key
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4e23b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x334
push ebx
mov ebx, dword [esp + 0x348]
lea eax, [esp + 8]
mov dword [esp + 0x1c], 0x104
push eax
push ebx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x445977
xor eax, eax
jmp 0x445f3d
mov eax, dword [esp + 0x34c]
push esi
test eax, eax
push edi
je 0x445b22
call fcn.004d72f1
mov eax, dword [eax + 8]
lea ecx, [esp + 0x23d]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x445f2b
mov edi, str.____1_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x23c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x23c], 0x22
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0xd
push 0x51cc7c
mov ecx, ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
push eax
mov eax, dword [esp + 0x20]
and ecx, 3
push 0x5269d8
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
lea ecx, [esp + 0x28]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0xc]
push ecx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str.open
push eax
call esi
test eax, eax
jne 0x445a8e
lea ecx, [esp + 0x28]
lea edx, [esp + 0x1c]
push ecx
push edx
push eax
push 0xf003f
push eax
push eax
push eax
mov eax, dword [esp + 0x28]
push 0x51f0e8
push eax
call esi
test eax, eax
jne 0x445a83
lea edi, [esp + 0x23c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
mov edx, dword [esp + 0x1c]
dec ecx
push ecx
lea ecx, [esp + 0x240]
push ecx
push 1
push eax
push 0x5269d8
push edx
call ebx
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x28]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x51cc7c
push ecx
call esi
test eax, eax
jne 0x445f2b
lea edx, [esp + 0x28]
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x51f0e8
push ecx
call esi
test eax, eax
jne 0x445b12
lea edi, [esp + 0x23c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x23c]
push ecx
push edx
push 1
push eax
mov eax, dword [esp + 0x2c]
push 0x5269d8
push eax
call ebx
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x445f2b
push str.ProgramFilesDir
push str.SOFTWAREMicrosoftWindowsCurrentVersion
lea eax, [esp + 0x1c]
push reloc.OLEAUT32.dll_SysReAllocString
push eax
call fcn.00417550
add esp, 0x10
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x348], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x445bee
push 1
push 0x5c
lea ecx, [esp + 0x34]
call fcn.004bd113
lea edx, [esp + 0x30]
push 1
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x350], 1
call fcn.004bd68d
mov esi, dword [esp + 0x2c]
mov eax, dword [eax]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x445ba7
test cl, cl
je 0x445ba3
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x445ba7
add eax, 2
add esi, 2
test cl, cl
jne 0x445b83
xor eax, eax
jmp 0x445bac
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
lea ecx, [esp + 0x30]
setne byte [esp + 0x1b]
call fcn.004c5787
lea ecx, [esp + 0x2c]
mov byte [esp + 0x348], 0
call fcn.004c5787
mov al, byte [esp + 0x1b]
test al, al
je 0x445be0
push 0x5c
lea ecx, [esp + 0x18]
call fcn.004c5b8a
push str.Internet_Exploreriexplore.exe
lea ecx, [esp + 0x18]
call fcn.004c5b63
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x138]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x13c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.GreenBrowsercommand
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea eax, [esp + 0x13c]
and ecx, 3
push eax
push SysReAllocString
rep movsb byte es:[edi], byte [esi]
call ebp
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x13c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x13c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x51f064
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x13c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push SysReAllocString
call ebp
lea edx, [esp + 0x13c]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
push 0x51c594
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x140]
push ecx
call fcn.004ad970
mov byte [eax], 0
mov edi, str.DefaultIcon
or ecx, 0xffffffff
xor eax, eax
add esp, 8
lea edx, [esp + 0x13c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x24]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x140]
push ecx
push SysReAllocString
call ebp
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x445e18
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x28]
lea eax, [esp + 0x38]
push edx
push eax
push 0
push 0
push 0x5269d8
push ecx
mov dword [esp + 0x40], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x38]
push 0x51cc7c
push edx
call fcn.004ad970
add esp, 8
test eax, eax
je 0x445e09
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x38]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x38]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x51f060
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x38]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x28]
push eax
push 1
push 0
push 0x5269d8
push ecx
call ebx
mov edx, dword [esp + 0x24]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
jmp 0x445e1e
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push str.opennew
push ecx
call ebp
test eax, eax
jne 0x445e50
mov edx, dword [esp + 0x14]
push 7
push str.opennew
push 1
push eax
push 0x5269d8
push edx
call ebx
mov eax, dword [esp + 0x10]
push eax
call esi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push str.open
push edx
call ebp
test eax, eax
jne 0x445f16
push 5
push str.open
push 1
push eax
mov eax, dword [esp + 0x24]
push 0x5269d8
push eax
call ebx
mov ecx, dword [esp + 0x10]
push ecx
call esi
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push str.opencommand
push eax
call ebp
test eax, eax
jne 0x445f0f
lea ecx, [esp + 0x28]
lea edx, [esp + 0x38]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x20]
push 0x5269d8
push eax
mov dword [esp + 0x40], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x38]
push 0x51cc7c
push ecx
call fcn.004ad970
add esp, 8
test eax, eax
je 0x445f0f
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x38]
push edx
push str.__s____1
push eax
call fcn.004ae2d7
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
mov edx, dword [esp + 0x24]
dec ecx
push ecx
lea ecx, [esp + 0x3c]
push ecx
push 1
push eax
push 0x5269d8
push edx
call ebx
mov eax, dword [esp + 0x10]
push eax
call esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x34c], 0xffffffff
call fcn.004c5787
pop ebp
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x338]
pop ebx
mov dword fs:[0], ecx
add esp, 0x340
ret 8