joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401ee2
Capabilities:
Read .ini file

Disassembly:
push 0x258
mov eax, 0x55c4e7
call fcn.0040a243
mov edi, ecx
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x401f0a
xor al, al
jmp 0x40206a
call fcn.004021fc
push 0x208
mov esi, eax
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00415ce0
add esp, 0xc
lea eax, [ebp - 0x248]
mov ecx, edi
push dword [ebp - 0x264]
push eax
call fcn.0040243e
and dword [ebp - 4], 0
lea ecx, [ebp - 0x218]
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
push esi
cmovae eax, dword [ebp - 0x248]
mov esi, 0x55e5d0
push 0x104
push ecx
push esi
push eax
push 0x55e720
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.0041c2d6
pop ecx
pop ecx
test eax, eax
jne 0x402019
and dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp dword [ebp - 0x234], 8
lea ecx, [ebp - 0x230]
push ecx
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0x248]
mov ecx, edi
push eax
push 0x55e720
call fcn.00402072
test al, al
jne 0x401fe3
push 0
push 1
lea ecx, [ebp - 0x230]
call fcn.004019dd
xor bl, bl
jmp 0x402059
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0041c316
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0
call fcn.004019dd
lea eax, [ebp - 0x218]
mov ecx, edi
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.004022fd
lea eax, [ebp - 0x260]
mov byte [ebp - 4], 2
cmp ebx, eax
je 0x402048
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
call fcn.00401bd5
push 0
push 1
lea ecx, [ebp - 0x260]
mov bl, 1
call fcn.004019dd
push 0
push 1
lea ecx, [ebp - 0x248]
call fcn.004019dd
mov al, bl
call fcn.0040a1ed
ret 8

Function at 0x402178
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
mov eax, dword [0x5dc050]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
call fcn.00401650
mov ecx, eax
call fcn.0041326e
push eax
push 0x64
lea eax, [ebp - 0xcc]
push eax
push 0x55e5d0
push str.UserID
push str.Setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0xcc], 0
jne 0x4021c8
xor eax, eax
jmp 0x4021d5
lea eax, [ebp - 0xcc]
push eax
call fcn.00419261
pop ecx
push eax
lea eax, [ebp - 0xcc]
mov ecx, esi
push eax
call fcn.00401c91
cmp dword [esi + 0x10], 0
mov ecx, dword [ebp - 4]
seta al
xor ecx, ebp
pop esi
call fcn.0040a1c7
mov esp, ebp
pop ebp
ret 4

Function at 0x40222b
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
mov eax, dword [0x5dc050]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00401650
mov ecx, eax
call fcn.0041326e
push eax
push 0x64
lea eax, [ebp - 0xcc]
push eax
push 0x55e5d0
push str.UserID
push str.Setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0xcc]
push eax
call fcn.00419261
cmp eax, 1
pop ecx
mov ecx, dword [ebp - 4]
setg al
xor ecx, ebp
call fcn.0040a1c7
mov esp, ebp
pop ebp
ret
Function at 0x40297f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5dc050]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
mov ecx, esi
call fcn.0040b6fc
mov ecx, esi
call fcn.00402a2b
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp word [ebp - 0x20c], di
je 0x4029d9
lea eax, [ebp - 0x20c]
push eax
call fcn.00419261
pop ecx
mov edi, eax
push edi
lea eax, [ebp - 0x20c]
add esi, 0x1b0
push eax
mov ecx, esi
call fcn.00401c91
mov edi, str.WanNengWB
push edi
call fcn.00419261
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00401b31
mov edi, 0x55e984
push edi
call fcn.00419261
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00401b31
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
inc eax
pop esi
call fcn.0040a1c7
mov esp, ebp
pop ebp
ret
Function at 0x40458a
Capabilities:
Check if file exists
Copy file

