joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002d90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101db328
mov eax, dword fs:[0]
push eax
sub esp, 0x630
mov eax, dword [0x10288294]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x638], edi
lea eax, [edi + 8]
mov dword [edi], 0
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x63c], edi
jb 0x10002dea
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
mov dword [ebp - 4], ecx
mov dword [edi + 0x34], 7
mov dword [edi + 0x30], ecx
cmp dword [edi + 0x34], 8
jb 0x10002e07
mov eax, dword [edi + 0x20]
jmp 0x10002e0a
lea eax, [edi + 0x20]
xor ecx, ecx
mov word [eax], cx
lea eax, [edi + 0x38]
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ecx
cmp dword [eax + 0x14], 8
jb 0x10002e24
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
lea eax, [edi + 0x50]
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ecx
cmp dword [eax + 0x14], 8
jb 0x10002e3e
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
mov byte [ebp - 4], 3
push ecx
mov dword [edi + 0x68], ecx
mov dword [edi + 0x6c], ecx
call fcn.1008d88e
push eax
call fcn.100920f3
push 0x20c
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.10079740
add esp, 0x14
lea eax, [ebp - 0x220]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x10002ef7
xor eax, eax
push 0x412
push eax
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x634]
push eax
call fcn.10079740
add esp, 0xc
lea eax, [ebp - 0x634]
push 0x208
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x10002ee8
test eax, eax
je 0x10002ee8
add eax, eax
cmp eax, 0x412
jae 0x10002ee3
xor ecx, ecx
mov word [ebp + eax - 0x634], cx
lea eax, [ebp - 0x634]
jmp 0x10002eee
call fcn.1005db59
lea eax, [ebp - 0x220]
push eax
lea ecx, [edi + 0x20]
call fcn.10002700
mov eax, dword [edi + 0x30]
test eax, eax
je 0x10002f23
cmp dword [edi + 0x34], 8
jb 0x10002f09
mov ecx, dword [edi + 0x20]
jmp 0x10002f0c
lea ecx, [edi + 0x20]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x10002f23
push 1
push 0x102704b4
lea ecx, [edi + 0x20]
call fcn.10004340
cmp dword [edi + 0x30], 0
jne 0x10002f38
push 3
push 0x102704b8
lea ecx, [edi + 0x20]
call fcn.10002750
mov dword [edi + 4], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005d919
mov esp, ebp
pop ebp
ret
Function at 0x10002f60
Capabilities:
Delete file

Disassembly:
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x48], 0
je 0x10002f7c
cmp dword [edi + 0x4c], 8
lea eax, [edi + 0x38]
jb 0x10002f75
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [edi + 0x68]
test eax, eax
je 0x10002f93
push eax
call fcn.1005d5e4
add esp, 4
mov dword [edi + 0x68], 0
mov eax, dword [edi + 0x64]
lea esi, [edi + 0x50]
cmp eax, 8
jb 0x10002fa9
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.10002850
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x10002fbf
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
lea esi, [edi + 0x38]
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x10002fda
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.10002850
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x10002ff0
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
lea esi, [edi + 0x20]
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x1000300b
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.10002850
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x10003021
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
mov eax, dword [edi + 0x1c]
cmp eax, 8
jb 0x1000303b
inc eax
lea ecx, [edi + 8]
push eax
push dword [edi + 8]
call fcn.10002850
mov dword [edi + 0x1c], 7
cmp dword [edi + 0x1c], 8
mov dword [edi + 0x18], 0
jb 0x1000305a
mov eax, dword [edi + 8]
xor ecx, ecx
pop edi
pop esi
mov word [eax], cx
ret
xor eax, eax
mov word [edi + 8], ax
pop edi
pop esi
ret
Function at 0x10006560
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
lea eax, [ebp - 4]
push edi
mov esi, edx
push 1
push 4
push eax
mov dword [esi + 4], 0
mov dword [esi], 0
call fcn.1008dc8f
add esp, 0x10
cmp eax, 1
jne 0x100065f2
mov eax, dword [ebp - 4]
movzx ecx, al
shl ecx, 8
movzx eax, ah
add ecx, eax
movzx eax, byte [ebp - 2]
shl ecx, 8
add ecx, eax
movzx eax, byte [ebp - 1]
shl ecx, 8
add eax, ecx
mov dword [esi + 4], eax
cmp eax, 0x7a1200
ja 0x100065f2
add eax, 0xc
push eax
mov dword [esi + 4], eax
call fcn.1005da2d
mov ecx, dword [ebp - 4]
mov dword [esi], eax
push edi
mov dword [eax], ecx
mov eax, dword [esi + 4]
sub eax, 4
push 1
push eax
mov eax, dword [esi]
add eax, 4
push eax
call fcn.1008dc8f
add esp, 0x14
cmp eax, 1
jne 0x100065f2
mov eax, dword [esi]
pop edi
pop esi
mov eax, dword [eax + 4]
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000c670
Capabilities:
Terminate process

