Function at 0x403e70
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
sub esp, 0x18
lea eax, [esp + 0xc]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push eax
push str.SoftwareRealtekUAJ
push 0x80000001
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], 2
call esi
test eax, eax
jne 0x403eca
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push 0x40e2b4
push edx
push eax
mov eax, dword [esp + 0x20]
push str.UAJStatus
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ax, word [0x40e28a]
push ebp
cmp ax, 0x1695
mov ebp, 0x8086
je 0x403f78
cmp ax, 0x1734
jne 0x403f5d
mov ecx, dword [0x40e288]
cmp cx, 0x1043
jne 0x403f13
cmp word [0x40e28c], 0x1039
jne 0x403f6e
cmp word [0x40e28e], 0x7012
je 0x403f78
mov dword [esp + 0xc], 1
jmp 0x403f80
cmp cx, 0x1048
jne 0x403f38
cmp word [0x40e28c], bp
jne 0x403f6e
cmp word [0x40e28e], 0x24d5
je 0x403f78
mov dword [esp + 0xc], 1
jmp 0x403f80
cmp cx, 0x1057
jne 0x403f6e
cmp word [0x40e28c], bp
jne 0x403f6e
cmp word [0x40e28e], 0x24c5
je 0x403f78
mov dword [esp + 0xc], 1
jmp 0x403f80
cmp ax, 0x1019
jne 0x403f6e
cmp word [0x40e288], 0xf58
je 0x403f78
mov dword [esp + 0xc], 1
jmp 0x403f80
mov dword [esp + 0xc], 0
cmp ax, 0x1458
je 0x403f94
cmp ax, 0x1940
mov dword [esp + 0x10], 1
jne 0x403f9c
mov dword [esp + 0x10], 2
lea edx, [esp + 0x14]
push edx
push str.SoftwareRealtekJack_Sense
push 0x80000001
call esi
test eax, eax
jne 0x404107
mov eax, 4
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x20]
push ecx
push edx
push 0
push str.Auto
push eax
call esi
test eax, eax
je 0x404099
mov ax, word [0x40e28a]
cmp ax, 0x1695
je 0x404091
cmp ax, 0x1734
jne 0x404076
mov eax, dword [0x40e288]
cmp ax, 0x1043
jne 0x40402e
cmp word [0x40e28c], 0x1039
jne 0x404087
cmp word [0x40e28e], 0x7012
je 0x404091
mov dword [esp + 0xc], 1
jmp 0x404099
cmp ax, 0x1048
jne 0x404052
cmp word [0x40e28c], bp
jne 0x404087
cmp word [0x40e28e], 0x24d5
je 0x404091
mov dword [esp + 0xc], 1
jmp 0x404099
cmp ax, 0x1057
jne 0x404087
cmp word [0x40e28c], bp
jne 0x404087
cmp word [0x40e28e], 0x24c5
je 0x404091
mov dword [esp + 0xc], 1
jmp 0x404099
cmp ax, 0x1019
jne 0x404087
cmp word [0x40e288], 0xf58
je 0x404091
mov dword [esp + 0xc], 1
jmp 0x404099
mov dword [esp + 0xc], 0
lea ecx, [esp + 0x18]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push edx
push eax
push 0
push str.AutoType
push ecx
mov dword [esp + 0x34], 3
mov dword [esp + 0x30], 4
call esi
test eax, eax
je 0x4040e6
mov ax, word [0x40e28a]
cmp ax, 0x1458
je 0x4040dc
cmp ax, 0x1940
jne 0x4040f4
mov dword [esp + 0x10], 2
jmp 0x4040fc
mov eax, dword [esp + 0x10]
cmp eax, 2
je 0x4040fc
cmp eax, 1
je 0x4040fc
mov dword [esp + 0x10], 1
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x40e2b4]
mov esi, dword [sym.imp.USER32.dll_PostMessageA]
test eax, eax
pop ebp
je 0x4041aa
cmp dword [0x41013c], 1
jne 0x404137
mov eax, dword [esp + 8]
push 1
mov dword [0x40fc54], eax
call fcn.00404230
add esp, 4
cmp dword [0x41013c], 2
jne 0x404154
mov ecx, dword [esp + 8]
push 2
mov dword [0x40fc54], ecx
call fcn.00404230
add esp, 4
cmp dword [0x41013c], 4
jne 0x404195
mov edx, dword [esp + 8]
lea eax, [esp + 6]
push eax
push 0
mov dword [0x40fc54], edx
call fcn.00407440
add esp, 8
test eax, eax
je 0x404195
cmp word [esp + 6], 0
je 0x40418b
push 2
call fcn.00407770
jmp 0x404192
push 1
call fcn.00404230
add esp, 4
mov eax, dword [0x40e27c]
test eax, eax
je 0x4041af
push 0
push 0
push 0x40b
push eax
call esi
mov eax, dword [0x40e27c]
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x4041c1
mov edx, dword [0x40e2b4]
test edx, edx
je 0x404228
cmp word [esp + 0x20], 0
jne 0x4041da
cmp dword [esp + 0xc], 1
jne 0x4041da
mov edx, dword [0x40e2b4]
test edx, edx
je 0x404228
mov edx, dword [0x41013c]
cmp edx, 1
je 0x4041ef
cmp edx, 2
je 0x4041ef
cmp edx, 4
jne 0x404228
test ecx, ecx
mov dword [0x40fc54], ecx
je 0x404228
test eax, eax
je 0x40421b
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov ecx, dword [0x40e27c]
push 0
push 0
push 0x407
push ecx
call esi
pop esi
add esp, 0x18
ret
push 5
push str.rundll32.exe_shell32.dll_Control_RunDLL_alsndmgr.cpl__8
call dword [sym.imp.KERNEL32.dll_WinExec]
pop esi
add esp, 0x18
ret