joyce8/EMBER2024-capa huggingface dataset:
Function at 0x497810
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push esi
xor esi, esi
cmp dword [0x5c9e68], esi
mov dword [0x5c9e00], 0xaee0aee0
jne 0x497836
call fcn.004978d0
pop esi
mov esp, ebp
pop ebp
ret
push 0
lea eax, [esp + 8]
push eax
push 0
push 0x102
push 0
push 0
push 0
push 0x582c64
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4978a8
mov ecx, dword [esp + 4]
push 0x60
push 0x5c9e00
push 3
push eax
push str.RenProperties
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x49787f
lea esi, [eax + 1]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x4978a8
push 0
push 0xffffffffffffffff
push str.WriteRegistry_successful
mov ecx, 0x5c9e00
call fcn.00497b30
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0xffffffffffffffff
push str.WriteRegistry_failed
mov ecx, 0x5c9e00
call fcn.00497b30
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4978d0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x9c
mov eax, dword [0x5bc9cc]
xor eax, esp
mov dword [esp + 0x94], eax
push ebx
push ebp
push esi
push edi
push 1
push 0xffffffffffffffff
push str.Start_WriteService
mov ecx, 0x5c9e00
mov dword [esp + 0x1c], 0
call fcn.00497b30
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0
push 3
push 0
push 0
push 0x40000000
push str..pipeAERTAPOProperties
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4979dd
push 1
call ebp
push 0
push 0
push 3
push 0
push 0
push 0x40000000
push str..pipeAERTAPOProperties
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4979dd
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Cant_open_pipe:
mov ecx, 0x5c9e00
call fcn.00497b30
cmp dword [0x5c9e6c], 0
je 0x4979b0
mov dword [0x5c9e6c], 1
push 0
push 0xffffffffffffffff
push str.WriteService_failed
mov ecx, 0x5c9e00
call fcn.00497b30
mov ecx, dword [esp + 0xa4]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0052944d
add esp, 0x9c
ret
call fcn.004987d0
test eax, eax
je 0x497980
push 0x5dc
call ebp
push 0
push 0
push 3
push 0
push 0
push 0x40000000
push str..pipeAERTAPOProperties
call esi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x497980
test ebx, ebx
je 0x497980
push 0
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x20], 0xae0ae0ae
mov dword [esp + 0x24], 2
mov ecx, 0x18
mov esi, 0x5c9e00
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
push 0x88
lea ecx, [esp + 0x24]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x497a29
push 1
call ebp
mov dword [esp + 0x10], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], 0
je 0x497980
push 0
push 0xffffffffffffffff
push str.WriteService_successful
jmp 0x497989
Function at 0x497b30
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x138
mov eax, dword [0x5bc9cc]
xor eax, esp
mov dword [esp + 0x134], eax
mov eax, dword [esp + 0x13c]
push ebx
push ebp
mov ebp, dword [esp + 0x148]
mov ebx, ecx
cmp dword [ebx + 0x64], 0
push esi
push edi
mov dword [esp + 0x10], eax
je 0x497d45
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push str.C:Program_FilesAndrea_ElectronicsAEAPORen.log
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x497bb8
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push str.C:Program_FilesAndrea_ElectronicsAEAPORen.log
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x497d45
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x28
lea edx, [esp + 0x40]
push edx
push str.ddMMMyy
lea eax, [esp + 0x24]
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_GetDateFormatW]
lea eax, [esp + 0x3c]
lea edx, [eax + 2]
jmp 0x497bf0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x497bf0
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0x582c60
sub eax, edx
push 0x14
sar eax, 1
lea ecx, [esp + 0x70]
push ecx
add eax, 1
push eax
lea edx, [esp + 0x50]
push edx
push 0x400
push 0
call edi
push 0x28
lea eax, [esp + 0x40]
push eax
push str.HH:mm:ss
lea ecx, [esp + 0x24]
push ecx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
lea eax, [esp + 0x3c]
lea ecx, [eax + 2]
lea ebx, [ebx]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x497c50
push 0
push 0x582c60
sub eax, ecx
push 0x14
sar eax, 1
lea edx, [esp + 0x34]
push edx
add eax, 1
push eax
lea eax, [esp + 0x50]
push eax
push 0x400
push 0
call edi
add ebx, 0x74
cmp ebp, 0xffffffff
jne 0x497cb9
movzx edx, word [esp + 0x26]
mov ecx, dword [esp + 0x10]
push ecx
push edx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x70]
push ecx
push ebx
push str._s__s__s._i:__s_r_n
lea edx, [esp + 0x90]
push 0xc8
push edx
call fcn.0052b24c
add esp, 0x20
jmp 0x497cea
movzx ecx, word [esp + 0x26]
mov eax, dword [esp + 0x10]
push ebp
push eax
push ecx
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x74]
push eax
push ebx
push str._s__s__s._i:__s___i__r_n
lea ecx, [esp + 0x94]
push 0xc8
push ecx
call fcn.0052b24c
add esp, 0x24
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esp + 0x154], 0
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
je 0x497d18
push 0
lea edx, [esp + 0x18]
push edx
push 2
push 0x582e70
push esi
call edi
lea eax, [esp + 0x78]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x497d20
push 0
lea ecx, [esp + 0x18]
push ecx
sub eax, edx
push eax
lea edx, [esp + 0x84]
push edx
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x144]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0052944d
add esp, 0x138
ret 0xc
Function at 0x497d60
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x828
mov eax, dword [0x5bc9cc]
xor eax, esp
mov dword [esp + 0x824], eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push esi
lea eax, [esp + 0x10]
push eax
xor esi, esi
push 0x108
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionMMDevicesAudioRender
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x1c], esi
call ebx
test eax, eax
jne 0x497f6b
push ebp
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [esp + 0x20], esi
lea ebp, [esi + 4]
mov eax, dword [esp + 0x20]
push esi
push esi
push esi
push esi
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x448]
push edx
push eax
push ecx
mov dword [esp + 0x50], 0x200
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x497f3a
lea edx, [esp + 0x434]
push edx
lea eax, [esp + 0x38]
push 0x200
push eax
call fcn.0052a056
push str.Properties
lea ecx, [esp + 0x44]
push 0x200
push ecx
call fcn.0052a0c2
mov ecx, dword [esp + 0x30]
add esp, 0x18
lea edx, [esp + 0x10]
push edx
push 0x101
push 0
lea eax, [esp + 0x40]
push eax
push ecx
call ebx
test eax, eax
jne 0x497f42
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0
push str.b3f8fa53_0004_438e_9003_51a46e139bfc_6
push edx
mov dword [esp + 0x2c], 0x400
call edi
test eax, eax
jne 0x497e7b
lea eax, [esp + 0x34]
push 0x57d8ec
push eax
call fcn.00529c58
add esp, 8
test eax, eax
je 0x497e7b
mov esi, 1
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x497f42
push str.FXProperties
lea edx, [esp + 0x438]
push 0x200
push edx
call fcn.0052a0c2
mov edx, dword [esp + 0x24]
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0x101
push 0
lea ecx, [esp + 0x440]
push ecx
push edx
call ebx
test eax, eax
jne 0x497f42
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x2c]
push edx
push 0
push str.082C429A_5A10_48ea_BE3D_DBC80F014519_6
push eax
mov dword [esp + 0x2c], ebp
call edi
test eax, eax
jne 0x497f2d
mov ecx, dword [esp + 0x1c]
or dword [0x5c9e04], ecx
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0
push str.082C429A_5A10_48ea_BE3D_DBC80F014519_0
push edx
mov dword [esp + 0x44], 1
mov dword [esp + 0x2c], ebp
call edi
test eax, eax
jne 0x497f2d
mov eax, dword [esp + 0x1c]
or dword [0x5c9e08], eax
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x497f42
mov dword [esp + 0x28], 1
add dword [esp + 0x20], 1
xor esi, esi
cmp dword [esp + 0x28], esi
je 0x497db8
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x2c], esi
pop edi
pop ebp
je 0x497f6b
call fcn.00497810
mov ecx, dword [esp + 0x82c]
pop esi
pop ebx
xor ecx, esp
call fcn.0052944d
add esp, 0x828
ret
Function at 0x497f90
Capabilities:
Create thread
Resume thread

Disassembly:
cmp dword [0x5c9e8c], 0
jne 0x498005
push 0
push 4
push 0x5c9e00
push 0x497a50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [0x5c9e88], eax
jne 0x497fc5
mov dword [0x5c9e70], 1
ret
push 0
push 0
push 1
push 0
mov dword [0x5c9e70], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x5c9e8c], eax
mov eax, dword [0x5c9e88]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, dword [0x5c9e88]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
ret
Function at 0x4981c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x94
push esi
lea eax, [esp + 8]
push eax
push 0x20119
xor esi, esi
push esi
push 0x582c64
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x498363
push edi
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
push esi
push str.CapProperties
mov edi, 0x44
push ecx
mov dword [esp + 0x20], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x498237
cmp dword [esp + 8], edi
jne 0x498237
cmp dword [esp + 0x14], 0xaeaeaeae
jne 0x498237
test dword [esp + 0x2c], 0xfffffee0
jne 0x498237
lea esi, [edi - 0x43]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x498362
mov ecx, 0x11
mov esi, ebx
lea edi, [esp + 0x58]
rep movsd dword es:[edi], dword [esi]
push 0
mov ecx, 0x11
lea esi, [esp + 0x18]
mov edi, ebx
push 0xffffffffffffffff
rep movsd dword es:[edi], dword [esi]
push str.LoadFiltersInfo_successful
mov ecx, ebx
call fcn.00498820
cmp dword [esp + 0xa0], 0
je 0x498362
mov eax, dword [ebx + 0x44]
test eax, eax
je 0x498362
mov ecx, dword [esp + 0x18]
cmp ecx, dword [esp + 0x5c]
je 0x4982a0
mov edx, dword [ebx + 0x7c]
push edx
push ecx
push 0
call eax
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x60]
je 0x4982b6
mov ecx, dword [ebx + 0x7c]
mov edx, dword [ebx + 0x44]
push ecx
push eax
push 1
call edx
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x64]
je 0x4982cc
mov ecx, dword [ebx + 0x7c]
mov edx, dword [ebx + 0x44]
push ecx
push eax
push 2
call edx
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x68]
je 0x4982e2
mov ecx, dword [ebx + 0x7c]
mov edx, dword [ebx + 0x44]
push ecx
push eax
push 3
call edx
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x6c]
je 0x4982f8
mov ecx, dword [ebx + 0x7c]
mov edx, dword [ebx + 0x44]
push ecx
push eax
push 4
call edx
mov eax, dword [esp + 0x34]
cmp eax, dword [esp + 0x78]
je 0x49830e
mov ecx, dword [ebx + 0x7c]
mov edx, dword [ebx + 0x44]
push ecx
push eax
push 6
call edx
mov eax, dword [esp + 0x38]
cmp eax, dword [esp + 0x7c]
je 0x498324
mov ecx, dword [ebx + 0x7c]
mov edx, dword [ebx + 0x44]
push ecx
push eax
push 7
call edx
mov eax, dword [esp + 0x3c]
cmp eax, dword [esp + 0x80]
je 0x498349
mov esi, ebx
call fcn.00498e20
test eax, eax
je 0x498349
mov ecx, dword [ebx + 0x7c]
mov edx, dword [ebx + 0x44]
push ecx
push 0
push 8
call edx
mov eax, dword [esp + 0x40]
cmp eax, dword [esp + 0x84]
je 0x498362
mov ecx, dword [ebx + 0x7c]
mov edx, dword [ebx + 0x44]
push ecx
push eax
push 9
call edx
pop edi
pop esi
add esp, 0x94
ret 4
Function at 0x498410
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push esi
xor esi, esi
mov dword [edi], 0xaeaeaeae
cmp dword [0x5c9dd4], esi
jne 0x498434
mov ecx, edi
call fcn.004984c0
pop esi
mov esp, ebp
pop ebp
ret
push 0
lea eax, [esp + 8]
push eax
push 0
push 0x102
push 0
push 0
push 0
push 0x582c64
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4984a2
mov ecx, dword [esp + 4]
push 0x44
push edi
push 3
push eax
push str.CapProperties
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x498479
lea esi, [eax + 1]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x4984a2
push 0
push 0xffffffffffffffff
push str.WriteRegistry_successful
mov ecx, 0x5c9d80
call fcn.00498820
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0xffffffffffffffff
push str.WriteRegistry_failed
mov ecx, 0x5c9d80
call fcn.00498820
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4984c0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x9c
mov eax, dword [0x5bc9cc]
xor eax, esp
mov dword [esp + 0x94], eax
push ebx
push ebp
push esi
push edi
push 1
push 0xffffffffffffffff
mov esi, ecx
push str.Start_WriteService
mov ecx, 0x5c9d80
xor ebp, ebp
call fcn.00498820
call fcn.004985a0
mov ebx, eax
test ebx, ebx
jne 0x49850d
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.004985a0
mov ebx, eax
test ebx, ebx
je 0x498567
push 0
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x20], 0xae0ae0ae
mov dword [esp + 0x24], 1
mov ecx, 0x11
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
push 0x88
lea ecx, [esp + 0x24]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x498551
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ebp, 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
je 0x498567
push 0
push 0xffffffffffffffff
push str.WriteService_successful
jmp 0x498570
push 0
push 0xffffffffffffffff
push str.WriteService_failed
mov ecx, 0x5c9d80
call fcn.00498820
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.0052944d
add esp, 0x9c
ret
Function at 0x498820
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x138
mov eax, dword [0x5bc9cc]
xor eax, esp
mov dword [esp + 0x134], eax
mov eax, dword [esp + 0x13c]
push ebx
push ebp
mov ebx, ecx
cmp dword [ebx + 0x50], 0
push esi
push edi
mov dword [esp + 0x10], eax
je 0x498a58
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push str.C:AEFilters.log
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x4988a1
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push str.C:AEFilters.log
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x498a58
xor ebp, ebp
cmp dword [ebx + 4], ebp
je 0x4988ad
mov ebp, 1
cmp dword [ebx + 8], 0
je 0x4988b6
add ebp, 2
cmp dword [ebx + 0xc], 0
je 0x4988bf
add ebp, 4
cmp dword [ebx + 0x10], 0
je 0x4988c8
add ebp, 8
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x28
lea edx, [esp + 0x40]
push edx
push str.ddMMMyy
lea eax, [esp + 0x24]
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_GetDateFormatW]
lea eax, [esp + 0x3c]
lea edx, [eax + 2]
jmp 0x498900
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x498900
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0x582c60
sub eax, edx
push 0x14
sar eax, 1
lea ecx, [esp + 0x70]
push ecx
add eax, 1
push eax
lea edx, [esp + 0x50]
push edx
push 0x400
push 0
call edi
push 0x28
lea eax, [esp + 0x40]
push eax
push str.HH:mm:ss
lea ecx, [esp + 0x24]
push ecx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
lea eax, [esp + 0x3c]
lea ecx, [eax + 2]
lea ebx, [ebx]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x498960
push 0
push 0x582c60
sub eax, ecx
push 0x14
sar eax, 1
lea edx, [esp + 0x34]
push edx
add eax, 1
push eax
lea eax, [esp + 0x50]
push eax
push 0x400
push 0
call edi
mov ecx, dword [ebx + 0x18]
mov eax, dword [esp + 0x150]
mov edx, dword [esp + 0x10]
push ebp
add ebx, 0x60
cmp eax, 0xffffffff
push ecx
lea ecx, [esp + 0x30]
jne 0x4989d5
movzx eax, word [esp + 0x2e]
push edx
push eax
push ecx
lea edx, [esp + 0x78]
push edx
push ebx
push str._s__s__s._i:__s___i____i__r_n
lea eax, [esp + 0x98]
push 0xc8
push eax
call fcn.0052b24c
add esp, 0x28
jmp 0x4989fe
push eax
movzx eax, word [esp + 0x32]
push edx
push eax
push ecx
lea edx, [esp + 0x7c]
push edx
push ebx
push str._s__s__s._i:__s___i____i____i__r_n
lea eax, [esp + 0x9c]
push 0xc8
push eax
call fcn.0052b24c
add esp, 0x2c
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esp + 0x154], 0
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
je 0x498a2c
push 0
lea ecx, [esp + 0x18]
push ecx
push 2
push 0x582e70
push esi
call edi
lea eax, [esp + 0x78]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x498a33
sub eax, edx
push 0
lea edx, [esp + 0x18]
push edx
push eax
lea eax, [esp + 0x84]
push eax
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x144]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0052944d
add esp, 0x138
ret 0xc
Function at 0x498e20
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esi + 0x28]
sub esp, 0x10
push edi
xor edi, edi
test eax, eax
jne 0x498e32
pop edi
add esp, 0x10
ret
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x498ea5
add ecx, ecx
cmp ecx, eax
jne 0x498ea5
lea edx, [esp + 4]
push edx
push 0x20119
push 0
push str.SoftwareAndrea_ElectronicsAEAudioAPOSettings
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x498ea5
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 8]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push str.AEOpts
push eax
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x498e9a
mov ecx, dword [esp + 0xc]
not ecx
cmp ecx, dword [esi + 0x28]
jne 0x498e9a
lea edi, [eax + 1]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
add esp, 0x10
ret