Disassembly:
test edx, edx
mov eax, str.undefined
push esi
cmovne eax, edx
mov esi, ecx
push eax
push str.libpng_error:__s
push 2
call fcn.1008d9a3
add esp, 4
push eax
call fcn.10006260
add esp, 0xc
push 0x10274ba4
push 2
call fcn.1008d9a3
add esp, 4
push eax
call fcn.10006260
add esp, 8
test esi, esi
je 0x1000c6c8
mov eax, dword [esi + 0x40]
test eax, eax
je 0x1000c6c8
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x1000c6c8
push 1
push ecx
call eax
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1001e51e
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 0x1001e533
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 0x1001e5a9
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 0x1001e5da
mov dword [edi + 0x10e4], 0x3f3
xor ebx, ebx
mov dword [edi + 0x10e8], ebx
mov dword [edi + 0x10ec], ebx
xor eax, eax
jmp 0x1001e71c
mov eax, dword [0x1029bf10]
cmp eax, 0xffffffff
je 0x1001e5fb
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1001e5fb
mov dword [edi + 0x10e4], 0x3f4
jmp 0x1001e5c5
push edi
push 1
call fcn.100205fa
pop ecx
pop ecx
test eax, eax
jne 0x1001e61d
xor ebx, ebx
mov dword [edi + 0x10e8], 0xe
mov dword [edi + 0x10e4], ebx
jmp 0x1001e5cd
lea ecx, [edi + 0x10cc]
call fcn.10020305
xor ebx, ebx
cmp dword [edi + 0x10f0], ebx
jne 0x1001e5d3
cmp dword [edi + 0x110c], ebx
jne 0x1001e6d8
push esi
push str.Cabinet.dll
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 0x1001e6ba
cmp dword [edi + 0x1114], ebx
je 0x1001e6ba
cmp dword [edi + 0x1118], ebx
je 0x1001e6ba
test eax, eax
jne 0x1001e6d8
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 0x1001e5d3
lea eax, [edi + 0x10cc]
push eax
push 1
push 0x1001f41e
push 0x1001f3a4
push 0x1001f448
push 0x1001f3f4
push 0x1001f3c8
push fcn.1005d5e4
push fcn.1005da2d
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 0x1001e71f
Capabilities:
Create directory

Disassembly:
push 8
mov eax, 0x101db9ee
call fcn.1005d950
push dword [ebp + 8]
call fcn.1001e51e
pop ecx
test eax, eax
je 0x1001e73c
xor eax, eax
jmp 0x1001e7a8
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
call fcn.1001e022
push dword [ebp - 0x14]
and dword [ebp - 4], 0
call fcn.100202ad
push 0x5c
push dword [ebp - 0x14]
call fcn.10079e91
add esp, 0xc
test eax, eax
jne 0x1001e769
push 0xf
pop esi
jmp 0x1001e79d
push dword [ebp - 0x14]
xor ecx, ecx
mov word [eax], cx
call fcn.1001e71f
mov esi, eax
pop ecx
test esi, esi
jne 0x1001e79d
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1001e79b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xb7
jne 0x1001e79d
xor esi, esi
push dword [ebp - 0x14]
call fcn.1005d5e4
pop ecx
mov eax, esi
call fcn.1005d92a
ret
Function at 0x1001efd3
Capabilities:
Delete file

