joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44330a
Capabilities:
Get file size

Disassembly:
mov eax, 0x4e930c
call fcn.004e1580
sub esp, 0xa4
push ebx
push esi
push edi
mov esi, ecx
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [ecx - 8], eax
je 0x44347c
mov ecx, dword [esi + 0x40]
lea edi, [esi + 0x40]
cmp dword [ecx - 8], eax
je 0x44347c
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_3
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x20]
push edi
push eax
call sub.MFC42.DLL_operator_3
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0xb0]
push 0x2000
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4433a7
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 0x1c]
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], ecx
jne 0x4433ba
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
push 3
jmp 0x44347e
push ebx
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, dword [esi + 0x44]
mov edi, dword [edi]
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsSameRootA]
test eax, eax
jne 0x4433de
mov eax, dword [ebp - 0x18]
add dword [esi + 0x10], eax
mov eax, dword [ebp - 0x24]
adc dword [esi + 0x14], eax
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_3
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 3
push eax
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call sub.MFC42.DLL_CString::CString_1
call fcn.00442d05
mov edi, eax
pop ecx
test edi, edi
pop ecx
je 0x443426
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov esi, edi
jmp 0x44347f
xor edi, edi
cmp dword [esi + 0x34], edi
jle 0x44344b
mov eax, dword [esi + 0x30]
push dword [ebp - 0x14]
lea eax, [eax + edi*4]
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
pop ecx
test eax, eax
pop ecx
je 0x44344b
inc edi
cmp edi, dword [esi + 0x34]
jl 0x44342d
cmp edi, dword [esi + 0x34]
jl 0x443460
mov eax, dword [esi + 0x34]
lea ecx, [esi + 0x2c]
lea edx, [ebp - 0x14]
push edx
push eax
call sub.MFC42.DLL_CStringArray::SetAtGrow
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
xor esi, esi
jmp 0x44347f
push 1
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x44349e
Capabilities:
Delete file

Disassembly:
mov eax, 0x4e9320
call fcn.004e1580
sub esp, 0xc
push esi
push edi
mov esi, ecx
xor edi, edi
test byte [esi + 0x48], 1
je 0x4434e4
cmp edi, dword [esi + 0x20]
jge 0x4434e4
mov eax, dword [esi + 0x1c]
lea eax, [eax + edi*4]
push eax
lea eax, [esi + 0x40]
push eax
lea eax, [ebp - 0x10]
push eax
call sub.MFC42.DLL_operator_3
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
inc edi
jmp 0x4434b1
xor edi, edi
test byte [esi + 0x48], 2
je 0x443527
cmp edi, dword [esi + 0x34]
jge 0x443527
push ecx
lea eax, [esi + 0x40]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call sub.MFC42.DLL_CString::CString_1
and dword [ebp - 4], 0
push edi
lea ecx, [esi + 0x2c]
call fcn.00443538
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call sub.MFC42.DLL_CString::CString_1
or dword [ebp - 4], 0xffffffff
call fcn.00442edb
pop ecx
inc edi
pop ecx
jmp 0x4434e6
mov ecx, dword [ebp - 0xc]
push 1
pop eax
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret
Function at 0x462d64
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
mov eax, 0x4ec274
call fcn.004e1580
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x10], esi
mov dword [esi + 4], ebx
lea ecx, [esi + 0x10]
mov dword [ebp - 4], ebx
mov dword [esi + 0xc], ebx
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x14]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x1c]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x28]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x58]
mov byte [ebp - 4], 9
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x68]
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x6c]
mov byte [ebp - 4], 0xc
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [ebp + 8]
mov dword [esi + 0x7c], eax
mov dword [esi + 0x84], ebx
or dword [esi + 0x3c], 0xffffffff
mov edi, 0x52fdc0
mov dword [esi + 0x48], ebx
push edi
lea ecx, [esi + 0x58]
mov byte [ebp - 4], 0xe
mov dword [esi], 0x503164
mov dword [esi + 8], 1
mov dword [esi + 0x24], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
call sub.MFC42.DLL_CString::operator_2
push edi
lea ecx, [esi + 0x6c]
mov dword [esi + 0x5c], ebx
call sub.MFC42.DLL_CString::operator_2
mov dword [esi + 0x64], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x78], ebx
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x80], eax
mov dword [esi + 0x8c], ebx
mov dword [esi + 0xf4], ebx
mov byte [esi + 0x74], bl
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x46a5ed
Capabilities:
Get disk information