Function at 0x498eb0
Capabilities:
Create thread
Resume thread

Disassembly:
cmp dword [0x5c9df8], 0
jne 0x498f25
push 0
push 4
push 0x5c9d80
push 0x498630
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [0x5c9df4], eax
jne 0x498ee5
mov dword [0x5c9ddc], 1
ret
push 0
push 0
push 1
push 0
mov dword [0x5c9ddc], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x5c9df8], eax
mov eax, dword [0x5c9df4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, dword [0x5c9df4]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
ret

Function at 0x499980
Capabilities:
Set registry value

Disassembly:
sub esp, 0x58
mov eax, dword [0x5bc9cc]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
mov edi, edx
test edi, edi
mov esi, ecx
je 0x499a78
fld qword [esp + 0x68]
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
fstp qword [esp + 0x20]
push esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
lea eax, [esp + 0x40]
push str.Param_u
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x24], esi
call fcn.0052b1d1
fld qword [esp + 0x74]
mov eax, dword [edi + 0x14c]
fstp qword [esp + 0x40]
add esp, 0xc
push 8
lea ecx, [esp + 0x38]
push ecx
push 3
push 0
lea edx, [esp + 0x4c]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call fcn.00499680
test eax, eax
jl 0x499a1d
fld qword [esp + 0x68]
sub esp, 8
mov ebx, eax
fstp qword [esp]
call fcn.00499700
mov eax, dword [edi + 0x148]
test eax, eax
je 0x499a2f
movzx eax, byte [eax]
cmp eax, 3
je 0x499a36
mov ecx, edi
call fcn.0049e080
mov eax, dword [edi + 0x148]
test eax, eax
je 0x499a48
movzx eax, byte [eax]
cmp eax, 3
je 0x499a53
mov esi, edi
call fcn.0049dc40
test eax, eax
je 0x499a78
push 0x20
lea ebx, [esp + 0x14]
mov esi, edi
call fcn.0049df60
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0052944d
add esp, 0x58
ret
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor al, al
call fcn.0052944d
add esp, 0x58
ret
Function at 0x499a90
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x2c
mov eax, dword [0x5bc9cc]
xor eax, esp
mov dword [esp + 0x28], eax
test esi, esi
je 0x499af9
test edi, edi
je 0x499af9
mov eax, dword [esp + 0x30]
push eax
lea ecx, [esp + 0xc]
push str.Param_u
push ecx
call fcn.0052b1d1
add esp, 0xc
lea edx, [esp]
push edx
mov edx, dword [esi + 0x14c]
push edi
lea eax, [esp + 0xc]
push eax
push 0
lea ecx, [esp + 0x18]
push ecx
push edx
mov dword [esp + 0x18], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb eax, eax
add eax, 1
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0052944d
add esp, 0x2c
ret
mov ecx, dword [esp + 0x28]
xor ecx, esp
xor al, al
call fcn.0052944d
add esp, 0x2c
ret