Disassembly:
push 0x20
mov eax, 0x101db990
call fcn.1005d950
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor edi, edi
cmp dword [ebx + 0x1108], eax
je 0x1001f00e
mov dword [ebx + 0x10e4], 0x3f3
mov dword [ebx + 0x10e8], edi
mov dword [ebx + 0x10ec], edi
xor eax, eax
jmp 0x1001f1fc
cmp dword [ebx + 0x10f0], edi
je 0x1001f007
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.10020305
push dword [ebp + 0xc]
lea esi, [ebx + 0x58]
mov dword [ebx + 0x4c], edi
mov ecx, esi
call fcn.1001e2f6
push esi
call fcn.100205ce
mov dword [esp], str.MEMORY_
push dword [esi]
call fcn.1008742e
neg eax
pop ecx
sbb eax, eax
pop ecx
inc eax
lea ecx, [ebp - 0x2c]
mov dword [ebx + 0x10f8], eax
call fcn.1001e067
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], edi
call fcn.1001e067
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 8]
call fcn.1002055a
add esp, 0xc
mov ecx, esi
call fcn.10020036
cmp eax, 3
jb 0x1001f1d4
lea ecx, [ebp - 0x2c]
call fcn.10020036
cmp eax, 2
jb 0x1001f1d4
lea ecx, [ebp - 0x24]
call fcn.10020036
cmp eax, 2
jb 0x1001f1d4
mov eax, dword [ebx + 0x60]
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x1c]
call fcn.1001dfc0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.1001dfc0
jmp 0x1001f14c
lea ecx, [ebx + 0x60]
call fcn.10020036
test eax, eax
je 0x1001f18a
mov esi, dword [ebx + 0x60]
lea ecx, [ebx + 0x60]
call fcn.10020036
push eax
push esi
lea ecx, [ebp - 0x24]
call fcn.1001e4f2
push dword [ebp - 0x14]
call fcn.1005d5e4
push dword [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.1005d5e4
mov eax, dword [ebx + 0x60]
pop ecx
pop ecx
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x1c]
call fcn.1001dfc0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.1001dfc0
push dword [ebp + 0x10]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
push edi
push 0x1001f37d
push edi
push dword [ebp - 0x2c]
call fcn.1001ec08
mov esi, dword [ebp - 0x24]
lea ecx, [ebp - 0x1c]
push eax
push esi
call fcn.1001ec08
push eax
push dword [ebx + 0x10f0]
call dword [ebx + 0x1114]
add esp, 0x1c
test eax, eax
jne 0x1001f0f5
push dword [ebp - 0x14]
call fcn.1005d5e4
push dword [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.1005d5e4
pop ecx
pop ecx
push dword [ebx + 8]
mov ecx, ebx
call fcn.1001f911
cmp dword [ebx + 0x10f4], edi
je 0x1001f1c0
cmp dword [ebx + 8], edi
je 0x1001f1c0
push dword [ebx + 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebx + 0x10cc]
call fcn.1001fff2
mov edi, eax
neg edi
sbb edi, edi
inc edi
jmp 0x1001f1ea
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.1005d5e4
push dword [ebp - 0x2c]
call fcn.1005d5e4
pop ecx
pop ecx
mov eax, edi
call fcn.1005d92a
ret 0xc
Function at 0x1001fddc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xc
mov eax, 0x101dba74
call fcn.1005d950
mov edi, ecx
lea eax, [edi + 0x1134]
push eax
lea ecx, [ebp - 0x18]
call fcn.1001dfdd
mov eax, dword [edi + 0x1130]
xor ebx, ebx
mov dword [ebp - 4], ebx
test eax, eax
je 0x1001fe1a
push eax
lea eax, [ebp - 0x18]
push 0x101e5368
push eax
call fcn.1001fd01
add esp, 0xc
lea ecx, [edi + 0x1128]
mov esi, ebx
call fcn.10020036
test eax, eax
je 0x1001fe31
mov esi, dword [edi + 0x1128]
mov eax, dword [edi + 0x1150]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x1001fe48
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x10], eax
push dword [edi + 0x113c]
push dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push dword [ebp - 0x10]
mov dword [edi + 0x1144], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [edi + 0x114c], eax
mov dword [edi + 0x1148], ebx
cmp dword [edi + 0x1144], ebx
je 0x1001fe98
test eax, eax
je 0x1001fe98
xor ebx, ebx
inc ebx
jmp 0x1001feae
mov dword [edi + 0x10e4], 0x3ec
mov dword [edi + 0x10e8], ebx
mov dword [edi + 0x10ec], ebx
push dword [ebp - 0x18]
call fcn.1005d5e4
pop ecx
mov eax, ebx
call fcn.1005d92a
ret

Function at 0x10020148
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
test byte [ebp + 0x10], 0x80
je 0x10020157
pop ebp
jmp method.Cabinet::CExtract.virtual_20
mov eax, dword [ecx]
pop ebp
jmp dword [eax + 0x18]

Function at 0x10020211
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.100866df
add esp, 0xc
pop ebp
ret 0xc

