Function at 0x4090a0
Capabilities:
Query or enumerate registry key
Set current directory
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x417e31
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x9c8
mov eax, dword [0x41fc08]
push ebx
push ebp
push esi
mov edx, dword [eax]
push edi
xor ebx, ebx
mov ecx, 0xd
xor eax, eax
lea edi, [esp + 0xd1]
mov byte [esp + 0xd0], bl
mov byte [esp + 0x48], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xd
xor eax, eax
lea edi, [esp + 0x49]
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea ecx, [esp + 0xd4]
push ebx
lea eax, [esp + 0x50]
push ecx
push eax
push edx
call fcn.0041086d
lea edi, [esp + 0xe4]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x48]
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
lea eax, [esp + 0x48]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov cl, byte [esp + 0x13]
push ebx
mov byte [esp + 0x18], cl
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x44], ebx
call fcn.00401d10
mov edi, str.g_98key:
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call fcn.00402510
test al, al
je 0x4091a7
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov edx, ecx
mov esi, str.g_98key:
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.004024f0
mov edi, 0x41fa68
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x9e0], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x41fa68
lea ecx, [esp + 0x1c]
call fcn.0040f3d0
mov edi, 0x41c2dc
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x1c]
repne scasb al, byte es:[edi]
mov eax, dword [0x419218]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x4091f1
call fcn.0040f879
cmp esi, ebx
jbe 0x409235
mov ecx, dword [esp + 0x1c]
push ebx
lea ebp, [ecx + esi]
lea ecx, [esp + 0x18]
push ebp
call fcn.00402510
test al, al
je 0x409235
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, esi
mov esi, 0x41c2dc
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.004024f0
mov al, byte [esp + 0x14]
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x4c], esp
push ebx
mov ecx, esi
mov byte [esi], al
call fcn.00401d10
mov ecx, dword [0x419218]
lea edx, [esp + 0x24]
push ecx
push ebx
push edx
mov ecx, esi
call fcn.00401b10
call fcn.004051f0
add esp, 0x10
lea ecx, [esp + 0x14]
mov dword [esp + 0x9e0], 0xffffffff
push 1
call fcn.00401d10
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x109]
mov byte [esp + 0x108], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
or ecx, 0xffffffff
mov edi, str.PCI_
xor eax, eax
lea edx, [esp + 0x108]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x5f0], bl
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x108]
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, 0x41fa68
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
lea edx, [esp + 0x5f0]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0xf9
lea edi, [esp + 0x5f1]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, str.Rundll.exe
or ecx, 0xffffffff
xor eax, eax
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
xor eax, eax
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, str.Inst98.dll_EntryPoint
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x5f0]
mov esi, edi
mov ebp, ecx
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x5f0]
and ecx, 3
mov byte [esp + 0x3fc], bl
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
lea edi, [esp + 0x108]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x5f0]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x41c980
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
lea edx, [esp + 0x5f0]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x9e8]
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x7c
lea edi, [esp + 0x3fd]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, str.Enum_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x3fc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x80], bl
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x3fc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x9f0]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x3c], 0x50
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x13
lea edi, [esp + 0x85]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, byte [esp + 0x17]
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], al
call fcn.00401d10
mov edi, str.opening_registry_key_to_enumerate:
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call fcn.00402510
test al, al
je 0x4094e0
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov edx, ecx
mov esi, str.opening_registry_key_to_enumerate:
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov byte [eax + ebp], bl
lea edi, [esp + 0x3fc]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x9e0], 1
mov esi, ecx
mov ecx, dword [0x419218]
sub ecx, edx
cmp ecx, esi
ja 0x409513
call fcn.0040f879
cmp esi, ebx
jbe 0x409559
mov edx, dword [esp + 0x1c]
push ebx
lea ecx, [esp + 0x18]
lea ebp, [edx + esi]
push ebp
call fcn.00402510
test al, al
je 0x409559
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push ebp
lea edi, [ecx + eax]
mov ecx, esi
mov edx, ecx
lea esi, [esp + 0x400]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.004024f0
mov edi, 0x41c2dc
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x1c]
repne scasb al, byte es:[edi]
mov eax, dword [0x419218]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x40957e
call fcn.0040f879
cmp esi, ebx
jbe 0x4095c2
mov eax, dword [esp + 0x1c]
push ebx
lea ecx, [esp + 0x18]
lea ebp, [eax + esi]
push ebp
call fcn.00402510
test al, al
je 0x4095c2
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push ebp
lea edi, [edx + ecx]
mov ecx, esi
mov eax, ecx
mov esi, 0x41c2dc
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 + 0x18]
call fcn.004024f0
mov cl, byte [esp + 0x14]
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x4c], esp
push ebx
mov byte [esi], cl
mov ecx, esi
call fcn.00401d10
mov edx, dword [0x419218]
lea eax, [esp + 0x24]
push edx
push ebx
push eax
mov ecx, esi
call fcn.00401b10
call fcn.004051f0
add esp, 0x10
lea ecx, [esp + 0x14]
mov dword [esp + 0x9e0], 0xffffffff
push 1
call fcn.00401d10
lea ecx, [esp + 0x34]
lea edx, [esp + 0x3fc]
push ecx
push 8
push ebx
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409930
mov edx, dword [esp + 0x34]
push ebx
push ebx
push ebx
lea eax, [esp + 0x44]
push ebx
lea ecx, [esp + 0x90]
push eax
push ecx
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
je 0x409930
mov ecx, 0x7c
xor eax, eax
lea edi, [esp + 0x209]
mov byte [esp + 0x208], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
or ecx, 0xffffffff
lea edi, [esp + 0x3fc]
xor eax, eax
lea edx, [esp + 0x208]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x20c]
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, 0x41c1cc
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
lea edx, [esp + 0x20c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x84]
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]
lea eax, [esp + 0x48]
mov ecx, ebp
push eax
push ebx
push 0xf003f
push ebx
push 0x41fa60
and ecx, 3
push ebx
push str.SoftwareIntelMSI
rep movsb byte es:[edi], byte [esi]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x4098e7
mov cl, byte [esp + 0x13]
mov edi, str.setting_RegPCIpath:
mov byte [esp + 0x24], cl
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x28], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x2c], ebx
push ecx
push str.setting_RegPCIpath:
lea ecx, [esp + 0x2c]
mov dword [esp + 0x38], ebx
call fcn.00402330
lea edi, [esp + 0x208]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x419218]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x9e0], 2
mov esi, ecx
mov ecx, dword [esp + 0x2c]
sub edx, ecx
cmp edx, esi
ja 0x40978d
call fcn.0040f879
cmp esi, ebx
jbe 0x4097d3
mov eax, dword [esp + 0x2c]
push ebx
lea ecx, [esp + 0x28]
lea ebp, [eax + esi]
push ebp
call fcn.00402510
test al, al
je 0x4097d3
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
push ebp
lea edi, [edx + ecx]
mov ecx, esi
mov eax, ecx
lea esi, [esp + 0x20c]
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 + 0x28]
call fcn.004024f0
mov edi, 0x41c2dc
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x2c]
repne scasb al, byte es:[edi]
mov eax, dword [0x419218]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x4097f8
call fcn.0040f879
cmp esi, ebx
jbe 0x40983d
mov ecx, dword [esp + 0x2c]
push ebx
lea ebp, [ecx + esi]
lea ecx, [esp + 0x28]
push ebp
call fcn.00402510
test al, al
je 0x40983d
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov ecx, esi
mov esi, 0x41c2dc
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], ebp
mov byte [eax + ebp], bl
mov cl, byte [esp + 0x24]
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x4c], esp
push ebx
mov byte [esi], cl
mov ecx, esi
call fcn.00401d10
mov edx, dword [0x419218]
lea eax, [esp + 0x34]
push edx
push ebx
push eax
mov ecx, esi
call fcn.00401b10
call fcn.004051f0
mov ecx, dword [esp + 0x38]
add esp, 0x10
cmp ecx, ebx
mov dword [esp + 0x9e0], 0xffffffff
je 0x40989f
mov al, byte [ecx - 1]
cmp al, bl
je 0x409895
cmp al, 0xff
je 0x409895
dec al
mov byte [ecx - 1], al
jmp 0x40989f
dec ecx
push ecx
call fcn.0040f86e
add esp, 4
lea edi, [esp + 0x208]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x44]
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x20c]
push ecx
push 2
push ebx
push str.RegPCIpath
push edx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [esp + 0x5f0]
push eax
call fcn.00408ca0
add esp, 4
mov edx, dword [esp + 0x40]
mov ecx, 0x14
xor eax, eax
lea edi, [esp + 0x80]
rep stosd dword es:[edi], eax
push ebx
push ebx
push ebx
lea ecx, [esp + 0x44]
push ebx
lea eax, [esp + 0x90]
inc edx
push ecx
mov ecx, dword [esp + 0x48]
push eax
push edx
push ecx
mov dword [esp + 0x60], edx
mov dword [esp + 0x58], 0x50
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
jne 0x409656
mov ecx, dword [esp + 0x9d8]
pop edi
pop esi
pop ebp
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0x9d4
ret