joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40796e
Capabilities:
Create thread

Disassembly:
mov eax, 0x4c6c9d
call fcn.0049911c
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
lea eax, [edi + 4]
mov dword [edi], vtable.ThreadPool.0
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea esi, [edi + 0x1c]
mov byte [ebp - 4], 1
mov ecx, esi
mov dword [ebp - 0x14], esi
call fcn.00406879
mov dword [esi], vtable.nu::PtrList_class_ThreadID_.0
push 4
mov byte [ebp - 4], 2
lea eax, [edi + 0x2c]
pop ecx
mov dword [eax], ebx
lea eax, [eax + 0xc]
mov dword [eax - 8], ebx
mov dword [eax - 4], ebx
sub ecx, 1
jne 0x4079b8
push 1
lea ecx, [edi + 0x74]
call fcn.00406fb2
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
lea esi, [edi + 0xc4]
push 4
mov byte [ebp - 4], 3
pop edi
xor eax, eax
push eax
push eax
push 1
push eax
mov dword [esi - 0x60], eax
call ebx
mov dword [esi], eax
lea esi, [esi + 4]
sub edi, 1
jne 0x4079e5
xor eax, eax
push eax
push eax
push 1
push eax
call ebx
mov edi, dword [ebp - 0x10]
xor ebx, ebx
mov esi, ebx
mov dword [edi + 0x5c], eax
push esi
mov ecx, edi
call fcn.00407bab
inc esi
cmp esi, 2
jl 0x407a0e
push ebx
push ebx
push edi
push 0x40800f
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0xc]
mov dword [edi + 0x60], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4084cf
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8000c
call fcn.004990f0
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push edi
push esi
push 1
xor ebx, ebx
push 3
push eax
mov dword [ebp - 0xc], ebx
mov byte [ebp - 5], bl
mov word [ebp - 4], bx
mov byte [ebp - 2], bl
call fcn.004a371a
add esp, 0x10
cmp eax, 1
jne 0x408521
cmp byte [ebp - 4], 0xef
jne 0x408521
cmp byte [ebp - 3], 0xbb
jne 0x408521
cmp byte [ebp - 2], 0xbf
jne 0x408521
mov byte [ebp - 5], al
jmp 0x408636
push ebx
push ebx
push esi
call fcn.004a3b2c
push esi
push 1
lea eax, [ebp - 4]
push 2
push eax
call fcn.004a371a
add esp, 0x1c
cmp eax, 1
jne 0x40862b
cmp byte [ebp - 4], 0xff
jne 0x40862b
cmp byte [ebp - 3], 0xfe
jne 0x40862b
push 0x80000
lea eax, [ebp - 0x8000c]
push ebx
push eax
call fcn.0049a3b0
push esi
lea edi, [ebp - 0x8000c]
mov ebx, 0x400
mov eax, edi
push ebx
push eax
call fcn.004a323b
push esi
call fcn.004a34dc
add esp, 0x1c
jmp 0x408612
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0xc]
jne 0x408591
sub ecx, edx
sar ecx, 1
cmp word [edi + ecx*2 - 2], 0xa
jne 0x4085c5
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0xc]
jne 0x4085ae
sub ecx, edx
sar ecx, 1
xor eax, eax
mov word [edi + ecx*2 - 2], ax
push 0x4cbf10
push 0x40000
push edi
call fcn.0040ad38
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0xc]
jne 0x4085da
sub ecx, edx
sar ecx, 1
lea edi, [edi + ecx*2]
mov eax, edi
lea ecx, [ebp - 0x8000c]
sub eax, ecx
and eax, 0xfffffffe
cmp eax, 0x80000
jg 0x40861a
push esi
push ebx
push edi
call fcn.004a323b
push esi
call fcn.004a34dc
add esp, 0x10
test eax, eax
je 0x40858c
lea eax, [ebp - 0x8000c]
push eax
call fcn.004a1860
jmp 0x4086de
push ebx
push ebx
push esi
call fcn.004a3b2c
add esp, 0xc
push 0x40000
lea eax, [ebp - 0x4000c]
push ebx
push eax
call fcn.0049a3b0
push esi
lea edi, [ebp - 0x4000c]
mov eax, edi
push 0x400
push eax
call fcn.004a3230
push esi
call fcn.004a34dc
add esp, 0x1c
test eax, eax
jne 0x4086c3
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
call ebx
cmp byte [eax + edi - 1], 0xa
jne 0x408682
push edi
call ebx
xor ecx, ecx
mov byte [eax + edi - 1], cl
push 0x4cbf18
push 0x40000
push edi
call fcn.0040acbc
push edi
call ebx
add edi, eax
lea ecx, [ebp - 0x4000c]
mov eax, edi
sub eax, ecx
cmp eax, 0x40000
jg 0x4086c1
push esi
push 0x400
push edi
call fcn.004a3230
push esi
call fcn.004a34dc
add esp, 0x10
test eax, eax
je 0x40866f
xor ebx, ebx
cmp byte [ebp - 5], 0
lea eax, [ebp - 0x4000c]
je 0x4086d6
push 0xfde9
jmp 0x4086d7
push ebx
push eax
call fcn.00405018
pop ecx
pop ecx
pop edi
pop esi
mov dword [0x4ff0dc], eax
pop ebx
leave
ret
Function at 0x4092b5
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x4ff0ec], 0
push esi
mov esi, ecx
je 0x4092cc
xor al, al
jmp 0x409353
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [esi]
mov dword [ebp - 4], eax
push dword [esi + 0x14]
call fcn.004174f7
pop ecx
pop ecx
push dword [esi + 0x748]
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
test edi, edi
je 0x409335
mov eax, dword [0x4ff0f0]
test eax, eax
je 0x40930e
push 0
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectPalette]
push edi
call dword [sym.imp.GDI32.dll_RealizePalette]
push 0xcc0020
xor eax, eax
push eax
push eax
push dword [esi]
push dword [esi + 0x10]
push dword [esi + 0xc]
push eax
push eax
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
push edi
push dword [esi + 0x748]
call dword [sym.imp.USER32.dll_ReleaseDC]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
push 0x1c
pop ecx
cmp eax, ecx
push 0x1e
cmova eax, ecx
pop ecx
sub ecx, eax
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], ecx
mov al, 1
pop esi
leave
ret 4
Function at 0x40b525
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
mov edx, 0x4d8180
push esi
push edi
lea edi, [ecx + 0x5c]
xor ecx, ecx
mov eax, dword [edi + ecx*4]
cmp eax, dword [edx + ecx*4]
jne 0x40b6eb
inc ecx
cmp ecx, 4
jne 0x40b53a
push 0x5019f8
push 0
push 0x4cc24c
push 0x4cbf1c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 0x400
mov byte [0x5050f1], al
lea eax, [ebp - 0x400]
push 0
push eax
call fcn.0049a3b0
add esp, 0xc
mov esi, 0x4d758c
push 0x501c00
push 0x10
push edi
push 0x4cc25c
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructA]
test eax, eax
je 0x40b5b4
xor ecx, ecx
mov edx, 0x4d8180
mov eax, dword [edi + ecx*4]
cmp eax, dword [edx + ecx*4]
jne 0x40b6fc
inc ecx
cmp ecx, 4
jne 0x40b5a2
lea eax, [ebp - 0x400]
push eax
push 0
call fcn.0047b669
cmp word [ebp - 0x400], 0
pop ecx
pop ecx
je 0x40b5fe
push 0
push esi
call fcn.00405018
pop ecx
pop ecx
mov esi, eax
lea eax, [ebp - 0x400]
push 0x5019f8
push eax
push 0x4cc260
push esi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push esi
call fcn.004a1b5f
pop ecx
mov esi, 0x4d758c
push 0x501c00
push 0x10
push edi
push 0x4cc25c
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructA]
test eax, eax
je 0x40b62f
xor ecx, ecx
mov edx, 0x4d8180
mov eax, dword [edi + ecx*4]
cmp eax, dword [edx + ecx*4]
jne 0x40b6fc
inc ecx
cmp ecx, 4
jne 0x40b61d
push edi
call dword [sym.imp.RPCRT4.dll_UuidCreate]
push 0x501c00
push 0x10
push edi
push 0x4cc25c
push esi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStructA]
push 0
push esi
call fcn.00405018
pop ecx
pop ecx
push 0x5019f8
push 0x200
mov esi, eax
lea eax, [ebp - 0x400]
push eax
push 0x4cada0
push 0x4cc260
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push esi
call fcn.004a1b5f
lea eax, [ebp - 0x400]
push eax
push 1
call fcn.0047b669
mov al, 1
add esp, 0xc
mov byte [0x5050f1], al
mov esi, 0x4d758c
test al, al
jne 0x40b6eb
push 0
push esi
mov byte [0x5050f1], 1
call fcn.00405018
pop ecx
pop ecx
push 0x5019f8
push 0x200
mov esi, eax
lea eax, [ebp - 0x400]
push eax
push 0x4cada0
push 0x4cc260
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push esi
call fcn.004a1b5f
lea eax, [ebp - 0x400]
push eax
push 1
call fcn.0047b669
add esp, 0xc
mov esi, edi
xor eax, eax
mov edi, dword [ebp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
leave
ret 4
mov al, byte [0x5050f1]
jmp 0x40b69b
Function at 0x40cb16
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x40cb92
mov ecx, dword [0x531bc0]
lea eax, [ebp + 0xf]
push eax
push ebx
push 0xa
push 0x75726c
mov byte [ebp + 0xf], 0
call fcn.00476c16
cmp byte [ebp + 0xf], 0
jne 0x40cb92
push esi
push edi
push 0x12
pop ecx
mov esi, str.http:__client.winamp.com_nowplaying
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
pop edi
pop esi
cmp eax, 0x23
jb 0x40cb7d
push 0x23
lea eax, [ebp - 0x48]
push eax
push 0x23
push ebx
push 1
push 0x409
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
je 0x40cb92
push 1
push 0
push 0
push ebx
push str.open
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop ebx
leave
ret

Function at 0x40cb95
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
mov ebx, dword [ebp + 0xc]
mov byte [ebp - 1], 0
test ebx, ebx
je 0x40cbc4
mov ecx, dword [0x531bc0]
lea eax, [ebp - 1]
push eax
push ebx
push 0xa
push 0x75726c
call fcn.00476c16
cmp byte [ebp - 1], 0
jne 0x40cc1d
push esi
mov esi, str.http:__client.winamp.com_nowplaying
push edi
lea edi, [ebp - 0x4c]
push 0x12
pop ecx
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
test ebx, ebx
je 0x40cc00
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x23
jb 0x40cc00
push 0x23
lea eax, [ebp - 0x4c]
push eax
push 0x23
push ebx
push 1
push 0x409
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
je 0x40cc1d
cmp dword [ebp + 0x10], 0
je 0x40cc1d
push 1
push 0
push 0
push dword [ebp + 0x10]
push str.open
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop ebx
leave
ret
Function at 0x40e17f
Capabilities:
Delete file
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x414
sub eax, 0x309
je 0x40e2bc
sub eax, 1
jne 0x40e2cc
mov eax, dword [ebp + 0x1c]
push ebx
push esi
xor ebx, ebx
cmp dword [eax + 8], 1
mov esi, ebx
push edi
jne 0x40e1bc
mov eax, dword [eax]
push dword [eax + 8]
call fcn.004a2eb4
pop ecx
mov esi, eax
mov edi, 0x208
lea eax, [ebp - 0x414]
push edi
push ebx
push eax
call fcn.0049a3b0
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0049a3b0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push ebx
push str.bmx.b4s
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0040dc40
pop ecx
pop ecx
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocStringLen
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, eax
push 2
push 0
push 0
push ebx
mov dword [ebp - 4], ebx
call esi
mov edi, eax
xor eax, eax
push eax
push eax
push eax
push ebx
call esi
push edi
xor esi, esi
push esi
push 0x11
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopyData]
mov ebx, eax
mov dword [ebp + 0x1c], esi
lea eax, [ebp + 0x1c]
push eax
push ebx
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
push esi
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], esi
mov esi, dword [ebp - 4]
push eax
push edi
push dword [ebp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp + 0x20]
push esi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, 0x2011
mov dword [esi + 8], ebx
mov word [esi], ax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
pop ebx
jmp 0x40e2ec
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ecx + 8]
sub eax, 1
je 0x40e2dd
sub eax, 1
je 0x40e2d3
mov eax, 0x80020003
jmp 0x40e2ee
mov eax, dword [ecx]
push dword [eax + 8]
push dword [eax + 0x18]
jmp 0x40e2e5
mov eax, dword [ecx]
push dword [eax + 8]
push dword [eax + 8]
call fcn.0040def5
pop ecx
pop ecx
xor eax, eax
leave
ret 0x24