Function at 0x10020229
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
push esi
lea ecx, [edi + 0x48]
call fcn.1001fcd9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
test eax, eax
js 0x10020257
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x1c]
test eax, eax
jle 0x1002025f
add dword [esi + 4], eax
jmp 0x1002025f
call fcn.100866df
add esp, 0xc
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x100204cd
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 0x10020553
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 0x1002053e
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
test esi, 0x100
ja 0x10020530
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 0x10020e6a
Capabilities:
Delete file

Disassembly:
push 0x34
mov eax, 0x101ddf37
call fcn.1005d984
lea eax, [ebp - 0x40]
push eax
call fcn.10020ec7
and dword [ebp - 4], 0
mov dword [esp], str.theme.ini
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.10004650
add esp, 0xc
lea ecx, [ebp - 0x40]
push 0
push 1
call fcn.10002690
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.10002690
call fcn.1005d93f
ret

Function at 0x10020f5b
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x10288294]
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 0x10021083
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.10079740
lea eax, [ebp - 0x42c]
push eax
call fcn.10020ec7
add esp, 0x10
cmp dword [eax + 0x14], 8
jb 0x10020fa8
mov eax, dword [eax]
push str..wnpf
push esi
push eax
lea eax, [ebp - 0x20c]
push 0x101e5590
push eax
call fcn.10021c4b
add esp, 0x14
lea ecx, [ebp - 0x42c]
push 0
push 1
call fcn.10002690
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10021013
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x42c]
push eax
call fcn.10074583
pop ecx
pop ecx
push eax
mov ecx, edi
call fcn.100040e0
push 0
push 1
lea ecx, [ebp - 0x42c]
call fcn.10002690
mov al, 1
jmp 0x10021085
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.10079740
lea eax, [ebp - 0x42c]
push eax
call fcn.10020ec7
add esp, 0x10
cmp dword [eax + 0x14], 8
jb 0x1002103d
mov eax, dword [eax]
push str..swnpf
push esi
push eax
lea eax, [ebp - 0x414]
push 0x101e5590
push eax
call fcn.10021c4b
add esp, 0x14
lea ecx, [ebp - 0x42c]
push 0
push 1
call fcn.10002690
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10021083
lea eax, [ebp - 0x414]
jmp 0x10020fe9
xor al, al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1005d919
mov esp, ebp
pop ebp
ret
Function at 0x10021297
Capabilities:
Check if file exists

Disassembly:
push 0x268
mov eax, 0x101dbb49
call fcn.1005d984
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x264], eax
call fcn.1002165c
mov ecx, eax
call fcn.10074927
push eax
lea ecx, [ebp - 0x260]
call fcn.100025f0
lea eax, [ebp - 0x248]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call fcn.10020ec7
pop ecx
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x26c], esi
mov dword [ebp - 0x268], esi
call fcn.1006e294
mov dword [ebp - 0x26c], eax
push 7
mov dword [ebp - 0x220], esi
xor eax, eax
pop ebx
mov esi, str..wnpf
mov byte [ebp - 4], 2
push esi
mov dword [ebp - 0x21c], ebx
mov word [ebp - 0x230], ax
call fcn.1008133f
pop ecx
push eax
push esi
lea ecx, [ebp - 0x230]
call fcn.10002750
push dword [ebp - 0x264]
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 3
push eax
push 0
lea eax, [ebp - 0x274]
push eax
lea ecx, [ebp - 0x26c]
call fcn.10020c56
push 0
push 1
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
call fcn.10002690
and dword [ebp - 0x220], 0
xor eax, eax
mov esi, str..swnpf
mov dword [ebp - 0x21c], ebx
push esi
mov word [ebp - 0x230], ax
call fcn.1008133f
pop ecx
push eax
push esi
lea ecx, [ebp - 0x230]
call fcn.10002750
push dword [ebp - 0x264]
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 4
push eax
push 0
lea eax, [ebp - 0x274]
push eax
lea ecx, [ebp - 0x26c]
call fcn.10020c56
push 0
push 1
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
call fcn.10002690
mov ecx, dword [ebp - 0x26c]
mov eax, dword [ecx]
mov dword [ebp - 0x270], eax
cmp eax, ecx
je 0x100214ad
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea esi, [eax + 0x10]
cmp dword [esi + 0x14], 8
jb 0x100213fa
mov edx, dword [esi]
jmp 0x100213fc
mov edx, esi
cmp dword [edi + 0x14], 8
jb 0x10021406
mov ecx, dword [edi]
jmp 0x10021408
mov ecx, edi
cmp dword [ebp - 0x24c], 8
lea eax, [ebp - 0x260]
push edx
cmovae eax, dword [ebp - 0x260]
push ecx
push eax
lea eax, [ebp - 0x218]
push str._sSkin_s_s
push eax
call fcn.10021c4b
add esp, 0x14
lea eax, [ebp - 0x218]
push eax
call ebx
test eax, eax
jne 0x100214e0
cmp dword [esi + 0x14], 8
jb 0x1002144c
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x10021456
mov ecx, dword [edi]
jmp 0x10021458
mov ecx, edi
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
push esi
cmovae eax, dword [ebp - 0x248]
push ecx
push eax
lea eax, [ebp - 0x218]
push 0x101e5590
push eax
call fcn.10021c4b
add esp, 0x14
lea eax, [ebp - 0x218]
push eax
call ebx
test eax, eax
jne 0x100214e0
lea ecx, [ebp - 0x270]
call fcn.1006e15c
mov eax, dword [ebp - 0x270]
cmp eax, dword [ebp - 0x26c]
jne 0x100213ed
xor esi, esi
lea ecx, [ebp - 0x26c]
call fcn.10020e33
push 0
push 1
lea ecx, [ebp - 0x248]
call fcn.10002690
push 0
push 1
lea ecx, [ebp - 0x260]
call fcn.10002690
mov eax, esi
call fcn.1005d93f
ret
cmp word [ebp - 0x218], 0
jne 0x100214ee
xor eax, eax
jmp 0x100214fb
lea eax, [ebp - 0x218]
push eax
call fcn.1008133f
pop ecx
mov ecx, dword [ebp - 0x264]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.10002750
xor esi, esi
inc esi
jmp 0x100214af
Function at 0x1002159b
Capabilities:
Read .ini file

