Function at 0x401000
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value
Terminate process

Disassembly:
sub esp, 0x510
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov dword [ebp + 0xc], 0
mov dword [ebp + 8], 1
call fcn.00401500
cmp ax, 4
mov word [ebp], ax
je 0x401054
cmp ax, 5
je 0x401054
mov edi, str.EnumPCI
or ecx, 0xffffffff
xor eax, eax
lea ebx, [ebp + 0x114]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
jmp 0x401077
mov edi, str.SystemCurrentControlSetEnumPCI
or ecx, 0xffffffff
xor eax, eax
lea ebx, [ebp + 0x114]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
lea eax, [esp + 0x320]
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x220]
push eax
lea edx, [esp + 0x124]
push ecx
push edx
mov ecx, ebp
call fcn.00401590
test al, al
mov byte [ebp + 2], al
jne 0x4010bd
push 0x10
push str.DSndUP_error
push str.No_ADI_codec_driver_is_installed
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call fcn.00401f0f
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, 0x408204
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
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 edx, [esp + 0x20]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x220]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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 edx, [esp + 0x20]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x408204
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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 edx, [esp + 0x20]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x320]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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 ax, word [ebp]
mov ecx, ebx
and ecx, 3
test ax, ax
rep movsb byte es:[edi], byte [esi]
je 0x4011af
cmp ax, 1
je 0x4011af
cmp ax, 2
jne 0x401276
lea eax, [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
push 0xf003f
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push eax
push ecx
push 0
mov esi, 4
push str.ConfigFlags
push edx
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x420]
and eax, 0x400
push eax
push str._value___lu
push ecx
call fcn.00401e90
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov edx, eax
and edx, 0x400
cmp edx, 0x400
jne 0x40126b
and ah, 0xfb
mov dword [esp + 0x10], eax
push eax
lea eax, [esp + 0x424]
push str._value___lu
push eax
call fcn.00401e90
mov edx, dword [esp + 0x20]
add esp, 0xc
lea ecx, [esp + 0x10]
push esi
push ecx
push 3
push 0
push str.ConfigFlags
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ax, word [ebp]
cmp ax, 4
je 0x40131b
cmp ax, 5
je 0x40131b
or ecx, 0xffffffff
mov edi, str.ServicesClass_
xor eax, eax
lea edx, [ebp + 0x14]
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
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x120]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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 edx, [ebp + 0x214]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.SystemCurrentControlSetServicesClass_
or ecx, 0xffffffff
mov dword [ebp + 0x414], 0x80000002
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 edi, [esp + 0x120]
jmp 0x4013f7
or ecx, 0xffffffff
mov edi, str.ControlClass_
xor eax, eax
lea edx, [ebp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
lea edi, [esp + 0x120]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
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 edx, [ebp + 0x214]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, str.SystemCurrentControlSetEnumPCI_
mov dword [ebp + 0x414], 0x80000005
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
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x220]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x408204
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x320]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
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 ebx, [ebp + 0x314]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
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, 0x408168
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
mov dword [ebp + 0x418], eax
call fcn.00401b90
xor eax, eax
mov ax, word [ebp]
cmp eax, 5
ja case.0x401481.3
jmp dword [eax*4 + 0x4014e0]
pop edi
mov dword [ebp + 0x10], 0x408030
mov dword [ebp + 8], 3
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x510
ret
pop edi
mov dword [ebp + 0x10], 0x408098
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x510
ret
pop edi
mov dword [ebp + 0x10], 0x408100
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x510
ret
pop edi
mov dword [ebp + 0x10], 0x408030
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x510
ret