joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000c350
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, eax
je 0x1000c366
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
mov ecx, dword [esp + 8]
mov word [esi + 4], 0
call fcn.100051f0
test eax, eax
je 0x1000c384
mov ecx, dword [esp + 8]
call fcn.10004780
jmp 0x1000c386
xor eax, eax
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
je 0x1000c3a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1000c3a8
mov byte [esi + 5], 1
cmp dword [esi], 0
pop esi
setne al
ret 4

Function at 0x1000c3c0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b99d8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x100fb03c]
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 edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edi]
test eax, eax
je 0x1000c406
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.10016f20
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x1000c42f
lea ebx, [esi + 8]
jmp 0x1000c431
xor ebx, ebx
mov ecx, dword [ebp - 0x18]
call fcn.100051f0
test eax, eax
je 0x1000c447
mov ecx, dword [ebp - 0x18]
call fcn.10004780
jmp 0x1000c449
xor eax, eax
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x1000c46a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1000c46a
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x1000c493
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x1000c4a8
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.1008854e
add esp, 8
mov dword [ebp - 0x14], 0
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.100881a5
mov esp, ebp
pop ebp
ret 4
Function at 0x1000c4e0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b9a08
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x100fb03c]
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 edi, ecx
mov eax, dword [edi]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x1000c523
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
push ecx
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.10016fe0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x1000c550
lea eax, [esi + 8]
mov dword [ebp - 0x18], eax
jmp 0x1000c557
mov dword [ebp - 0x18], 0
mov ecx, ebx
call fcn.100051f0
test eax, eax
je 0x1000c56b
mov ecx, ebx
call fcn.10004780
jmp 0x1000c56d
xor eax, eax
push eax
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
test eax, eax
jne 0x1000c5be
call ecx
cmp eax, 5
jne 0x1000c5b8
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, ebx
call fcn.100051f0
test eax, eax
je 0x1000c5a8
mov ecx, ebx
call fcn.10004780
jmp 0x1000c5aa
xor eax, eax
push eax
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [edi]
test eax, eax
je 0x1000c5dc
call ecx
cmp eax, 0xb7
jne 0x1000c5d1
mov byte [edi + 5], 1
mov ecx, dword [edi]
call fcn.10006aa0
mov eax, dword [edi]
test eax, eax
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x1000c602
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x1000c617
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.1008854e
add esp, 8
mov dword [ebp - 0x14], 0
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.100881a5
mov esp, ebp
pop ebp
ret 4
Function at 0x1000ca70
Capabilities:
Suspend thread
Terminate thread

Disassembly:
sub esp, 8
mov eax, dword [0x100fb03c]
xor eax, esp
mov dword [esp + 4], eax
push esi
push ecx
push 0
push 0x43
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
jne 0x1000caa2
xor al, al
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.100881a5
add esp, 8
ret
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x1000cafd
cmp dword [esp + 4], 0x103
jne 0x1000cafd
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlFreeUserThreadStack
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x1000caf3
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 8]
mov al, 1
pop esi
xor ecx, esp
call fcn.100881a5
add esp, 8
ret