Function at 0x40eeef
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, 0x27100
push esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, edi
push eax
push 0x4cc6f8
push 0x500dc8
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 4
jle 0x40ef38
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
push str..m3u8
push esi
call dword [sym.imp.SHLWAPI.dll_PathAddExtensionW]
push ebx
push ebx
push 1
push ebx
push 3
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x40ef5c
add edi, 0x1388
cmp edi, 0x1388000
jle 0x40eeff
jmp 0x40ef63
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x410f6f
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
push esi
push edi
xor esi, esi
xorps xmm0, xmm0
push esi
push dword [ebp + 8]
movlpd qword [ebp - 8], xmm0
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov edi, eax
test edi, edi
je 0x41104b
push ebx
push 0x200
lea eax, [ebp - 0x24c]
push esi
push eax
call fcn.0049a3b0
add esp, 0xc
lea eax, [ebp - 0x24c]
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 7
push esi
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
call dword [sym.imp.USER32.dll_GetDCEx]
mov ebx, eax
test ebx, ebx
je 0x41104a
push dword [edi + 0x14]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x411005
lea eax, [ebp - 0x4c]
push eax
push ebx
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
mov esi, eax
test esi, esi
je 0x41101a
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 4], ecx
jmp 0x41101a
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0x24c]
push eax
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov esi, eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [edi + 0x14]
je 0x41102a
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ReleaseDC]
test esi, esi
je 0x41104a
mov eax, dword [edi + 0x24]
add eax, dword [edi + 0x1c]
add dword [ebp - 8], eax
mov eax, dword [edi + 0x28]
add eax, dword [edi + 0x20]
add dword [ebp - 4], eax
pop ebx
xor eax, eax
test esi, esi
pop edi
cmovne eax, dword [ebp - 4]
pop esi
leave
ret
Function at 0x411bde
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push ebx
push edi
mov edi, 0x505140
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x505158]
xor ebx, ebx
test edx, edx
je 0x411c0d
cmp byte [0x500dc0], bl
je 0x411ce4
push esi
push 0x110
lea eax, [ebp - 0x114]
push ebx
push eax
call fcn.0049a3b0
add esp, 0xc
lea eax, [ebp - 0x118]
mov esi, 0x114
mov dword [ebp - 0x118], esi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x411c50
push esi
lea eax, [ebp - 0x118]
push ebx
push eax
call fcn.0049a3b0
add esp, 0xc
cmp dword [ebp - 0x114], 6
pop esi
jb 0x411cde
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x411cde
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push 0x4cada4
push 0x4ccc20
push ebx
call fcn.00411aab
mov edx, dword [ebp - 4]
add esp, 0x10
test eax, eax
js 0x411cae
test edx, edx
je 0x411cae
mov ecx, dword [0x505158]
test ecx, ecx
je 0x411ca0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov edx, dword [ebp - 4]
mov dword [0x505158], edx
mov byte [0x500dc0], bl
jmp 0x411ce4
cmp dword [ebp + 0xc], ebx
jne 0x411cde
test edx, edx
je 0x411cbd
mov eax, dword [edx]
push edx
call dword [eax + 8]
mov ecx, dword [0x505158]
test ecx, ecx
je 0x411ccd
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [0x505158], ebx
mov byte [0x500dc0], bl
xor ebx, ebx
inc ebx
jmp 0x411d05
mov edx, dword [0x505158]
test edx, edx
jne 0x411cfa
mov edx, 0x505134
mov byte [0x500dc0], 1
mov dword [0x505158], edx
mov ecx, dword [ebp + 8]
push edx
mov dword [ecx], edx
mov ecx, dword [edx]
call dword [ecx + 4]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, ebx
pop ebx
leave
ret

