joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46a6af
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4c7511
call fcn.0049911c
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], edi
lea esi, [edi + 0xc]
mov dword [edi], vtable.WASetup.0
mov ecx, esi
mov dword [edi + 4], 1
mov dword [edi + 8], ebx
mov dword [ebp - 0x14], esi
call fcn.00406879
mov dword [esi], vtable.nu::PtrList_class_ifc_setuppage_.0
lea esi, [edi + 0x1c]
mov dword [ebp - 4], ebx
mov ecx, esi
mov dword [ebp - 0x14], esi
call fcn.00406879
mov ecx, dword [ebp - 0xc]
mov eax, edi
mov dword [esi], vtable.nu::PtrList_class_ifc_setupjob_.0
or dword [edi + 0x30], 0xffffffff
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x34], ebx
mov dword [edi + 0x48], ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x46a95e
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x124
push ebx
push esi
mov esi, ecx
push edi
test eax, eax
je 0x46aaaa
xor edi, edi
cmp dword [0x4f9fc4], 0xffffffff
mov dword [eax], edi
jne 0x46a9be
lea eax, [ebp - 0x124]
mov dword [ebp - 0x124], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x46a9b7
cmp dword [ebp - 0x120], 5
ja 0x46a9b2
jne 0x46a9b7
cmp dword [ebp - 0x11c], edi
jbe 0x46a9b7
xor eax, eax
inc eax
jmp 0x46a9b9
mov eax, edi
mov dword [0x4f9fc4], eax
push edi
push 0x46b115
push edi
push 0x6d
call fcn.00469f2c
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x46aaaa
mov eax, dword [esi + 0x40]
cmp eax, dword [esi + 0x38]
je 0x46aa22
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esi + 0x44]
sub eax, dword [esi + 0x3c]
sub eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
cdq
sub eax, edx
sar eax, 1
add eax, dword [esi + 0x3c]
push 0x15
push edi
push edi
push eax
mov eax, dword [esi + 0x40]
sub eax, dword [esi + 0x38]
sub eax, dword [ebp - 8]
add eax, dword [ebp - 0x10]
cdq
sub eax, edx
sar eax, 1
add eax, dword [esi + 0x38]
push eax
push edi
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0x3fa
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
test edi, edi
je 0x46aaa1
cmp dword [0x4f9fc4], 0
je 0x46aa68
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, 8
push eax
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0xc8
push 1
push 0x40a
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x46aaa1
mov ax, word [esi + 0x24]
inc ax
add ax, word [esi + 0x14]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
movzx eax, ax
shl eax, 0x10
push eax
push 0
push 0x401
push edi
call esi
push 0
push 0
push 0x402
push edi
call esi
push 0
push 1
push 0x404
push edi
call esi
mov eax, dword [ebp + 8]
mov dword [eax], ebx
xor eax, eax
jmp 0x46aaad
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x46b242
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
lea eax, [ebp - 0x100]
push ebx
push esi
push edi
push 0x100
xor edi, edi
mov esi, ecx
push edi
push eax
call fcn.0049a3b0
xor ebx, ebx
add esp, 0xc
cmp dword [esi + 0x14], ebx
jbe 0x46b28c
test edi, edi
jne 0x46b28c
mov ecx, dword [esi + 0x10]
mov ecx, dword [ecx + ebx*4]
call fcn.0046b0f4
lea edi, [eax - 1]
neg edi
sbb edi, edi
neg edi
inc ebx
cmp ebx, dword [esi + 0x14]
jb 0x46b26e
push 0x80
lea eax, [ebp - 0x100]
push eax
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x100]
test edi, edi
je 0x46b2ea
push 0x33
push eax
xor ebx, ebx
push ebx
push ebx
push 0x7d6
call fcn.00441947
add esp, 0xc
push eax
push dword [esi + 8]
call dword [sym.imp.USER32.dll_MessageBoxW]
dec eax
sub eax, 1
je 0x46b31e
sub eax, 4
jne 0x46b30d
push ebx
push 0x9c4d
push 0x111
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x46b30d
push 0x34
push eax
push 0
push 0
push 0x7db
call fcn.00441947
add esp, 0xc
push eax
push dword [esi + 8]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
je 0x46b31e
push dword [esi + 8]
call dword [sym.imp.USER32.dll_DestroyWindow]
push 2
call dword [sym.imp.USER32.dll_PostQuitMessage]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46b367
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x300
push esi
mov esi, ecx
mov ecx, 0x9c48
cmp eax, ecx
jg 0x46b464
je 0x46b44b
sub eax, 1
je 0x46b40b
sub eax, 1
je 0x46b3f5
sub eax, 0x3e7
je 0x46b3dc
sub eax, 1
je 0x46b3c3
sub eax, 1
jne 0x46b52f
mov eax, dword [ebp + 0xc]
sub eax, 1
jne 0x46b52f
push dword [ebp + 0x10]
mov ecx, esi
call fcn.0046bd43
jmp 0x46b52f
cmp dword [ebp + 0xc], 0
jne 0x46b52f
push dword [ebp + 0x10]
mov ecx, esi
call fcn.0046b1f0
jmp 0x46b52f
cmp dword [ebp + 0xc], 0
jne 0x46b52f
push dword [ebp + 0x10]
mov ecx, esi
call fcn.0046c04a
jmp 0x46b52f
cmp dword [ebp + 0xc], 0
jne 0x46b52f
mov ecx, esi
call fcn.0046b242
jmp 0x46b52f
cmp dword [ebp + 0xc], 0
jne 0x46b52f
mov eax, dword [esi + 0x30]
cmp eax, 0xffffffff
je 0x46b52f
mov ecx, dword [esi + 0x10]
mov ecx, dword [ecx + eax*4]
call fcn.0046c415
cmp eax, 1
je 0x46b52f
push dword [esi + 8]
call dword [sym.imp.USER32.dll_DestroyWindow]
push 1
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x46b52f
push 0
push 0x46a7a7
push dword [esi + 8]
push 0x69
call fcn.00469f71
add esp, 0x10
jmp 0x46b52f
sub eax, 0x9c4b
je 0x46b511
sub eax, 1
je 0x46b501
sub eax, 1
je 0x46b485
sub eax, 3
jmp 0x46b3f9
push 0
mov ecx, esi
call fcn.0046c2b2
test eax, eax
je 0x46b52f
push ebx
mov ebx, 0x100
lea eax, [ebp - 0x100]
push ebx
push 0
push eax
call fcn.0049a3b0
push 0x200
lea eax, [ebp - 0x300]
push 0
push eax
call fcn.0049a3b0
add esp, 0x18
lea eax, [ebp - 0x100]
push 0x80
push eax
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x10
lea eax, [ebp - 0x100]
push eax
push ebx
lea eax, [ebp - 0x300]
push eax
push 0x7d8
call fcn.00441947
add esp, 0xc
push eax
push dword [esi + 8]
call dword [sym.imp.USER32.dll_MessageBoxW]
pop ebx
jmp 0x46b52f
push 0
push 0
push 0xf5
push 0x3e9
jmp 0x46b51f
push 0
push 0
push 0xf5
push 0x3ea
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop esi
leave
ret 0xc
Function at 0x46c8e3
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6e0
lea eax, [ebp - 0x4d8]
push esi
push 0x208
push 0
push eax
call fcn.0049a3b0
push 0x250
lea eax, [ebp - 0x2d0]
push 0
push eax
call fcn.0049a3b0
add esp, 0x18
lea eax, [ebp - 0x4d8]
push str.GEN_.DLL
push 0x502730
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x2d0]
push eax
lea eax, [ebp - 0x4d8]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x46ca42
push ebx
push edi
push 0x208
lea eax, [ebp - 0x6e0]
push 0
push eax
call fcn.0049a3b0
add esp, 0xc
lea eax, [ebp - 0x2a4]
push eax
push 0x502730
lea eax, [ebp - 0x6e0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x6e0]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x46ca23
push str.winampGetGeneralPurposePlugin
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x46ca23
push str.RegisterSetup
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x46c9c5
push dword [0x531bbc]
push edi
call eax
pop ecx
pop ecx
test eax, eax
jne 0x46ca23
call ebx
mov ebx, eax
test ebx, ebx
je 0x46ca23
cmp dword [ebx], 0x10
je 0x46c9d7
cmp dword [ebx], 0x11
jne 0x46ca23
push 0x80
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.0049a3b0
add esp, 0xc
lea eax, [ebp - 0x80]
push 0x80
push dword [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp byte [ebp - 0x80], 0
je 0x46ca23
lea eax, [ebp - 0x80]
cmp dword [eax], 0x6c6c756e
jne 0x46ca23
cmp dword [eax + 4], 0x74666f73
jne 0x46ca23
cmp byte [eax + 8], 0x28
jne 0x46ca23
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x2d0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x46c94e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop ebx
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x46cbb6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1024
call fcn.004990f0
push ebx
push esi
xor eax, eax
xor esi, esi
push 0x1000
push eax
mov dword [ebp - 4], eax
xor ebx, ebx
mov dword [ebp - 8], eax
inc esi
lea eax, [ebp - 0x1024]
inc ebx
push eax
call fcn.0049a3b0
push dword [ebp + 8]
call fcn.00494c70
add esp, 0x10
test eax, eax
je 0x46cbfb
xor eax, eax
jmp 0x46cd40
mov ecx, dword [0x4f9fe4]
cmp ecx, 0xffffffff
jne 0x46cc1b
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
sbb ecx, ecx
neg ecx
mov dword [0x4f9fe4], ecx
push edi
xor eax, eax
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
test ecx, ecx
je 0x46cc40
push edi
push 1
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [0x4f9fe4]
mov dword [ebp - 0x14], eax
push edi
test ecx, ecx
mov edx, 0x40000080
mov eax, 0x80
cmovne eax, edx
push eax
push 2
push edi
push edi
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x46cc71
xor esi, esi
jmp 0x46cd25
test ebx, ebx
jle 0x46cd1a
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x1024]
and dword [ebp - 0x10], 0
xor eax, 1
mov dword [ebp - 8], eax
shl eax, 0xb
add eax, ecx
push 0x800
push eax
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
call fcn.00495590
mov ebx, eax
add esp, 0xc
xor eax, eax
test ebx, ebx
cmovs esi, eax
cmp dword [0x4f9fe4], eax
je 0x46ccf5
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test ebx, ebx
jle 0x46cd0e
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
push 0
push ebx
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x46ccf0
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x3e5
cmovne esi, ecx
add dword [ebp - 4], ebx
jmp 0x46cd0e
test ebx, ebx
jle 0x46cd0e
push 0
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x46cd18
test esi, esi
jne 0x46cc71
jmp 0x46cd1a
xor esi, esi
test edi, edi
je 0x46cd25
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], 0
pop edi
je 0x46cd35
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
call fcn.004949d0
pop ecx
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x46d230
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push ebx
push esi
push edi
xor ebx, ebx
xor esi, esi
push ebx
push ebx
push 3
push ebx
inc esi
push esi
push SysReAllocStringLen
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x46d260
xor eax, eax
jmp 0x46d2de
push 0x400
lea eax, [ebp - 0x404]
push ebx
push eax
call fcn.0049a3b0
add esp, 0xc
mov dword [ebp - 4], ebx
lea eax, [ebp - 4]
push ebx
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46d2b7
cmp dword [ebp - 4], ebx
je 0x46d2b7
push dword [ebp - 4]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x404]
push eax
push esi
push 0x1f
call fcn.0040ea78
test eax, eax
jne 0x46d2d3
mov eax, dword [ebp - 4]
jmp 0x46d2cd
mov ecx, dword [ebp + 8]
push ebx
push ebx
push esi
push 0x1f
call fcn.0040ea78
test eax, eax
jne 0x46d2d3
mov eax, ebx
mov dword [ebp - 4], eax
test eax, eax
jne 0x46d260
jmp 0x46d2d5
mov esi, ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x46ddda
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
lea eax, [ebp - 0x208]
push 0x208
push 0
push eax
call fcn.0049a3b0
add esp, 0xc
lea eax, [ebp - 0x208]
push 0x104
push eax
push dword [0x531f80]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x46de4e
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.winampa.exe
lea eax, [ebp - 0x208]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x46de4e
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
neg eax
sbb eax, eax
neg eax
leave
ret
xor eax, eax
leave
ret
Function at 0x46de52
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x828
push esi
push edi
mov edi, 0x410
lea eax, [ebp - 0x418]
xor esi, esi
push edi
push esi
push eax
mov dword [ebp - 4], esi
call fcn.0049a3b0
add esp, 0xc
mov dword [ebp - 8], edi
lea eax, [ebp - 4]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x46de9a
xor eax, eax
jmp 0x46df46
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x418]
push eax
push esi
push esi
push str.WinampAgent
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x46dec2
xor eax, eax
mov word [ebp - 0x418], ax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [ebp - 0x418], si
je 0x46df44
push edi
lea eax, [ebp - 0x828]
push esi
push eax
call fcn.0049a3b0
add esp, 0xc
lea eax, [ebp - 0x828]
push 0x208
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x418]
push eax
call esi
lea eax, [ebp - 0x828]
push eax
call esi
push 0xffffffffffffffff
lea eax, [ebp - 0x418]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x828]
push eax
push 1
push 0x409
call dword [sym.imp.KERNEL32.dll_CompareStringW]
lea esi, [eax - 2]
neg esi
sbb esi, esi
inc esi
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x46e058
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push ebx
push esi
push edi
xor edi, edi
lea eax, [ebp - 0x404]
push 0x400
push edi
mov ebx, edi
push eax
mov dword [ebp - 4], ebx
call fcn.0049a3b0
add esp, 0xc
mov esi, 0x5019f8
push esi
push 1
push 0x4d3544
push 0x4d1f14
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x46e13e
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x404]
push 0x200
push eax
push 0x4cada0
push str.config_extlist
push 0x4cbf1c
call esi
cmp word [ebp - 0x404], bx
jne 0x46e13e
push 0x5019f8
push 0x200
lea eax, [ebp - 0x404]
push eax
push 0x4cada0
push 0x4d4ce8
push 0x4d1f14
call esi
cmp word [ebp - 0x404], bx
je 0x46e128
push edi
push 0x4cc448
call fcn.00405018
pop ecx
pop ecx
push 0xffffffffffffffff
mov esi, eax
inc ebx
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x404]
push eax
push 1
push 0x409
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x46e12b
jmp 0x46e12e
mov esi, dword [ebp - 4]
xor edi, edi
inc edi
test bl, 1
je 0x46e13a
push esi
call fcn.004a1b5f
pop ecx
mov eax, edi
jmp 0x46e140
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46fae2
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
xor edi, edi
lea eax, [ebp - 0x104]
push 0x100
push edi
mov ebx, edi
push eax
mov dword [ebp - 4], ebx
call fcn.0049a3b0
add esp, 0xc
mov esi, 0x5019f8
push esi
push edi
push 0x4d3544
push 0x4d1f14
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x46fb2a
xor eax, eax
inc eax
jmp 0x46fb99
push esi
push 0x80
lea eax, [ebp - 0x104]
push eax
push 0x4cada0
push 0x4d4ce8
push 0x4d1f14
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x104], bx
je 0x46fb85
push edi
push 0x4cc448
call fcn.00405018
pop ecx
pop ecx
push 0xffffffffffffffff
mov esi, eax
xor ebx, ebx
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x104]
inc ebx
push eax
push ebx
push 0x409
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, ebx
je 0x46fb88
jmp 0x46fb8b
mov esi, dword [ebp - 4]
xor edi, edi
inc edi
test bl, 1
je 0x46fb97
push esi
call fcn.004a1b5f
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4711c7
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, 0x4c75c0
call fcn.0049911c
sub esp, 0x460
push edi
push 0x4cc548
push dword [ebp + 8]
call fcn.004a33b3
mov edi, eax
push edi
push str.__xml_version_1.0__encoding_utf_8___
call fcn.004a4db9
push edi
push str._skins__n
call fcn.004a4db9
push edi
push str._skin_filename_
call fcn.004a4db9
push 0x4d5220
push edi
call fcn.0040de33
push edi
push str.____n
call fcn.004a4db9
push 0x208
lea eax, [ebp - 0x46c]
push 0
push eax
call fcn.0049a3b0
add esp, 0x3c
lea eax, [ebp - 0x46c]
push 0x4cdb38
push 0x502f50
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x46c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x4713f3
push ebx
xor ebx, ebx
push esi
inc ebx
mov esi, eax
cmp dword [ebp + 0xc], 0
je 0x471281
cmp ebx, dword [ebp + 0xc]
jge 0x4713ea
test byte [ebp - 0x264], 0x10
lea eax, [ebp - 0x238]
je 0x471333
mov ecx, 0x4cb7a8
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4712bf
test dx, dx
je 0x4712bb
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4712bf
add eax, 4
add ecx, 4
test dx, dx
jne 0x471299
xor eax, eax
jmp 0x4712c4
sbb eax, eax
or eax, 1
test eax, eax
je 0x4713d4
mov ecx, 0x4cb7ac
lea eax, [ebp - 0x238]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4712fd
test dx, dx
je 0x4712f9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4712fd
add eax, 4
add ecx, 4
test dx, dx
jne 0x4712d7
xor eax, eax
jmp 0x471302
sbb eax, eax
or eax, 1
test eax, eax
je 0x4713d4
push edi
push str._skin_filename_
call fcn.004a4db9
push 0
lea eax, [ebp - 0x238]
push 0xfde9
push eax
call fcn.00404fb9
mov esi, eax
mov dword [ebp - 0x14], esi
and dword [ebp - 4], 0
jmp 0x4713b1
push 0x4d2f7c
push eax
call fcn.00476738
pop ecx
push eax
call fcn.0049e71a
pop ecx
pop ecx
test eax, eax
je 0x471387
lea eax, [ebp - 0x238]
push 0x4ccb5c
push eax
call fcn.00476738
pop ecx
push eax
call fcn.0049e71a
pop ecx
pop ecx
test eax, eax
je 0x471387
lea eax, [ebp - 0x238]
push 0x4ccb64
push eax
call fcn.00476738
pop ecx
push eax
call fcn.0049e71a
pop ecx
pop ecx
test eax, eax
jne 0x4713d4
push edi
push str._skin_filename_
call fcn.004a4db9
push 0
lea eax, [ebp - 0x238]
push 0xfde9
push eax
call fcn.00404fb9
mov esi, eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 1
push esi
push edi
call fcn.0040de33
or dword [ebp - 4], 0xffffffff
push esi
call fcn.004a1b5f
push edi
push str.____n
call fcn.004a4db9
mov esi, dword [ebp - 0x10]
add esp, 0x28
inc ebx
lea eax, [ebp - 0x264]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x471272
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
pop ebx
push edi
push str.__skins_
call fcn.004a4db9
push edi
call fcn.004a3458
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov dword fs:[0], ecx
pop edi
leave
ret
Function at 0x47192a
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000c
call fcn.004990f0
push ebx
push esi
push edi
push 0xffff
xor esi, esi
lea eax, [ebp - 0x1000c]
push esi
push eax
call fcn.0049a3b0
push esi
push esi
push dword [ebp + 0x10]
lea edi, [ebp - 0x1000c]
mov ebx, esi
call fcn.00404fb9
add esp, 0x18
mov esi, eax
mov eax, edi
push esi
push 0xffff
push eax
push 0x4ccc30
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
call fcn.004a1b5f
pop ecx
xor ecx, ecx
test edi, edi
je 0x4719c5
mov al, byte [edi]
cmp al, 0x20
je 0x47199a
cmp al, 9
je 0x47199a
cmp al, 0x2c
jne 0x47199f
add edi, 1
jne 0x47198c
test edi, edi
je 0x4719c5
cmp byte [edi], 0x2d
jne 0x4719ad
add edi, 1
je 0x4719c5
mov al, byte [edi]
sub al, 0x30
cmp al, 9
ja 0x4719bc
xor ecx, ecx
inc ecx
add edi, ecx
jne 0x4719ad
test ecx, ecx
je 0x4719c5
inc ebx
test edi, edi
jne 0x471986
mov dword [ebp - 8], ebx
test ebx, ebx
jne 0x4719d3
xor eax, eax
jmp 0x471a63
mov eax, ebx
lea esi, [ebp - 0x1000c]
shl eax, 2
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [ebp + 0x14]
xor edi, edi
mov dword [ecx], eax
cmp edi, ebx
jge 0x471a61
and dword [ebp - 0xc], 0
xor ecx, ecx
test esi, esi
je 0x471a61
mov al, byte [esi]
cmp al, 0x20
je 0x471a0a
cmp al, 9
je 0x471a0a
cmp al, 0x2c
jne 0x471a0f
add esi, 1
jne 0x4719fc
test esi, esi
je 0x471a61
mov ah, byte [esi]
mov byte [ebp - 1], ah
cmp ah, 0x2d
jne 0x471a22
add esi, 1
je 0x471a61
mov ebx, dword [ebp - 0xc]
mov dl, byte [esi]
mov al, dl
sub al, 0x30
cmp al, 9
ja 0x471a42
imul ecx, ecx, 0xa
movsx eax, dl
push 1
pop ebx
add ecx, 0xffffffd0
add ecx, eax
add esi, 1
jne 0x471a25
test ebx, ebx
mov ebx, dword [ebp - 8]
je 0x471a61
mov eax, dword [ebp + 0x14]
mov edx, ecx
neg edx
cmp byte [ebp - 1], 0x2d
cmovne edx, ecx
mov ecx, dword [eax]
mov dword [ecx + edi*4], edx
inc edi
test esi, esi
jne 0x4719ee
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x471a68
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push 0x64
xor ebx, ebx
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.0049a3b0
push ebx
push ebx
push dword [ebp + 0x14]
lea eax, [ebp - 0x68]
mov dword [ebp - 4], eax
call fcn.00404fb9
add esp, 0x18
mov esi, eax
lea eax, [ebp - 0x68]
push esi
push 0x64
push eax
push 0x4ccc30
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x471ab4
cmp byte [ebp - 0x68], bl
jne 0x471ab6
mov bl, 1
push esi
call fcn.004a1b5f
pop ecx
pop esi
test bl, bl
pop ebx
je 0x471ac8
mov eax, dword [ebp + 0x10]
leave
ret
mov eax, dword [ebp - 4]
test eax, eax
je 0x471aef
cmp byte [eax], 0x23
jne 0x471ad8
inc eax
mov dword [ebp - 4], eax
test eax, eax
je 0x471aef
push 0x10
lea ecx, [ebp - 4]
push ecx
push eax
call fcn.004b05a7
add esp, 0xc
mov edx, eax
jmp 0x471af2
mov edx, dword [ebp + 0x10]
mov eax, edx
movzx ecx, dl
sar eax, 8
movzx eax, al
shl ecx, 8
or eax, ecx
sar edx, 0x10
shl eax, 8
movzx ecx, dl
or eax, ecx
leave
ret
Function at 0x472383
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
lea eax, [ebp - 0x208]
push ebx
push esi
push 0x208
xor ebx, ebx
push ebx
push eax
call fcn.0049a3b0
add esp, 0xc
lea eax, [ebp - 0x208]
push dword [ebp + 8]
push 0x104
push eax
call fcn.0040c4d6
lea eax, [ebp - 0x208]
push eax
push 0x4d2ff0
push eax
call fcn.00476935
add esp, 0xc
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x208]
push 0x5c
pop edx
movzx ecx, word [eax]
test cx, cx
je 0x4723f2
cmp ecx, 0x2f
jne 0x4723ec
mov word [eax], dx
inc eax
add eax, 1
jne 0x4723dc
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4723f8
sub ecx, edx
lea esi, [ebp - 0x208]
sar ecx, 1
lea esi, [esi + ecx*2]
jmp 0x472470
cmp word [esi], bx
je 0x472474
push 0x5c
pop ebx
movzx eax, word [esi]
cmp ax, bx
je 0x472434
test ax, ax
je 0x472434
push esi
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
test esi, esi
jne 0x47241a
push 0
pop ebx
test esi, esi
je 0x472455
cmp word [esi], bx
jne 0x472450
push ebx
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x472470
xor eax, eax
mov word [esi], ax
push ebx
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test esi, esi
je 0x472474
push 0x5c
pop eax
mov word [esi], ax
add esi, 2
test esi, esi
jne 0x472412
pop esi
pop ebx
leave
ret

Function at 0x472478
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
lea eax, [ebp - 0x208]
push 0x208
push 0
push eax
call fcn.0049a3b0
add esp, 0xc
lea eax, [ebp - 0x208]
push 0x4d4fdc
push 0x504ee8
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4724da
push str.gen_ff.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x4724da
mov dword [0x52f8b4], 1
leave
ret
and dword [0x52f8b4], 0
xor eax, eax
inc eax
leave
ret