joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407130
Capabilities:
Delete registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423f28
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x448090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edx, dword [esi + 0x460]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x14]
push eax
lea ebx, [esi + 0x550]
push ebx
lea ecx, [ebp - 0x18]
push ecx
push 0
push str.ActiveOutputMode
push edx
mov dword [ebp - 0x14], 4
call edi
lea ecx, [ebp - 0x14]
push ecx
lea eax, [esi + 0x554]
push eax
mov eax, dword [esi + 0x460]
lea edx, [ebp - 0x18]
push edx
push 0
push str.ActiveSoundMode
push eax
mov dword [ebp - 0x14], 4
call edi
cmp dword [ebp + 8], 0
jge 0x4071b7
mov ecx, dword [ebx]
mov dword [ebp + 8], ecx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jns 0x4071c4
mov ebx, dword [esi + 0x554]
mov ecx, esi
call fcn.00408af0
mov edx, dword [ebp + 8]
push 0
push ebx
lea edi, [esi + 0x4bc]
push edx
call fcn.0040cab0
mov edi, dword [ebp + 8]
push 0
push ebx
push edi
push esi
mov dword [ebp - 0x10], eax
call fcn.00408970
cmp dword [ebp - 0x10], 0
mov dword [ebp - 0x14], eax
je 0x407327
test eax, eax
je 0x407327
mov eax, dword [eax + 4]
push 0
push eax
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov ecx, dword [ebp - 0x10]
movzx eax, word [ecx + 0x7c]
test al, 1
je 0x4072c0
mov edx, dword [0x44924c]
mov eax, dword [edx + 0xc]
mov ecx, 0x44924c
call eax
add eax, 0x10
mov dword [ebp + 0xc], eax
push edi
push str.SoundModeOnOutput_d
lea edi, [ebp + 0xc]
mov dword [ebp - 4], 0
call fcn.0040a990
mov edx, dword [ebp + 0xc]
mov eax, dword [esi + 0x460]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
add esp, 8
push 4
lea ecx, [ebp - 0x18]
push ecx
push 4
push 0
push edx
push eax
mov dword [ebp - 0x18], ebx
call edi
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 0x550]
jne 0x407297
mov eax, dword [esi + 0x460]
push 4
lea edx, [ebp - 0x18]
push edx
push 4
push 0
push str.ActiveSoundMode
push eax
mov dword [esi + 0x554], ebx
mov dword [ebp - 0x18], ebx
call edi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4072bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp + 8]
push ebx
push edi
lea edx, [esi + 0x4bc]
call fcn.0040cb00
test eax, eax
je 0x4072f0
mov edx, dword [ebp - 0x14]
push 4
lea ecx, [ebp + 8]
push ecx
push 4
push 0
mov dword [ebp + 8], eax
mov eax, dword [edx + 4]
push str.Type
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp edi, dword [esi + 0x550]
jne 0x407311
cmp ebx, dword [esi + 0x554]
jne 0x407311
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
push 1
push ecx
push edx
mov edi, esi
call fcn.00408d20
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x407ad0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x423ebb
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x448090]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push esi
push edi
mov eax, dword [0x448090]
xor eax, esp
push eax
lea eax, [esp + 0x178]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x18]
mov esi, ecx
mov dword [esp + 0x48], esi
test edi, edi
js 0x407b24
test ebx, ebx
jns 0x407b92
lea ecx, [esp + 0x3c]
push ecx
lea eax, [esi + 0x550]
push eax
mov eax, dword [esi + 0x460]
lea edx, [esp + 0x48]
push edx
push 0
push str.ActiveOutputMode
push eax
mov dword [esp + 0x54], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x3c]
push ecx
lea eax, [esi + 0x554]
push eax
mov eax, dword [esi + 0x460]
lea edx, [esp + 0x48]
push edx
push 0
push str.ActiveSoundMode
push eax
mov dword [esp + 0x54], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test edi, edi
jns 0x407b88
mov edi, dword [esi + 0x550]
test ebx, ebx
jns 0x407b92
mov ebx, dword [esi + 0x554]
push 0
push ebx
push edi
push esi
call fcn.00408970
mov dword [esp + 0x3c], eax
test eax, eax
je 0x407ca8
mov ecx, dword [ebp + 8]
push ecx
push str.Param_u
lea edx, [esp + 0x128]
call fcn.0040d760
fld qword [ebp + 0xc]
mov ecx, dword [esp + 0x44]
fstp qword [esp + 0x48]
add esp, 8
push 8
lea edx, [esp + 0x44]
push edx
mov edx, dword [ecx + 4]
push 3
push 0
lea eax, [esp + 0x130]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
sete al
mov byte [esp + 0x3b], al
cmp edi, dword [esi + 0x550]
jne 0x407caa
cmp ebx, dword [esi + 0x554]
jne 0x407caa
xor eax, eax
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x74]
push ebx
push edi
mov ecx, esi
call edx
cmp dword [esp + 0x3c], 0
je 0x407c8c
lea eax, [esp + 0x54]
call fcn.0040b830
mov dword [esp + 0x180], 0
mov eax, dword [esp + 0x3c]
push eax
push ebx
push edi
add esi, 0x4bc
lea ebx, [esp + 0x60]
call fcn.0040cb50
mov edi, dword [ebp + 8]
lea ecx, [esp + 0x4c]
push ecx
mov esi, ebx
call fcn.0040ba30
mov esi, 1
test al, al
jne 0x407c70
mov esi, dword [esp + 0x40]
lea ecx, [esp + 0x54]
mov dword [esp + 0x180], 0xffffffff
call fcn.0040b900
test esi, esi
jne 0x407ca2
mov esi, dword [esp + 0x48]
mov edx, dword [esi]
fld qword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [edx + 0xc]
sub esp, 8
fstp qword [esp]
push eax
mov ecx, esi
call edx
mov al, byte [esp + 0x3b]
jmp 0x407caa
xor al, al
mov ecx, dword [esp + 0x178]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.004117c9
mov esp, ebp
pop ebp
ret 0x14
Function at 0x407d90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x448090]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push eax
push str.Property_u
lea edx, [ebp - 0x38]
mov esi, ecx
call fcn.0040ac90
mov ecx, dword [ebp + 0x10]
mov eax, dword [esi + 0x460]
add esp, 8
push ecx
push edi
push 3
push 0
lea edx, [ebp - 0x38]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
pop edi
xor ecx, ebp
inc eax
pop esi
call fcn.004117c9
mov esp, ebp
pop ebp
ret 0xc