Function at 0x499b10
Capabilities:
Set registry value

Disassembly:
sub esp, 0x34
mov eax, dword [0x5bc9cc]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x3c]
push ebx
push ebp
mov ebp, dword [esp + 0x40]
push esi
push edi
mov edi, ecx
test edi, edi
mov dword [esp + 0x10], eax
je 0x499c80
xor esi, esi
mov ecx, dword [ebp + esi*4]
push ecx
lea edx, [esp + 0x20]
push str.Param_u
push edx
call fcn.0052b1d1
mov eax, dword [esp + 0x1c]
fld qword [eax + esi*8]
mov eax, dword [edi + 0x14c]
add esp, 0xc
fstp qword [esp + 0x14]
push 8
lea ecx, [esp + 0x18]
push ecx
push 3
push 0
lea edx, [esp + 0x2c]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [edi + 0x188]
test ecx, ecx
mov ebx, dword [ebp + esi*4]
je 0x499bc5
xor edx, edx
mov eax, ebx
div dword [edi + 0x190]
mov edx, dword [ecx + edx*4]
test edx, edx
je 0x499bc5
cmp dword [edx + 0xc], ebx
jne 0x499ba1
cmp dword [edx], ebx
je 0x499baa
mov edx, dword [edx + 8]
test edx, edx
jne 0x499b98
jmp 0x499bc5
mov edx, dword [edx + 4]
test edx, edx
jl 0x499bc5
mov ecx, dword [esp + 0x10]
fld qword [ecx + esi*8]
sub esp, 8
mov ebx, edx
fstp qword [esp]
call fcn.00499700
add esi, 1
cmp esi, 5
jb 0x499b3a
mov eax, dword [edi + 0x148]
test eax, eax
je 0x499be3
movzx eax, byte [eax]
cmp eax, 3
je 0x499bea
mov ecx, edi
call fcn.0049e080
mov eax, dword [edi + 0x148]
test eax, eax
je 0x499bfc
movzx eax, byte [eax]
cmp eax, 3
je 0x499c07
mov esi, edi
call fcn.0049dc40
test eax, eax
je 0x499c80
mov ebx, dword [edi + 0x148]
add ebx, 1
je 0x499c5e
mov eax, dword [esp + 0x10]
mov dword [ebx], 3
mov dword [ebx + 8], 5
mov edx, dword [ebp]
mov dword [ebx + 0x10], edx
fld qword [eax]
fstp qword [ebx + 0x18]
mov ecx, dword [ebp + 4]
mov dword [ebx + 0x20], ecx
fld qword [eax + 8]
fstp qword [ebx + 0x28]
mov edx, dword [ebp + 8]
mov dword [ebx + 0x30], edx
fld qword [eax + 0x10]
fstp qword [ebx + 0x38]
mov ecx, dword [ebp + 0xc]
mov dword [ebx + 0x40], ecx
fld qword [eax + 0x18]
fstp qword [ebx + 0x48]
mov edx, dword [ebp + 0x10]
mov dword [ebx + 0x50], edx
fld qword [eax + 0x20]
fstp qword [ebx + 0x58]
push 0x60
mov esi, edi
call fcn.0049df60
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0052944d
add esp, 0x34
ret
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor al, al
call fcn.0052944d
add esp, 0x34
ret