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.00401550
mov ecx, ebp
mov word [ebp], ax
call fcn.00401f10
mov cx, word [ebp]
mov byte [ebp + 3], al
cmp cx, 4
je 0x401050
cmp cx, 5
je 0x401050
cmp cx, 6
je 0x401050
lea ebx, [ebp + 0x114]
mov edi, str.EnumPCI
jmp 0x40107e
test al, al
lea ebx, [ebp + 0x114]
je 0x401079
mov edi, str.SystemCurrentControlSetEnumHDAUDIO
or ecx, 0xffffffff
xor eax, eax
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
jmp 0x401096
mov edi, str.SystemCurrentControlSetEnumPCI
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, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea edx, [esp + 0x220]
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x320]
lea eax, [esp + 0x120]
push ecx
push edx
push eax
mov ecx, ebp
call fcn.004015f0
test al, al
mov byte [ebp + 2], al
jne 0x4010dc
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.0040206f
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, 0x408294
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, 0x408294
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 0x4011ce
cmp ax, 1
je 0x4011ce
cmp ax, 2
jne 0x401295
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.00401ff0
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov edx, eax
and edx, 0x400
cmp edx, 0x400
jne 0x40128a
and ah, 0xfb
mov dword [esp + 0x10], eax
push eax
lea eax, [esp + 0x424]
push str._value___lu
push eax
call fcn.00401ff0
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 0x401344
cmp ax, 5
je 0x401344
cmp ax, 6
je 0x401344
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 0x40142e
mov edi, str.ControlClass_
or ecx, 0xffffffff
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 al, byte [ebp + 3]
mov dword [ebp + 0x414], 0x80000005
test al, al
mov edi, str.SystemCurrentControlSetEnumHDAUDIO_
jne 0x4013b6
mov edi, str.SystemCurrentControlSetEnumPCI_
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
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, 0x408294
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, 0x4081d0
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.00401c90
xor eax, eax
mov ax, word [ebp]
cmp eax, 6
ja case.0x4014b8.3
jmp dword [eax*4 + 0x40152c]
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], 0x408168
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