joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002530
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
mov ecx, dword [esi + 8]
call fcn.10002380
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
test eax, eax
je 0x10002559
mov ecx, dword [esi + 8]
mov dword [ecx + 0xc], eax
mov edi, dword [esi + 8]
lea eax, [ebp + 0x10]
push eax
push 0
push edi
push 0x10002300
push 0
push 0
mov dword [ebp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x10], eax
test eax, eax
je 0x1000259d
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1000259d
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x10], 0
mov eax, dword [esi + 8]
pop edi
pop esi
mov al, byte [eax + 4]
pop ebp
ret 0xc
Function at 0x10002d90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101db2d8
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.1008d823
push eax
call fcn.1009214d
push 0x20c
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.10079700
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.10079700
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.1005ddb9
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 0x102704a4
lea ecx, [edi + 0x20]
call fcn.10004340
cmp dword [edi + 0x30], 0
jne 0x10002f38
push 3
push 0x102704a8
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.1005db7c
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.1005d847
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.1008dc24
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.1005dc8d
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.1008dc24
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.1008d938
add esp, 4
push eax
call fcn.10006260
add esp, 0xc
push 0x10274b94
push 2
call fcn.1008d938
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 0x1001a260
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x1001a26b
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.1001a280
Function at 0x1001e5ac
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 0x1001e5c1
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 0x1001e637
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 0x1001e668
mov dword [edi + 0x10e4], 0x3f3
xor ebx, ebx
mov dword [edi + 0x10e8], ebx
mov dword [edi + 0x10ec], ebx
xor eax, eax
jmp 0x1001e7aa
mov eax, dword [0x1029bf10]
cmp eax, 0xffffffff
je 0x1001e689
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1001e689
mov dword [edi + 0x10e4], 0x3f4
jmp 0x1001e653
push edi
push 1
call fcn.10020689
pop ecx
pop ecx
test eax, eax
jne 0x1001e6ab
xor ebx, ebx
mov dword [edi + 0x10e8], 0xe
mov dword [edi + 0x10e4], ebx
jmp 0x1001e65b
lea ecx, [edi + 0x10cc]
call fcn.10020394
xor ebx, ebx
cmp dword [edi + 0x10f0], ebx
jne 0x1001e661
cmp dword [edi + 0x110c], ebx
jne 0x1001e766
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 0x1001e748
cmp dword [edi + 0x1114], ebx
je 0x1001e748
cmp dword [edi + 0x1118], ebx
je 0x1001e748
test eax, eax
jne 0x1001e766
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 0x1001e661
lea eax, [edi + 0x10cc]
push eax
push 1
push 0x1001f4ac
push 0x1001f432
push 0x1001f4d6
push 0x1001f482
push 0x1001f456
push fcn.1005d847
push fcn.1005dc8d
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 0x1001e7ad
Capabilities:
Create directory

Disassembly:
push 8
mov eax, 0x101dba7a
call fcn.1005dbb3
push dword [ebp + 8]
call fcn.1001e5ac
pop ecx
test eax, eax
je 0x1001e7ca
xor eax, eax
jmp 0x1001e836
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
call fcn.1001e0b0
push dword [ebp - 0x14]
and dword [ebp - 4], 0
call fcn.1002033c
push 0x5c
push dword [ebp - 0x14]
call fcn.10079e51
add esp, 0xc
test eax, eax
jne 0x1001e7f7
push 0xf
pop esi
jmp 0x1001e82b
push dword [ebp - 0x14]
xor ecx, ecx
mov word [eax], cx
call fcn.1001e7ad
mov esi, eax
pop ecx
test esi, esi
jne 0x1001e82b
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1001e829
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xb7
jne 0x1001e82b
xor esi, esi
push dword [ebp - 0x14]
call fcn.1005d847
pop ecx
mov eax, esi
call fcn.1005db8d
ret
Function at 0x1001f061
Capabilities:
Delete file

Disassembly:
push 0x20
mov eax, 0x101db9b9
call fcn.1005dbb3
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor edi, edi
cmp dword [ebx + 0x1108], eax
je 0x1001f09c
mov dword [ebx + 0x10e4], 0x3f3
mov dword [ebx + 0x10e8], edi
mov dword [ebx + 0x10ec], edi
xor eax, eax
jmp 0x1001f28a
cmp dword [ebx + 0x10f0], edi
je 0x1001f095
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.10020394
push dword [ebp + 0xc]
lea esi, [ebx + 0x58]
mov dword [ebx + 0x4c], edi
mov ecx, esi
call fcn.1001e384
push esi
call fcn.1002065d
mov dword [esp], str.MEMORY_
push dword [esi]
call fcn.100873e7
neg eax
pop ecx
sbb eax, eax
pop ecx
inc eax
lea ecx, [ebp - 0x2c]
mov dword [ebx + 0x10f8], eax
call fcn.1001e0f5
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], edi
call fcn.1001e0f5
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 8]
call fcn.100205e9
add esp, 0xc
mov ecx, esi
call fcn.100200c5
cmp eax, 3
jb 0x1001f262
lea ecx, [ebp - 0x2c]
call fcn.100200c5
cmp eax, 2
jb 0x1001f262
lea ecx, [ebp - 0x24]
call fcn.100200c5
cmp eax, 2
jb 0x1001f262
mov eax, dword [ebx + 0x60]
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x1c]
call fcn.1001e04e
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.1001e04e
jmp 0x1001f1da
lea ecx, [ebx + 0x60]
call fcn.100200c5
test eax, eax
je 0x1001f218
mov esi, dword [ebx + 0x60]
lea ecx, [ebx + 0x60]
call fcn.100200c5
push eax
push esi
lea ecx, [ebp - 0x24]
call fcn.1001e580
push dword [ebp - 0x14]
call fcn.1005d847
push dword [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.1005d847
mov eax, dword [ebx + 0x60]
pop ecx
pop ecx
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x1c]
call fcn.1001e04e
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.1001e04e
push dword [ebp + 0x10]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
push edi
push 0x1001f40b
push edi
push dword [ebp - 0x2c]
call fcn.1001ec96
mov esi, dword [ebp - 0x24]
lea ecx, [ebp - 0x1c]
push eax
push esi
call fcn.1001ec96
push eax
push dword [ebx + 0x10f0]
call dword [ebx + 0x1114]
add esp, 0x1c
test eax, eax
jne 0x1001f183
push dword [ebp - 0x14]
call fcn.1005d847
push dword [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.1005d847
pop ecx
pop ecx
push dword [ebx + 8]
mov ecx, ebx
call fcn.1001f99f
cmp dword [ebx + 0x10f4], edi
je 0x1001f24e
cmp dword [ebx + 8], edi
je 0x1001f24e
push dword [ebx + 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebx + 0x10cc]
call fcn.10020081
mov edi, eax
neg edi
sbb edi, edi
inc edi
jmp 0x1001f278
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.1005d847
push dword [ebp - 0x2c]
call fcn.1005d847
pop ecx
pop ecx
mov eax, edi
call fcn.1005db8d
ret 0xc
Function at 0x1001fe6a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xc
mov eax, 0x101dbac0
call fcn.1005dbb3
mov edi, ecx
lea eax, [edi + 0x1134]
push eax
lea ecx, [ebp - 0x18]
call fcn.1001e06b
mov eax, dword [edi + 0x1130]
xor ebx, ebx
mov dword [ebp - 4], ebx
test eax, eax
je 0x1001fea8
push eax
lea eax, [ebp - 0x18]
push 0x101e5368
push eax
call fcn.1001fd8f
add esp, 0xc
lea ecx, [edi + 0x1128]
mov esi, ebx
call fcn.100200c5
test eax, eax
je 0x1001febf
mov esi, dword [edi + 0x1128]
mov eax, dword [edi + 0x1150]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x1001fed6
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 0x1001ff26
test eax, eax
je 0x1001ff26
xor ebx, ebx
inc ebx
jmp 0x1001ff3c
mov dword [edi + 0x10e4], 0x3ec
mov dword [edi + 0x10e8], ebx
mov dword [edi + 0x10ec], ebx
push dword [ebp - 0x18]
call fcn.1005d847
pop ecx
mov eax, ebx
call fcn.1005db8d
ret

Function at 0x100201d7
Capabilities:
Set file attributes

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

Function at 0x100202a0
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.10086698
add esp, 0xc
pop ebp
ret 0xc

Function at 0x100202b8
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.1001fd67
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
test eax, eax
js 0x100202e6
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x1c]
test eax, eax
jle 0x100202ee
add dword [esi + 4], eax
jmp 0x100202ee
call fcn.10086698
add esp, 0xc
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x1002055c
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 0x100205e2
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 0x100205cd
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
test esi, 0x100
ja 0x100205bf
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 0x10020efc
Capabilities:
Delete file

Disassembly:
push 0x34
mov eax, 0x101dbb33
call fcn.1005dbe7
lea eax, [ebp - 0x40]
push eax
call fcn.10020f59
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.1005dba2
ret