Function at 0x407df0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x448090]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
mov ecx, dword [ebp + 8]
push ecx
push str.Property_u
lea edx, [ebp - 0x38]
mov dword [ebp - 0x44], eax
call fcn.0040ac90
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 8
lea edx, [ebp - 0x3c]
push edx
mov edx, dword [esi + 0x460]
push 0
lea eax, [ebp - 0x40]
push eax
push 0
lea ecx, [ebp - 0x38]
push ecx
push edx
mov dword [ebp - 0x3c], 0
call ebx
cmp dword [ebp - 0x3c], 0
je 0x407e92
test edi, edi
je 0x407e71
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [esi + 0x460]
push edi
lea ecx, [ebp - 0x40]
push ecx
push 0
lea edx, [ebp - 0x38]
push edx
push eax
call ebx
neg eax
sbb eax, eax
inc eax
je 0x407e92
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x407e7d
mov ecx, dword [ebp - 0x3c]
mov dword [eax], ecx
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004117c9
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.004117c9
mov esp, ebp
pop ebp
ret 0x10

Function at 0x407f10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x448090]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 8], edi
jne 0x407f59
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
push edi
push edi
push edi
push 0x84000000
lea edx, [ebp - 0x14]
push edx
push str.ChangeNotify
lea ecx, [esi + 4]
push edi
push str.WavesNotifications
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [esi + 0x560], ecx
mov dword [esi + 0x564], edx
cmp dword [esi + 0x55c], edi
jne 0x407f8f
lea eax, [ebp - 0x18]
push eax
push edi
push esi
push 0x404bc0
push edi
push edi
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x55c], eax
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [esi + 0x55c], edi
pop edi
setne al
xor ecx, ebp
pop esi
call fcn.004117c9
mov esp, ebp
pop ebp
ret 8
Function at 0x408460
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x448090]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, ecx
mov ecx, dword [ebp + 0x18]
lea edx, [ebp - 0x10c]
push edx
mov dword [ebp - 0x114], eax
lea ebx, [esi + 0x550]
push ebx
lea eax, [ebp - 0x118]
push eax
push 0
mov dword [ebp - 0x110], ecx
mov ecx, dword [esi + 0x460]
push str.ActiveOutputMode
push ecx
mov dword [ebp - 0x10c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esi + 0x460]
lea edx, [ebp - 0x10c]
push edx
lea eax, [esi + 0x554]
push eax
lea eax, [ebp - 0x118]
push eax
push 0
push str.ActiveSoundMode
push ecx
mov dword [ebp - 0x10c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test edi, edi
jns 0x4084f9
mov edi, dword [ebx]
cmp dword [ebp - 0x110], 0
jge 0x40850e
mov edx, dword [esi + 0x554]
mov dword [ebp - 0x110], edx
mov eax, dword [ebp - 0x110]
push 0
push eax
push edi
push esi
call fcn.00408970
mov esi, eax
test esi, esi
je 0x408573
mov ecx, dword [ebp + 8]
push ecx
push str.Property_u
lea edx, [ebp - 0x108]
call fcn.0040acb0
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x114]
add esp, 8
push edx
mov edx, dword [esi + 4]
push eax
push 3
push 0
lea ecx, [ebp - 0x108]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
pop edi
sbb eax, eax
pop esi
inc eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004117c9
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.004117c9
mov esp, ebp
pop ebp
ret 0x14
Function at 0x408590
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x448090]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x1c]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
mov esi, ecx
mov ecx, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x114], eax
lea ecx, [ebp - 0x110]
push ecx
lea eax, [esi + 0x550]
push eax
mov eax, dword [esi + 0x460]
mov dword [ebp - 0x10c], edx
lea edx, [ebp - 0x118]
push edx
push 0
push str.ActiveOutputMode
push eax
mov dword [ebp - 0x110], 4
call ebx
lea ecx, [ebp - 0x110]
push ecx
lea eax, [esi + 0x554]
push eax
mov eax, dword [esi + 0x460]
lea edx, [ebp - 0x118]
push edx
push 0
push str.ActiveSoundMode
push eax
mov dword [ebp - 0x110], 4
call ebx
test edi, edi
jns 0x408634
mov edi, dword [esi + 0x550]
cmp dword [ebp - 0x10c], 0
jge 0x408649
mov ecx, dword [esi + 0x554]
mov dword [ebp - 0x10c], ecx
mov edx, dword [ebp - 0x10c]
push 0
push edx
push edi
push esi
call fcn.00408970
mov esi, eax
test esi, esi
je 0x408702
mov eax, dword [ebp + 8]
push eax
push str.Property_u
lea edx, [ebp - 0x108]
call fcn.0040acb0
add esp, 8
lea ecx, [ebp - 0x10c]
push ecx
mov ecx, dword [esi + 4]
push 0
lea edx, [ebp - 0x110]
push edx
push 0
lea eax, [ebp - 0x108]
push eax
push ecx
mov dword [ebp - 0x10c], 0
call ebx
cmp dword [ebp - 0x10c], 0
je 0x408702
mov eax, dword [ebp - 0x114]
test eax, eax
je 0x4086db
lea edx, [ebp - 0x10c]
push edx
mov edx, dword [esi + 4]
push eax
lea eax, [ebp - 0x110]
push eax
push 0
lea ecx, [ebp - 0x108]
push ecx
push edx
call ebx
neg eax
sbb eax, eax
inc eax
je 0x408702
mov eax, dword [ebp - 0x11c]
test eax, eax
je 0x4086ed
mov ecx, dword [ebp - 0x10c]
mov dword [eax], ecx
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004117c9
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.004117c9
mov esp, ebp
pop ebp
ret 0x18
Function at 0x408720
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423f28
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x448090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
xor al, al
mov byte [ebp - 0xd], al
cmp dword [ebp + 8], ebx
je 0x4087fa
call fcn.004062b0
mov edi, dword [ebp + 0xc]
cmp edi, ebx
jge 0x40876c
mov edi, dword [esi + 0x550]
mov eax, dword [0x44924c]
mov edx, dword [eax + 0xc]
mov ecx, 0x44924c
mov dword [ebp - 0x14], ebx
call edx
add eax, 0x10
mov dword [ebp + 0xc], eax
push edi
push str.SoundModeOnOutput_d
lea edi, [ebp + 0xc]
mov dword [ebp - 4], ebx
call fcn.0040a990
mov edi, dword [ebp + 0xc]
add esp, 8
lea eax, [ebp - 0x18]
push eax
mov eax, dword [esi + 0x460]
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp + 0xc]
push edx
push ebx
push edi
push eax
mov dword [ebp - 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb eax, eax
inc eax
cmp eax, ebx
je 0x4087d2
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
mov bl, 1
jmp 0x4087d5
mov bl, byte [ebp - 0xd]
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4087f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x408810
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423f28
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x448090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edx, dword [esi + 0x460]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x14]
push eax
lea edi, [esi + 0x550]
push edi
lea ecx, [ebp - 0x18]
push ecx
push 0
push str.ActiveOutputMode
push edx
mov byte [ebp - 0xd], 0
mov dword [ebp - 0x14], 4
call ebx
lea eax, [ebp - 0x14]
push eax
mov eax, dword [esi + 0x460]
lea ecx, [esi + 0x554]
push ecx
lea edx, [ebp - 0x18]
push edx
push 0
push str.ActiveSoundMode
push eax
mov dword [ebp - 0x14], 4
call ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jns 0x408899
mov ebx, dword [edi]
mov ecx, esi
call fcn.00408af0
mov ecx, dword [ebp + 8]
push 0
push ecx
push ebx
lea edi, [esi + 0x4bc]
call fcn.0040cab0
test eax, eax
je 0x40894b
mov edx, dword [0x44924c]
mov eax, dword [edx + 0xc]
mov ecx, 0x44924c
call eax
add eax, 0x10
mov dword [ebp + 0xc], eax
push ebx
push str.SoundModeOnOutput_d
lea edi, [ebp + 0xc]
mov dword [ebp - 4], 0
call fcn.0040a990
mov edi, dword [ebp + 0xc]
mov eax, dword [esi + 0x460]
mov ecx, dword [ebp + 8]
add esp, 8
push 4
lea edx, [ebp + 8]
push edx
push 4
push 0
push edi
push eax
mov dword [ebp + 8], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov bl, 1
test eax, eax
je 0x408912
mov bl, byte [ebp - 0xd]
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408935
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x408af0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42391b
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x448090]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push esi
push edi
mov eax, dword [0x448090]
xor eax, esp
push eax
lea eax, [esp + 0x148]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 0x4bc]
mov ecx, edi
mov dword [esp + 0x1c], edi
call fcn.0040c8a0
test al, al
je 0x408cc7
xor ebx, ebx
mov dword [esp + 0x20], vtable.CMaxxAudioRegistryPreset.0
mov dword [esp + 0x28], ebx
mov dword [esp + 0x150], ebx
mov ecx, dword [esi + 0x488]
mov edx, ecx
and edx, 2
xor eax, eax
cmp dl, 2
jne 0x408b79
mov eax, 0x200
jmp 0x408b86
and ecx, 4
cmp cl, 4
jne 0x408b86
mov eax, 0x100
mov esi, dword [esi + 0x4a0]
lea ecx, [esp + 0x24]
push ecx
or eax, 0x20017
push eax
push ebx
push esi
push 0x80000002
mov dword [esp + 0x38], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x408cb0
call fcn.0040c7a0
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [esp + 0x18], ebx
nop
push 0x103
lea edx, [esp + 0x39]
push ebx
push edx
mov byte [esp + 0x40], bl
call fcn.00416250
add esp, 0xc
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x1c]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x48]
push edx
push eax
push ecx
mov dword [esp + 0x4c], 0x104
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp dword [esp + 0x14], ebx
jbe 0x408cb0
push 0xd
lea edx, [esp + 0x38]
push str.DefaultPreset
push edx
call fcn.004130c9
add esp, 0xc
test eax, eax
jne 0x408ca7
mov eax, dword [esp + 0x14]
push eax
call fcn.004116e5
add esp, 4
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x28]
push ebx
lea edx, [esp + 0x38]
push edx
mov esi, eax
push ebx
lea eax, [esp + 0x44]
push eax
push ecx
mov dword [esp + 0x2c], ebx
call edi
cmp dword [esp + 0x14], ebx
je 0x408c78
cmp esi, ebx
je 0x408c78
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x28]
push esi
lea eax, [esp + 0x38]
push eax
push ebx
lea ecx, [esp + 0x44]
push ecx
push edx
call edi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push ebx
push eax
push esi
push ecx
call fcn.0040bf90
test al, al
jne 0x408c9e
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push ebx
push edx
mov edx, esi
call fcn.0040c1f0
push esi
call fcn.00412106
add esp, 4
inc dword [esp + 0x18]
jmp 0x408bc0
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], vtable.CMaxxAudioRegistryPreset.0
cmp eax, ebx
je 0x408cc7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x148]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.004117c9
mov esp, ebp
pop ebp
ret
Function at 0x40c7a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [edi + 0x68]
cmp esi, dword [edi + 0x6c]
je 0x40c7c6
mov edi, edi
mov ecx, dword [esi]
test ecx, ecx
je 0x40c7be
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
add esi, 4
cmp esi, dword [edi + 0x6c]
jne 0x40c7b0
mov ecx, dword [edi + 0x6c]
mov esi, dword [edi + 0x68]
cmp esi, ecx
je 0x40c7ee
mov eax, ecx
sub eax, ecx
sar eax, 2
lea ebx, [eax*4]
push ebx
push ecx
push esi
call fcn.00411920
add esp, 0xc
add ebx, esi
mov dword [edi + 0x6c], ebx
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov word [edi + 0x28], 0
mov ecx, dword [edi + 0x30]
mov eax, dword [edi + 0x2c]
cmp eax, ecx
je 0x40c854
mov edx, dword [ebp - 4]
push edx
push ecx
call fcn.0040e0a0
mov ebx, dword [edi + 0x30]
add esp, 8
mov dword [ebp - 4], eax
mov esi, eax
cmp eax, ebx
je 0x40c851
cmp dword [esi + 0x14], 0x10
jb 0x40c839
mov eax, dword [esi]
push eax
call fcn.00411eda
mov eax, dword [ebp - 4]
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
add esi, 0x1c
cmp esi, ebx
jne 0x40c825
mov dword [edi + 0x30], eax
mov eax, dword [edi + 0x40]
mov ebx, dword [edi + 0x3c]
cmp ebx, eax
je 0x40c872
mov esi, eax
sub esi, eax
push esi
push eax
push ebx
call fcn.00411920
add esp, 0xc
add esi, ebx
mov dword [edi + 0x40], esi
lea ecx, [edi + 0x78]
xor esi, esi
mov eax, 0x43dab0
call fcn.004044b0
lea ecx, [edi + 4]
mov eax, 0x43dab0
call fcn.004044b0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40f8b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x30
mov eax, dword [0x448090]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 8]
push eax
push str.Param_u
lea edx, [esp + 0x14]
call fcn.0040d760
fld qword [ebp + 0xc]
mov eax, dword [esi + 4]
fstp qword [esp + 0xc]
add esp, 8
push 8
lea ecx, [esp + 8]
push ecx
push 3
push 0
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x2c]
neg eax
sbb eax, eax
xor ecx, esp
inc eax
call fcn.004117c9
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40f910
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x448090]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push edi
mov edi, ecx
mov esi, edx
test ebx, ebx
je 0x40f99e
push edi
push str.Param_u
lea edx, [ebp - 0x24]
call fcn.0040d760
add esp, 8
lea eax, [ebp - 0x28]
push eax
mov eax, dword [esi + 4]
push ebx
lea ecx, [ebp - 0x2c]
push ecx
push 0
lea edx, [ebp - 0x24]
push edx
push eax
mov dword [ebp - 0x28], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40f976
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004117c9
mov esp, ebp
pop ebp
ret
mov esi, dword [esi + 8]
test esi, esi
je 0x40f99c
push ebx
call fcn.0040ba30
xor ecx, ecx
test al, al
setne cl
pop edi
pop esi
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004117c9
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004117c9
mov esp, ebp
pop ebp
ret