Function at 0x1000cf80
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b9ba8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x100fb03c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esi + 8]
test edi, edi
jne 0x1000cfc3
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add edi, 0x20
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x10], edi
je 0x1000cfdf
mov eax, dword [edi]
test eax, eax
je 0x1000cfdf
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov eax, dword [esi + 8]
cmp dword [eax + 4], 0
je 0x1000d043
push 1
lea ebx, [esi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov eax, dword [esi + 8]
add eax, 0xc
push eax
push 4
push esi
push 0x1000cb20
push 0
push 0
call fcn.1008e884
mov ecx, dword [esi + 8]
add esp, 0x18
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
cmp dword [eax + 0x10], 0
jne 0x1000d078
mov eax, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0xffffffffffffffff
push ebx
call eax
sub eax, 1
jne 0x1000d03b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
call fcn.1000ccf0
xor bl, bl
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x1000d064
mov eax, dword [edi]
test eax, eax
je 0x1000d05d
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x10], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [eax + 8], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x1000d090
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 8]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x1000d025
mov bl, 1
jmp 0x1000d045
Function at 0x1000e260
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x140
mov eax, dword [0x100fb03c]
xor eax, esp
mov dword [esp + 0x13c], eax
push esi
mov esi, dword [esp + 0x148]
push 0x118
push 0
lea eax, [esi + 4]
push eax
call fcn.1008ac40
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1000e3a7
cmp dword [esi + 4], 6
push edi
ja 0x1000e2bb
jne 0x1000e343
cmp dword [esi + 8], 2
jb 0x1000e343
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x1000e343
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1000e343
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1000e343
movups xmm0, xmmword [0x100de340]
push eax
movups xmmword [esp + 0x128], xmm0
movups xmm0, xmmword [0x100de350]
movups xmmword [esp + 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x1000e343
lea eax, [esp + 0x124]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1000e343
cmp word [edi + 2], ax
jbe 0x1000e343
movzx edx, word [edi + 0x32]
movzx ecx, word [edi + 0x30]
movzx eax, word [edi + 0x36]
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x1000e38e
push 0x118
lea eax, [esp + 0x10]
push 0
push eax
call fcn.1008ac40
add esp, 0xc
mov dword [esp + 8], 0x11c
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x1000e38e
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.100881a5
add esp, 0x140
ret
mov ecx, dword [esp + 0x140]
xor al, al
pop esi
xor ecx, esp
call fcn.100881a5
add esp, 0x140
ret
Function at 0x10014d30
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x100fb03c]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
mov esi, ecx
mov dword [esp + 4], 0x114
push 0x110
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov byte [esi], 0
call fcn.1008ac40
add esp, 0xc
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x10014dc7
cmp dword [esp + 8], 6
jb 0x10014dc7
mov byte [esi], 1
mov ecx, dword [esp + 0x118]
pop esi
xor ecx, esp
call fcn.100881a5
add esp, 0x118
ret