Disassembly:
push 0x34
mov eax, 0x55c871
call fcn.0040a243
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x40]
push eax
call fcn.004013f3
and dword [ebp - 4], 0
push 0x5c
push esi
call fcn.00415e3a
add eax, 2
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00402a5e
add esp, 0x18
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4045ed
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 1
cmovae eax, dword [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.004019dd
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.004019dd
call fcn.0040a1ed
ret 4
Function at 0x405b66
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x55c9fd
call fcn.0040a2b1
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x418], ebx
push 0x60
push ebx
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x405be3
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x405be3
call fcn.0040448a
mov esi, eax
jmp 0x405cba
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x405c06
call fcn.0040448a
jmp 0x405cad
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x405bfc
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x420], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x405c36
mov esi, 0x8007000e
jmp 0x405caf
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.004042a9
jmp 0x405c5c
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x405c2f
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x41c]
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x405bfc
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.00405a2b
mov esi, eax
test edi, edi
je 0x405cba
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x405cd3
lea ecx, [ebp - 0x418]
call fcn.00404de0
mov eax, esi
call fcn.0040a1fe
ret 0x10
Function at 0x4065ca
Capabilities:
Copy file

Disassembly:
push 0x64
mov eax, 0x55caa6
call fcn.0040a243
lea eax, [ebp - 0x70]
push eax
call fcn.004013f3
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
call fcn.00401650
mov ecx, eax
call fcn.00413302
push eax
lea ecx, [ebp - 0x58]
call fcn.00401320
mov esi, str.theme.ini
mov byte [ebp - 4], 1
push esi
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00402a5e
push esi
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00402a5e
add esp, 0x18
mov byte [ebp - 4], 3
call fcn.00401396
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
push edi
cmovae ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push edi
push 1
lea ecx, [ebp - 0x28]
call fcn.004019dd
push edi
push 1
lea ecx, [ebp - 0x40]
call fcn.004019dd
push edi
push 1
lea ecx, [ebp - 0x58]
call fcn.004019dd
push edi
push 1
lea ecx, [ebp - 0x70]
call fcn.004019dd
call fcn.0040a1ed
ret

Function at 0x40719d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4071b2
xor eax, eax
pop ebp
ret
and al, 0x10
xor cl, cl
cmp cl, al
sbb eax, eax
neg eax
pop ebp
ret
Function at 0x4071e7
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push edi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 0x1108], eax
je 0x407218
mov dword [edi + 0x10e4], 0x3f3
xor ebx, ebx
mov dword [edi + 0x10e8], ebx
mov dword [edi + 0x10ec], ebx
xor eax, eax
jmp 0x40735a
mov eax, dword [0x5e6424]
cmp eax, 0xffffffff
je 0x407239
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x407239
mov dword [edi + 0x10e4], 0x3f4
jmp 0x407203
push edi
push 1
call fcn.0040916b
pop ecx
pop ecx
test eax, eax
jne 0x40725b
xor ebx, ebx
mov dword [edi + 0x10e8], 0xe
mov dword [edi + 0x10e4], ebx
jmp 0x40720b
lea ecx, [edi + 0x10cc]
call fcn.00408f3a
xor ebx, ebx
cmp dword [edi + 0x10f0], ebx
jne 0x407211
cmp dword [edi + 0x110c], ebx
jne 0x407316
push esi
push 0x56040c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FDICreate
push eax
mov dword [edi + 0x110c], eax
call esi
push str.FDICopy
push dword [edi + 0x110c]
mov dword [edi + 0x1110], eax
call esi
push str.FDIIsCabinet
push dword [edi + 0x110c]
mov dword [edi + 0x1114], eax
call esi
push str.FDIDestroy
push dword [edi + 0x110c]
mov dword [edi + 0x1118], eax
call esi
mov dword [edi + 0x111c], eax
pop esi
cmp dword [edi + 0x1110], ebx
je 0x4072f8
cmp dword [edi + 0x1114], ebx
je 0x4072f8
cmp dword [edi + 0x1118], ebx
je 0x4072f8
test eax, eax
jne 0x407316
lea eax, [edi + 0x10cc]
mov dword [edi + 0x110c], ebx
mov dword [eax + 0x18], 0x3e8
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x20], ebx
jmp 0x407211
lea eax, [edi + 0x10cc]
push eax
push 1
push 0x40826a
push fcn.004081f0
push 0x408294
push 0x408240
push 0x408214
push fcn.0040a8ac
push fcn.004081c0
call dword [edi + 0x1110]
xor ecx, ecx
mov dword [edi + 0x10f0], eax
add esp, 0x24
test eax, eax
setne cl
mov eax, ecx
pop edi
pop ebx
ret

Function at 0x40735d
Capabilities:
Create directory

Disassembly:
push 8
mov eax, 0x55cc94
call fcn.0040a20f
push dword [ebp + 8]
call fcn.0040719d
pop ecx
test eax, eax
je 0x40737a
xor eax, eax
jmp 0x4073e6
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
call fcn.00406de0
push dword [ebp - 0x14]
and dword [ebp - 4], 0
call fcn.00408ee2
push 0x5c
push dword [ebp - 0x14]
call fcn.00415e3a
add esp, 0xc
test eax, eax
jne 0x4073a7
push 0xf
pop esi
jmp 0x4073db
push dword [ebp - 0x14]
xor ecx, ecx
mov word [eax], cx
call fcn.0040735d
mov esi, eax
pop ecx
test esi, esi
jne 0x4073db
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4073d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xb7
jne 0x4073db
xor esi, esi
push dword [ebp - 0x14]
call fcn.0040a8ac
pop ecx
mov eax, esi
call fcn.0040a1d8
ret
Function at 0x407846
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55cb72
mov eax, dword fs:[0]
push eax
mov eax, 0x1764
call fcn.0040a660
mov eax, dword [0x5dc050]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
call fcn.00415ce0
add esp, 0xc
call fcn.00401650
cmp dword [ebp + 0xc], 0
mov ecx, eax
je 0x4078a7
call fcn.00402970
jmp 0x4078ac
call fcn.00413302
push eax
lea eax, [ebp - 0x218]
push 0x55e694
push eax
call fcn.00401e62
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call fcn.00412b18
pop ecx
lea ecx, [ebp - 0x1760]
call fcn.00406d1a
and dword [ebp - 4], 0
lea ecx, [ebp - 0x1760]
call fcn.004071e7
test eax, eax
je 0x407a1d
push edi
lea ecx, [ebp - 0x1768]
call fcn.00406de0
lea eax, [ebp - 0x640]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x1768]
push eax
lea ecx, [ebp - 0x1760]
call fcn.00408bcd
push dword [ebp - 0x1768]
mov ebx, eax
mov byte [ebp - 4], 0
neg ebx
sbb bl, bl
call fcn.0040a8ac
pop ecx
add bl, 1
jne 0x407a1d
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x1770]
call fcn.00406de0
push edi
lea ecx, [ebp - 0x1768]
mov byte [ebp - 4], 2
call fcn.00406de0
push esi
lea eax, [ebp - 0x1770]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x1768]
push eax
lea ecx, [ebp - 0x1760]
call fcn.00407e17
push dword [ebp - 0x1768]
mov ebx, eax
neg ebx
sbb bl, bl
call fcn.0040a8ac
push dword [ebp - 0x1770]
mov byte [ebp - 4], 0
call fcn.0040a8ac
pop ecx
pop ecx
add bl, 1
jne 0x407a1d
lea ecx, [ebp - 0x1760]
call fcn.004071be
test eax, eax
je 0x407a1d
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00408dbb
test al, al
je 0x407a18
mov ecx, esi
call fcn.00408d86
test al, al
je 0x407a18
push str.VipSkin.xml
lea eax, [ebp - 0x218]
mov esi, 0x55e5d4
push eax
lea eax, [ebp - 0x628]
push esi
push eax
call fcn.00401e62
push str.Skin.xml
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push esi
push eax
call fcn.00401e62
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x628]
push eax
call fcn.00421df3
add esp, 0x28
xor ebx, ebx
inc ebx
jmp 0x407a1f
xor bl, bl
lea ecx, [ebp - 0x1760]
call fcn.00406ead
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040a1c7
mov esp, ebp
pop ebp
ret 8
Function at 0x407e17
Capabilities:
Delete file

