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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x101c
call fcn.1006fb30
mov edx, dword [ebp + 8]
push ebx
push esi
lea esi, [esp + 0xc]
mov ebx, ecx
push edi
sub esi, edx
nop
movzx eax, word [edx]
lea edx, [edx + 2]
mov word [esi + edx - 2], ax
test ax, ax
jne 0x100a0f20
mov ecx, dword [ebp + 0x10]
lea edx, [esp + 0x810]
sub edx, ecx
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x100a0f40
mov ax, word [ebp + 0xc]
push 0
push 0
mov word [esp + 0x1018], ax
lea eax, [esp + 0x18]
push eax
push sym.WMCommon.dll_private:_static_unsigned_int___cdecl_WM::GMHttpDownload::QuerySizeFunc_void__
push 0
push 0
mov byte [esp + 0x1038], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, eax
push 0x14d
push esi
call edi
cmp eax, 0x102
jne 0x100a0fb1
mov ecx, dword [ebx + 0x2690]
mov eax, dword [ecx]
call dword [eax + 0xc]
test eax, eax
jne 0x100a0fd9
push 0x14d
push esi
call edi
cmp eax, 0x102
je 0x100a0f93
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0xc], 0
je 0x100a0ff7
mov eax, 0xe0000005
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xe000000a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp + 0x14]
mov eax, dword [esp + 0x1018]
pop edi
pop esi
mov dword [ecx], eax
mov eax, dword [esp + 0x1014]
mov dword [ecx + 4], eax
mov ecx, dword [ebp + 0x18]
mov al, byte [esp + 0x1018]
pop ebx
mov byte [ecx], al
xor eax, eax
mov esp, ebp
pop ebp
ret 0x14
Function at 0x100a1fb0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x110
push ebx
push esi
mov esi, ecx
xor bl, bl
mov eax, dword [esi + 0x10]
cmp eax, 0xffffffff
je 0x100a205f
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], eax
push ecx
push 0
push 0
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0
push ecx
inc eax
mov dword [esp + 0x20], 0
push eax
mov dword [esp + 0x28], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
je 0x100a2034
cmp eax, 1
jne 0x100a205f
push 2
push eax
lea eax, [esp + 0x13]
push eax
push dword [esi + 0x10]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x100a2041
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2746
je 0x100a205f
cmp eax, 0x2745
je 0x100a205f
cmp eax, 0x274d
je 0x100a205f
mov bl, 1
pop esi
mov al, bl
pop ebx
add esp, 0x110
ret
test eax, eax
jne 0x100a2052
xor bl, bl
pop esi
mov al, bl
pop ebx
add esp, 0x110
ret
test eax, eax
movzx ebx, bl
mov ecx, 1
cmovg ebx, ecx
pop esi
mov al, bl
pop ebx
add esp, 0x110
ret

Function at 0x100a20d0
Capabilities:
Set socket configuration

Disassembly:
push edi
push 4
lea eax, [esp + 0xc]
mov edi, ecx
push eax
push 0x1005
push 0xffff
push dword [edi + 0x10]
call dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [esp + 0xc]
push eax
push 0x1006
push 0xffff
push dword [edi + 0x10]
call dword [sym.imp.WS2_32.dll_setsockopt]
pop edi
ret 4

Function at 0x100a2110
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
push dword [esp + 0x14]
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
jne 0x100a2129
add esp, 0x10
ret 4
movsx eax, word [ecx + 0xa]
push eax
mov eax, dword [ecx + 0xc]
push dword [eax]
lea eax, [esp + 0xc]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push dword [esp + 4]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
add esp, 0x10
ret 4

Function at 0x100a2160
Capabilities:
Receive data
Receive data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 0x10]
call dword [sym.imp.WS2_32.dll_recv]
ret 0xc

Function at 0x100a2180
Capabilities:
Send data
Send data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 0x10]
call dword [sym.imp.WS2_32.dll_send]
ret 0xc