Function at 0x411ed2
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.004990f0
push esi
push edi
mov esi, 0x800
lea eax, [ebp - 0x1000]
push esi
xor edi, edi
push edi
push eax
call fcn.0049a3b0
push 0x1000
lea eax, [ebp - 0x2000]
push edi
push eax
call fcn.0049a3b0
push esi
lea eax, [ebp - 0x800]
push edi
push eax
call fcn.0049a3b0
add esp, 0x24
lea eax, [ebp - 0x800]
push dword [ebp + 0xc]
push esi
push eax
call fcn.00411dad
push 0x501c00
push esi
lea eax, [ebp - 0x1000]
push eax
lea eax, [ebp - 0x800]
push eax
push dword [ebp + 8]
push 0x4d758c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
lea eax, [ebp - 0x2000]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x1000]
push eax
push edi
push 0xfde9
call fcn.00411d12
push edi
push edi
push dword [ebp + 0x10]
lea eax, [ebp - 0x2000]
push dword [ebp + 0xc]
push 0xffffffffffffffff
push eax
push edi
push edi
call fcn.00411e48
add esp, 0x38
pop edi
pop esi
leave
ret
Function at 0x411f86
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.004990f0
push ebx
push esi
push edi
mov edi, 0x800
lea eax, [ebp - 0x1000]
push edi
xor ebx, ebx
push ebx
push eax
call fcn.0049a3b0
push edi
lea eax, [ebp - 0x800]
push ebx
push eax
call fcn.0049a3b0
push ebx
push ebx
push edi
lea eax, [ebp - 0x800]
mov esi, 0xfde9
push eax
mov eax, dword [0x4f7388]
push 0xffffffffffffffff
push dword [ebp + 0xc]
neg eax
push ebx
sbb eax, eax
and eax, esi
push eax
call fcn.00411e48
add esp, 0x38
lea eax, [ebp - 0x1000]
push 0x501c00
push edi
push eax
lea eax, [ebp - 0x800]
push eax
push dword [ebp + 8]
push 0x4d758c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push dword [ebp + 0x10]
lea eax, [ebp - 0x1000]
push dword [ebp + 0xc]
push 0xffffffffffffffff
push eax
mov eax, dword [0x4f7388]
neg eax
push ebx
sbb eax, eax
and eax, esi
push eax
call fcn.00411d12
add esp, 0x18
pop edi
pop esi
pop ebx
leave
ret