Disassembly:
push 0x20
mov eax, 0x55cbba
call fcn.0040a20f
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor edi, edi
cmp dword [ebx + 0x1108], eax
je 0x407e52
mov dword [ebx + 0x10e4], 0x3f3
mov dword [ebx + 0x10e8], edi
mov dword [ebx + 0x10ec], edi
xor eax, eax
jmp 0x408040
cmp dword [ebx + 0x10f0], edi
je 0x407e4b
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov dword [ebx + 0x1104], eax
mov dword [ebx + 0x10f4], edi
mov eax, dword [ebx + 0xc]
mov dword [ebx + 8], edi
mov word [eax], cx
mov eax, dword [ebx + 0x14]
mov word [eax], cx
lea ecx, [ebx + 0x10cc]
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x20], edi
mov dword [ebx + 0x24], edi
call fcn.00408f3a
push dword [ebp + 0xc]
lea esi, [ebx + 0x58]
mov dword [ebx + 0x4c], edi
mov ecx, esi
call fcn.00406f75
push esi
call fcn.0040913f
mov dword [esp], str.MEMORY_
push dword [esi]
call fcn.004192ff
neg eax
pop ecx
sbb eax, eax
pop ecx
inc eax
lea ecx, [ebp - 0x2c]
mov dword [ebx + 0x10f8], eax
call fcn.00406e25
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], edi
call fcn.00406e25
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 8]
call fcn.004090cb
add esp, 0xc
mov ecx, esi
call fcn.00408e6c
cmp eax, 3
jb 0x408018
lea ecx, [ebp - 0x2c]
call fcn.00408e6c
cmp eax, 2
jb 0x408018
lea ecx, [ebp - 0x24]
call fcn.00408e6c
cmp eax, 2
jb 0x408018
mov eax, dword [ebx + 0x60]
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x1c]
call fcn.00406dc3
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00406dc3
jmp 0x407f90
lea ecx, [ebx + 0x60]
call fcn.00408e6c
test eax, eax
je 0x407fce
mov esi, dword [ebx + 0x60]
lea ecx, [ebx + 0x60]
call fcn.00408e6c
push eax
push esi
lea ecx, [ebp - 0x24]
call fcn.00407171
push dword [ebp - 0x14]
call fcn.0040a8ac
push dword [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0040a8ac
mov eax, dword [ebx + 0x60]
pop ecx
pop ecx
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x1c]
call fcn.00406dc3
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00406dc3
push dword [ebp + 0x10]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
push edi
push 0x4081c9
push edi
push dword [ebp - 0x2c]
call fcn.00407a4a
mov esi, dword [ebp - 0x24]
lea ecx, [ebp - 0x1c]
push eax
push esi
call fcn.00407a4a
push eax
push dword [ebx + 0x10f0]
call dword [ebx + 0x1114]
add esp, 0x1c
test eax, eax
jne 0x407f39
push dword [ebp - 0x14]
call fcn.0040a8ac
push dword [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0040a8ac
pop ecx
pop ecx
push dword [ebx + 8]
mov ecx, ebx
call fcn.0040875d
cmp dword [ebx + 0x10f4], edi
je 0x408004
cmp dword [ebx + 8], edi
je 0x408004
push dword [ebx + 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebx + 0x10cc]
call fcn.00408bb8
mov edi, eax
neg edi
sbb edi, edi
inc edi
jmp 0x40802e
mov esi, dword [ebp - 0x24]
lea eax, [ebx + 0x10cc]
mov dword [eax + 0x18], 0x3ea
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], edi
push esi
call fcn.0040a8ac
push dword [ebp - 0x2c]
call fcn.0040a8ac
pop ecx
pop ecx
mov eax, edi
call fcn.0040a1d8
ret 0xc
Function at 0x408dbb
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x5dc050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push str.Skin.xml
push esi
mov ebx, 0x55e5d4
push ebx
push eax
call fcn.00401e62
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x408e03
xor al, al
jmp 0x408e2b
push str.VipSkin.xml
push esi
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.00401e62
add esp, 0x10
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a1c7
mov esp, ebp
pop ebp
ret 4

Function at 0x408e9b
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
test dword [ebp + 0xc], 0x100
je 0x408eb5
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004091f8
add esp, 0xc
pop ebp
ret 0xc

Function at 0x408eca
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042338a
add esp, 0xc
pop ebp
ret 0xc

Function at 0x40903e
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4090c4
push esi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
mov esi, dword [ebp + 0x14]
test eax, eax
je 0x4090af
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
test esi, 0x100
ja 0x4090a1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea eax, [ebp - 8]
push eax
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and esi, 0x27
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop esi
pop edi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40b601
Capabilities:
Read .ini file