Function at 0x100a21a0
Capabilities:
Connect socket

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, ecx
mov eax, 2
mov word [esi], ax
call dword [sym.imp.WS2_32.dll_htons]
push dword [esp + 8]
mov word [esi + 2], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0x10
push esi
push dword [esi + 0x10]
mov dword [esi + 4], eax
call dword [sym.imp.WS2_32.dll_connect]
pop esi
ret 8
Function at 0x100a2cc0
Capabilities:
Clear file content

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
mov edi, dword [esp + 0x1c]
mov esi, ecx
lea ecx, [esp + 0xc]
push ecx
push 0
mov eax, dword [esi]
mov ecx, esi
push edi
push ebx
mov eax, dword [eax + 0x18]
call eax
test al, al
je 0x100a2d0f
cmp dword [esp + 0xc], ebx
jne 0x100a2d0f
cmp dword [esp + 0x10], edi
jne 0x100a2d0f
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x100a2d0f
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop edi
test eax, eax
pop esi
setne al
pop ebx
add esp, 8
ret 8
pop edi
pop esi
xor al, al
pop ebx
add esp, 8
ret 8

Function at 0x100a2e30
Capabilities:
Get file size

Disassembly:
push ecx
mov eax, dword [ecx + 4]
push esi
cmp eax, 0xffffffff
je 0x100a2e72
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100a2e57
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100a2e72
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov edx, dword [esp + 4]
add ecx, esi
pop esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop ecx
ret 4
xor al, al
pop esi
pop ecx
ret 4
Function at 0x100a3090
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1024c148
push eax
mov dword fs:[0], esp
sub esp, 0xa8
push ebx
push esi
push edi
mov edi, ecx
cmp byte [edi + 0xc], 0
jne 0x100a3206
cmp dword [edi + 0x2c], 8
lea esi, [edi + 0x18]
mov dword [ebp - 0x14], 0
mov eax, esi
jb 0x100a30d1
mov eax, dword [esi]
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x100a3219
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [edi + 0x10], eax
test eax, eax
je 0x100a3219
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [edi + 0x14], eax
test eax, eax
je 0x100a3219
cmp dword [esi + 0x14], 8
jb 0x100a3114
mov esi, dword [esi]
push eax
push ebx
push dword [ebp - 0x14]
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
lea eax, [ebp - 0x18]
push eax
push str.VarFileInfoTranslation
push dword [edi + 0x14]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
xor ebx, ebx
test dword [ebp - 0x10], 0xfffffffc
jbe 0x100a3202
xor esi, esi
nop
push 0x80
lea eax, [ebp - 0xb0]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x18]
add esp, 0xc
lea ecx, [eax + esi*4]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push str.StringFileInfo_04x_04x
lea eax, [ebp - 0xb0]
push 0x3f
push eax
call fcn.100312c0
add esp, 0x14
mov dword [ebp - 0x20], 0
xor eax, eax
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
lea eax, [ebp - 0xb0]
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100a31b0
sub eax, edx
lea ecx, [ebp - 0x30]
sar eax, 1
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.1001a600
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.100313d0
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
call fcn.1001a5a0
mov eax, dword [ebp - 0x10]
inc ebx
movzx esi, bx
shr eax, 2
cmp esi, eax
jb 0x100a3150
mov byte [edi + 0xc], 1
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
xor al, al
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100a3fe0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1024c28b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push dword [ebp + 8]
mov dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov byte [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.1001a380
xor eax, eax
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
mov dword [ecx + 0x10], 0
push eax
mov dword [ecx + 0x14], 7
push 0x10255fec
mov word [ecx], ax
call fcn.1001a600
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x100a4bc0
Capabilities:
Set file attributes

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
cmp eax, 0xffffffff
je 0x100a4bd9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc], 0xffffffff
mov ecx, dword [esi + 0x2c]
cmp ecx, 0xffffffff
je 0x100a4bfb
cmp dword [esi + 0x24], 8
lea eax, [esi + 0x10]
jb 0x100a4bec
mov eax, dword [eax]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [esi + 0x2c], 0xffffffff
pop esi
ret

