joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4df040
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ff1da
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
push esi
mov eax, dword [0x53602c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, esi
mov dword [ebp - 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x4df07d
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4df09c
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4df159
sub esp, 8
mov eax, esi
cmp dword [esi + 0x14], 8
mov ecx, esp
jb 0x4df0bc
mov eax, dword [esi]
mov dword [ecx], eax
mov eax, dword [esi + 0x10]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x28]
push eax
call fcn.00454040
add esp, 0xc
mov esi, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
call sub.KERNEL32.dll_GetLastError
push eax
push 2
push 0x265
push str.E:.conan709e391_sourcesexternalcrashpadclientcrash_report_database_win.cc
push str.bool___cdecl_crashpad::_anonymous_namespace::CreateDirectoryIfNecessary_const_class_base::FilePath__
lea ecx, [ebp - 0xd8]
call fcn.00452ce0
push str.CreateDirectory
push eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], 3
call fcn.004012f0
mov ecx, dword [esi + 0x10]
add esp, 8
cmp dword [esi + 0x14], 0x10
jb 0x4df129
mov esi, dword [esi]
push ecx
push esi
push eax
call fcn.00402280
add esp, 0xc
lea ecx, [ebp - 0xd8]
call fcn.00452fa0
lea ecx, [ebp - 0x28]
call fcn.004035e0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push esi
call fcn.004df370
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4df1a0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ff24a
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
mov eax, dword [0x53602c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x4c], ecx
lea ecx, [ebp - 0x14]
push ecx
mov dword [ebp - 0x48], 0
mov ecx, eax
mov dword [ebp - 0x14], 0
call fcn.004de3a0
mov esi, dword [ebp - 0x14]
mov dword [ebp - 4], 0
test esi, esi
jne 0x4df209
mov esi, 3
jmp 0x4df343
lea ecx, [ebp - 0x2c]
call fcn.00451930
mov ecx, dword [ebp - 0x4c]
mov eax, dword [esi + 0x3c]
mov edi, dword [esi + 0x38]
mov byte [ebp - 4], 1
movups xmm0, xmmword [ecx]
movups xmmword [ebp - 0x3c], xmm0
cmp edi, eax
je 0x4df249
mov esi, eax
nop dword [eax + eax]
lea eax, [ebp - 0x3c]
mov ecx, edi
push eax
call fcn.00440b30
test al, al
jne 0x4df246
add edi, 0x70
cmp edi, esi
jne 0x4df230
mov esi, dword [ebp - 0x14]
cmp edi, dword [esi + 0x3c]
jne 0x4df258
mov esi, 1
jmp 0x4df33b
lea eax, [edi + 0x10]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004519d0
push edi
lea eax, [ebp - 0x48]
push eax
lea ecx, [esi + 0x38]
call fcn.004e1490
mov byte [esi + 0x34], 1
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4df32e
sub esp, 8
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
mov ecx, esp
cmovae eax, dword [ebp - 0x2c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x1c]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x44]
push eax
call fcn.00454040
add esp, 0xc
mov esi, eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x48], 1
call sub.KERNEL32.dll_GetLastError
push eax
push 2
push 0x366
push str.E:.conan709e391_sourcesexternalcrashpadclientcrash_report_database_win.cc
push str.enum_crashpad::CrashReportDatabase::OperationStatus___thiscall_crashpad::CrashReportDatabaseWin::DeleteReport_const_struct_crashpad::UUID__
lea ecx, [ebp - 0x100]
call fcn.00452ce0
push str.DeleteFile
push eax
mov dword [ebp - 4], 3
mov dword [ebp - 0x48], 3
call fcn.004012f0
mov ecx, dword [esi + 0x10]
add esp, 8
cmp dword [esi + 0x14], 0x10
jb 0x4df309
mov esi, dword [esi]
push ecx
push esi
push eax
call fcn.00402280
add esp, 0xc
lea ecx, [ebp - 0x100]
call fcn.00452fa0
lea ecx, [ebp - 0x44]
call fcn.004035e0
mov esi, 2
jmp 0x4df33b
push dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x50]
call fcn.004e93d0
xor esi, esi
lea ecx, [ebp - 0x2c]
call fcn.00451970
lea ecx, [ebp - 0x14]
call fcn.004de0b0
mov eax, esi
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.0047d116
mov esp, ebp
pop ebp
ret 4
Function at 0x4df370
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ff2ef
mov eax, dword fs:[0]
push eax
sub esp, 0x18c
push esi
mov eax, dword [0x53602c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, esi
mov dword [ebp - 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x4df3ad
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4df469
sub esp, 8
mov eax, esi
cmp dword [esi + 0x14], 8
mov ecx, esp
jb 0x4df3cc
mov eax, dword [esi]
mov dword [ecx], eax
mov eax, dword [esi + 0x10]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x28]
push eax
call fcn.00454040
add esp, 0xc
mov esi, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
call sub.KERNEL32.dll_GetLastError
push eax
push 2
push 0x250
push str.E:.conan709e391_sourcesexternalcrashpadclientcrash_report_database_win.cc
push str.bool___cdecl_crashpad::_anonymous_namespace::EnsureDirectory_const_class_base::FilePath__
lea ecx, [ebp - 0x198]
call fcn.00452ce0
push str.GetFileAttributes
push eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], 3
call fcn.004012f0
mov ecx, dword [esi + 0x10]
add esp, 8
cmp dword [esi + 0x14], 0x10
jb 0x4df439
mov esi, dword [esi]
push ecx
push esi
push eax
call fcn.00402280
add esp, 0xc
lea ecx, [ebp - 0x198]
call fcn.00452fa0
lea ecx, [ebp - 0x28]
call fcn.004035e0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
test al, 0x10
jne 0x4df522
sub esp, 8
mov eax, esi
cmp dword [esi + 0x14], 8
mov ecx, esp
jb 0x4df480
mov eax, dword [esi]
mov dword [ecx], eax
mov eax, dword [esi + 0x10]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x40]
push eax
call fcn.00454040
add esp, 0xc
mov esi, eax
push 2
push 0x254
push str.E:.conan709e391_sourcesexternalcrashpadclientcrash_report_database_win.cc
push str.bool___cdecl_crashpad::_anonymous_namespace::EnsureDirectory_const_class_base::FilePath__
lea ecx, [ebp - 0xe8]
mov dword [ebp - 4], 2
mov dword [ebp - 0x10], 4
call fcn.00452b50
push str.GetFileAttributes
push eax
mov dword [ebp - 4], 3
mov dword [ebp - 0x10], 0xc
call fcn.004012f0
mov ecx, dword [esi + 0x10]
add esp, 8
cmp dword [esi + 0x14], 0x10
jb 0x4df4e7
mov esi, dword [esi]
push ecx
push esi
push eax
call fcn.00402280
push str.:_not_a_directory
push eax
call fcn.004012f0
add esp, 0x14
lea ecx, [ebp - 0xe8]
call fcn.00452d70
lea ecx, [ebp - 0x40]
call fcn.004035e0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4df540
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ecx + 0x3c]
push esi
mov esi, dword [ecx + 0x38]
cmp esi, ebx
je 0x4df5a0
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
cmp dword [esi + 0x68], eax
jne 0x4df598
cmp dword [esi + 0x24], 8
lea eax, [esi + 0x10]
jb 0x4df567
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4df595
test al, 0x10
jne 0x4df595
mov eax, dword [edi + 4]
push esi
cmp eax, dword [edi + 8]
je 0x4df58d
mov ecx, eax
call fcn.004dde30
add dword [edi + 4], 0x68
jmp 0x4df595
push eax
mov ecx, edi
call fcn.004dd780
mov eax, dword [ebp + 8]
add esi, 0x70
cmp esi, ebx
jne 0x4df557
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x53602c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, dword [ebx + 0xc]
push esi
push edi
mov dword [ebp - 0x24], eax
mov edi, dword [eax + 0x3c]
mov esi, dword [eax + 0x38]
mov eax, dword [ebx + 8]
mov dword [ebp - 0x28], ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x20], xmm0
cmp esi, edi
je 0x4df60a
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.00440b30
test al, al
jne 0x4df60a
add esi, 0x70
cmp esi, edi
jne 0x4df5f4
mov eax, dword [ebp - 0x24]
cmp esi, dword [eax + 0x3c]
jne 0x4df619
mov eax, 1
jmp 0x4df63d
cmp dword [esi + 0x24], 8
lea eax, [esi + 0x10]
jb 0x4df624
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4df612
shr eax, 3
and eax, 2
jne 0x4df63d
mov ecx, dword [ebp - 0x28]
mov dword [ecx], esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0047d116
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
Function at 0x4df660
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x53602c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x10]
mov edx, ecx
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 8]
push esi
mov esi, dword [edx + 0x38]
push edi
movups xmm0, xmmword [eax]
mov edi, dword [edx + 0x3c]
mov dword [ebp - 0x24], edx
movups xmmword [ebp - 0x20], xmm0
cmp esi, edi
je 0x4df6bd
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.00440b30
test al, al
jne 0x4df6ba
add esi, 0x70
cmp esi, edi
jne 0x4df6a4
mov edx, dword [ebp - 0x24]
cmp esi, dword [edx + 0x3c]
jne 0x4df6c9
mov eax, 1
jmp 0x4df719
mov ecx, dword [esi + 0x68]
cmp ecx, dword [ebx + 0xc]
jne 0x4df6fd
cmp dword [esi + 0x24], 8
lea eax, [esi + 0x10]
jb 0x4df6dc
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4df6f2
mov edx, dword [ebp - 0x24]
mov eax, 1
jmp 0x4df70c
mov edx, dword [ebp - 0x24]
shr eax, 3
and eax, 2
jmp 0x4df70c
mov eax, 1
mov edi, 4
cmp ecx, eax
cmove eax, edi
test eax, eax
jne 0x4df719
mov ecx, dword [ebp - 0x28]
mov byte [edx + 0x34], 1
mov dword [ecx], esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0047d116
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
Function at 0x4e8af0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5008a5
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x53602c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp + 0xc]
push eax
mov dword [ebp - 0x44], edi
call fcn.00440e30
mov eax, dword [esi]
lea ecx, [ebp - 0x78]
push ecx
mov ecx, esi
mov dword [ebp - 4], 0
mov eax, dword [eax + 0x30]
call eax
mov esi, eax
mov ecx, str.attachments
mov byte [ebp - 4], 1
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x2c], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e8b65
sub ecx, edx
sar ecx, 1
push ecx
push str.attachments
lea ecx, [ebp - 0x40]
call fcn.00433210
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x60]
mov ecx, esi
push eax
call fcn.00451a60
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
push ecx
push edi
mov ecx, eax
call fcn.00451a60
lea ecx, [ebp - 0x60]
call fcn.00451970
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
jb 0x4e8be3
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4e8bd9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e8c54
push ecx
push edx
call fcn.0047cee2
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.00451970
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x4e8c35
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4e8c2b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e8c54
push ecx
push edx
call fcn.0047cee2
add esp, 8
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.0047d116
mov esp, ebp
pop ebp
ret 8
call fcn.0048c040
int3
Function at 0x4e8c60
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5008e5
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push esi
push edi
mov eax, dword [0x53602c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ecx]
lea edx, [ebp - 0x44]
mov esi, dword [ebp + 8]
push edx
mov dword [ebp - 0x28], esi
mov eax, dword [eax + 0x30]
call eax
mov edi, eax
mov ecx, str.attachments
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x10], 0
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e8cc0
sub ecx, edx
sar ecx, 1
push ecx
push str.attachments
lea ecx, [ebp - 0x24]
call fcn.00433210
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 1
push eax
push esi
mov ecx, edi
call fcn.00451a60
mov ecx, dword [ebp - 0x10]
cmp ecx, 8
jb 0x4e8d23
mov edx, dword [ebp - 0x24]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4e8d19
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e8d54
push ecx
push edx
call fcn.0047cee2
add esp, 8
xor eax, eax
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
call fcn.00451970
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
call fcn.0048c040
int3
Function at 0x4ebcc0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5011ba
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
push esi
mov eax, dword [0x53602c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, esi
mov dword [ebp - 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x4ebcfd
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4ebdb9
sub esp, 8
mov eax, esi
cmp dword [esi + 0x14], 8
mov ecx, esp
jb 0x4ebd1c
mov eax, dword [esi]
mov dword [ecx], eax
mov eax, dword [esi + 0x10]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x28]
push eax
call fcn.00454040
add esp, 0xc
mov esi, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
call sub.KERNEL32.dll_GetLastError
push eax
push 2
push 0x82
push str.E:.conan709e391_sourcesexternalcrashpadutil_file_filesystem_win.cc
push str.bool___cdecl_crashpad::IsDirectory_const_class_base::FilePath__bool_
lea ecx, [ebp - 0xd8]
call fcn.00452ce0
push str.GetFileAttributes
push eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], 3
call fcn.004012f0
mov ecx, dword [esi + 0x10]
add esp, 8
cmp dword [esi + 0x14], 0x10
jb 0x4ebd89
mov esi, dword [esi]
push ecx
push esi
push eax
call fcn.00402280
add esp, 0xc
lea ecx, [ebp - 0xd8]
call fcn.00452fa0
lea ecx, [ebp - 0x28]
call fcn.004035e0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0xc], 0
jne 0x4ebdc6
test eax, 0x400
jne 0x4ebda7
shr eax, 4
and al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4ebde0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50121a
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
push esi
mov eax, dword [0x53602c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, esi
mov dword [ebp - 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x4ebe1d
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4ebed6
sub esp, 8
mov eax, esi
cmp dword [esi + 0x14], 8
mov ecx, esp
jb 0x4ebe3c
mov eax, dword [esi]
mov dword [ecx], eax
mov eax, dword [esi + 0x10]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x28]
push eax
call fcn.00454040
add esp, 0xc
mov esi, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
call sub.KERNEL32.dll_GetLastError
push eax
push 2
push 0x75
push str.E:.conan709e391_sourcesexternalcrashpadutil_file_filesystem_win.cc
push str.bool___cdecl_crashpad::IsRegularFile_const_class_base::FilePath__
lea ecx, [ebp - 0xd8]
call fcn.00452ce0
push str.GetFileAttributes
push eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], 3
call fcn.004012f0
mov ecx, dword [esi + 0x10]
add esp, 8
cmp dword [esi + 0x14], 0x10
jb 0x4ebea6
mov esi, dword [esi]
push ecx
push esi
push eax
call fcn.00402280
add esp, 0xc
lea ecx, [ebp - 0xd8]
call fcn.00452fa0
lea ecx, [ebp - 0x28]
call fcn.004035e0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
test eax, 0x410
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4ebef0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5012af
mov eax, dword fs:[0]
push eax
sub esp, 0x18c
push esi
mov eax, dword [0x53602c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, esi
mov dword [ebp - 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x4ebf2d
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4ec09f
cmp byte [ebp + 0x10], al
je 0x4ebff6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4ebff6
push 1
push esi
call fcn.004ebcc0
add esp, 8
test al, al
jne 0x4ec09f
sub esp, 8
mov ecx, esp
push esi
call fcn.004eb6b0
lea eax, [ebp - 0x28]
push eax
call fcn.00454040
add esp, 0xc
mov esi, eax
push 2
push 0x5d
push str.E:.conan709e391_sourcesexternalcrashpadutil_file_filesystem_win.cc
push str.bool___cdecl_crashpad::LoggingCreateDirectory_const_class_base::FilePath__enum_crashpad::FilePermissions_bool_
lea ecx, [ebp - 0xe8]
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
call fcn.00452b50
push str._not_a_directory
push esi
push eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], 3
call fcn.004010d0
add esp, 8
push eax
call fcn.004012f0
add esp, 8
lea ecx, [ebp - 0xe8]
call fcn.00452d70
lea ecx, [ebp - 0x28]
call fcn.004035e0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
sub esp, 8
mov eax, esi
cmp dword [esi + 0x14], 8
mov ecx, esp
jb 0x4ec005
mov eax, dword [esi]
mov dword [ecx], eax
mov eax, dword [esi + 0x10]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x40]
push eax
call fcn.00454040
add esp, 0xc
mov esi, eax
mov dword [ebp - 4], 2
mov dword [ebp - 0x10], 4
call sub.KERNEL32.dll_GetLastError
push eax
push 2
push 0x62
push str.E:.conan709e391_sourcesexternalcrashpadutil_file_filesystem_win.cc
push str.bool___cdecl_crashpad::LoggingCreateDirectory_const_class_base::FilePath__enum_crashpad::FilePermissions_bool_
lea ecx, [ebp - 0x198]
call fcn.00452ce0
push str.CreateDirectory
push eax
mov dword [ebp - 4], 3
mov dword [ebp - 0x10], 0xc
call fcn.004012f0
mov ecx, dword [esi + 0x10]
add esp, 8
cmp dword [esi + 0x14], 0x10
jb 0x4ec06f
mov esi, dword [esi]
push ecx
push esi
push eax
call fcn.00402280
add esp, 0xc
lea ecx, [ebp - 0x198]
call fcn.00452fa0
lea ecx, [ebp - 0x40]
call fcn.004035e0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4ec2e0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5013ca
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
push esi
mov eax, dword [0x53602c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, esi
mov dword [ebp - 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x4ec31d
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4ec3d5
sub esp, 8
mov eax, esi
cmp dword [esi + 0x14], 8
mov ecx, esp
jb 0x4ec33b
mov eax, dword [esi]
mov dword [ecx], eax
mov eax, dword [esi + 0x10]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x28]
push eax
call fcn.00454040
add esp, 0xc
mov esi, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
call sub.KERNEL32.dll_GetLastError
push eax
push 2
push 0x30
push str.E:.conan709e391_sourcesexternalcrashpadutil_file_filesystem_win.cc
push str.bool___cdecl_crashpad::_anonymous_namespace::LoggingRemoveDirectoryImpl_const_class_base::FilePath__
lea ecx, [ebp - 0xd8]
call fcn.00452ce0
push str.RemoveDirectory
push eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], 3
call fcn.004012f0
mov ecx, dword [esi + 0x10]
add esp, 8
cmp dword [esi + 0x14], 0x10
jb 0x4ec3a5
mov esi, dword [esi]
push ecx
push esi
push eax
call fcn.00402280
add esp, 0xc
lea ecx, [ebp - 0xd8]
call fcn.00452fa0
lea ecx, [ebp - 0x28]
call fcn.004035e0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4ec3f0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50142a
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
push esi
mov eax, dword [0x53602c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, esi
mov dword [ebp - 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x4ec42d
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4ec45e
and eax, 0x410
cmp eax, 0x410
jne 0x4ec45e
push esi
call fcn.004ec2e0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4ec468
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4ec523
sub esp, 8
mov eax, esi
cmp dword [esi + 0x14], 8
mov ecx, esp
jb 0x4ec486
mov eax, dword [esi]
mov dword [ecx], eax
mov eax, dword [esi + 0x10]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x28]
push eax
call fcn.00454040
add esp, 0xc
mov esi, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
call sub.KERNEL32.dll_GetLastError
push eax
push 2
push 0x95
push str.E:.conan709e391_sourcesexternalcrashpadutil_file_filesystem_win.cc
push str.bool___cdecl_crashpad::LoggingRemoveFile_const_class_base::FilePath__
lea ecx, [ebp - 0xd8]
call fcn.00452ce0
push str.DeleteFile
push eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], 3
call fcn.004012f0
mov ecx, dword [esi + 0x10]
add esp, 8
cmp dword [esi + 0x14], 0x10
jb 0x4ec4f3
mov esi, dword [esi]
push ecx
push esi
push eax
call fcn.00402280
add esp, 0xc
lea ecx, [ebp - 0xd8]
call fcn.00452fa0
lea ecx, [ebp - 0x28]
call fcn.004035e0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret