joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10094da
Capabilities:
Allocate thread local storage
Create thread
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 2
pop esi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x101c214], eax
je 0x100ac24
push edi
mov edi, 0x80000000
push edi
push 0x101c2fc
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
je 0x100ac2c
push ebx
call fcn.0100881b
call dword [sym.imp.ADVAPI32.dll_RegDisablePredefinedCache]
lea eax, [ebp - 4]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x1009680
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1009548
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 4
lea eax, [ebp - 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
push ebx
push 0x10082f2
push 0x1009670
call dword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerExW]
cmp eax, ebx
mov dword [0x101c234], eax
je 0x100ac34
push 1
call fcn.01008f95
cmp eax, 1
mov dword [0x101c238], eax
jne 0x100963b
mov edi, str.Spooler_exiting
push edi
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OpenEventW]
call esi
cmp eax, ebx
jne 0x100ac3f
push 0x1009648
push ebx
xor esi, esi
inc esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, ebx
mov dword [0x101c21c], eax
je 0x100ac6f
push 0x88
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
je 0x1009642
mov ecx, eax
call fcn.01009b29
mov ecx, eax
mov dword [0x101c218], eax
call fcn.010089ac
test eax, eax
jl 0x10095f6
mov ecx, dword [0x101c218]
call fcn.01009cc9
call fcn.01009691
cmp eax, ebx
jne 0x100ac84
push esi
call fcn.01008f95
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [0x101c234]
push 0x1008426
push 0x10000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x100ac76
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 2
call fcn.01008f95
pop ebx
pop edi
pop esi
leave
ret 8
xor eax, eax
jmp 0x10095db
push 3
pop eax
jmp 0x100963d
push 3
pop eax
jmp 0x100963c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push eax
push ebx
jmp 0x100ac87
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
call fcn.01008f95
cmp eax, 1
mov dword [0x101c238], eax
jne 0x100963b
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
push ebx
push 2
jmp 0x100959d
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x1009634
push ebx
push eax
push esi
call fcn.0100cf52
jmp 0x100963b
Function at 0x100a0dc
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov dword [ebp - 4], edi
je 0x100a158
cmp dword [ebp + 0xc], edi
je 0x100a158
cmp dword [ebp + 0x10], edi
je 0x100a158
lea eax, [ebp - 4]
push eax
push 0x20019
push edi
push dword [0x101d0b0]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
call fcn.0100824d
mov esi, eax
cmp esi, edi
jl 0x100a150
push dword [ebp + 0x10]
lea eax, [ebp - 8]
push dword [ebp + 0xc]
push eax
push edi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
call fcn.0100824d
mov esi, eax
cmp esi, edi
jge 0x100b167
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
leave
ret 0x10
mov esi, 0x80004003
jmp 0x100a150
mov eax, dword [ebp + 0x14]
cmp eax, edi
je 0x100a147
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
jmp 0x100a147

Function at 0x100cb39
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
push 4
pop esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor edi, edi
push edi
push str.SystemWPAPrintServer
push 0x80000002
mov dword [ebp - 4], edi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100cba6
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push edi
push str.Disabled
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100cb9d
cmp dword [ebp - 8], esi
jne 0x100cb9d
cmp dword [ebp - 0xc], 1
jne 0x100cb9d
inc edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x100cbb1
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
lea eax, [ebp - 4]
push eax
xor esi, esi
push 0x20019
push esi
push 0x100cc48
push 0x80000002
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], 4
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
cmp edi, esi
jne 0x100cc0a
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x100cc2c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp dword [ebp - 4], esi
je 0x100cc18
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
je 0x100cc1f
mov dword [ebp - 8], esi
xor eax, eax
cmp dword [ebp - 8], 1
pop edi
setne al
pop esi
leave
ret
Function at 0x100e191
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x100e1dd
cmp word [eax], 0
je 0x100e1dd
push esi
push eax
call sub.SPOOLSS.DLL_AllocSplStr
mov esi, eax
test esi, esi
je 0x100e1dc
lea eax, [ebp + 8]
push eax
push 0
push esi
push 0x100e16f
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x100e1d6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100e1dc
push esi
call sub.SPOOLSS.DLL_DllFreeSplStr
pop esi
pop ebp
ret 4

Function at 0x1010cb9
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push 0x1010ce4
push dword [eax + 0xc]
call dword [sym.imp.msvcrt.dll__stricmp]
test eax, eax
pop ecx
pop ecx
jne 0x1010cdd
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
xor eax, eax
pop ebp
ret 4

Function at 0x10148fc
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x101490f
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x101490b
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x1014930
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x101496f
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x1014965
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x1014971
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x1014955
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x403870
Capabilities:
Read .ini file

Disassembly:
push 0x47b158
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [0x480960]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
ret
Function at 0x40511f
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40518a
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push edi
mov edi, 0x400
jmp 0x405160
lea eax, [ebp - 0x404]
push eax
push dword [ebp - 4]
call fcn.0040511f
test eax, eax
pop ecx
pop ecx
jne 0x405173
push edi
lea eax, [ebp - 0x404]
push eax
push 0
push dword [ebp - 4]
call esi
test eax, eax
je 0x40514b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
pop esi
leave
ret

Function at 0x40518c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
cmp dword [0x47b49c], 0
mov eax, 0x100
mov dword [ebp - 8], eax
jne 0x4051d6
cmp byte [ecx], 0
je 0x4051d6
push edi
push ecx
push 0x4683c8
lea edi, [ebp - 0x10c]
call fcn.0040258b
pop ecx
pop ecx
lea eax, [ebp - 4]
push eax
mov eax, edi
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
pop edi
je 0x4051da
xor eax, eax
leave
ret
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor esi, esi
test eax, eax
jne 0x40524a
inc esi
cmp dword [ebp - 0xc], esi
jne 0x405248
lea eax, [ebp - 0x10c]
push str.Winamp.File
push eax
call sub.NSCRT.dll_strcmp
test eax, eax
pop ecx
pop ecx
je 0x40524a
lea eax, [ebp - 0x10c]
push str.Winamp.PlayList
push eax
call sub.NSCRT.dll_strcmp
test eax, eax
pop ecx
pop ecx
je 0x40524a
lea eax, [ebp - 0x10c]
push str.Winamp.SkinZip
push eax
call sub.NSCRT.dll_strcmp
test eax, eax
pop ecx
pop ecx
je 0x40524a
xor esi, esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x40572d
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1f8
push edi
xor edi, edi
cmp dword [0x47b49c], edi
jne 0x4058a6
cmp dword [ebp + 0x14], edi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jne 0x4057f1
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x405792
push dword [ebp + 8]
call ebx
inc eax
push eax
push dword [ebp + 8]
push 1
push edi
push str.Content_Type
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 8]
mov eax, 0x104
push str.MIMEDatabaseContent_Type_s
lea edi, [ebp - 0x1f8]
call fcn.0040258b
pop ecx
pop ecx
lea eax, [ebp - 4]
push eax
mov eax, edi
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4057f1
push str.CLSID
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp + 0x10]
call ebx
inc eax
push eax
push dword [ebp + 0x10]
push 1
push 0
push str.Extension
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push str.SoftwareNetscapeNetscape_NavigatorViewers
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4058a4
push dword [ebp + 0xc]
call ebx
inc eax
push eax
push dword [ebp + 0xc]
push 1
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call esi
and dword [ebp - 8], 0
push dword [ebp - 8]
lea edi, [ebp - 0x74]
push str.TYPE_d
push 0x64
pop eax
mov dword [ebp - 0xc], 0x80
call fcn.0040258b
pop ecx
pop ecx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0xf4]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push dword [ebp + 8]
jne 0x405887
lea eax, [ebp - 0xf4]
push eax
call sub.NSCRT.dll_strcmp
test eax, eax
pop ecx
pop ecx
je 0x40589b
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x3e7
jl 0x405827
jmp 0x40589b
call ebx
inc eax
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x74]
push 1
push 0
push eax
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop edi
leave
ret
Function at 0x405ca5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push edi
push 0x40
pop ecx
xor eax, eax
mov word [ebp - 0x10c], 0x22
lea edi, [ebp - 0x10a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0xfc
lea eax, [ebp - 0x10b]
push eax
push dword [0x480940]
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x405cfe
lea eax, [ebp - 4]
push eax
push str.AudioCD_shellplaycommand
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x405d02
xor eax, eax
jmp 0x405d60
push 0x468010
push 0x104
lea eax, [ebp - 0x10c]
push eax
call fcn.0040380b
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x210]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 4]
mov dword [ebp - 8], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405d55
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x405d55
xor ebx, ebx
inc ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop edi
pop ebx
leave
ret
Function at 0x405d64
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
push edi
push 0x40
pop ecx
xor eax, eax
mov word [ebp - 0x110], 0x22
lea edi, [ebp - 0x10e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0xfc
lea eax, [ebp - 0x10f]
push eax
push dword [0x480940]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x405f6e
push esi
push 0x468010
mov esi, 0x104
push esi
lea eax, [ebp - 0x110]
push eax
call fcn.0040380b
lea eax, [ebp - 4]
push eax
push str.AudioCD_shellplaycommand
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x405f6d
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
xor ebx, ebx
push ebx
push ebx
push ebx
push dword [ebp - 4]
mov dword [ebp - 8], esi
call edi
cmp dword [ebp + 8], ebx
je 0x405eaa
test eax, eax
lea eax, [ebp - 0x110]
push eax
jne 0x405f47
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.NSCRT.dll__stricmp]
test eax, eax
pop ecx
pop ecx
je 0x405f63
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x318]
push eax
push ebx
mov dword [ebp - 0xc], esi
push ebx
mov esi, str.Winamp_Back
push esi
push dword [ebp - 4]
call edi
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jne 0x405e67
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.NSCRT.dll__stricmp]
test eax, eax
pop ecx
pop ecx
je 0x405e86
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x214]
push eax
push 1
push ebx
push esi
push dword [ebp - 4]
call edi
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x110]
push eax
push 1
push ebx
push ebx
push dword [ebp - 4]
call edi
jmp 0x405f63
test eax, eax
jne 0x405f63
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x214]
push eax
call sub.NSCRT.dll_strcmp
test eax, eax
pop ecx
pop ecx
jne 0x405f63
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push ebx
mov dword [ebp - 8], esi
push ebx
mov esi, str.Winamp_Back
push esi
push dword [ebp - 4]
call edi
test eax, eax
lea eax, [ebp - 0x110]
push eax
jne 0x405f41
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.NSCRT.dll__stricmp]
test eax, eax
pop ecx
pop ecx
jne 0x405f0e
mov byte [ebp - 0x214], bl
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x214]
push eax
push 1
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x405f63
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x405f63
mov byte [ebp - 0x110], bl
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x110]
push eax
push 1
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop esi
pop edi
leave
ret
Function at 0x405f9b
Capabilities:
Create process on windows
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
push esi
push edi
xor eax, eax
push 0x10
pop ecx
lea edi, [ebp - 0x54]
mov dword [ebp - 0x58], 0x44
rep stosd dword es:[edi], eax
xor esi, esi
cmp dword [0x47b49c], esi
mov dword [ebp - 0x14], esi
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
jne 0x406083
push ebx
push 0x104
lea eax, [ebp - 0x15f]
push eax
push dword [0x480940]
mov byte [ebp - 0x160], 0x22
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push str.a.exe_
lea eax, [ebp - 0x160]
push eax
call edi
lea eax, [ebp + eax - 0x160]
push eax
mov ebx, 0x467ff8
lea eax, [ebp - 0x15f]
call fcn.00411743
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 4]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
pop ebx
jne 0x406067
lea eax, [ebp - 0x160]
push eax
call edi
inc eax
push eax
lea eax, [ebp - 0x160]
push eax
push 1
push esi
push str.WinampAgent
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x160]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
leave
ret