Function at 0x100a4c00
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push esi
push edi
mov edi, ecx
test byte [edi + 0x28], 0xe
je 0x100a4c40
cmp dword [edi + 0x24], 8
lea esi, [edi + 0x10]
mov eax, esi
jb 0x100a4c17
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 5
je 0x100a4c40
mov dword [edi + 0x2c], eax
and eax, 0xfffffffa
cmp dword [esi + 0x14], 8
jb 0x100a4c30
mov esi, dword [esi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
pop edi
setne al
pop esi
ret
pop edi
xor al, al
pop esi
ret

Function at 0x100a4cd0
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push edi
push ebx
mov edi, ecx
call sym.WMCommon.dll_public:_static_bool___cdecl_WM::GMFilePathUtils::IsExistsFile_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 4
test al, al
je 0x100a4dd0
push esi
lea esi, [edi + 0x10]
cmp esi, ebx
je 0x100a4d06
cmp dword [ebx + 0x14], 8
mov eax, dword [ebx + 0x10]
jb 0x100a4cfd
mov ebx, dword [ebx]
push eax
push ebx
mov ecx, esi
call fcn.1001a600
mov ebx, dword [esp + 0x18]
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x1c]
mov dword [edi + 0x28], ebx
push eax
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
call sym.WMCommon.dll_private:_void___thiscall_WM::GMFileMappingEx::CalcDesiredAccess_unsigned_long_int___unsigned_long_int___unsigned_long_int__
test bl, 0xe
je 0x100a4d55
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x100a4d32
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 5
je 0x100a4d55
mov dword [edi + 0x2c], eax
mov ecx, esi
and eax, 0xfffffffa
cmp dword [esi + 0x14], 8
jb 0x100a4d4d
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esi + 0x14], 8
jb 0x100a4d5d
mov esi, dword [esi]
push 0
push 0x80
push 3
push 0
push 1
push dword [esp + 0x28]
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 0xc], eax
pop esi
cmp eax, 0xffffffff
je 0x100a4dd0
push 0
push 0
push 0
push dword [esp + 0x20]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [edi + 4], eax
test eax, eax
je 0x100a4dd0
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x100a4db0
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [edi + 4]
mov dword [edi + 8], 0
push 0
push 0
push 0
push dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi + 8], eax
test eax, eax
je 0x100a4dd0
pop edi
mov al, 1
pop ebx
pop ecx
ret 8
pop edi
xor al, al
pop ebx
pop ecx
ret 8
Function at 0x100a6b70
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 8]
sub esp, 0x1c
cmp dword [eax + 0x10], 2
push ebx
jb 0x100a6beb
mov edx, dword [eax + 0x14]
mov ecx, eax
cmp edx, 8
jb 0x100a6b8f
mov ecx, dword [eax]
cmp word [ecx + 2], 0x3a
jne 0x100a6beb
xor ecx, ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 7
mov word [esp + 8], cx
cmp edx, 8
jb 0x100a6bb4
mov eax, dword [eax]
push 2
push eax
lea ecx, [esp + 0x10]
call fcn.1001a600
cmp dword [esp + 0x1c], 8
lea eax, [esp + 8]
cmovae eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
lea ecx, [esp + 8]
sete bl
call fcn.1001a5a0
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100a73d0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1024c514
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x24]
push esi
push eax
call sym.WMCommon.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_WM::GMFileName::GetDirectory_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
call sym.WMCommon.dll_public:_static_bool___cdecl_WM::GMFilePathUtils::IsExists_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 0xc
test al, al
jne 0x100a741d
lea eax, [ebp - 0x24]
push eax
call sym.WMCommon.dll_public:_static_bool___cdecl_WM::GMFilePathUtils::CreateDirectories_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 4
cmp dword [esi + 0x14], 8
jb 0x100a7425
mov esi, dword [esi]
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x14], 8
jb 0x100a7430
mov ecx, dword [ecx]
movzx eax, byte [ebp + 0x10]
xor eax, 1
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
lea ecx, [ebp - 0x24]
setne bl
call fcn.1001a5a0
mov ecx, dword [ebp - 0xc]
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x100a7460
Capabilities:
Move file