Disassembly:
push 0x82c
mov eax, 0x55cddb
call fcn.0040a243
mov edi, ecx
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x830], eax
mov eax, dword [ebp + 0x10]
push 0x800
mov dword [ebp - 0x82c], eax
lea eax, [ebp - 0x810]
push ecx
push eax
mov dword [ebp - 4], ecx
mov dword [ebp - 0x838], esi
mov dword [ebp - 0x834], ecx
call fcn.00415ce0
lea eax, [edi + 0x8c]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x40b65e
mov eax, dword [eax]
push eax
push 0x400
lea eax, [ebp - 0x810]
push eax
push ebx
push dword [ebp - 0x82c]
push dword [ebp - 0x830]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x810]
mov ecx, esi
push eax
call fcn.00401320
and dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x834], 1
jb 0x40b6a4
mov eax, dword [esi]
jmp 0x40b6a6
mov eax, esi
push ebx
push eax
call fcn.0041c2d6
pop ecx
pop ecx
test eax, eax
jne 0x40b6f2
cmp byte [edi + 5], 0
lea eax, [ebp - 0x828]
push ebx
push dword [ebp - 0x82c]
mov ecx, edi
push dword [ebp - 0x830]
push eax
je 0x40b6d6
call fcn.0040b51d
jmp 0x40b6db
call fcn.0040b5d7
push eax
mov ecx, esi
call fcn.00401345
push 0
push 1
lea ecx, [ebp - 0x828]
call fcn.004019dd
mov eax, esi
call fcn.0040a1ed
ret 0x10
Function at 0x40c2a6
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa44
mov eax, dword [0x5dc050]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
xor esi, esi
lea eax, [ebp - 0x20c]
push esi
push eax
mov edi, ecx
call fcn.00415ce0
lea eax, [edi + 0x2c]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x40c2df
mov eax, dword [eax]
push str.Config
push eax
lea eax, [ebp - 0x20c]
push 0x55e67c
push eax
call fcn.00401e62
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40c317
lea eax, [ebp - 0x20c]
push eax
call fcn.0040cf09
pop ecx
push 0x208
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.00415ce0
push str.UseVestige.ini
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push 0x55e5d4
push eax
call fcn.00401e62
add esp, 0x1c
cmp word [ebp - 0x414], si
jne 0x40c356
mov eax, esi
jmp 0x40c363
lea eax, [ebp - 0x414]
push eax
call fcn.00419261
pop ecx
push eax
lea eax, [ebp - 0x414]
push eax
lea ecx, [edi + 0x8c]
call fcn.00401c91
push 0x208
lea eax, [ebp - 0x61c]
push esi
push eax
call fcn.00415ce0
push str.Cache.ini
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push 0x55e5d4
push eax
call fcn.00401e62
add esp, 0x1c
cmp word [ebp - 0x61c], si
jne 0x40c3b5
mov eax, esi
jmp 0x40c3c2
lea eax, [ebp - 0x61c]
push eax
call fcn.00419261
pop ecx
push eax
lea eax, [ebp - 0x61c]
push eax
lea ecx, [edi + 0xa4]
call fcn.00401c91
push 0x208
lea eax, [ebp - 0x824]
push esi
push eax
call fcn.00415ce0
lea eax, [ebp - 0xa44]
push str.ShxlPath
push eax
call fcn.0040e01e
add esp, 0x14
cmp dword [eax + 0x14], 8
jb 0x40c403
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x824]
push 0x55e694
push eax
call fcn.00401e62
add esp, 0xc
lea ecx, [ebp - 0xa44]
push esi
push 1
call fcn.004019dd
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40c444
lea eax, [ebp - 0x824]
push eax
call fcn.0040cf09
pop ecx
push 0x208
lea eax, [ebp - 0xa2c]
push esi
push eax
call fcn.00415ce0
push str.Cache.ini
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0xa2c]
push 0x55e5d4
push eax
call fcn.00401e62
add esp, 0x1c
cmp word [ebp - 0xa2c], si
je 0x40c48e
lea eax, [ebp - 0xa2c]
push eax
call fcn.00419261
pop ecx
mov esi, eax
push esi
lea eax, [ebp - 0xa2c]
push eax
lea ecx, [edi + 0xbc]
call fcn.00401c91
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040a1c7
mov esp, ebp
pop ebp
ret