Disassembly:
mov eax, 0x4ed018
call fcn.004e1580
sub esp, 0x118
push ebx
push esi
push edi
mov esi, ecx
lea eax, [ebp + 8]
xor ebx, ebx
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::CString_1
push dword [ebp - 0x14]
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 1
push eax
call fcn.004d3048
pop ecx
pop ecx
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea eax, [ebp + 8]
lea ecx, [ebp - 0x10]
push eax
call sub.MFC42.DLL_CString::CString_1
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 3
push eax
call fcn.00442e04
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x123]
mov byte [ebp - 0x124], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x124]
mov dword [esp], 0x100
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
lea edi, [esi + 0x98]
lea eax, [ebp - 0x124]
push eax
mov ecx, edi
call sub.MFC42.DLL_CString::operator_2
mov ecx, edi
call sub.MFC42.DLL_CString::MakeUpper
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], ebx
je 0x46a795
push dword [esi + 0x74]
mov edi, dword [sym.imp.MSVCRT.dll__mbsicmp]
lea ecx, [esi + 0x74]
push eax
mov dword [ebp - 0x18], ecx
call edi
pop ecx
test eax, eax
pop ecx
je 0x46a795
push dword [esi + 0x78]
lea eax, [esi + 0x78]
mov dword [ebp - 0x1c], eax
push dword [ebp + 8]
call edi
pop ecx
test eax, eax
pop ecx
jne 0x46a6fc
cmp dword [ebp + 0xc], ebx
je 0x46a78d
push 1
push 0x81d5
mov ecx, esi
call fcn.0046a0d2
jmp 0x46a78d
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x58]
push eax
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call sub.MFC42.DLL_CString::CString_1
call fcn.0046ac85
add esp, 0xc
cmp eax, ebx
jne 0x46a746
cmp dword [ebp + 0xc], ebx
je 0x46a732
push 5
push 0x81cc
mov ecx, esi
call fcn.0046a0d2
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push eax
mov dword [esi + 0x84], ebx
call sub.MFC42.DLL_CString::operator_1
jmp 0x46a7ae
push dword [ebp + 8]
mov eax, dword [esi + 0x70]
push eax
call edi
pop ecx
test eax, eax
pop ecx
je 0x46a791
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call sub.MFC42.DLL_CString::CString_1
call fcn.0046ad1b
cmp eax, ebx
pop ecx
jne 0x46a791
cmp dword [ebp + 0xc], ebx
je 0x46a781
push 1
push 0x81d5
mov ecx, esi
call fcn.0046a0d2
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp + 8]
push eax
call sub.MFC42.DLL_CString::operator_1
push 1
jmp 0x46a7b0
xor esi, esi
jmp 0x46a7b1
cmp dword [ebp + 0xc], ebx
je 0x46a7a8
push 5
push 0x81cc
mov ecx, esi
call fcn.0046a0d2
mov dword [esi + 0x84], ebx
push 2
pop esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
Function at 0x46ac85
Capabilities:
Get disk size

Disassembly:
mov eax, 0x4ed0ac
call fcn.004e1580
sub esp, 0x18
push esi
xor esi, esi
lea ecx, [ebp + 8]
mov dword [ebp - 4], esi
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::TrimLeft
mov eax, dword [ebp + 8]
cmp dword [eax - 8], esi
je 0x46ad00
push esi
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripToRootA]
test eax, eax
je 0x46ad00
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x46ad00
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x10]
mov dword [eax + 4], ecx
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x46acfd
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x18]
mov dword [eax + 4], ecx
push 1
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x46bc93
Capabilities:
Read .ini file

Disassembly:
cmp byte [ecx + 0x518], 0
lea eax, [ecx + 0x518]
jne 0x46bcaf
mov dword [ecx], 2
mov eax, 0x80004004
jmp 0x46bccf
add ecx, 0x414
push ecx
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x1c]
push dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
xor eax, eax
ret 0x10

Function at 0x46bfd1
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push esi
mov esi, ecx
push eax
push 4
push esi
push 0x46c029
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
push dword [ebp - 4]
mov dword [esi + 0x64], eax
push str.CheckSecurityThread
push str.CSecurity
push str.ComThunder
call fcn.004d4ea3
mov eax, dword [esi + 0x64]
add esp, 0x28
test eax, eax
je 0x46c024
push 0xfffffffffffffffe
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push dword [esi + 0x64]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
pop esi
leave
ret
Function at 0x46c311
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50c
push ebx
push esi
push edi
xor edi, edi
push 0x104
lea eax, [ebp - 0x10c]
push edi
mov ebx, ecx
push eax
mov dword [ebp - 4], edi
call sub.MSVCRT.dll_memset
mov esi, 0x400
lea eax, [ebp - 0x50c]
push esi
push edi
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
add ebx, 0x68
lea eax, [ebp - 0x10c]
push str.ProgramSCID.dat
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
push edi
push 0x80
push 3
push edi
push 1
lea eax, [ebp - 0x10c]
push Ordinal_1
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x46c3e3
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 0x50c]
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
cmp dword [ebp - 4], eax
jne 0x46c3e3
push 0x40
mov esi, 0x5314c0
push edi
push esi
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x50c]
push esi
push 0x52ca10
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0xc
dec eax
neg eax
sbb eax, eax
inc eax
jmp 0x46c3e5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x46c3ea
Capabilities:
Terminate thread