Disassembly:
mov eax, dword [esp + 8]
cmp dword [eax + 0x14], 8
jb 0x100a746c
mov eax, dword [eax]
mov ecx, dword [esp + 4]
cmp dword [ecx + 0x14], 8
jb 0x100a7478
mov ecx, dword [ecx]
push eax
push ecx
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wrename]
add esp, 8
test eax, eax
sete al
ret
Function at 0x100a8560
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1024c68d
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x100a8634
nop
mov ecx, dword [esi + 0x14]
mov eax, esi
cmp ecx, 8
jb 0x100a859c
mov eax, dword [esi]
mov edx, 0x2f
cmp dx, word [eax + edi*2]
mov edx, 0x5c
je 0x100a85bb
mov eax, esi
cmp ecx, 8
jb 0x100a85b5
mov eax, dword [esi]
cmp dx, word [eax + edi*2]
jne 0x100a862b
xor eax, eax
mov dword [ebp - 0x18], 0
cmp dword [esi + 0x10], edi
mov edx, edi
mov word [ebp - 0x28], ax
mov eax, esi
cmovb edx, dword [esi + 0x10]
mov dword [ebp - 0x14], 7
cmp ecx, 8
jb 0x100a85e1
mov eax, dword [esi]
push edx
push eax
lea ecx, [ebp - 0x28]
call fcn.1001a600
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0
je 0x100a861c
lea eax, [ebp - 0x28]
push eax
call sym.WMCommon.dll_public:_static_bool___cdecl_WM::GMFilePathUtils::IsExists_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 4
test al, al
jne 0x100a861c
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.1001a5a0
inc edi
cmp edi, ebx
jb 0x100a8590
push esi
call sym.WMCommon.dll_public:_static_bool___cdecl_WM::GMFilePathUtils::IsExists_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 4
test al, al
jne 0x100a866b
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x100a864b
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x100a866b
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call sym.WMCommon.dll_public:_static_bool___cdecl_WM::GMFilePathUtils::IsDirectory_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
mov ecx, dword [ebp - 0xc]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100a8690
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x100a869f
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x100a86bf
and eax, 0xfffffffe
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x100a86b7
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esi + 0x14], 8
jb 0x100a86c7
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
pop esi
sete al
ret
Function at 0x100a86e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1024c69f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push dword [ebp + 8]
lea ecx, [ebp - 0x28]
call fcn.1001a380
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
cmp ecx, 2
jb 0x100a8762
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
cmp edx, 8
cmovae eax, dword [ebp - 0x28]
cmp word [eax], 0x22
jne 0x100a8762
cmp edx, 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 2], 0x22
jne 0x100a8762
lea eax, [ecx - 2]
push eax
push 1
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call sym.WMCommon.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_WM::GMStringUtils::Mid_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___int__unsigned_int_
add esp, 0x10
lea ecx, [ebp - 0x28]
push eax
call fcn.1001a270
lea ecx, [ebp - 0x40]
call fcn.1001a5a0
lea eax, [ebp - 0x28]
push 0x10267444
push eax
call sym.WMCommon.dll_public:_static_void___cdecl_WM::GMStringUtils::TrimRight_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____wchar_t_const__
add esp, 8
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100a8792
test al, 0x10
je 0x100a8792
mov bl, 1
jmp 0x100a8794
xor bl, bl
lea ecx, [ebp - 0x28]
call fcn.1001a5a0
mov ecx, dword [ebp - 0xc]
mov al, bl
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100a87b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1024c6b1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push dword [ebp + 8]
lea ecx, [ebp - 0x28]
call fcn.1001a380
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
cmp ecx, 2
jb 0x100a8832
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
cmp edx, 8
cmovae eax, dword [ebp - 0x28]
cmp word [eax], 0x22
jne 0x100a8832
cmp edx, 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 2], 0x22
jne 0x100a8832
lea eax, [ecx - 2]
push eax
push 1
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call sym.WMCommon.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_WM::GMStringUtils::Mid_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___int__unsigned_int_
add esp, 0x10
lea ecx, [ebp - 0x28]
push eax
call fcn.1001a270
lea ecx, [ebp - 0x40]
call fcn.1001a5a0
lea eax, [ebp - 0x28]
push 0x10267444
push eax
call sym.WMCommon.dll_public:_static_void___cdecl_WM::GMStringUtils::TrimRight_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____wchar_t_const__
add esp, 8
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100a8862
test al, 0x10
jne 0x100a8862
mov bl, 1
jmp 0x100a8864
xor bl, bl
lea ecx, [ebp - 0x28]
call fcn.1001a5a0
mov ecx, dword [ebp - 0xc]
mov al, bl
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100a8880
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1024c6c3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push dword [ebp + 8]
lea ecx, [ebp - 0x28]
call fcn.1001a380
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
cmp ecx, 2
jb 0x100a8902
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
cmp edx, 8
cmovae eax, dword [ebp - 0x28]
cmp word [eax], 0x22
jne 0x100a8902
cmp edx, 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 2], 0x22
jne 0x100a8902
lea eax, [ecx - 2]
push eax
push 1
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call sym.WMCommon.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_WM::GMStringUtils::Mid_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___int__unsigned_int_
add esp, 0x10
lea ecx, [ebp - 0x28]
push eax
call fcn.1001a270
lea ecx, [ebp - 0x40]
call fcn.1001a5a0
lea eax, [ebp - 0x28]
push 0x10267444
push eax
call sym.WMCommon.dll_public:_static_void___cdecl_WM::GMStringUtils::TrimRight_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____wchar_t_const__
add esp, 8
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
lea ecx, [ebp - 0x28]
setne bl
call fcn.1001a5a0
mov ecx, dword [ebp - 0xc]
mov al, bl
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret