Function at 0x401000
Capabilities:
Check mutex on windows
Check os version
Create process on windows
Create thread
Hide graphical window
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x3ec
mov eax, dword [esp + 0x3f8]
push ebx
push ebp
push esi
push edi
push 0x40bc48
push eax
mov byte [esp + 0x1b], 1
mov dword [esp + 0x30], 0
call fcn.00405050
add esp, 8
test eax, eax
je 0x4010bb
push 5
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov ebx, dword [sym.imp.USER32.dll_GetWindow]
push eax
call ebx
mov edi, dword [sym.imp.USER32.dll_GetClassNameA]
lea ecx, [esp + 0x7c]
mov esi, eax
push 0x80
push ecx
push esi
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpA]
lea edx, [esp + 0x7c]
push str.ALSMTrayClass
push edx
call ebp
test eax, eax
je 0x401098
push 2
push esi
call ebx
mov esi, eax
test esi, esi
je 0x4010a9
lea eax, [esp + 0x7c]
push 0x80
push eax
push esi
call edi
lea ecx, [esp + 0x7c]
push str.ALSMTrayClass
push ecx
call ebp
test eax, eax
jne 0x401070
test esi, esi
je 0x4010a9
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x3ec
ret 0x10
push str.ALCMTrayMutex
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x40cbb4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x401d3d
push 0x40e420
mov dword [0x40e420], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [0x40e424]
mov ebx, 0xa
cmp eax, 4
jne 0x401117
cmp dword [0x40e428], ebx
jne 0x401133
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x40e424], 5
jne 0x401133
mov eax, dword [0x40e428]
test eax, eax
jne 0x401133
mov dword [0x40cbec], 1
mov eax, dword [esp + 0x404]
mov esi, dword [esp + 0x400]
test eax, eax
mov edi, 8
mov ebp, 6
jne 0x4011a2
push 0x66
push esi
mov dword [esp + 0x58], str.ALSMTrayClass
mov dword [esp + 0x38], 0x401dd0
mov dword [esp + 0x34], edi
mov dword [esp + 0x44], esi
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push 0
mov dword [esp + 0x48], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
lea edx, [esp + 0x2c]
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], eax
xor eax, eax
push edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call dword [sym.imp.USER32.dll_RegisterClassA]
push 0
push esi
push 0
push 0
push 0
push 0
push 0
push 0
push 0x80880000
push str.ALSMTray
push str.ALSMTrayClass
push 0x108
mov dword [0x40cbb8], esi
call dword [sym.imp.USER32.dll_CreateWindowExA]
test eax, eax
mov dword [0x40cbbc], eax
je 0x401d3d
call fcn.004048b0
push 0x40cbcc
call fcn.004049e0
add esp, 4
test eax, eax
je 0x4011f9
call fcn.004031b0
push 0x40cbcc
call fcn.004049e0
push 0x40e04c
call fcn.00404970
mov ax, word [0x40e04c]
add esp, 8
cmp ax, 0x414c
mov esi, 0x1a
jne 0x401366
mov eax, dword [0x40e04e]
and eax, 0xfff0
cmp eax, 0x4750
jg 0x401311
je 0x401305
cmp eax, 0x4720
jg 0x4012a9
je 0x40129b
cmp eax, 0x4320
je 0x40128d
cmp eax, 0x4710
jne case.0x4013e6.2150
mov ax, word [0x40e050]
cmp ax, 0x10
jae 0x401275
mov word [0x40e41a], 3
jmp 0x401422
xor ecx, ecx
cmp ax, 0x13
sete cl
add ecx, 4
mov word [0x40e41a], cx
jmp 0x401422
mov word [0x40e41a], 1
jmp 0x401422
mov word [0x40e41a], 0xb
jmp 0x401422
sub eax, 0x4730
je 0x4012f7
sub eax, 0x10
jne case.0x4013e6.2150
mov ax, word [0x40e050]
cmp ax, 7
ja 0x4012d1
mov word [0x40e41a], di
jmp 0x401422
cmp ax, 9
je 0x4012e9
cmp ax, 0xd
je 0x4012e9
mov word [0x40e41a], bp
jmp 0x401422
mov word [0x40e41a], 7
jmp 0x401422
mov word [0x40e41a], 2
jmp 0x401422
mov word [0x40e41a], bx
jmp 0x401422
add eax, 0xffffb8a0
cmp eax, 0x30
ja case.0x4013e6.2150
xor edx, edx
mov dl, byte [eax + 0x401d60]
jmp dword [edx*4 + 0x401d4c]
mov word [0x40e41a], 0xc
jmp 0x401422
mov word [0x40e41a], 9
jmp 0x401422
mov word [0x40e41a], 0xd
jmp 0x401422
mov word [0x40e41a], 0xe
jmp 0x401422
cmp ax, 0x10ec
jne case.0x4013e6.2150
xor eax, eax
mov ax, word [0x40e04e]
cmp eax, 0x861
jg 0x4013d4
je 0x4013cb
cmp eax, 0x280
jg 0x4013b9
je 0x4013ae
sub eax, 0x261
je 0x4013a3
dec eax
jne case.0x4013e6.2150
mov word [0x40e41a], 0x14
jmp 0x401422
mov word [0x40e41a], 0x13
jmp 0x401422
mov word [0x40e41a], 0x11
jmp 0x401422
cmp eax, 0x860
jne case.0x4013e6.2150
mov word [0x40e41a], 0xf
jmp 0x401422
mov word [0x40e41a], si
jmp 0x401422
add eax, 0xfffff79e
cmp eax, 0x21
ja case.0x4013e6.2150
xor ecx, ecx
mov cl, byte [eax + 0x401da8]
jmp dword [ecx*4 + 0x401d94]
mov word [0x40e41a], 0x10
jmp 0x401422
mov word [0x40e41a], 0x1b
jmp 0x401422
mov word [0x40e41a], 0x21
jmp 0x401422
mov word [0x40e41a], 0x22
jmp 0x401422
mov word [0x40e41a], 0
lea edx, [esp + 0x28]
push edx
call fcn.00404f70
lea eax, [esp + 0x300]
push eax
call fcn.00404fd0
add esp, 8
cmp word [0x40e41a], si
je 0x401d38
mov ax, word [0x40cbce]
cmp ax, 0x8086
jne 0x401466
cmp word [0x40cbcc], 0xa100
je 0x401d38
jmp 0x4014a6
cmp ax, 0x104d
jne 0x401491
mov eax, dword [0x40cbcc]
cmp ax, 0x81bb
je 0x401d38
cmp ax, 0x81cc
je 0x401d38
cmp ax, 0x81cd
je 0x401d38
jmp 0x4014a6
cmp ax, 0x1043
jne 0x4014a6
cmp word [0x40cbcc], 0x1995
je 0x401d38
mov eax, dword [esp + 0x28]
cmp eax, 0x13ec
jae 0x401d38
xor esi, esi
cmp eax, esi
je 0x401d38
push 0x40cbd2
push 0x40cbd0
call fcn.004049a0
add esp, 8
test eax, eax
jne 0x4014e3
mov word [0x40cbd0], si
mov word [0x40cbd2], si
push 0x40cbf8
call fcn.00404ea0
mov eax, dword [0x40cbf8]
add esp, 4
cmp eax, esi
je 0x4014ff
mov dword [0x40bbb4], esi
cmp word [0x40cbce], 0x104d
jne 0x401527
cmp word [0x40cbcc], 0x81cd
jne 0x401527
mov dword [0x40bbb4], 1
mov dword [0x40cbf8], esi
jmp 0x40152b
cmp eax, esi
jne 0x401532
sub dword [0x40bbb0], 5
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ebp, 1
mov esi, 0x40ba80
push 0
push 0
push 0
push 0
call edi
test eax, eax
mov dword [esi], eax
jne 0x401554
xor ebp, ebp
add esi, 0x20
cmp esi, 0x40bb00
jl 0x401542
test ebp, ebp
je 0x40156f
mov dword [0x40cbe8], 1
jmp 0x401578
mov eax, dword [0x40cbe8]
test eax, eax
je 0x40159a
call fcn.00402f50
lea ecx, [esp + 0x54]
push ecx
push 0
push 0
push 0x402ee0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x40cbd8], eax
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea edx, [esp + 0x14]
push edx
push str.SoftwareRealtekInitAP
push 0x80000001
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_WinExec]
test eax, eax
je 0x401830
mov ax, word [0x40cbce]
cmp ax, 0x105b
jne 0x4015e1
mov eax, dword [0x40cbcc]
cmp ax, 0xc28
je 0x401636
cmp ax, 0xc29
je 0x401636
jmp 0x4017ec
cmp ax, 0x1043
jne 0x401603
mov eax, dword [0x40cbcc]
cmp ax, 0x812f
je 0x401636
cmp ax, 0x8133
je 0x401636
cmp ax, 0x8161
je 0x401636
jmp 0x4017ec
cmp ax, 0x103c
jne 0x4016a5
mov eax, dword [0x40cbcc]
cmp ax, 0x2a09
je 0x401636
cmp ax, 0x2a28
je 0x401636
cmp ax, 0x2a38
je 0x401636
cmp ax, 0x2a0f
je 0x401636
cmp ax, 0x2a29
je 0x401636
cmp ax, 0x2a2a
jne 0x40164c
call fcn.00403510
mov ax, word [0x40cbce]
cmp ax, 0x103c
jne 0x401661
mov eax, dword [0x40cbcc]
cmp ax, 0x2a2d
jne 0x4017ec
call fcn.004035d0
mov ax, word [0x40cbce]
cmp ax, 0x1734
jne 0x401681
cmp word [0x40cbcc], 0x1066
jne 0x4017ec
call fcn.00403690
mov ax, word [0x40cbce]
cmp ax, 0x8086
jne 0x4016bb
mov eax, dword [0x40cbcc]
cmp ax, 0xe308
je 0x40172e
cmp ax, 0xe404
je 0x40172e
jmp 0x4017ec
cmp ax, 0x1019
jne 0x401661
cmp word [0x40cbcc], 0x3598
je 0x401636
jmp 0x4017ec
cmp ax, 0x107b
jne 0x4016e7
mov eax, dword [0x40cbcc]
cmp ax, 0x3032
je 0x40172e
cmp ax, 0x3033
je 0x40172e
cmp ax, 0x4036
jb 0x4017df
cmp ax, 0x4041
jbe 0x40172e
jmp 0x4017df
cmp ax, 0x1071
jne 0x4016fd
cmp word [0x40cbcc], 0x111
je 0x40172e
jmp 0x4017ec
cmp ax, 0x1025
jne 0x401719
mov eax, dword [0x40cbcc]
cmp ax, 0xe309
je 0x40172e
cmp ax, 0xe310
je 0x40172e
jmp 0x4017ec
cmp ax, 0x104d
jne 0x40173d
cmp word [0x40cbcc], 0x81a9
jne 0x4017ec
push str.Realtek_HD_Audio_rear_input
call fcn.00403830
add esp, 4
jmp 0x401759
cmp ax, 0x1458
jne 0x40175f
mov eax, dword [0x40cbcc]
cmp ax, 0xaf02
je 0x401754
cmp ax, 0xaf12
jne 0x4017ae
call fcn.004038f0
mov ax, word [0x40cbce]
cmp ax, 0x1631
jne 0x401772
cmp word [0x40cbcc], 0xe011
je 0x4017c6
jmp 0x4017ec
cmp ax, 0x1854
jne 0x4017a3
mov eax, dword [0x40cbcc]
cmp ax, 0x8006
je 0x4017c6
cmp ax, 0x8007
je 0x4017c6
cmp ax, 0x8008
je 0x4017c6
cmp ax, 0x800a
je 0x4017c6
cmp ax, 0x800b
je 0x4017c6
cmp ax, 0x800c
je 0x4017c6
jmp 0x4017ec
cmp ax, 0x1458
jne 0x4017d9
mov eax, dword [0x40cbcc]
cmp ax, 0xa0f2
je 0x4017c6
cmp ax, 0xa0e2
je 0x4017c6
cmp ax, 0xfa00
je 0x4017c6
cmp ax, 0xfa01
jne 0x4017ec
push str.Realtek_HD_Front_Pink_Jack
call fcn.00403830
mov ax, word [0x40cbce]
add esp, 4
cmp ax, 0x107b
jne 0x4017ec
push str.Realtek_HD_Front_Pink_Jack
call fcn.00403830
add esp, 4
mov eax, dword [0x40cbb0]
test eax, eax
jne 0x40180b
call fcn.00403cc0
test eax, eax
je 0x40180b
push str.Realtek_HD_Audio_rear_input
call fcn.00403830
add esp, 4
push 0
push str.RTLCPL.EXE__U
call ebx
mov esi, str.SoftwareAvance
push esi
call fcn.004032e0
add esi, 0x200
add esp, 4
cmp esi, str.ALSMTray
jl 0x401819
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call edi
mov cx, word [0x40cbce]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [0x40cbcc]
cmp cx, 0x1019
jne 0x401907
cmp ax, 0xf59
jne 0x401907
lea ecx, [esp + 0x14]
push ecx
push str.SoftwareRealtekInitAP
push 0x80000001
call ebp
test eax, eax
jne 0x4018f4
lea edx, [esp + 0x1c]
lea eax, [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x24]
push eax
push ecx
push 0
mov ebp, 1
push str.InitCH
push edx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x38], 3
mov dword [esp + 0x34], ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4018d5
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4018f4
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push ebp
push eax
push 3
push 0
push str.InitCH
mov dword [esp + 0x2c], ebp
push ecx
jmp 0x4018e9
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push ebp
push edx
push 3
push 0
push str.InitCH
push eax
call esi
push 0
push str.RTLCPL.EXE__C2
call ebx
mov ecx, dword [esp + 0x14]
push ecx
call edi
mov eax, dword [0x40cbcc]
mov cx, word [0x40cbce]
mov edx, dword [0x40cbbc]
mov esi, 1
mov ebx, 0x40a
cmp cx, 0x105b
mov dword [0x40e240], 0x58
mov dword [0x40e244], edx
mov dword [0x40e248], esi
mov dword [0x40e24c], 7
mov dword [0x40e250], ebx
jne 0x40195a
cmp ax, 0xc28
je 0x401b55
cmp ax, 0xc29
je 0x401b55
jmp 0x401983
cmp cx, 0x1043
jne 0x401b20
cmp ax, 0x812f
je 0x401b55
cmp ax, 0x8133
je 0x401b55
cmp ax, 0x8161
je 0x401b55
mov ecx, dword [0x40cbb8]
mov ebp, dword [sym.imp.USER32.dll_LoadImageA]
push 0x40
push 0x10
push 0x10
push esi
push 0x66
push ecx
call ebp
mov dword [0x40e254], eax
mov eax, dword [0x40cbb8]
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
lea edx, [esp + 0xfc]
push 0x200
push edx
push 1
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0xfc]
push ecx
push 0x40e258
call edi
mov eax, dword [0x40cbb8]
mov edx, dword [0x40cbbc]
push 0x40
push 0x10
push 0x10
push 1
push 0x79
push eax
mov dword [0x40e3c0], 0x58
mov dword [0x40e3c4], edx
mov dword [0x40e3c8], 1
mov dword [0x40e3cc], 7
mov dword [0x40e3d0], ebx
call ebp
mov edx, dword [0x40cbb8]
lea ecx, [esp + 0xfc]
push 0x200
push ecx
push 1
push edx
mov dword [0x40e3d4], eax
call esi
lea eax, [esp + 0xfc]
push eax
push 0x40e3d8
call edi
mov edx, dword [0x40cbb8]
mov ecx, dword [0x40cbbc]
push 0x40
push 0x10
push 0x10
push 1
push 0x7a
push edx
mov dword [0x40e4e0], 0x58
mov dword [0x40e4e4], ecx
mov dword [0x40e4e8], 1
mov dword [0x40e4ec], 7
mov dword [0x40e4f0], ebx
call ebp
mov ecx, dword [0x40cbb8]
mov dword [0x40e4f4], eax
lea eax, [esp + 0xfc]
push 0x200
push eax
push 1
push ecx
call esi
lea edx, [esp + 0xfc]
push edx
push 0x40e4f8
call edi
mov ax, word [0x40cbce]
mov ecx, dword [0x40cbcc]
cmp ax, 0x104d
jne 0x401ae9
cmp cx, 0x8176
je 0x401acf
cmp cx, 0x818b
jne 0x401ae9
cmp word [0x40cbd0], 0x8086
jne 0x401ae9
cmp word [0x40cbd2], 0x24c5
je 0x401b9d
cmp word [0x40e41a], 0x10
jne 0x401b90
cmp ax, 0x104d
jne 0x401ba2
cmp cx, 0x81a0
je 0x401b9d
cmp cx, 0x81a9
je 0x401b9d
cmp cx, 0x81df
je 0x401b9d
jmp 0x401b96
cmp cx, 0x103c
jne 0x401b7c
cmp ax, 0x2a09
je 0x401b55
cmp ax, 0x2a2d
je 0x401b55
cmp ax, 0x2a28
je 0x401b55
cmp ax, 0x2a38
je 0x401b55
cmp ax, 0x2a0f
je 0x401b55
cmp ax, 0x2a29
je 0x401b55
cmp ax, 0x2a2a
jne 0x401983
mov eax, dword [0x40cbb8]
mov ebp, dword [sym.imp.USER32.dll_LoadImageA]
push 0x40
push 0x10
push 0x10
push esi
push 0x7b
push eax
call ebp
mov dword [0x40e254], eax
mov dword [0x40cbd4], esi
jmp 0x4019a0
cmp cx, 0x1019
jne 0x401983
cmp ax, 0x3598
jmp 0x40197d
cmp ax, 0x104d
jne 0x401ba2
cmp cx, 0x81a9
jne 0x401ba2
mov byte [esp + 0x13], 0
lea eax, [esp + 0x14]
push eax
push str.SoftwareAvanceAC97_AudioALSMTray
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x401bf7
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x13]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x24]
push edx
push eax
push 0
push str.ShowIcon
push ecx
mov dword [esp + 0x38], 3
mov dword [esp + 0x34], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [esp + 0x13]
test al, al
je 0x401c1a
lea eax, [esp + 0x74]
push eax
call fcn.00404970
add esp, 4
test eax, eax
je 0x401c1a
push 1
call fcn.00402500
add esp, 4
cmp word [0x40cbce], 0x1019
jne 0x401cd6
cmp word [0x40e41a], 0x10
jne 0x401cd6
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], 0
push ecx
mov dword [esp + 0x28], 6
call fcn.00404c60
mov eax, dword [esp + 0x28]
add esp, 4
cmp eax, 8
jne 0x401cd6
lea edx, [esp + 0x14]
push edx
push str.SoftwareRealtekInitAP
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x401ccb
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x24]
push ecx
push edx
push 0
push str.InitCH
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x401ccb
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 4
push ecx
push 4
push 0
push str.InitCH
push edx
mov dword [esp + 0x30], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0
push str.ChCfg.EXE_5
call dword [sym.imp.KERNEL32.dll_WinExec]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [0x40cbbc]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
lea edx, [esp + 0x60]
push 0
push edx
call esi
test eax, eax
je 0x401d27
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [esp + 0x58]
push eax
call edi
lea ecx, [esp + 0x58]
push ecx
call ebp
push 0
push 0
lea edx, [esp + 0x60]
push 0
push edx
call esi
test eax, eax
jne 0x401d08
mov eax, dword [esp + 0x60]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3ec
ret 0x10
call fcn.00403c50
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3ec
ret 0x10