Function at 0x406087
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x47b49c], 0
jne 0x4060e1
push 0
push str.WinampAgentMain
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x4060b2
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [ebp - 4]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4060e1
push str.WinampAgent
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x406449
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb54
push dword [ebp + 8]
lea eax, [ebp - 0x354]
push dword [ebp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x40646f
and dword [eax], 0
push ebx
push esi
push edi
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x354]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x40660b
mov esi, dword [0x473f00]
lea eax, [ebp - 0x11c]
push eax
push dword [ebp + 0x1c]
lea eax, [ebp - 0x354]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea eax, [ebp - 0x354]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
xor edi, edi
cmp ebx, edi
mov dword [ebp - 4], ebx
je 0x4065ea
cmp dword [ebp + 0x2c], edi
je 0x40651b
push str.GetAudioTypes3
push ebx
call esi
mov edi, eax
test edi, edi
je 0x4065e1
lea eax, [ebp - 0x754]
push eax
push 0
call edi
pop ecx
xor ebx, ebx
pop ecx
inc ebx
jmp 0x406512
push eax
lea eax, [ebp - 0x754]
push eax
mov eax, dword [ebp + 0x2c]
push dword [eax + 4]
call dword [eax]
lea eax, [ebp - 0x754]
push eax
push ebx
call edi
add esp, 0x14
inc ebx
test eax, eax
jne 0x4064f4
jmp 0x4065e1
push str.ExtAudio3
push ebx
call esi
cmp eax, edi
je 0x406534
push edi
push edi
push dword [0x47b6c8]
call eax
add esp, 0xc
push str.CreateAudio3
push ebx
call esi
cmp dword [ebp + 0x20], 0
mov edi, eax
jne 0x406575
push str.ConfigAudio3
push ebx
call esi
test eax, eax
je 0x4065e1
mov ecx, dword [ebp + 0x30]
test ecx, ecx
jne 0x406560
mov ecx, 0x47b158
push ecx
push dword [ebp + 0x18]
push ebx
push dword [ebp + 0x28]
call eax
add esp, 0x10
test eax, eax
jne 0x406614
cmp dword [ebp + 0x20], 1
jne 0x4065a7
test edi, edi
je 0x4065e1
mov eax, dword [ebp + 0x30]
test eax, eax
jne 0x40658b
mov eax, 0x47b158
push eax
lea eax, [ebp + 0x18]
push eax
push 0x204d4350
push dword [ebp + 0xc]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call edi
add esp, 0x18
test eax, eax
jne 0x406614
cmp dword [ebp + 0x20], 2
jne 0x4065e1
push str.GetAudioTypes3
push ebx
call esi
mov edi, eax
test edi, edi
je 0x4065e1
lea eax, [ebp - 0xb54]
push eax
push 0
call edi
xor ebx, ebx
inc ebx
jmp 0x4065db
cmp eax, dword [ebp + 0x18]
je 0x406612
lea eax, [ebp - 0xb54]
push eax
push ebx
call edi
inc ebx
test eax, eax
pop ecx
pop ecx
jne 0x4065cb
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x406498
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
xor eax, eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x24]
mov dword [edx], ecx
jmp 0x40660d
Function at 0x40661e
Capabilities:
Get common file path
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp byte [0x476bd8], bl
push edi
mov edi, 0x476bd8
jne 0x4066ab
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406697
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
push ebx
push str.CommonFilesDir
push dword [ebp - 4]
mov dword [ebp - 8], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40667c
cmp dword [ebp - 0xc], 1
je 0x406682
mov byte [0x476bd8], bl
push 0x468c5c
push edi
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [0x476bd8], bl
jne 0x4066ab
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 0x475f80
push dword [esi]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.enc_.dll
call fcn.00406449
add esp, 0x2c
cmp eax, ebx
jne 0x406724
push 0x47b158
push ebx
push str.scannsv
push dword [0x480960]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
je 0x406722
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push edi
push dword [esi]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.nsv_coder_.dll
call fcn.00406449
add esp, 0x2c
cmp eax, ebx
jne 0x406724
xor eax, eax
pop edi
pop ebx
leave
ret