Disassembly:
push 0x240
mov eax, 0x101dbb87
call fcn.1005d984
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x248]
xor edi, edi
push eax
mov dword [ebp - 0x24c], edi
call fcn.10020ec7
mov dword [esp], str.theme.ini
push eax
lea eax, [ebp - 0x230]
mov dword [ebp - 4], edi
push eax
call fcn.10004650
add esp, 0xc
push edi
push 1
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 2
call fcn.10002690
push 0x208
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.10079740
add esp, 0xc
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
cmovae eax, dword [ebp - 0x230]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x101e5698
push 0x101e56a8
push str.Theme
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.100025f0
push edi
push 1
lea ecx, [ebp - 0x230]
call fcn.10002690
mov eax, esi
call fcn.1005d93f
ret

Function at 0x10026670
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
push esi
push 8
mov ecx, edx
pop esi
mov eax, ecx
shr ecx, 1
and eax, 1
dec eax
not eax
and eax, 0xedb88320
xor ecx, eax
sub esi, 1
jne 0x10026678
mov dword [edx*4 + 0x10292030], ecx
inc edx
cmp edx, 0x100
jb 0x10026673
mov esi, 0x800
jmp 0x100266c1
mov ecx, dword [edx*4 + 0x10291c30]
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0x10292030]
mov dword [edx*4 + 0x10292030], ecx
inc edx
cmp edx, esi
jb 0x100266a5
mov dword [0x10294048], 0x100227f3
call fcn.10026a74
mov ecx, dword [0x10294048]
test eax, eax
mov edx, 0x1002288c
cmove ecx, edx
mov dword [0x10294048], ecx
pop esi
ret

Function at 0x10026b16
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [edi]
test esi, esi
jne 0x10026b28
xor eax, eax
jmp 0x10026b4f
push ebx
mov ebx, dword [ebp + 8]
push dword [ebx]
push esi
push 1
push dword [ebp + 0xc]
call fcn.1008dc8f
add esp, 0x10
mov dword [edi], eax
cmp eax, esi
jne 0x10026b46
xor eax, eax
jmp 0x10026b4e
push dword [ebx]
call fcn.1008da98
pop ecx
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x10026ba2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [edi]
test esi, esi
jne 0x10026bb4
xor eax, eax
jmp 0x10026bdb
push ebx
mov ebx, dword [ebp + 8]
push dword [ebx]
push esi
push 1
push dword [ebp + 0xc]
call fcn.1008d506
add esp, 0x10
mov dword [edi], eax
cmp eax, esi
jne 0x10026bd2
xor eax, eax
jmp 0x10026bda
push dword [ebx]
call fcn.1008da98
pop ecx
pop ebx
pop edi
pop esi
pop ebp
ret