joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100025b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x10002608
cmp byte [esi + ebx - 1], 0xa
je 0x100025dc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x10003118], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x402731
Capabilities:
Delete file

Disassembly:
push 0x34
mov eax, 0x53a4e3
call fcn.0040c217
lea eax, [ebp - 0x40]
push eax
call fcn.0040278e
and dword [ebp - 4], 0
mov dword [esp], str.theme.ini
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00402020
add esp, 0xc
lea ecx, [ebp - 0x40]
push 0
push 1
call fcn.00401420
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00401420
call fcn.0040c1c1
ret

Function at 0x402822
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x59c024]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x40294a
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004177a0
lea eax, [ebp - 0x42c]
push eax
call fcn.0040278e
add esp, 0x10
cmp dword [eax + 0x14], 8
jb 0x40286f
mov eax, dword [eax]
push str..lspf
push esi
push eax
lea eax, [ebp - 0x20c]
push 0x53c674
push eax
call fcn.00402b60
add esp, 0x14
lea ecx, [ebp - 0x42c]
push 0
push 1
call fcn.00401420
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4028da
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x42c]
push eax
call fcn.00413d43
pop ecx
pop ecx
push eax
mov ecx, edi
call fcn.00401b20
push 0
push 1
lea ecx, [ebp - 0x42c]
call fcn.00401420
mov al, 1
jmp 0x40294c
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004177a0
lea eax, [ebp - 0x42c]
push eax
call fcn.0040278e
add esp, 0x10
cmp dword [eax + 0x14], 8
jb 0x402904
mov eax, dword [eax]
push str..lsepf
push esi
push eax
lea eax, [ebp - 0x414]
push 0x53c674
push eax
call fcn.00402b60
add esp, 0x14
lea ecx, [ebp - 0x42c]
push 0
push 1
call fcn.00401420
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40294a
lea eax, [ebp - 0x414]
jmp 0x4028b0
xor al, al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040c19b
mov esp, ebp
pop ebp
ret

Function at 0x405106
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x59c024]
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.0040d676
mov ecx, esi
call fcn.004051b2
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp word [ebp - 0x20c], di
je 0x405160
lea eax, [ebp - 0x20c]
push eax
call fcn.0041af11
pop ecx
mov edi, eax
push edi
lea eax, [ebp - 0x20c]
add esi, 0x1ac
push eax
mov ecx, esi
call fcn.004014e0
mov edi, str.LanShanIME
push edi
call fcn.0041af11
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00401dd0
mov edi, 0x53d38c
push edi
call fcn.0041af11
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00401dd0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
inc eax
pop esi
call fcn.0040c19b
mov esp, ebp
pop ebp
ret
Function at 0x405261
Capabilities:
Delete registry value
Read .ini file

Disassembly:
push 0x844
mov eax, 0x53abcc
call fcn.0040c217
mov esi, 0x208
lea eax, [ebp - 0x420]
push esi
xor edi, edi
push edi
push eax
call fcn.004177a0
add esp, 0xc
call fcn.004029eb
mov ecx, eax
call fcn.0040d47f
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.0041dfc6
lea eax, [ebp - 0x420]
push str.ConfigUseVestige.ini
push eax
call fcn.00423cea
add esp, 0x10
lea eax, [ebp - 0x420]
push eax
push edi
push str.UpInstallFlagV4
push str.Setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, 1
jne 0x4053d5
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x850]
push eax
mov ebx, 0xf003f
push ebx
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.WS2_32.dll_bind
call esi
test eax, eax
je 0x405301
xor eax, eax
jmp 0x405478
lea eax, [ebp - 0x84c]
push eax
push ebx
push edi
push 0x53d604
push dword [ebp - 0x850]
call esi
test eax, eax
je 0x40533d
push edi
lea eax, [ebp - 0x84c]
push eax
push edi
push ebx
push edi
push edi
push edi
push 0x53d60c
push dword [ebp - 0x850]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4053ba
xor eax, eax
mov dword [ebp - 0x834], 7
mov esi, 0x53d610
mov dword [ebp - 0x838], edi
push esi
mov word [ebp - 0x848], ax
call fcn.0041af11
pop ecx
push eax
push esi
lea ecx, [ebp - 0x848]
call fcn.004014e0
mov esi, str.Moniter
mov dword [ebp - 4], edi
push esi
call fcn.0041af11
pop ecx
push eax
push esi
lea ecx, [ebp - 0x848]
call fcn.00401dd0
cmp dword [ebp - 0x834], 8
lea eax, [ebp - 0x848]
cmovae eax, dword [ebp - 0x848]
push eax
push dword [ebp - 0x84c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push edi
push 1
lea ecx, [ebp - 0x848]
call fcn.00401420
push dword [ebp - 0x84c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x850]
call esi
jmp 0x4052fa
push 0x493e0
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.004177a0
push esi
lea eax, [ebp - 0x628]
push edi
push eax
call fcn.004177a0
push esi
lea eax, [ebp - 0x830]
push edi
push eax
call fcn.004177a0
add esp, 0x24
lea eax, [ebp - 0x218]
push 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.0041912d
lea ecx, [ebp - 0x218]
sub eax, ecx
sar eax, 1
inc eax
push eax
mov eax, ecx
push eax
lea eax, [ebp - 0x628]
push eax
call fcn.00423d75
push str.LanShanMutual.exe
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0x830]
push str.__s_s__UpInstallPast
push ecx
call fcn.00402b60
lea ecx, [ebp - 0x830]
push ecx
call fcn.00414020
xor eax, eax
add esp, 0x28
inc eax
call fcn.0040c1c1
ret
Function at 0x406b68
Capabilities:
Check if file exists
Copy file

