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 0x40cc18
push eax
mov byte [esp + 0x1b], 1
mov dword [esp + 0x30], 0
call fcn.00405090
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 [0x40d974], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x401d38
push 0x40f560
mov dword [0x40f560], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [0x40f564]
mov ebx, 0xa
cmp eax, 4
jne 0x401117
cmp dword [0x40f568], ebx
jne 0x401133
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x40f564], 5
jne 0x401133
mov eax, dword [0x40f568]
test eax, eax
jne 0x401133
mov dword [0x40d9ac], 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 [0x40d978], esi
call dword [sym.imp.USER32.dll_CreateWindowExA]
test eax, eax
mov dword [0x40d97c], eax
je 0x401d38
call fcn.004048c0
push 0x40d98c
call fcn.00404a20
add esp, 4
test eax, eax
je 0x4011f9
call fcn.004031b0
push 0x40d98c
call fcn.00404a20
push 0x40ee10
call fcn.004049b0
mov ax, word [0x40ee10]
add esp, 8
cmp ax, 0x414c
mov esi, 0x1a
jne 0x401366
mov eax, dword [0x40ee12]
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 [0x40ee14]
cmp ax, 0x10
jae 0x401275
mov word [0x40f55a], 3
jmp 0x401422
xor ecx, ecx
cmp ax, 0x13
sete cl
add ecx, 4
mov word [0x40f55a], cx
jmp 0x401422
mov word [0x40f55a], 1
jmp 0x401422
mov word [0x40f55a], 0xb
jmp 0x401422
sub eax, 0x4730
je 0x4012f7
sub eax, 0x10
jne case.0x4013e6.2150
mov ax, word [0x40ee14]
cmp ax, 7
ja 0x4012d1
mov word [0x40f55a], di
jmp 0x401422
cmp ax, 9
je 0x4012e9
cmp ax, 0xd
je 0x4012e9
mov word [0x40f55a], bp
jmp 0x401422
mov word [0x40f55a], 7
jmp 0x401422
mov word [0x40f55a], 2
jmp 0x401422
mov word [0x40f55a], 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 [0x40f55a], 0xc
jmp 0x401422
mov word [0x40f55a], 9
jmp 0x401422
mov word [0x40f55a], 0xd
jmp 0x401422
mov word [0x40f55a], 0xe
jmp 0x401422
cmp ax, 0x10ec
jne case.0x4013e6.2150
xor eax, eax
mov ax, word [0x40ee12]
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 [0x40f55a], 0x14
jmp 0x401422
mov word [0x40f55a], 0x13
jmp 0x401422
mov word [0x40f55a], 0x11
jmp 0x401422
cmp eax, 0x860
jne case.0x4013e6.2150
mov word [0x40f55a], 0xf
jmp 0x401422
mov word [0x40f55a], 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 [0x40f55a], 0x10
jmp 0x401422
mov word [0x40f55a], 0x1b
jmp 0x401422
mov word [0x40f55a], 0x21
jmp 0x401422
mov word [0x40f55a], 0x22
jmp 0x401422
mov word [0x40f55a], 0
lea edx, [esp + 0x28]
push edx
call fcn.00404fb0
lea eax, [esp + 0x300]
push eax
call fcn.00405010
add esp, 8
cmp word [0x40f55a], si
je 0x401d33
mov ax, word [0x40d98e]
cmp ax, 0x8086
jne 0x401466
cmp word [0x40d98c], 0xa100
je 0x401d33
jmp 0x4014a6
cmp ax, 0x104d
jne 0x401491
mov eax, dword [0x40d98c]
cmp ax, 0x81bb
je 0x401d33
cmp ax, 0x81cc
je 0x401d33
cmp ax, 0x81cd
je 0x401d33
jmp 0x4014a6
cmp ax, 0x1043
jne 0x4014a6
cmp word [0x40d98c], 0x1995
je 0x401d33
cmp dword [esp + 0x28], 0x13ec
jae 0x401d33
push 0x40d992
push 0x40d990
call fcn.004049e0
add esp, 8
test eax, eax
jne 0x4014dc
xor esi, esi
mov word [0x40d990], si
mov word [0x40d992], si
jmp 0x4014de
xor esi, esi
push 0x40d9b8
call fcn.00404ee0
mov eax, dword [0x40d9b8]
add esp, 4
cmp eax, esi
je 0x4014fa
mov dword [0x40cb84], esi
cmp word [0x40d98e], 0x104d
jne 0x401522
cmp word [0x40d98c], 0x81cd
jne 0x401522
mov dword [0x40cb84], 1
mov dword [0x40d9b8], esi
jmp 0x401526
cmp eax, esi
jne 0x40152d
sub dword [0x40cb80], 5
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ebp, 1
mov esi, 0x40ca50
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, 0x40cad0
jl 0x40153d
test ebp, ebp
je 0x40156a
mov dword [0x40d9a8], 1
jmp 0x401573
mov eax, dword [0x40d9a8]
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 [0x40d998], 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 [0x40d98e]
cmp ax, 0x105b
jne 0x4015dc
mov eax, dword [0x40d98c]
cmp ax, 0xc28
je 0x401631
cmp ax, 0xc29
je 0x401631
jmp 0x4017e7
cmp ax, 0x1043
jne 0x4015fe
mov eax, dword [0x40d98c]
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 [0x40d98c]
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 [0x40d98e]
cmp ax, 0x103c
jne 0x40165c
mov eax, dword [0x40d98c]
cmp ax, 0x2a2d
jne 0x4017e7
call fcn.004035d0
mov ax, word [0x40d98e]
cmp ax, 0x1734
jne 0x40167c
cmp word [0x40d98c], 0x1066
jne 0x4017e7
call fcn.00403690
mov ax, word [0x40d98e]
cmp ax, 0x8086
jne 0x4016b6
mov eax, dword [0x40d98c]
cmp ax, 0xe308
je 0x401729
cmp ax, 0xe404
je 0x401729
jmp 0x4017e7
cmp ax, 0x1019
jne 0x40165c
cmp word [0x40d98c], 0x3598
je 0x401631
jmp 0x4017e7
cmp ax, 0x107b
jne 0x4016e2
mov eax, dword [0x40d98c]
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 [0x40d98c], 0x111
je 0x401729
jmp 0x4017e7
cmp ax, 0x1025
jne 0x401714
mov eax, dword [0x40d98c]
cmp ax, 0xe309
je 0x401729
cmp ax, 0xe310
je 0x401729
jmp 0x4017e7
cmp ax, 0x104d
jne 0x401738
cmp word [0x40d98c], 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 [0x40d98c]
cmp ax, 0xaf02
je 0x40174f
cmp ax, 0xaf12
jne 0x4017a9
call fcn.004038f0
mov ax, word [0x40d98e]
cmp ax, 0x1631
jne 0x40176d
cmp word [0x40d98c], 0xe011
je 0x4017c1
jmp 0x4017e7
cmp ax, 0x1854
jne 0x40179e
mov eax, dword [0x40d98c]
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 [0x40d98c]
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 [0x40d98e]
add esp, 4
cmp ax, 0x107b
jne 0x4017e7
push str.Realtek_HD_Front_Pink_Jack
call fcn.00403830
add esp, 4
mov eax, dword [0x40d970]
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 [0x40d98e]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [0x40d98c]
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 [0x40d98c]
mov cx, word [0x40d98e]
mov edx, dword [0x40d97c]
mov esi, 1
mov ebx, 0x40a
cmp cx, 0x105b
mov dword [0x40f380], 0x58
mov dword [0x40f384], edx
mov dword [0x40f388], esi
mov dword [0x40f38c], 7
mov dword [0x40f390], 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 [0x40d978]
mov ebp, dword [sym.imp.USER32.dll_LoadImageA]
push 0x40
push 0x10
push 0x10
push esi
push 0x66
push ecx
call ebp
mov dword [0x40f394], eax
mov eax, dword [0x40d978]
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 0x40f398
call edi
mov eax, dword [0x40d978]
mov edx, dword [0x40d97c]
push 0x40
push 0x10
push 0x10
push 1
push 0x79
push eax
mov dword [0x40f500], 0x58
mov dword [0x40f504], edx
mov dword [0x40f508], 1
mov dword [0x40f50c], 7
mov dword [0x40f510], ebx
call ebp
mov edx, dword [0x40d978]
lea ecx, [esp + 0xfc]
push 0x200
push ecx
push 1
push edx
mov dword [0x40f514], eax
call esi
lea eax, [esp + 0xfc]
push eax
push 0x40f518
call edi
mov edx, dword [0x40d978]
mov ecx, dword [0x40d97c]
push 0x40
push 0x10
push 0x10
push 1
push 0x7a
push edx
mov dword [0x40f620], 0x58
mov dword [0x40f624], ecx
mov dword [0x40f628], 1
mov dword [0x40f62c], 7
mov dword [0x40f630], ebx
call ebp
mov ecx, dword [0x40d978]
mov dword [0x40f634], eax
lea eax, [esp + 0xfc]
push 0x200
push eax
push 1
push ecx
call esi
lea edx, [esp + 0xfc]
push edx
push 0x40f638
call edi
mov ax, word [0x40d98e]
mov ecx, dword [0x40d98c]
cmp ax, 0x104d
jne 0x401ae4
cmp cx, 0x8176
je 0x401aca
cmp cx, 0x818b
jne 0x401ae4
cmp word [0x40d990], 0x8086
jne 0x401ae4
cmp word [0x40d992], 0x24c5
je 0x401b98
cmp word [0x40f55a], 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 [0x40d978]
mov ebp, dword [sym.imp.USER32.dll_LoadImageA]
push 0x40
push 0x10
push 0x10
push esi
push 0x7b
push eax
call ebp
mov dword [0x40f394], eax
mov dword [0x40d994], 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.004049b0
add esp, 4
test eax, eax
je 0x401c15
push 1
call fcn.00402500
add esp, 4
cmp word [0x40d98e], 0x1019
jne 0x401cd1
cmp word [0x40f55a], 0x10
jne 0x401cd1
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], 0
push ecx
mov dword [esp + 0x28], 6
call fcn.00404ca0
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 [0x40d97c]
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