Function at 0x10020fed
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 0x10021115
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.10079700
lea eax, [ebp - 0x42c]
push eax
call fcn.10020f59
add esp, 0x10
cmp dword [eax + 0x14], 8
jb 0x1002103a
mov eax, dword [eax]
push str..wnpf
push esi
push eax
lea eax, [ebp - 0x20c]
push 0x101e5590
push eax
call fcn.10021d12
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 0x100210a5
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x42c]
push eax
call fcn.100746d1
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 0x10021117
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.10079700
lea eax, [ebp - 0x42c]
push eax
call fcn.10020f59
add esp, 0x10
cmp dword [eax + 0x14], 8
jb 0x100210cf
mov eax, dword [eax]
push str..swnpf
push esi
push eax
lea eax, [ebp - 0x414]
push 0x101e5590
push eax
call fcn.10021d12
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 0x10021115
lea eax, [ebp - 0x414]
jmp 0x1002107b
xor al, al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1005db7c
mov esp, ebp
pop ebp
ret
Function at 0x10021329
Capabilities:
Check if file exists

Disassembly:
push 0x268
mov eax, 0x101dbbc2
call fcn.1005dbe7
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x264], eax
call fcn.100216ee
mov ecx, eax
call fcn.10074a75
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.10020f59
pop ecx
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x26c], esi
mov dword [ebp - 0x268], esi
call fcn.10063a3a
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.100812ef
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.10020ce8
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.100812ef
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.10020ce8
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 0x1002153f
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea esi, [eax + 0x10]
cmp dword [esi + 0x14], 8
jb 0x1002148c
mov edx, dword [esi]
jmp 0x1002148e
mov edx, esi
cmp dword [edi + 0x14], 8
jb 0x10021498
mov ecx, dword [edi]
jmp 0x1002149a
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.10021d12
add esp, 0x14
lea eax, [ebp - 0x218]
push eax
call ebx
test eax, eax
jne 0x10021572
cmp dword [esi + 0x14], 8
jb 0x100214de
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x100214e8
mov ecx, dword [edi]
jmp 0x100214ea
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.10021d12
add esp, 0x14
lea eax, [ebp - 0x218]
push eax
call ebx
test eax, eax
jne 0x10021572
lea ecx, [ebp - 0x270]
call fcn.1002d0bc
mov eax, dword [ebp - 0x270]
cmp eax, dword [ebp - 0x26c]
jne 0x1002147f
xor esi, esi
lea ecx, [ebp - 0x26c]
call fcn.10020ec5
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.1005dba2
ret
cmp word [ebp - 0x218], 0
jne 0x10021580
xor eax, eax
jmp 0x1002158d
lea eax, [ebp - 0x218]
push eax
call fcn.100812ef
pop ecx
mov ecx, dword [ebp - 0x264]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.10002750
xor esi, esi
inc esi
jmp 0x10021541
Function at 0x1002162d
Capabilities:
Read .ini file

Disassembly:
push 0x240
mov eax, 0x101dbc00
call fcn.1005dbe7
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x248]
xor edi, edi
push eax
mov dword [ebp - 0x24c], edi
call fcn.10020f59
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.10079700
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.1005dba2
ret

Function at 0x10026737
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 0x1002673f
mov dword [edx*4 + 0x10292030], ecx
inc edx
cmp edx, 0x100
jb 0x1002673a
mov esi, 0x800
jmp 0x10026788
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 0x1002676c
mov dword [0x10294048], 0x100228ba
call fcn.10026b3b
mov ecx, dword [0x10294048]
test eax, eax
mov edx, 0x10022953
cmove ecx, edx
mov dword [0x10294048], ecx
pop esi
ret

Function at 0x10026bdd
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 0x10026bef
xor eax, eax
jmp 0x10026c16
push ebx
mov ebx, dword [ebp + 8]
push dword [ebx]
push esi
push 1
push dword [ebp + 0xc]
call fcn.1008dc24
add esp, 0x10
mov dword [edi], eax
cmp eax, esi
jne 0x10026c0d
xor eax, eax
jmp 0x10026c15
push dword [ebx]
call fcn.1008da2d
pop ecx
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x10026c69
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 0x10026c7b
xor eax, eax
jmp 0x10026ca2
push ebx
mov ebx, dword [ebp + 8]
push dword [ebx]
push esi
push 1
push dword [ebp + 0xc]
call fcn.1008d49b
add esp, 0x10
mov dword [edi], eax
cmp eax, esi
jne 0x10026c99
xor eax, eax
jmp 0x10026ca1
push dword [ebx]
call fcn.1008da2d
pop ecx
pop ebx
pop edi
pop esi
pop ebp
ret