Disassembly:
push 0x34
mov eax, 0x53a4e3
call fcn.0040c217
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x40]
push eax
call fcn.0040278e
and dword [ebp - 4], 0
push 0x5c
push esi
call fcn.0041912d
add eax, 2
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004051e5
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 0x406bcb
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.00401420
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.00401420
call fcn.0040c1c1
ret 4
Function at 0x40864d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x53ae3f
call fcn.0040c285
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 0x4086ca
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 0x4086ca
call fcn.00406a68
mov esi, eax
jmp 0x4087a1
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4086ed
call fcn.00406a68
jmp 0x408794
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x4086e3
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 0x40871d
mov esi, 0x8007000e
jmp 0x408796
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00406887
jmp 0x408743
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x408716
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 0x4086e3
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.00408512
mov esi, eax
test edi, edi
je 0x4087a1
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x4087ba
lea ecx, [ebp - 0x418]
call fcn.004078c7
mov eax, esi
call fcn.0040c1d2
ret 0x10
Function at 0x4090b1
Capabilities:
Copy file

Disassembly:
push 0x64
mov eax, 0x53aee8
call fcn.0040c217
lea eax, [ebp - 0x70]
push eax
call fcn.0040278e
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
call fcn.004029eb
mov ecx, eax
call fcn.004147dc
push eax
lea ecx, [ebp - 0x58]
call fcn.004013b0
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.004051e5
push esi
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004051e5
add esp, 0x18
mov byte [ebp - 4], 3
call fcn.00402731
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.00401420
push edi
push 1
lea ecx, [ebp - 0x40]
call fcn.00401420
push edi
push 1
lea ecx, [ebp - 0x58]
call fcn.00401420
push edi
push 1
lea ecx, [ebp - 0x70]
call fcn.00401420
call fcn.0040c1c1
ret

Function at 0x409ba4
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 0x409bb9
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 0x409bee
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 0x409c1f
mov dword [edi + 0x10e4], 0x3f3
xor ebx, ebx
mov dword [edi + 0x10e8], ebx
mov dword [edi + 0x10ec], ebx
xor eax, eax
jmp 0x409d61
mov eax, dword [0x5ac7c8]
cmp eax, 0xffffffff
je 0x409c40
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x409c40
mov dword [edi + 0x10e4], 0x3f4
jmp 0x409c0a
push edi
push 1
call fcn.0040bb75
pop ecx
pop ecx
test eax, eax
jne 0x409c62
xor ebx, ebx
mov dword [edi + 0x10e8], 0xe
mov dword [edi + 0x10e4], ebx
jmp 0x409c12
lea ecx, [edi + 0x10cc]
call fcn.0040b944
xor ebx, ebx
cmp dword [edi + 0x10f0], ebx
jne 0x409c18
cmp dword [edi + 0x110c], ebx
jne 0x409d1d
push esi
push 0x53ef50
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 0x409cff
cmp dword [edi + 0x1114], ebx
je 0x409cff
cmp dword [edi + 0x1118], ebx
je 0x409cff
test eax, eax
jne 0x409d1d
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 0x409c18
lea eax, [edi + 0x10cc]
push eax
push 1
push 0x40ac74
push fcn.0040abf5
push 0x40ac9e
push 0x40ac4a
push 0x40ac1e
push fcn.0040ac19
push fcn.0040abc5
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 0x409d64
Capabilities:
Create directory

Disassembly:
push 8
mov eax, 0x53af90
call fcn.0040c1e3
push dword [ebp + 8]
call fcn.00409ba4
pop ecx
test eax, eax
je 0x409d81
xor eax, eax
jmp 0x409ded
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
call fcn.004097e7
push dword [ebp - 0x14]
and dword [ebp - 4], 0
call fcn.0040b8ec
push 0x5c
push dword [ebp - 0x14]
call fcn.0041912d
add esp, 0xc
test eax, eax
jne 0x409dae
push 0xf
pop esi
jmp 0x409de2
push dword [ebp - 0x14]
xor ecx, ecx
mov word [eax], cx
call fcn.00409d64
mov esi, eax
pop ecx
test esi, esi
jne 0x409de2
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x409de0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xb7
jne 0x409de2
xor esi, esi
push dword [ebp - 0x14]
call fcn.0040ac19
pop ecx
mov eax, esi
call fcn.0040c1ac
ret
Function at 0x40a24d
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53afd7
mov eax, dword fs:[0]
push eax
mov eax, 0x1764
call fcn.0040c2f0
mov eax, dword [0x59c024]
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.004177a0
add esp, 0xc
call fcn.004029eb
cmp dword [ebp + 0xc], 0
mov ecx, eax
je 0x40a2ae
call fcn.004050f7
jmp 0x40a2b3
call fcn.004147dc
push eax
lea eax, [ebp - 0x218]
push 0x595a00
push eax
call fcn.00402b60
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call fcn.00414088
pop ecx
lea ecx, [ebp - 0x1760]
call fcn.00409721
and dword [ebp - 4], 0
lea ecx, [ebp - 0x1760]
call fcn.00409bee
test eax, eax
je 0x40a424
push edi
lea ecx, [ebp - 0x1768]
call fcn.004097e7
lea eax, [ebp - 0x640]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x1768]
push eax
lea ecx, [ebp - 0x1760]
call fcn.0040b5d7
push dword [ebp - 0x1768]
mov ebx, eax
mov byte [ebp - 4], 0
neg ebx
sbb bl, bl
call fcn.0040ac19
pop ecx
add bl, 1
jne 0x40a424
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x1770]
call fcn.004097e7
push edi
lea ecx, [ebp - 0x1768]
mov byte [ebp - 4], 2
call fcn.004097e7
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.0040a81c
push dword [ebp - 0x1768]
mov ebx, eax
neg ebx
sbb bl, bl
call fcn.0040ac19
push dword [ebp - 0x1770]
mov byte [ebp - 4], 0
call fcn.0040ac19
pop ecx
pop ecx
add bl, 1
jne 0x40a424
lea ecx, [ebp - 0x1760]
call fcn.00409bc5
test eax, eax
je 0x40a424
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.0040b7c5
test al, al
je 0x40a41f
mov ecx, esi
call fcn.0040b790
test al, al
je 0x40a41f
push str.VipSkin.xml
lea eax, [ebp - 0x218]
mov esi, 0x53c65c
push eax
lea eax, [ebp - 0x628]
push esi
push eax
call fcn.00402b60
push str.Skin.xml
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push esi
push eax
call fcn.00402b60
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x628]
push eax
call fcn.004243a3
add esp, 0x28
xor ebx, ebx
inc ebx
jmp 0x40a426
xor bl, bl
lea ecx, [ebp - 0x1760]
call fcn.004098b4
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.0040c19b
mov esp, ebp
pop ebp
ret 8
Function at 0x40a81c
Capabilities:
Delete file

