joyce8/EMBER2024-capa huggingface dataset:
Function at 0x463b2f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
je 0x463b71
mov ecx, dword [0x4ac3d8]
lea eax, [ebp - 1]
push eax
push dword [ebp + 0xc]
mov byte [ebp - 1], bl
push 0xa
push 0x75726c
call fcn.0045c43a
cmp byte [ebp - 1], bl
jne 0x463b71
push 1
push ebx
push ebx
push dword [ebp + 0xc]
push str.open
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop ebx
leave
ret

Function at 0x463d08
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push edi
push ebx
xor edi, edi
push edi
push edi
push 0xd
push edi
call esi
test eax, eax
jge 0x463db1
push ebx
push edi
push edi
push 5
push edi
call esi
test eax, eax
jge 0x463da4
push 0x487b94
push 0x4a08b8
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
push str.gen_ml.ini
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x104]
push eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x208]
push eax
push str.C:My_Music
push str.extractpath
push 0x49126c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
push ebx
push 0xffffffffffffffff
lea eax, [ebp - 0x208]
push eax
push edi
push edi
call fcn.00405faa
add esp, 0x18
jmp 0x463db1
push str.My_Music
push ebx
push ebx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4675ad
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, 0x484b2a
call fcn.00483a50
sub esp, 0x468
push ebx
push esi
push edi
push 0x491ca4
push dword [ebp + 8]
call dword [sym.imp.NSCRT.dll__wfopen]
mov esi, dword [sym.imp.NSCRT.dll_fputs]
mov edi, eax
push edi
push str.__xml_version_1.0__encoding_utf_8___
mov dword [ebp - 0x10], edi
call esi
push edi
push str._skins__n
call esi
push edi
mov ebx, str._skin_filename_
push ebx
call esi
push 0x491c4c
push edi
call fcn.004717f3
push edi
mov edi, str.____n
push edi
call esi
add esp, 0x30
push 0x4880a8
push 0x49e4d0
lea eax, [ebp - 0x474]
push eax
mov dword [ebp - 0x14], 1
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x474]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
je 0x467777
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x467657
cmp dword [ebp - 0x14], eax
jge 0x46776e
test byte [ebp - 0x26c], 0x10
lea eax, [ebp - 0x240]
je 0x4676ba
push 0x48844c
push eax
call dword [sym.imp.NSCRT.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x467756
lea eax, [ebp - 0x240]
push 0x488444
push eax
call dword [sym.imp.NSCRT.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x467756
push dword [ebp - 0x10]
push ebx
call esi
push 0
lea eax, [ebp - 0x240]
push 0xfde9
push eax
call fcn.00402b25
mov dword [ebp - 0x18], eax
and dword [ebp - 4], 0
jmp 0x467734
push 0x48a304
push eax
call fcn.0041b1e3
pop ecx
push eax
call dword [sym.imp.NSCRT.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x467711
lea eax, [ebp - 0x240]
push 0x48733c
push eax
call fcn.0041b1e3
pop ecx
push eax
call dword [sym.imp.NSCRT.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x467711
lea eax, [ebp - 0x240]
push 0x487334
push eax
call fcn.0041b1e3
pop ecx
push eax
call dword [sym.imp.NSCRT.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x467756
push dword [ebp - 0x10]
push ebx
call esi
push 0
lea eax, [ebp - 0x240]
push 0xfde9
push eax
call fcn.00402b25
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 1
push eax
push dword [ebp - 0x10]
call fcn.004717f3
push dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
call dword [sym.imp.NSCRT.dll_free]
push dword [ebp - 0x10]
push edi
call esi
add esp, 0x28
inc dword [ebp - 0x14]
lea eax, [ebp - 0x26c]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x467647
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 0x10]
push str.__skins_
call esi
push dword [ebp - 0x10]
call dword [sym.imp.NSCRT.dll_fclose]
mov ecx, dword [ebp - 0xc]
add esp, 0xc
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x467e47
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1f4
push ebx
push esi
push edi
lea eax, [ebp - 0x1f4]
mov esi, ecx
push eax
push 0xf6
mov dword [esi], 0x491e14
mov dword [esi + 0x210], 1
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edi, [esi + 8]
push edi
xor ebx, ebx
push ebx
push 0x491e0c
lea eax, [ebp - 0x1f4]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
cmp dword [ebp + 8], ebx
je 0x467ea6
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
push dword [ebp + 8]
push edi
call dword [sym.imp.SHLWAPI.dll_PathAddExtensionW]
push ebx
push 0x100
push 2
push ebx
push 1
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
lea ecx, [ebp - 8]
push ecx
push 2
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [esi + 4], eax
mov dword [ebp - 4], 0xfeff
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x46b1d9
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
or ebx, 0xffffffff
cmp dword [ebp + 0xc], 0
push edi
mov dword [ebp - 4], ecx
mov edi, 0x49eaf8
je 0x46b231
push dword [ebp + 8]
lea eax, [ebp - 0x214]
push dword [ebp + 0xc]
push str._s__s
push 0x200
push eax
call fcn.0040bf47
add esp, 0x14
push edi
push ebx
lea eax, [ebp - 0x214]
push eax
push dword [ebp + 0x10]
call esi
cmp eax, ebx
jne 0x46b38c
cmp dword [ebp + 8], 0
je 0x46b249
push edi
push ebx
push dword [ebp + 8]
push dword [ebp + 0x10]
call esi
cmp eax, ebx
jne 0x46b38c
push edi
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push dword [ebp + 0x10]
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x46b261
cmp eax, 2
jne 0x46b277
push dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
call fcn.0046ade5
test al, al
je 0x46b277
mov dword [ebp - 8], 1
cmp dword [ebp - 8], ebx
je 0x46b286
cmp dword [ebp - 8], 2
jne 0x46b389
cmp dword [ebp + 0x18], ebx
je 0x46b389
cmp dword [ebp + 8], 0
je 0x46b389
and dword [ebp - 0xc], 0
mov esi, 0xfff
mov ebx, 0x136
push dword [ebp - 0xc]
mov ecx, dword [0x4ac3c8]
push 0x6a736163
push 0
push 0x28
call fcn.004700a7
inc dword [ebp - 0xc]
mov ecx, eax
test ecx, ecx
mov dword [ebp - 0x10], ecx
je 0x46b389
push 1
push 0
push 0x12c
call fcn.00475aa3
mov edi, eax
test edi, edi
je 0x46b31c
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x46b2f6
push 0
push 2
call fcn.00402e90
test eax, eax
jne 0x46b301
push dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
call fcn.0046b090
push dword [ebp + 0x1c]
mov ecx, edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call fcn.0046ad4e
test esi, eax
mov dword [ebp - 0x14], eax
jne 0x46b32d
mov ecx, dword [ebp - 0x10]
push edi
push 0
push ebx
call fcn.00475aa3
jmp 0x46b2a7
mov ecx, dword [ebp - 0x10]
push edi
xor edi, edi
push edi
push ebx
call fcn.00475aa3
mov ebx, dword [ebp - 0x14]
mov eax, ebx
and eax, esi
dec eax
je 0x46b350
dec eax
je 0x46b34c
mov eax, dword [ebp + 0x18]
jmp 0x46b38c
xor esi, esi
jmp 0x46b353
xor esi, esi
inc esi
test bh, 0x40
je 0x46b35b
mov dword [ebp + 0xc], edi
test bh, 0x10
je 0x46b372
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0046ad6d
test bh, 0x20
je 0x46b385
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0x10]
push edi
push edi
call fcn.0046ad6d
mov eax, esi
jmp 0x46b38c
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x46bb33
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
jne 0x46bb4b
xor eax, eax
jmp 0x46bc69
push ebx
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ebx, eax
cmp ebx, esi
jne 0x46bb73
push 8
push esi
push dword [ebp + 0xc]
call sub.NSCRT.dll_memset
xor eax, eax
add esp, 0xc
inc eax
jmp 0x46bc67
inc ebx
mov eax, 0x400
cmp ebx, eax
jbe 0x46bb96
lea eax, [ebx + ebx]
push eax
call dword [sym.imp.NSCRT.dll_malloc]
cmp eax, esi
pop ecx
mov dword [ebp - 4], eax
jne 0x46bba1
xor eax, eax
jmp 0x46bc67
lea ecx, [ebp - 0x81c]
mov dword [ebp - 4], ecx
mov ebx, eax
push ebx
push dword [ebp - 4]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, esi
mov dword [ebp - 8], eax
je 0x46bc50
push 6
push esi
push edi
call dword [sym.imp.USER32.dll_GetDCEx]
mov ebx, eax
cmp ebx, esi
je 0x46bc50
push esi
push esi
push 0x31
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ebx
call edi
cmp dword [ebp + 0x10], esi
mov dword [ebp - 0xc], eax
jne 0x46bbfc
push dword [ebp + 0xc]
push dword [ebp - 8]
push dword [ebp - 4]
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov esi, eax
jmp 0x46bc40
push esi
push dword [ebp + 0x14]
lea eax, [ebp - 0x1c]
push esi
push esi
push eax
call dword [sym.imp.USER32.dll_SetRect]
push 0xd10
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
mov esi, eax
neg esi
sbb esi, esi
neg esi
je 0x46bc40
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x1c]
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x18]
mov dword [eax + 4], ecx
push dword [ebp - 0xc]
push ebx
call edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ReleaseDC]
lea eax, [ebp - 0x81c]
cmp dword [ebp - 4], eax
je 0x46bc65
push dword [ebp - 4]
call dword [sym.imp.NSCRT.dll_free]
pop ecx
mov eax, esi
pop edi
pop ebx
pop esi
leave
ret
Function at 0x46df9b
Capabilities:
Delete file
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x674
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
mov word [ebp - 0x264], bx
mov ecx, 0x81
lea edi, [ebp - 0x262]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x46c]
push eax
mov edi, 0x104
push edi
lea esi, [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp dword [0x4ade58], ebx
jne 0x46e140
mov eax, dword [ebp + 8]
mov dword [ebp - 0x58], eax
mov eax, dword [0x4b0600]
mov dword [ebp - 0x54], eax
push edi
mov eax, esi
push eax
push 0x134
mov dword [0x4ade58], 1
mov dword [ebp - 0x5c], 0x58
call fcn.00472111
add esp, 0xc
mov dword [ebp - 0x50], eax
mov ax, word [esi]
cmp ax, bx
je 0x46e044
cmp ax, 0x7c
mov dword [ebp - 4], ebx
jne 0x46e02d
mov dword [ebp - 4], esi
push esi
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x46e040
mov word [eax], bx
cmp esi, ebx
jne 0x46e019
push ebx
push ebx
mov esi, 0x4adc50
push 0x133
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], 0x103
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
call fcn.00472111
mov dword [ebp - 0x2c], eax
add esp, 0xc
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0x20], 0x493414
mov dword [ebp - 0x28], 0x80006
call dword [sym.imp.comdlg32.dll_GetSaveFileNameW]
test eax, eax
je 0x46e12d
lea eax, [ebp - 0x674]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, dword [0x4ac3ec]
lea eax, [ebp - 0x674]
push eax
call fcn.0045cf8a
lea eax, [ebp - 0x46c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov edi, dword [sym.imp.NSCRT.dll__waccess]
push ebx
push esi
call edi
test eax, eax
pop ecx
pop ecx
jne 0x46e0ed
push 2
push esi
call edi
test eax, eax
pop ecx
pop ecx
je 0x46e0ed
push 0x180
push esi
call dword [sym.imp.NSCRT.dll__wchmod]
pop ecx
pop ecx
push 0x49340c
push esi
mov dword [0x4ade58], ebx
call fcn.0041b1e3
pop ecx
push eax
call dword [sym.imp.NSCRT.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x46e11c
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call fcn.0046de40
pop ecx
jmp 0x46e128
push ebx
push 1
push esi
call fcn.0046dc77
add esp, 0xc
xor eax, eax
inc eax
jmp 0x46e142
lea eax, [ebp - 0x46c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [0x4ade58], ebx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46e147
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1d8c
call fcn.00483980
mov ecx, dword [0x4ac3b4]
push ebx
xor ebx, ebx
cmp ecx, ebx
jne 0x46e17e
push ebx
push 0x130
push 0x12f
push dword [ebp + 8]
call fcn.00472b2b
add esp, 0x10
xor eax, eax
jmp 0x46e2d3
push esi
push edi
push 0x800
lea eax, [ebp - 0x1d8c]
push eax
call fcn.0042c225
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x56c]
push eax
mov edi, 0x104
push edi
call esi
cmp dword [0x4ade5c], ebx
mov dword [ebp - 4], ebx
je 0x46e1b8
xor eax, eax
jmp 0x46e2d1
mov eax, dword [0x4ac34c]
cmp eax, ebx
mov dword [0x4ade5c], 1
mov dword [ebp - 0x5c], 0x58
jne 0x46e1d7
mov eax, dword [0x4ac344]
mov ecx, dword [0x4ac3ec]
mov dword [ebp - 0x58], eax
mov eax, dword [0x4b0600]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x1d8c]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0xd8c]
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], eax
mov word [ebp - 0xd8c], bx
mov dword [ebp - 0x3c], 0x410
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
call fcn.0045caf2
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0x30], eax
je 0x46e23d
cmp dword [ebp + 0xc], 1
jne 0x46e23d
push 0x80
lea eax, [ebp - 0x15c]
push eax
push 0x132
jmp 0x46e24e
push 0x80
lea eax, [ebp - 0x15c]
push eax
push 0x131
call fcn.00472111
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], 0x49340c
mov dword [ebp - 0x28], 0x81004
call fcn.004114a2
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.comdlg32.dll_GetOpenFileNameW]
test eax, eax
je 0x46e2b6
lea eax, [ebp - 0x364]
push eax
push edi
call esi
mov ecx, dword [0x4ac3ec]
lea eax, [ebp - 0x364]
push eax
call fcn.0045cf8a
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0xd8c]
push eax
mov dword [0x4ade5c], ebx
call fcn.0043fbf9
add esp, 0xc
mov dword [ebp - 4], 1
lea eax, [ebp - 0x56c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [0x4ade5c], ebx
call fcn.004113fd
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x46e2d6
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [0x4ade78], eax
inc ecx
mov eax, 0x4ade78
push esi
mov edx, dword [eax]
mov esi, edx
shr esi, 0x1e
xor esi, edx
imul esi, esi, 0x6c078965
add esi, ecx
mov dword [eax + 4], esi
add eax, 4
inc ecx
cmp eax, 0x4ae834
jl 0x46e2e8
mov dword [0x49c98c], ecx
pop esi
ret
Function at 0x46e3c5
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
push edi
mov edi, 0x4ade60
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x49c98c]
cmp eax, 0x270
jl 0x46e490
xor edx, edx
mov esi, SysReAllocString
push ebx
mov ecx, edx
shl ecx, 2
mov eax, dword [ecx + 0x4ade7c]
xor eax, dword [ecx + 0x4ade78]
and eax, esi
xor eax, dword [ecx + 0x4ade78]
mov ebx, eax
shr eax, 1
and ebx, 1
xor eax, dword [ebx*4 + 0x49342c]
xor eax, dword [ecx + 0x4ae4ac]
inc edx
cmp edx, 0xe3
mov dword [ecx + 0x4ade78], eax
jl 0x46e3eb
cmp edx, 0x26f
jge 0x46e463
lea ecx, [edx*4 + 0x4ade78]
mov eax, dword [ecx]
lea edx, [ecx + 4]
xor eax, dword [edx]
and eax, esi
xor eax, dword [ecx]
mov ebx, eax
and ebx, 1
mov ebx, dword [ebx*4 + 0x49342c]
xor ebx, dword [edx - 0x390]
shr eax, 1
xor ebx, eax
mov dword [ecx], ebx
mov ecx, edx
cmp ecx, 0x4ae834
jl 0x46e436
mov ecx, dword [0x4ae834]
mov eax, dword [0x4ade78]
xor eax, ecx
and eax, esi
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
xor eax, dword [ecx*4 + 0x49342c]
pop ebx
xor eax, dword [0x4ae4a8]
mov dword [0x4ae834], eax
xor eax, eax
mov esi, dword [eax*4 + 0x4ade78]
inc eax
push edi
mov dword [0x49c98c], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
shr eax, 0xb
xor esi, eax
mov eax, esi
and eax, 0xff3a58ad
shl eax, 7
xor esi, eax
mov eax, esi
and eax, 0xffffdf8c
shl eax, 0xf
xor esi, eax
mov eax, esi
shr eax, 0x12
pop edi
xor eax, esi
pop esi
ret

Function at 0x46e560
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
push 0x4ade60
mov dword [ebp - 8], ecx
mov dword [ecx], 0x493460
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push 0
push 1
push 0
mov edi, str.WinampKeyContainer
push edi
lea eax, [ebp - 4]
push eax
call esi
test eax, eax
je 0x46e59d
mov esi, dword [ebp - 4]
jmp 0x46e5b3
push 8
push 1
push 0
push edi
lea eax, [ebp - 4]
push eax
call esi
mov esi, eax
neg esi
sbb esi, esi
and esi, dword [ebp - 4]
test esi, esi
je 0x46e5de
lea eax, [ebp - 0x28]
push eax
push 0x20
push esi
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x46e5d5
lea eax, [ebp - 0x28]
push 8
push eax
call fcn.0046e30f
pop ecx
pop ecx
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret
Function at 0x46e6ad
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, 0x484d1c
call fcn.00483a50
sub esp, 0x20
and dword [ebp - 0x14], 0
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
mov byte [ebp - 0xd], 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call fcn.0042c27e
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x46e7c1
cmp dword [ebp - 0x14], 0
jl 0x46e6ec
inc dword [ebp - 0x14]
push str.winampGetExtendedRead_open
push dword [edi + 0xc]
mov byte [ebp - 0xd], 1
call esi
push str.winampGetExtendedRead_open_float
push dword [edi + 0xc]
mov ebx, eax
call esi
push str.winampGetExtendedRead_openW
push dword [edi + 0xc]
mov dword [ebp - 0x28], eax
call esi
push str.winampGetExtendedRead_openW_float
push dword [edi + 0xc]
mov dword [ebp - 0x20], eax
call esi
push str.winampGetExtendedRead_getData
push dword [edi + 0xc]
mov dword [ebp - 0x24], eax
call esi
push str.winampGetExtendedRead_close
push dword [edi + 0xc]
mov dword [ebp - 0x1c], eax
call esi
push 0x493474
push dword [edi + 0xc]
mov dword [ebp - 0x18], eax
call esi
mov edi, eax
xor eax, eax
cmp ebx, eax
jne 0x46e754
cmp dword [ebp - 0x20], eax
je 0x46e7b1
cmp dword [ebp - 0x1c], eax
je 0x46e7b1
cmp dword [ebp - 0x18], eax
je 0x46e7b1
push 0x24
call sub.NSCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x2c], eax
and dword [ebp - 4], 0
test eax, eax
je 0x46e78d
push edi
push dword [ebp - 0x18]
mov ecx, eax
push dword [ebp - 0x1c]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x20]
push ebx
call fcn.0046efdb
mov edi, eax
jmp 0x46e78f
xor edi, edi
push dword [ebp + 0xc]
or dword [ebp - 4], 0xffffffff
push dword [ebp + 8]
mov ecx, edi
call fcn.0046ee25
test al, al
jne 0x46e7bd
test edi, edi
je 0x46e7b1
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax + 4]
cmp dword [ebp - 0x14], 0
jge 0x46e6cb
jmp 0x46e7c7
mov eax, edi
jmp 0x46e82f
cmp byte [ebp - 0xd], 0
je 0x46e823
cmp byte [ebp + 0x10], 0
je 0x46e823
push 0xc
call sub.NSCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp + 0x10], eax
xor edi, edi
inc edi
test eax, eax
mov dword [ebp - 4], edi
je 0x46e7ed
mov ecx, eax
call fcn.0046f1e4
mov esi, eax
jmp 0x46e7ef
xor esi, esi
or dword [ebp - 4], 0xffffffff
push 0
push dword [ebp + 8]
call fcn.0042c27e
pop ecx
pop ecx
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
push eax
call fcn.0046f316
test al, al
je 0x46e815
mov eax, esi
jmp 0x46e82f
test esi, esi
je 0x46e82d
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 4]
jmp 0x46e82d
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x18], 2
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x46ffd8
Capabilities:
Write file on windows

Disassembly:
push esi
push 0x491ca4
push dword [esp + 0xc]
call dword [sym.imp.NSCRT.dll__wfopen]
mov esi, eax
test esi, esi
pop ecx
pop ecx
jne 0x46fff3
inc eax
pop esi
ret
push edi
push esi
xor edi, edi
inc edi
push edi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.NSCRT.dll_fwrite]
add esp, 0x10
cmp eax, edi
jne 0x470010
xor edi, edi
push esi
call dword [sym.imp.NSCRT.dll_fclose]
pop ecx
mov eax, edi
pop edi
pop esi
ret

Function at 0x47001d
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x868
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push edi
push str..nfo
push dword [ebp + 8]
lea eax, [ebp - 0x868]
push eax
call esi
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x868]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4700a1
lea eax, [ebp - 0x224]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x660]
push eax
call esi
lea eax, [ebp - 0x224]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x458]
push eax
call esi
push 1
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x660]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
jmp 0x4700a3
xor al, al
pop edi
pop esi
leave
ret

Function at 0x470311
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call fcn.00470149
xor edi, edi
cmp eax, edi
pop ecx
pop ecx
mov dword [ebp - 4], eax
je 0x470401
push edi
push edi
push 3
push edi
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0xc], esi
je 0x4703f0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
push edi
push edi
push 2
push edi
push esi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
cmp ebx, edi
je 0x4703e7
push edi
push edi
push edi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
cmp esi, edi
je 0x4703e0
push dword [ebp - 8]
mov ecx, dword [ebp - 4]
push esi
call fcn.00428d5a
test eax, eax
je 0x4703d9
mov ecx, dword [ebp - 4]
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 8]
push esi
call fcn.00428d71
push esi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push dword [ebp - 0xc]
call esi
push dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
push edi
push 0x136
call fcn.00475aa3
mov eax, dword [ebp - 8]
jmp 0x470403
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
push edi
push 0x136
call fcn.00475aa3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret