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.00405030
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 0x401d38
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 0x401d38
call fcn.004048a0
push 0x40cbcc
call fcn.004049c0
add esp, 4
test eax, eax
je 0x4011f9
call fcn.004031b0
push 0x40cbcc
call fcn.004049c0
push 0x40e050
call fcn.00404950
mov ax, word [0x40e050]
add esp, 8
cmp ax, 0x414c
mov esi, 0x1a
jne 0x401366
mov eax, dword [0x40e052]
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 [0x40e054]
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 [0x40e054]
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 + 0x401d5c]
jmp dword [edx*4 + 0x401d48]
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 [0x40e052]
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 + 0x401da4]
jmp dword [ecx*4 + 0x401d90]
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.00404f50
lea eax, [esp + 0x300]
push eax
call fcn.00404fb0
add esp, 8
cmp word [0x40e41a], si
je 0x401d33
mov ax, word [0x40cbce]
cmp ax, 0x8086
jne 0x401466
cmp word [0x40cbcc], 0xa100
je 0x401d33
jmp 0x4014a6
cmp ax, 0x104d
jne 0x401491
mov eax, dword [0x40cbcc]
cmp ax, 0x81bb
je 0x401d33
cmp ax, 0x81cc
je 0x401d33
cmp ax, 0x81cd
je 0x401d33
jmp 0x4014a6
cmp ax, 0x1043
jne 0x4014a6
cmp word [0x40cbcc], 0x1995
je 0x401d33
cmp dword [esp + 0x28], 0x13ec
jae 0x401d33
push 0x40cbd2
push 0x40cbd0
call fcn.00404980
add esp, 8
test eax, eax
jne 0x4014dc
xor esi, esi
mov word [0x40cbd0], si
mov word [0x40cbd2], si
jmp 0x4014de
xor esi, esi
push 0x40cbf8
call fcn.00404e80
mov eax, dword [0x40cbf8]
add esp, 4
cmp eax, esi
je 0x4014fa
mov dword [0x40bbb4], esi
cmp word [0x40cbce], 0x104d
jne 0x401522
cmp word [0x40cbcc], 0x81cd
jne 0x401522
mov dword [0x40bbb4], 1
mov dword [0x40cbf8], esi
jmp 0x401526
cmp eax, esi
jne 0x40152d
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 0x40154f
xor ebp, ebp
add esi, 0x20
cmp esi, 0x40bb00
jl 0x40153d
test ebp, ebp
je 0x40156a
mov dword [0x40cbe8], 1
jmp 0x401573
mov eax, dword [0x40cbe8]
test eax, eax
je 0x401595
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 0x40182b
mov ax, word [0x40cbce]
cmp ax, 0x105b
jne 0x4015dc
mov eax, dword [0x40cbcc]
cmp ax, 0xc28
je 0x401631
cmp ax, 0xc29
je 0x401631
jmp 0x4017e7
cmp ax, 0x1043
jne 0x4015fe
mov eax, dword [0x40cbcc]
cmp ax, 0x812f
je 0x401631
cmp ax, 0x8133
je 0x401631
cmp ax, 0x8161
je 0x401631
jmp 0x4017e7
cmp ax, 0x103c
jne 0x4016a0
mov eax, dword [0x40cbcc]
cmp ax, 0x2a09
je 0x401631
cmp ax, 0x2a28
je 0x401631
cmp ax, 0x2a38
je 0x401631
cmp ax, 0x2a0f
je 0x401631
cmp ax, 0x2a29
je 0x401631
cmp ax, 0x2a2a
jne 0x401647
call fcn.00403510
mov ax, word [0x40cbce]
cmp ax, 0x103c
jne 0x40165c
mov eax, dword [0x40cbcc]
cmp ax, 0x2a2d
jne 0x4017e7
call fcn.004035d0
mov ax, word [0x40cbce]
cmp ax, 0x1734
jne 0x40167c
cmp word [0x40cbcc], 0x1066
jne 0x4017e7
call fcn.00403690
mov ax, word [0x40cbce]
cmp ax, 0x8086
jne 0x4016b6
mov eax, dword [0x40cbcc]
cmp ax, 0xe308
je 0x401729
cmp ax, 0xe404
je 0x401729
jmp 0x4017e7
cmp ax, 0x1019
jne 0x40165c
cmp word [0x40cbcc], 0x3598
je 0x401631
jmp 0x4017e7
cmp ax, 0x107b
jne 0x4016e2
mov eax, dword [0x40cbcc]
cmp ax, 0x3032
je 0x401729
cmp ax, 0x3033
je 0x401729
cmp ax, 0x4036
jb 0x4017da
cmp ax, 0x4041
jbe 0x401729
jmp 0x4017da
cmp ax, 0x1071
jne 0x4016f8
cmp word [0x40cbcc], 0x111
je 0x401729
jmp 0x4017e7
cmp ax, 0x1025
jne 0x401714
mov eax, dword [0x40cbcc]
cmp ax, 0xe309
je 0x401729
cmp ax, 0xe310
je 0x401729
jmp 0x4017e7
cmp ax, 0x104d
jne 0x401738
cmp word [0x40cbcc], 0x81a9
jne 0x4017e7
push str.Realtek_HD_Audio_rear_input
call fcn.00403830
add esp, 4
jmp 0x401754
cmp ax, 0x1458
jne 0x40175a
mov eax, dword [0x40cbcc]
cmp ax, 0xaf02
je 0x40174f
cmp ax, 0xaf12
jne 0x4017a9
call fcn.004038f0
mov ax, word [0x40cbce]
cmp ax, 0x1631
jne 0x40176d
cmp word [0x40cbcc], 0xe011
je 0x4017c1
jmp 0x4017e7
cmp ax, 0x1854
jne 0x40179e
mov eax, dword [0x40cbcc]
cmp ax, 0x8006
je 0x4017c1
cmp ax, 0x8007
je 0x4017c1
cmp ax, 0x8008
je 0x4017c1
cmp ax, 0x800a
je 0x4017c1
cmp ax, 0x800b
je 0x4017c1
cmp ax, 0x800c
je 0x4017c1
jmp 0x4017e7
cmp ax, 0x1458
jne 0x4017d4
mov eax, dword [0x40cbcc]
cmp ax, 0xa0f2
je 0x4017c1
cmp ax, 0xa0e2
je 0x4017c1
cmp ax, 0xfa00
je 0x4017c1
cmp ax, 0xfa01
jne 0x4017e7
push str.Realtek_HD_Front_Pink_Jack
call fcn.00403830
mov ax, word [0x40cbce]
add esp, 4
cmp ax, 0x107b
jne 0x4017e7
push str.Realtek_HD_Front_Pink_Jack
call fcn.00403830
add esp, 4
mov eax, dword [0x40cbb0]
test eax, eax
jne 0x401806
call fcn.00403cc0
test eax, eax
je 0x401806
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 0x401814
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 0x401902
cmp ax, 0xf59
jne 0x401902
lea ecx, [esp + 0x14]
push ecx
push str.SoftwareRealtekInitAP
push 0x80000001
call ebp
test eax, eax
jne 0x4018ef
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 0x4018d0
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4018ef
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 0x4018e4
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 0x401955
cmp ax, 0xc28
je 0x401b50
cmp ax, 0xc29
je 0x401b50
jmp 0x40197e
cmp cx, 0x1043
jne 0x401b1b
cmp ax, 0x812f
je 0x401b50
cmp ax, 0x8133
je 0x401b50
cmp ax, 0x8161
je 0x401b50
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 0x401ae4
cmp cx, 0x8176
je 0x401aca
cmp cx, 0x818b
jne 0x401ae4
cmp word [0x40cbd0], 0x8086
jne 0x401ae4
cmp word [0x40cbd2], 0x24c5
je 0x401b98
cmp word [0x40e41a], 0x10
jne 0x401b8b
cmp ax, 0x104d
jne 0x401b9d
cmp cx, 0x81a0
je 0x401b98
cmp cx, 0x81a9
je 0x401b98
cmp cx, 0x81df
je 0x401b98
jmp 0x401b91
cmp cx, 0x103c
jne 0x401b77
cmp ax, 0x2a09
je 0x401b50
cmp ax, 0x2a2d
je 0x401b50
cmp ax, 0x2a28
je 0x401b50
cmp ax, 0x2a38
je 0x401b50
cmp ax, 0x2a0f
je 0x401b50
cmp ax, 0x2a29
je 0x401b50
cmp ax, 0x2a2a
jne 0x40197e
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 0x40199b
cmp cx, 0x1019
jne 0x40197e
cmp ax, 0x3598
jmp 0x401978
cmp ax, 0x104d
jne 0x401b9d
cmp cx, 0x81a9
jne 0x401b9d
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 0x401bf2
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 0x401c15
lea eax, [esp + 0x74]
push eax
call fcn.00404950
add esp, 4
test eax, eax
je 0x401c15
push 1
call fcn.00402500
add esp, 4
cmp word [0x40cbce], 0x1019
jne 0x401cd1
cmp word [0x40e41a], 0x10
jne 0x401cd1
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], 0
push ecx
mov dword [esp + 0x28], 6
call fcn.00404c40
mov eax, dword [esp + 0x28]
add esp, 4
cmp eax, 8
jne 0x401cd1
lea edx, [esp + 0x14]
push edx
push str.SoftwareRealtekInitAP
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x401cc6
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 0x401cc6
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 0x401d22
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 0x401d03
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