Disassembly:
push 0x20
mov eax, 0x53b01f
call fcn.0040c1e3
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor edi, edi
cmp dword [ebx + 0x1108], eax
je 0x40a857
mov dword [ebx + 0x10e4], 0x3f3
mov dword [ebx + 0x10e8], edi
mov dword [ebx + 0x10ec], edi
xor eax, eax
jmp 0x40aa45
cmp dword [ebx + 0x10f0], edi
je 0x40a850
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.0040b944
push dword [ebp + 0xc]
lea esi, [ebx + 0x58]
mov dword [ebx + 0x4c], edi
mov ecx, esi
call fcn.0040997c
push esi
call fcn.0040bb49
mov dword [esp], str.MEMORY_
push dword [esi]
call fcn.0041afaf
neg eax
pop ecx
sbb eax, eax
pop ecx
inc eax
lea ecx, [ebp - 0x2c]
mov dword [ebx + 0x10f8], eax
call fcn.0040982c
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], edi
call fcn.0040982c
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 8]
call fcn.0040bad5
add esp, 0xc
mov ecx, esi
call fcn.0040b876
cmp eax, 3
jb 0x40aa1d
lea ecx, [ebp - 0x2c]
call fcn.0040b876
cmp eax, 2
jb 0x40aa1d
lea ecx, [ebp - 0x24]
call fcn.0040b876
cmp eax, 2
jb 0x40aa1d
mov eax, dword [ebx + 0x60]
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x1c]
call fcn.004097ca
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004097ca
jmp 0x40a995
lea ecx, [ebx + 0x60]
call fcn.0040b876
test eax, eax
je 0x40a9d3
mov esi, dword [ebx + 0x60]
lea ecx, [ebx + 0x60]
call fcn.0040b876
push eax
push esi
lea ecx, [ebp - 0x24]
call fcn.00409b78
push dword [ebp - 0x14]
call fcn.0040ac19
push dword [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0040ac19
mov eax, dword [ebx + 0x60]
pop ecx
pop ecx
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x1c]
call fcn.004097ca
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004097ca
push dword [ebp + 0x10]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
push edi
push 0x40abce
push edi
push dword [ebp - 0x2c]
call fcn.0040a451
mov esi, dword [ebp - 0x24]
lea ecx, [ebp - 0x1c]
push eax
push esi
call fcn.0040a451
push eax
push dword [ebx + 0x10f0]
call dword [ebx + 0x1114]
add esp, 0x1c
test eax, eax
jne 0x40a93e
push dword [ebp - 0x14]
call fcn.0040ac19
push dword [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0040ac19
pop ecx
pop ecx
push dword [ebx + 8]
mov ecx, ebx
call fcn.0040b167
cmp dword [ebx + 0x10f4], edi
je 0x40aa09
cmp dword [ebx + 8], edi
je 0x40aa09
push dword [ebx + 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebx + 0x10cc]
call fcn.0040b5c2
mov edi, eax
neg edi
sbb edi, edi
inc edi
jmp 0x40aa33
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.0040ac19
push dword [ebp - 0x2c]
call fcn.0040ac19
pop ecx
pop ecx
mov eax, edi
call fcn.0040c1ac
ret 0xc
Function at 0x40b7c5
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x59c024]
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, 0x53c65c
push ebx
push eax
call fcn.00402b60
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b80d
xor al, al
jmp 0x40b835
push str.VipSkin.xml
push esi
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.00402b60
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.0040c19b
mov esp, ebp
pop ebp
ret 4

Function at 0x40b8a5
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
test dword [ebp + 0xc], 0x100
je 0x40b8bf
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.0040bc02
add esp, 0xc
pop ebp
ret 0xc

Function at 0x40b8d4
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.0042593a
add esp, 0xc
pop ebp
ret 0xc

Function at 0x40ba48
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 0x40bace
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 0x40bab9
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
test esi, 0x100
ja 0x40baab
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 0x40d57b
Capabilities:
Read .ini file

Disassembly:
push 0x82c
mov eax, 0x53b1d4
call fcn.0040c217
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.004177a0
lea eax, [edi + 0x8c]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x40d5d8
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.004013b0
and dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x834], 1
jb 0x40d61e
mov eax, dword [esi]
jmp 0x40d620
mov eax, esi
push ebx
push eax
call fcn.0041df86
pop ecx
pop ecx
test eax, eax
jne 0x40d66c
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 0x40d650
call fcn.0040d497
jmp 0x40d655
call fcn.0040d551
push eax
mov ecx, esi
call fcn.00401b20
push 0
push 1
lea ecx, [ebp - 0x828]
call fcn.00401420
mov eax, esi
call fcn.0040c1c1
ret 0x10