Function at 0x412232
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
push 0x22
pop eax
push 0x102
xor esi, esi
mov word [ebp - 0x10c], ax
lea eax, [ebp - 0x10a]
push esi
push eax
call fcn.0049a3b0
add esp, 0xc
lea eax, [ebp - 0x10b]
push 0xfc
push eax
push dword [0x531f80]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4122f1
lea eax, [ebp - 4]
push eax
push str.AudioCD_shellplaycommand
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4122f1
push edi
push 0x4cdaf4
mov edi, 0x104
lea eax, [ebp - 0x10c]
push edi
push eax
call fcn.0040acbc
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
pop edi
test eax, eax
jne 0x4122e4
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
xor ecx, ecx
inc ecx
test eax, eax
cmove esi, ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x4122f3
xor eax, eax
pop esi
leave
ret
Function at 0x414e96
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push edi
mov ebx, 0x104
mov edi, 0x5015e8
push ebx
push edi
push dword [0x531f80]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push edi
push str.WINAMP_PROGRAM_DIR
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x208
lea eax, [ebp - 0x208]
push 0
push eax
call fcn.0049a3b0
add esp, 0xc
lea eax, [ebp - 0x208]
push edi
push ebx
push eax
call fcn.0040c4d6
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
lea eax, [ebp - 0x208]
push eax
push str.WINAMP_ROOT_DIR
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
pop edi
pop ebx
leave
ret
Function at 0x415b8e
Capabilities:
Get common file path
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
xor edi, edi
mov ebx, 0x505168
mov dword [ebp - 4], edi
cmp word [0x505168], di
jne 0x415c25
lea eax, [ebp - 4]
push eax
push 0x20019
push edi
push str.SoftwareMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x415c10
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x208
push eax
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
push edi
push str.CommonFilesDir
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x415bf3
cmp dword [ebp - 8], 1
je 0x415bfb
xor eax, eax
mov word [0x505168], ax
push 0x4cdbfc
push ebx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [0x505168], di
jne 0x415c25
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push dword [ebp + 0x28]
mov ebx, dword [ebp + 0x14]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push 0x502730
push dword [ebx]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.enc_.dll
call fcn.00415cbe
add esp, 0x2c
test eax, eax
jne 0x415cba
push esi
push edi
push 0x4d758c
call fcn.00405018
pop ecx
pop ecx
push 0x5019f8
push edi
mov esi, eax
push str.scannsv
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push esi
mov edi, eax
call fcn.004a1b5f
pop ecx
pop esi
test edi, edi
je 0x415cb8
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push 0x505168
push dword [ebx]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.nsv_coder_.dll
call fcn.00415cbe
add esp, 0x2c
test eax, eax
jne 0x415cba
xor eax, eax
pop edi
pop ebx
leave
ret
Function at 0x415f4c
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
lea eax, [ebp - 0x250]
push ebx
push esi
push edi
push 0x250
push 0
push eax
call fcn.0049a3b0
mov edi, dword [ebp + 0x18]
add esp, 0xc
mov ebx, dword [ebp + 0xc]
cmp dword [edi], 0xffffffff
jne 0x415fa2
mov eax, dword [ebp + 0x10]
push 0x4cdb38
lea esi, [ebx + eax*2]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x250]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [edi], eax
xor eax, eax
mov word [esi], ax
jmp 0x415fb9
lea eax, [ebp - 0x250]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x416070
cmp dword [edi], 0xffffffff
je 0x41607b
push 0x209
lea eax, [ebp - 0x45c]
push 0
push eax
call fcn.0049a3b0
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
add esp, 0xc
cmp byte [ebp + 0x14], 0
je 0x415fef
test byte [ebp - 0x250], 0x10
je 0x416059
jmp 0x415ff8
test byte [ebp - 0x250], 0x10
jne 0x416059
xor ecx, ecx
lea eax, [ebp - 0x45c]
push ecx
push ecx
push 0x209
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x224]
push eax
push ecx
push ecx
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x45c]
push eax
call fcn.004a194c
pop ecx
pop ecx
test eax, eax
je 0x416084
xor ecx, ecx
lea eax, [ebp - 0x45c]
push ecx
push ecx
push 0x209
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x1c]
push eax
push ecx
push ecx
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x45c]
push eax
call fcn.004a194c
pop ecx
pop ecx
test eax, eax
je 0x416084
lea eax, [ebp - 0x250]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x415fde
push dword [edi]
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [edi], 0xffffffff
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x14
lea eax, [ebp - 0x224]
push eax
mov eax, dword [ebp + 0x10]
lea eax, [ebx + eax*2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov al, 1
jmp 0x41607d