Disassembly:
mov eax, 0x4ed15c
call fcn.004e1580
sub esp, 0xc
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x64], ebx
je 0x46c495
push dword [esi + 0x60]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1f4
push dword [esi + 0x64]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x46c42f
push 1
push dword [esi + 0x64]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x64]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x64], ebx
call fcn.004cbba4
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x18], esi
je 0x46c44f
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov eax, dword [esi]
lea ecx, [ebp - 0x10]
push ecx
push esi
mov byte [ebp - 4], 1
call dword [eax + 0x34]
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x46c47a
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x10]
cmp eax, ebx
mov byte [ebp - 4], bl
je 0x46c487
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x46c495
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov ecx, dword [ebp - 0xc]
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x46d9b8
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4ed1fc
call fcn.004e1580
sub esp, 0x44
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
call sub.MFC42.DLL_CString::CString_3
push dword [ebx + 0xc]
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push dword [ebx + 8]
push dword [ebx + 4]
push dword [ebx]
push str._d__d__d__d
push eax
call sub.MFC42.DLL_CString::Format_1
and byte [ebp - 0x50], 0
add esp, 0x18
xor eax, eax
lea edi, [ebp - 0x4f]
push 0xf
pop ecx
rep stosd dword es:[edi], eax
push dword [ebp + 8]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x50]
push 0x3f
push eax
push dword [ebp - 0x10]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp + 0x18]
xor edi, edi
call sub.MFC42.DLL_CString::CString_3
push 0x2c
lea eax, [ebp - 0x50]
push edi
push eax
lea eax, [ebp + 0x18]
mov byte [ebp - 4], 1
push eax
call sub.MFC42.DLL_AfxExtractSubString
test eax, eax
je 0x46daaa
mov esi, dword [sym.imp.MSVCRT.dll_atoi]
test edi, edi
jne 0x46da5e
push dword [ebp + 0x18]
call esi
pop ecx
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
jmp 0x46da95
cmp edi, 1
jne 0x46da71
push dword [ebp + 0x18]
call esi
pop ecx
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 4], eax
jmp 0x46da95
cmp edi, 2
jne 0x46da84
push dword [ebp + 0x18]
call esi
pop ecx
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 8], eax
jmp 0x46da95
cmp edi, 3
jne 0x46daaa
push dword [ebp + 0x18]
call esi
pop ecx
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 0xc], eax
inc edi
push 0x2c
lea eax, [ebp - 0x50]
push edi
push eax
lea eax, [ebp + 0x18]
push eax
call sub.MFC42.DLL_AfxExtractSubString
test eax, eax
jne 0x46da4d
and byte [ebp - 4], 0
lea ecx, [ebp + 0x18]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
push 1
pop eax
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x46db27
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push dword [ebp + 0xc]
and dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x46db48
push 0x52fdc0
jmp 0x46db89
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x104]
push dword [ebp + 0xc]
push 0xff
push eax
push 0x52fdc0
push str.SkinName
push str.SkinInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x104]
push eax
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CString::CString_4
mov eax, dword [ebp + 8]
leave
ret
Function at 0x46e118
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
mov eax, 0x4ed388
call fcn.004e1580
sub esp, 0x164
push ebx
lea eax, [ebp - 0x14]
push 2
mov ebx, ecx
push eax
call fcn.0041aab4
pop ecx
pop ecx
and dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push 0x52cdc0
push eax
lea eax, [ebp - 0x1c]
push eax
call sub.MFC42.DLL_operator_2
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_3
lea eax, [ebp - 0x170]
mov byte [ebp - 4], 2
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
test eax, eax
mov dword [ebp - 0x18], eax
je 0x46e287
lea eax, [ebp - 0x170]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x46e27e
push esi
push edi
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x28]
push eax
call sub.MFC42.DLL_operator_2
push str._skin.ini
push eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 3
push eax
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x46e264
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2c]
push eax
call sub.MFC42.DLL_operator_2
push 0x52a1c4
push eax
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 5
push eax
call sub.MFC42.DLL_operator_2
mov esi, dword [eax]
push dword [ebp - 0x10]
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 6
push eax
call fcn.0046db27
push dword [ebp - 0x10]
mov edi, dword [eax]
mov byte [ebp - 4], 7
call fcn.0046db96
add esp, 0xc
mov ecx, ebx
push eax
push esi
push edi
call fcn.0046e2b8
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0x170]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x46e193
pop edi
pop esi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x46e72b
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4ed45c
call fcn.004e1580
push ecx
push ecx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_3
mov edi, dword [ebp + 8]
and dword [ebp - 4], 0
test edi, edi
jle 0x46e766
lea eax, [ebp - 0x10]
lea ecx, [esi + 0x24]
push eax
push edi
call fcn.0046f9e9
test eax, eax
jne 0x46e766
xor esi, esi
jmp 0x46e807
cmp edi, 0xfffffffe
jne 0x46e7b3
lea eax, [ebp + 8]
push 2
push eax
call fcn.0041aab4
pop ecx
pop ecx
lea eax, [ebp + 8]
push str.vipdefault_skin.ini
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 1
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
cmp edi, 0xffffffff
je 0x46e7db
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], 0
je 0x46e7db
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x46e75f
push dword [ebp - 0x10]
mov ecx, esi
mov dword [esi + 0x48], edi
call fcn.0046eaf7
jmp 0x46e805
mov edi, 0x52fdc0
lea ecx, [esi + 0x40]
push edi
call sub.MFC42.DLL_CString::operator_2
push edi
lea ecx, [esi + 0x44]
call sub.MFC42.DLL_CString::operator_2
call fcn.0046e825
test eax, eax
je 0x46e801
mov ecx, dword [esi + 0x4c]
mov dword [esi + 0x48], ecx
and dword [esi + 0x50], 0
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x46eaf7
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4ed48c
call fcn.004e1580
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, ecx
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x46eb46
mov edi, 0x52fdc0
lea ecx, [esi + 0x40]
push edi
call sub.MFC42.DLL_CString::operator_2
push edi
lea ecx, [esi + 0x44]
call sub.MFC42.DLL_CString::operator_2
call fcn.0046e825
test eax, eax
je 0x46eb3d
mov ecx, dword [esi + 0x4c]
mov dword [esi + 0x48], ecx
and dword [esi + 0x50], 0
jmp 0x46ecc3
lea edi, [esi + 0x40]
push ebx
mov ecx, edi
call sub.MFC42.DLL_CString::operator_2
mov ecx, edi
call sub.MFC42.DLL_CString::TrimLeft
mov ecx, edi
call sub.MFC42.DLL_CString::TrimRight
mov ecx, edi
call sub.MFC42.DLL_CString::MakeLower
push dword [edi]
lea eax, [ebp - 0x14]
push eax
call fcn.0046db27
pop ecx
pop ecx
and dword [ebp - 4], 0
push eax
lea ecx, [esi + 0x44]
call sub.MFC42.DLL_CString::operator_1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
push ebx
call fcn.0046db96
mov dword [esi + 0x50], eax
mov eax, dword [esi + 0x30]
neg eax
pop ecx
sbb eax, eax
lea ecx, [ebp + 8]
mov dword [ebp - 0x10], eax
call sub.MFC42.DLL_CString::CString_3
mov dword [ebp - 4], 1
cmp dword [ebp - 0x10], 0
je 0x46ebea
lea eax, [ebp + 8]
lea ecx, [esi + 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0046fb01
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::MakeLower
push dword [edi]
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__mbscmp]
pop ecx
test eax, eax
pop ecx
jne 0x46ebaf
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x48], eax
jmp 0x46ebaf
push 0x530b20
push ebx
push dword [esi + 0x50]
call fcn.0046ecd4
push 0x531b08
push ebx
push dword [esi + 0x50]
call fcn.0046ee43
push 0x533510
push ebx
call fcn.0046ee03
push 0x5337e8
push ebx
call fcn.0046eeb5
push 0x5333f8
push ebx
call fcn.0046ef84
push 0x533598
push ebx
call fcn.0046f086
push 0x530990
push ebx
call fcn.0046f0f6
add esp, 0x40
push 0x5316c8
push ebx
call fcn.0046f1b6
push 0x531a30
push ebx
call fcn.0046f1f2
push 0x5319b8
push ebx
call fcn.0046f265
push 0x530110
push ebx
call fcn.0046f325
push 0x5300f8
push ebx
call fcn.0046f385
push 0x5300e0
push ebx
call fcn.0046f3e5
push 0x5300c8
push ebx
call fcn.0046f445
push 0x5303c0
push ebx
call fcn.0046f4a5
add esp, 0x40
push 0x531ab0
push ebx
call fcn.0046f546
push 0x53326c
push ebx
call fcn.0046f584
or dword [ebp - 4], 0xffffffff
add esp, 0x10
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4