joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4127c0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x4237f0
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x4127e4
add eax, 8
inc ebp
cmp eax, 0x423880
jb 0x4127d5
cmp ecx, dword [ebp*8 + 0x4237f0]
jne 0x41298b
mov eax, dword [0x424f94]
cmp eax, 1
je 0x41294d
test eax, eax
jne 0x412810
cmp dword [0x421330], 1
je 0x41294d
cmp ecx, 0xfc
je 0x41298b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41284b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x412894
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x41d534
add ebx, ecx
push ebx
call fcn.00416e00
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x41d514
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x4237f4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00416d70
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x4253c0]
test eax, eax
je 0x41295e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x412968
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x4237f4]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x416f00
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.004186d0
mov eax, dword [0x4254fc]
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
xor ebp, ebp
push esi
cmp ebx, eax
push edi
jae 0x417062
mov eax, ebx
mov ecx, ebx
sar eax, 5
and ecx, 0x1f
mov edx, dword [eax*4 + 0x4253c0]
test byte [edx + ecx*8 + 4], 1
je 0x417062
push 1
push ebp
push ebx
call fcn.0040cfa0
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x41706c
push 2
push ebp
push ebx
call fcn.0040cfa0
add esp, 0xc
cmp eax, 0xffffffff
je 0x41706c
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x417008
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call fcn.0040cc80
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x416faf
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.00411490
add esp, 0xc
cmp eax, 0xffffffff
je 0x416fcb
sub esi, eax
test esi, esi
jle 0x416fe1
jmp 0x416fa0
cmp dword [0x424f38], 5
jne 0x416fde
mov dword [0x424f34], 0xd
or ebp, 0xffffffff
push edi
push ebx
call fcn.0040cc80
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.0040cfa0
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
jge 0x417049
push 0
push ecx
push ebx
call fcn.0040cfa0
add esp, 0xc
push ebx
call fcn.00412c50
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ebp, eax
neg ebp
sbb ebp, ebp
neg ebp
dec ebp
cmp ebp, 0xffffffff
jne 0x417049
mov dword [0x424f34], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x424f38], eax
push 0
push edi
push ebx
call fcn.0040cfa0
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
mov dword [0x424f34], 9
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1004
ret
Function at 0x401100
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40111b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401152
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40114e
jmp 0x401140
cmp esi, eax
jae 0x401152
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401140
cmp esi, eax
jb 0x401159
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x403320
Capabilities:
Identify system language via api
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push 0x2001f
xor esi, esi
push str.SOFTWAREConexantSACpl
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call fcn.00403210
test eax, eax
jne 0x403399
mov ebx, dword [ebp - 0x18]
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 8]
push edx
push esi
push str.Language
mov edi, 4
push ebx
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x403380
cmp dword [ebp - 8], edi
jne 0x403380
movzx esi, word [ebp - 0xc]
test ebx, ebx
je 0x403392
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], 0
xor eax, eax
cmp ax, si
jne 0x4033c2
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx esi, ax
xor ecx, ecx
cmp cx, si
jne 0x4033c2
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx esi, ax
xor edx, edx
cmp dx, si
jne 0x4033c2
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx esi, ax
mov eax, esi
shr si, 0xa
movzx ecx, si
and eax, 0x3ff
or esi, 0xffffffff
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
or edi, esi
xor eax, eax
mov ecx, 0x52526e
mov dx, word [ebp - 0xc]
cmp dx, word [ecx - 2]
jne 0x403402
movzx edx, word [ecx]
cmp word [ebp - 8], dx
jne 0x4033f9
mov esi, eax
jmp 0x403402
xor ebx, ebx
cmp bx, dx
jne 0x403402
mov edi, eax
inc eax
add ecx, 0x14
cmp eax, 0x1d
jl 0x4033e2
cmp esi, 0xffffffff
je 0x403414
mov eax, esi
jmp 0x403420
mov eax, edi
cmp edi, 0xffffffff
jne 0x403420
mov eax, 7
mov dword [0x56f058], eax
lea eax, [eax + eax*4]
mov ecx, dword [eax*4 + 0x525278]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov dword [0x56f05c], ecx
pop ebx
test eax, eax
je 0x403446
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x403460
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push 0x20019
push 0
push esi
push edi
mov dword [ebp - 4], 1
call ebx
test eax, eax
je 0x4034ad
lea ecx, [ebp + 0xc]
push ecx
push 1
push 0
push esi
push edi
call ebx
test eax, eax
je 0x4034ad
xor eax, eax
pop edi
test eax, eax
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [ebp + 0x18]
lea edx, [ebp + 0x1c]
push edx
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp + 0x14]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4034d4
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop edi
test eax, eax
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret 0x18

Function at 0x4045c0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x5749c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x118
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.00500210
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x11c
call esi
test eax, eax
jne 0x40461a
lea edx, [ebp - 0x120]
push edx
mov dword [ebp - 0x120], 0x114
call esi
cmp dword [ebp - 0x110], 2
pop esi
jne 0x40463d
cmp dword [ebp - 0x11c], 6
jb 0x40463d
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff91b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
call fcn.004ff91b
mov esp, ebp
pop ebp
ret

Function at 0x404650
Capabilities:
Check if file exists

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
cmp eax, 2
jne 0x40466a
push str.One_of_the_files_necessary_to_run_the_application_couldnt_be_found._nThe_SmartAudio_application_needs_to_be_reinstalled.
call fcn.0040e76c
ret
cmp eax, 0x485
jne 0x40467c
push str.One_of_the_library_files_necessary_to_run_the_application_couldnt_be_found._nThe_SmartAudio_application_needs_to_be_reinstalled.
call fcn.0040e76c
ret
cmp eax, 8
jne 0x40468c
push str.There_is_not_enough_memory_to_perform_the_specified_action._nThe_SmartAudio_application_will_be_terminated.
call fcn.0040e76c
ret
push str.There_is_an_error_to_run_the_application._nThe_SmartAudio_application_will_be_terminated.
call fcn.0040e76c
ret
Function at 0x404710
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x674
mov eax, dword [0x5749c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x620], ecx
call fcn.004045c0
test al, al
je 0x4047c3
push 0x3c
lea eax, [ebp - 0x66c]
push 0
push eax
call fcn.00500210
add esp, 0xc
lea ecx, [ebp - 0x66c]
push ecx
mov dword [ebp - 0x664], 0
mov dword [ebp - 0x66c], 0x3c
mov dword [ebp - 0x668], 0x540
mov dword [ebp - 0x660], str.open
mov dword [ebp - 0x650], 1
mov dword [ebp - 0x658], ebx
mov dword [ebp - 0x65c], edi
mov dword [ebp - 0x654], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x404860
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff91b
mov esp, ebp
pop ebp
ret 0xc
push ebx
push edi
push str._s__s
lea edx, [ebp - 0x61c]
push 0x30c
push edx
call fcn.0050028a
add esp, 0x14
cmp eax, 0xffffffff
je 0x40486b
push 0x44
lea eax, [ebp - 0x674]
push 0
push eax
call fcn.00500210
add esp, 0xc
xor eax, eax
lea ecx, [ebp - 0x630]
push ecx
lea edx, [ebp - 0x674]
push edx
push esi
push eax
push 0x10
push eax
push eax
push eax
mov dword [ebp - 0x630], eax
mov dword [ebp - 0x62c], eax
mov dword [ebp - 0x628], eax
mov dword [ebp - 0x624], eax
lea eax, [ebp - 0x61c]
push eax
push 0
mov dword [ebp - 0x674], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x404860
mov ecx, dword [ebp - 0x630]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [ebp - 0x62c]
push edx
call esi
jmp 0x40486b
mov ecx, dword [ebp - 0x620]
call fcn.00404650
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.004ff91b
mov esp, ebp
pop ebp
ret 0xc

Function at 0x404960
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push 1
push 0
push esi
push edi
mov byte [ebp - 1], 0
call ebx
test eax, eax
je 0x40499a
lea ecx, [ebp + 0xc]
push ecx
push 0x101
push 0
push esi
push edi
call ebx
test eax, eax
jne 0x4049d4
mov eax, dword [ebp + 0x18]
lea edx, [ebp + 0x1c]
push edx
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp + 0x14]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov bl, 1
test eax, eax
je 0x4049bf
mov bl, byte [ebp - 1]
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x404b70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ecx + 0x558]
push ebx
lea eax, [ebp - 0xc]
push eax
push 0x20119
push 0
push ecx
xor bl, bl
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 1], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404c35
mov edx, dword [ebp - 0xc]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [ebp + 0x10]
lea ecx, [ebp - 8]
push ecx
push edi
push eax
push eax
push str.CplDirectory
mov ebx, 0x30c
push edx
mov dword [ebp - 8], ebx
call esi
test eax, eax
je 0x404bd9
push 0x5254ac
push ebx
push edi
call fcn.00500457
add esp, 0xc
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
push edi
push 0
push 0
push str.CplCmdArg
push ecx
mov dword [ebp - 8], ebx
call esi
test eax, eax
je 0x404c06
push 0x5254ac
push ebx
push edi
call fcn.00500457
add esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 8]
push edx
push eax
push 0
push 0
push str.CplExeFile
push ecx
mov dword [ebp - 8], ebx
call esi
pop edi
pop esi
mov bl, 1
test eax, eax
je 0x404c2b
mov bl, byte [ebp - 1]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x404c40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, ecx
mov eax, dword [esi + 0x558]
lea ecx, [ebp - 8]
push ecx
push 1
push 0
push eax
xor bl, bl
push SysReAllocStringLen
mov byte [ebp - 1], bl
call edi
test eax, eax
je 0x404c8d
mov eax, dword [esi + 0x558]
lea edx, [ebp - 8]
push edx
push 0x101
push 0
push eax
push SysReAllocStringLen
call edi
test eax, eax
jne 0x404ce2
mov eax, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [str.RunInTaskBar]
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [ebp - 0x14]
push edx
push 0
push eax
push ecx
mov dword [ebp - 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test ebx, ebx
jne 0x404ccd
cmp dword [ebp - 0xc], 1
jne 0x404ccd
mov byte [ebp - 1], 1
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x404da5
mov bl, byte [ebp - 1]
mov eax, dword [esi + 0x558]
lea ecx, [ebp - 8]
push ecx
push 1
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
je 0x404d15
mov esi, dword [esi + 0x558]
lea edx, [ebp - 8]
push edx
push 0x101
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call edi
mov dword [ebp - 0xc], 0
test eax, eax
jne 0x404d9c
mov ecx, dword [str.SmartAudioSettings]
mov edx, dword [ebp - 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
push ecx
push edx
mov dword [ebp - 0x14], 3
call edi
mov eax, dword [ebp - 0xc]
push eax
call fcn.0040bd70
mov ecx, dword [ebp - 0xc]
push ecx
mov esi, eax
push 0
push esi
call fcn.00500210
mov ecx, dword [str.SmartAudioSettings]
add esp, 0x10
lea edx, [ebp - 0xc]
push edx
mov edx, dword [ebp - 8]
push esi
lea eax, [ebp - 0x14]
push eax
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x404d85
test byte [esi + 2], 0x20
seta byte [ebp - 1]
mov bl, byte [ebp - 1]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x404d9c
push esi
call fcn.0040bd7b
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405ae0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x5749c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
mov edx, dword [edi]
or ecx, 0x2001f
push ecx
xor esi, esi
push eax
push edx
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x208], esi
call fcn.00403210
mov ebx, eax
cmp ebx, esi
je 0x405b5a
mov eax, dword [ebp - 0x210]
cmp eax, esi
je 0x405b45
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff91b
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x220]
push eax
mov eax, dword [ebp - 0x210]
push esi
push esi
push esi
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x204]
push edx
push esi
push eax
mov dword [ebp - 0x214], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x405bdc
mov edi, edi
lea ecx, [ebp - 0x204]
push ecx
lea ecx, [ebp - 0x210]
call fcn.00405ae0
mov ebx, eax
cmp ebx, esi
jne 0x405b34
lea edx, [ebp - 0x220]
push edx
mov edx, dword [ebp - 0x210]
push esi
push esi
push esi
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x204]
push ecx
push esi
push edx
mov dword [ebp - 0x214], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x405b90
mov eax, dword [ebp - 0x210]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
je 0x405bf5
push eax
call ebx
mov dword [ebp - 0x210], esi
mov eax, dword [ebp - 0x218]
push eax
mov ecx, edi
mov dword [ebp - 0x20c], esi
call fcn.00405340
mov edi, eax
mov eax, dword [ebp - 0x210]
cmp eax, esi
je 0x405c18
push eax
call ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ff91b
mov esp, ebp
pop ebp
ret 4
Function at 0x408cc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x516186
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x5749c8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor edx, edx
mov dword [ebp - 0x430], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], edx
mov dword [ebp - 0x418], edx
push 2
push edx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x420], esi
test esi, esi
jne 0x408d3d
call fcn.00405120
mov edi, eax
jmp 0x408e2d
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x408d56
call fcn.00405120
jmp 0x408e24
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x424], ebx
test ebx, ebx
jne 0x408d74
call fcn.00405120
jmp 0x408e24
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x41c], edi
cmp eax, edi
jae 0x408d95
mov edi, 0x8007000e
jmp 0x408e26
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.004064a0
mov dword [ebp - 4], 1
jmp 0x408dd8
mov eax, dword [ebp - 0x418]
test eax, eax
jne 0x408de9
mov edi, 0x8007000e
jmp 0x408e26
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x408e02
call fcn.00405120
jmp 0x408e24
mov edx, dword [ebp - 0x418]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x418]
push eax
push ecx
lea ecx, [ebp - 0x42c]
call fcn.00408410
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp - 0x414]
cmp dword [ebp - 0x418], edx
je 0x408e50
lea ecx, [ebp - 0x418]
call fcn.00405a80
jmp 0x408e50
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004ff91b
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40a710
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x516392
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5749c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [str.SmartAudio.exe]
push eax
lea ecx, [ebp - 0x10]
call fcn.00401f20
cmp byte [esi + 0x555], 0
mov dword [ebp - 4], 0
je 0x40a789
mov edi, dword [str.SmartAudio3.exe]
test edi, edi
jne 0x40a766
xor eax, eax
jmp 0x40a77f
mov eax, edi
lea edx, [eax + 2]
jmp 0x40a770
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a770
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x10]
call fcn.004019a0
cmp byte [esi + 0x552], 0
je 0x40a79b
push 1
mov ecx, esi
call fcn.0040a2f0
mov eax, dword [ebp - 0x10]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x14], esp
mov edi, esp
push eax
call fcn.00401690
add eax, 0x10
add esp, 4
mov ecx, esi
mov dword [edi], eax
call fcn.00409840
test al, al
jne 0x40a8ff
push 0x74
call fcn.0040bd41
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x40a7e2
mov ecx, eax
call fcn.00404db0
jmp 0x40a7e4
xor eax, eax
mov byte [ebp - 4], 0
mov dword [esi + 0x538], eax
test eax, eax
je 0x40a8ff
call fcn.0040f09a
call fcn.0040f09a
mov eax, dword [eax + 0xc]
push 0x80
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
push 0xa
push 0
push 0
push 0
push 0
push 0x81
mov ebx, eax
push ebx
push str.SmartAudio
push 0x8000
push 0
lea ecx, [esi + 0xb8]
call fcn.0040b150
test eax, eax
je 0x40a8ff
test ebx, ebx
je 0x40a8ff
mov ecx, esi
call fcn.004096a0
test al, al
je 0x40a8ff
mov ecx, dword [esi + 0x538]
push ecx
lea ecx, [esi + 0xb8]
call fcn.0040aee0
lea ecx, [esi + 0xb8]
call fcn.0040b300
mov edx, dword [0x56f0d8]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x53c], eax
test eax, eax
je 0x40a8b1
push 0
push 0
push 0
push 0
push esi
push 0x404550
call fcn.0040e404
mov dword [esi + 0x540], eax
mov dword [eax + 0x28], 0
mov eax, dword [str.SmartAudioLaunchDelayValue]
mov ecx, dword [str.SOFTWAREConexantSAII]
push 4
lea edi, [esi + 0x560]
push edi
push 0
push eax
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov ecx, esi
call fcn.00404960
test al, al
jne 0x40a8df
mov dword [edi], 0x7530
mov edx, dword [edi]
mov eax, dword [esi + 0x538]
mov ecx, dword [eax + 0x20]
push 0
push edx
push 1
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
mov edx, dword [esi]
mov eax, dword [edx + 0x54]
mov ecx, esi
call eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [ebp - 4], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a921
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret