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.00401520
mov ecx, ebp
mov word [ebp], ax
call fcn.00401eb0
mov cx, word [ebp]
mov byte [ebp + 3], al
cmp cx, 4
je 0x40104a
cmp cx, 5
je 0x40104a
lea ebx, [ebp + 0x114]
mov edi, str.EnumPCI
jmp 0x401078
test al, al
lea ebx, [ebp + 0x114]
je 0x401073
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 0x401090
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.004015b0
test al, al
mov byte [ebp + 2], al
jne 0x4010d6
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.0040200f
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, 0x40822c
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, 0x40822c
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 0x4011c8
cmp ax, 1
je 0x4011c8
cmp ax, 2
jne 0x40128f
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.00401f90
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov edx, eax
and edx, 0x400
cmp edx, 0x400
jne 0x401284
and ah, 0xfb
mov dword [esp + 0x10], eax
push eax
lea eax, [esp + 0x424]
push str._value___lu
push eax
call fcn.00401f90
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 0x401334
cmp ax, 5
je 0x401334
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 0x40141e
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 0x4013a6
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, 0x40822c
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.00401c30
xor eax, eax
mov ax, word [ebp]
cmp eax, 5
ja case.0x4014a8.3
jmp dword [eax*4 + 0x401508]
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