Function at 0x10014de0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ba920
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x100fb03c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push str.wintrust.dll
lea ecx, [ebp - 0x28]
call fcn.10004920
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.10010970
mov ecx, eax
call fcn.10010a30
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004840
push str.crypt32.dll
lea ecx, [ebp - 0x40]
call fcn.10004920
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
push eax
call fcn.10010970
mov ecx, eax
call fcn.10010a30
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.10004840
test ebx, ebx
je 0x10014ef5
test esi, esi
je 0x10014ef5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptCATAdminCalcHashFromFileHandle
push ebx
call esi
push str.CryptCATAdminAcquireContext
push ebx
mov dword [edi + 4], eax
call esi
push str.CryptCATAdminEnumCatalogFromHash
push ebx
mov dword [edi + 8], eax
call esi
push str.CryptCATCatalogInfoFromContext
push ebx
mov dword [edi + 0xc], eax
call esi
push str.CryptCATAdminReleaseCatalogContext
push ebx
mov dword [edi + 0x10], eax
call esi
push str.CryptCATAdminReleaseContext
push ebx
mov dword [edi + 0x14], eax
call esi
push str.WTHelperProvDataFromStateData
push ebx
mov dword [edi + 0x18], eax
call esi
push str.WTHelperGetProvSignerFromChain
push ebx
mov dword [edi + 0x1c], eax
call esi
push str.WinVerifyTrust
push ebx
mov dword [edi + 0x20], eax
call esi
push str.CertNameToStrW
push dword [ebp - 0x10]
mov dword [edi + 0x24], eax
call esi
mov dword [edi + 0x28], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100178d0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bac76
mov eax, dword fs:[0]
push eax
sub esp, 0x82c
mov eax, dword [0x100fb03c]
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 dword [ebp - 0x820], ecx
lea eax, [ebp - 0x810]
push eax
push 0x3fe
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov ebx, eax
mov dword [ebp - 0x814], ebx
test ebx, ebx
je 0x100179b0
lea edx, [ebp - 0x810]
mov dword [ebp - 0x81c], 0
xor esi, esi
mov dword [ebp - 0x818], edx
mov dword [ebp - 0x81c], esi
mov dword [ebp - 4], esi
cmp ebx, 0x3fe
jbe 0x100179ce
xor ecx, ecx
lea eax, [ebx + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1008855c
add esp, 4
mov edi, eax
mov esi, edi
mov dword [ebp - 0x818], edi
mov dword [ebp - 0x81c], esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x1001799c
cmp eax, ebx
ja 0x1001799c
mov edx, esi
xor ecx, ecx
mov ebx, eax
mov dword [ebp - 0x814], ebx
mov dword [edx + eax*2], ecx
jmp 0x100179fc
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x100179b0
push edi
call fcn.100881b6
add esp, 4
xor al, al
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.100881a5
mov esp, ebp
pop ebp
ret
lea eax, [ebx + ebx]
cmp eax, 0x800
jae 0x10017ace
xor ecx, ecx
mov word [ebp + eax - 0x810], cx
add eax, 2
cmp eax, 0x800
jae 0x10017ace
mov word [ebp + eax - 0x810], cx
xor ecx, ecx
xor edi, edi
test ebx, ebx
je 0x10017ab3
mov eax, dword [ebp - 0x814]
mov ebx, 2
mov esi, dword [ebp - 0x820]
nop dword [eax]
cmp word [edx + ebx - 2], 0
jne 0x10017aa1
cmp ecx, edi
je 0x10017aa1
lea eax, [edx + ecx*2]
push eax
lea ecx, [ebp - 0x838]
call fcn.10004920
mov byte [ebp - 4], 1
lea eax, [ebp - 0x838]
push eax
call fcn.10004ef0
mov ecx, dword [esi + 4]
add esp, 4
mov dword [ebp - 0x820], eax
cmp dword [esi + 8], ecx
je 0x10017a7a
push ecx
push 0x18
call fcn.10002180
add esp, 8
mov ecx, eax
push dword [ebp - 0x820]
call fcn.100048e0
add dword [esi + 4], 0x18
jmp 0x10017a83
push eax
push ecx
mov ecx, esi
call fcn.10009160
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x838]
call fcn.10004840
mov eax, dword [ebp - 0x814]
lea ecx, [edi + 1]
mov edx, dword [ebp - 0x818]
inc edi
add ebx, 2
cmp edi, eax
jb 0x10017a20
mov esi, dword [ebp - 0x81c]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x10017ac7
push esi
call fcn.100881b6
add esp, 4
mov al, 1
jmp 0x100179b2
call fcn.100889c9
int3
Function at 0x10018cb0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [ecx]
test eax, eax
je 0x10018ce8
mov edx, dword [esp + 4]
test edx, edx
je 0x10018ce8
cmp dword [eax], 0xffffffff
je 0x10018ce8
mov eax, dword [esp + 0xc]
push 0
push eax
push dword [esp + 0x10]
mov dword [eax], 0
mov eax, dword [ecx]
push edx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10018ce8
mov al, 1
ret 0xc
xor al, al
ret 0xc

Function at 0x10018d20
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x100fb03c]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
test eax, eax
je 0x10018d83
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x10018d83
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10018d5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10018d83
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.100881a5
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.100881a5
add esp, 8
ret 4

Function at 0x10018e70
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100baf78
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100fb03c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov ebx, ecx
cmp esi, 0xffffffff
jne 0x10018ea7
xor al, al
jmp 0x10018f0a
and esi, 0xffffb1af
push esi
call fcn.10004780
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x10018ec2
mov al, 1
jmp 0x10018f0a
lea ecx, [ebp - 0x28]
call fcn.10004970
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.100196a0
test al, al
je 0x10018ef7
push esi
lea ecx, [ebp - 0x28]
call fcn.10004780
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x10018ef7
mov bl, 1
jmp 0x10018ef9
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004840
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100881a5
mov esp, ebp
pop ebp
ret
Function at 0x10018f30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100baf78
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100fb03c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.10004780
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10018fae
lea ecx, [ebp - 0x28]
call fcn.10004970
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.100196a0
test al, al
je 0x10018f9d
lea ecx, [ebp - 0x28]
call fcn.10004780
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004840
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100881a5
mov esp, ebp
pop ebp
ret

Function at 0x100191e0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bafc0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x100fb03c]
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
call fcn.10004780
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
je 0x10019226
mov al, 1
jmp 0x1001931b
mov ecx, esi
call fcn.10004780
push eax
lea ecx, [ebp - 0x28]
call fcn.10004920
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10018f30
mov ebx, eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004840
cmp ebx, 0xffffffff
jne 0x10019265
xor al, al
jmp 0x1001931b
mov ecx, esi
call fcn.10004780
push eax
lea ecx, [ebp - 0x28]
call fcn.10004920
mov dword [ebp - 4], 1
xor edx, edx
lea ecx, [ebp - 0x28]
call fcn.10018e70
mov bl, al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004840
test bl, bl
je 0x1001925e
mov ecx, esi
call fcn.10004780
push eax
call edi
test eax, eax
jne 0x1001921f
lea ecx, [ebp - 0x28]
call fcn.10004970
mov dword [ebp - 4], 2
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.100196a0
test al, al
je 0x100192dd
lea ecx, [ebp - 0x28]
call fcn.10004780
push eax
call edi
test eax, eax
je 0x100192dd
mov bl, 1
jmp 0x1001930a
mov ecx, esi
call fcn.10004780
push eax
lea ecx, [ebp - 0x44]
call fcn.10004920
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 0x2c]
call fcn.10018e70
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.10004840
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004840
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.100881a5
mov esp, ebp
pop ebp
ret
Function at 0x10019340
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x100fb03c]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
mov ebx, dword [esp + 0x218]
lea eax, [esp + 4]
push esi
push edi
push 0x20c
push 0
push eax
mov esi, edx
mov edi, ecx
call fcn.1008ac40
add esp, 0xc
lea eax, [esp + 0xc]
mov ecx, esi
push eax
push 0
call fcn.10004780
push eax
mov ecx, edi
call fcn.10004780
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x100193d5
xor eax, eax
mov word [esp + 0x216], ax
lea eax, [esp + 0xc]
push eax
call fcn.10004b70
add esp, 4
mov ecx, ebx
push eax
lea eax, [esp + 0x10]
push eax
call fcn.100049a0
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.100881a5
add esp, 0x210
ret
mov ecx, dword [esp + 0x218]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100881a5
add esp, 0x210
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bb048
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x100fb03c]
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 ebx, edx
mov edi, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x50]
mov esi, dword [ebp + 0xc]
cdq
push edx
push eax
call fcn.1000e470
push edi
call fcn.10004ef0
add esp, 0xc
cmp esi, eax
je 0x100195b9
mov ecx, edi
call fcn.10004990
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x100195ae
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, esi
call fcn.100049a0
push 0x100de7f8
call fcn.10004b70
add esp, 4
mov ecx, esi
push eax
push 0x100de7f8
call fcn.10004ae0
lea eax, [ebp - 0x50]
push eax
call fcn.10004b70
add esp, 4
mov ecx, esi
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.10004ae0
push 0x100de7fc
call fcn.10004b70
add esp, 4
mov ecx, esi
push eax
push 0x100de7fc
call fcn.10004ae0
mov ecx, ebx
call fcn.10004990
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x10019616
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, esi
call fcn.10004ae0
mov ecx, esi
call fcn.10004780
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call ebx
mov edi, eax
cmp edi, 0xffffffff
jne 0x10019674
lea ecx, [ebp - 0x68]
call fcn.10004970
mov dword [ebp - 4], 0
lea edx, [ebp - 0x68]
mov ecx, esi
call fcn.100196a0
test al, al
je 0x10019662
lea ecx, [ebp - 0x68]
call fcn.10004780
push eax
call ebx
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.10004840
cmp edi, 0xffffffff
sete al
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.100881a5
mov esp, ebp
pop ebp
ret