joyce8/EMBER2024-capa huggingface dataset:
Function at 0x512a20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x5c6150]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test ecx, ecx
je 0x512b98
test edi, edi
jle 0x512b98
mov eax, dword [esi + 0x1c]
cmp eax, 0xffffffff
jne 0x512a9a
mov dword [esi], 0x59af80
call fcn.00521240
push 0xae
push str.t_saFile::Read
push str.__S_L:_d__
call fcn.005212c0
add esi, 4
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x512a87
mov esi, dword [esi]
push esi
push str.m_hFile__INVALID_HANDLE_VALUE__filename:_s_r_n
call fcn.005212c0
add esp, 8
jmp 0x512c2b
push 0
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0
push edx
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x512af7
mov dword [esi], 0x59b0ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.00521240
push 0xb7
push str.t_saFile::Read
push str.__S_L:_d__
call fcn.005212c0
add esi, 4
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x512aeb
mov esi, dword [esi]
push esi
push edi
push str.read_file_err__errcode:_d__filename:_s_r_n
jmp 0x512c23
mov eax, dword [esp + 0xc]
cmp edi, eax
je 0x512b3d
call fcn.00521240
push 0xbc
push str.t_saFile::Read
push str.__S_L:_d__
call fcn.005212c0
lea eax, [esi + 4]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x512b26
mov eax, dword [eax]
push eax
push dword [esp + 0x10]
push edi
push str.read_file__p_nSize___dwRead__size:_d__read:_d__filename:_s_r_n
call fcn.005212c0
mov eax, dword [esp + 0x1c]
add esp, 0x10
test eax, eax
jne 0x512b7a
mov dword [esi], 0x59b0b8
call fcn.00521240
push 0xc3
push str.t_saFile::Read
push str.__S_L:_d__
call fcn.005212c0
add esi, 4
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x512b6e
mov esi, dword [esi]
push esi
push edi
push str.p_nSize___0__dwRead__0__size:_d__filename:_s_r_n
jmp 0x512c23
mov dword [ebx], eax
mov al, 1
mov dword [esi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004d6cfd
mov esp, ebp
pop ebp
ret 0xc
lea eax, [esp + 0x10]
mov dword [esi], 0x59997c
push eax
call fcn.004e2e2c
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.004e4ceb
push dword [esp + 0x24]
cmp dword [0x5c92e0], 8
mov ecx, 0x5c92cc
push dword [esp + 0x2c]
cmovae ecx, dword [0x5c92cc]
push dword [esp + 0x34]
mov eax, dword [esp + 0x40]
push dword [esp + 0x3c]
inc eax
push eax
mov eax, dword [esp + 0x4c]
add eax, 0x76c
push eax
push ecx
push 0x5d2130
push str.__s___s___04d__02d__02d__02d:_02d:_02d_
call fcn.005212c0
push 0xa7
push str.t_saFile::Read
push str.__S_L:_d__
call fcn.005212c0
add esi, 4
add esp, 0x3c
cmp dword [esi + 0x14], 8
jb 0x512c1c
mov esi, dword [esi]
push esi
push edi
push str._p_szBuf__p_nSize___0__size:_d__filename:_s_r_n
call fcn.005212c0
add esp, 0xc
mov ecx, dword [esp + 0x3c]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004d6cfd
mov esp, ebp
pop ebp
ret 0xc
Function at 0x513120
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5c6150]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 0x14], 8
jb 0x513138
mov ecx, dword [ecx]
push ecx
call fcn.004e7033
add esp, 4
cmp eax, 0xffffffff
jne 0x513176
xorps xmm0, xmm0
movups xmmword [ebp - 0x24], xmm0
movups xmmword [ebp - 0x14], xmm0
call fcn.004e1e89
push dword [eax]
lea eax, [ebp - 0x24]
push 0x20
push eax
call fcn.004e6595
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d6cfd
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
call fcn.004d6cfd
mov esp, ebp
pop ebp
ret

Function at 0x513190
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x5c6150]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, edx
mov esi, ecx
mov ecx, edi
cmp dword [edi + 0x14], 8
jb 0x5131b0
mov ecx, dword [edi]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x5131ba
mov eax, dword [esi]
push 3
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x51328f
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
xorps xmm0, xmm0
mov ebx, eax
movups xmmword [ebp - 0x24], xmm0
movups xmmword [ebp - 0x14], xmm0
call fcn.004e1e89
push dword [eax]
lea eax, [ebp - 0x24]
push 0x20
push eax
call fcn.004e6595
lea eax, [ebp - 0x50]
push eax
call fcn.004e2e2c
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.004e4ceb
push dword [ebp - 0x48]
cmp dword [0x5c92e0], 8
mov ecx, 0x5c92cc
push dword [ebp - 0x44]
cmovae ecx, dword [0x5c92cc]
push dword [ebp - 0x40]
mov eax, dword [ebp - 0x38]
push dword [ebp - 0x3c]
inc eax
push eax
mov eax, dword [ebp - 0x34]
add eax, 0x76c
push eax
push ecx
push 0x5d2130
push str.__s___s___04d__02d__02d__02d:_02d:_02d_
call fcn.005212c0
push 0x20d
push str.t_fileUtil::MoveFileW
push str.__S_L:_d__
call fcn.005212c0
add esp, 0x48
cmp dword [edi + 0x14], 8
jb 0x513264
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x51326c
mov esi, dword [esi]
push ebx
push edi
push esi
push str.MoveFile_to_TemFile_false__fromPath:_s__toPath:_s__err:_d_r_n
call fcn.005212c0
add esp, 0x10
xor al, al
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d6cfd
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.004d6cfd
mov esp, ebp
pop ebp
ret
Function at 0x513a20
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x5c6150]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, edx
mov esi, ecx
mov ecx, edi
cmp dword [edi + 0x14], 8
jb 0x513a40
mov ecx, dword [edi]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x513a4a
mov eax, dword [esi]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x513b1f
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
xorps xmm0, xmm0
mov ebx, eax
movups xmmword [ebp - 0x24], xmm0
movups xmmword [ebp - 0x14], xmm0
call fcn.004e1e89
push dword [eax]
lea eax, [ebp - 0x24]
push 0x20
push eax
call fcn.004e6595
lea eax, [ebp - 0x50]
push eax
call fcn.004e2e2c
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.004e4ceb
push dword [ebp - 0x48]
cmp dword [0x5c92e0], 8
mov ecx, 0x5c92cc
push dword [ebp - 0x44]
cmovae ecx, dword [0x5c92cc]
push dword [ebp - 0x40]
mov eax, dword [ebp - 0x38]
push dword [ebp - 0x3c]
inc eax
push eax
mov eax, dword [ebp - 0x34]
add eax, 0x76c
push eax
push ecx
push 0x5d2130
push str.__s___s___04d__02d__02d__02d:_02d:_02d_
call fcn.005212c0
push 0x1fe
push str.t_fileUtil::CopyFileW
push str.__S_L:_d__
call fcn.005212c0
add esp, 0x48
cmp dword [edi + 0x14], 8
jb 0x513af4
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x513afc
mov esi, dword [esi]
push ebx
push edi
push esi
push str.CopyFile_to_TemFile_false__fromPath:_s__toPath:_s__err:_d_r_n
call fcn.005212c0
add esp, 0x10
xor al, al
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d6cfd
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.004d6cfd
mov esp, ebp
pop ebp
ret
Function at 0x513b40
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53666d
mov eax, dword fs:[0]
push eax
sub esp, 0x81c
mov eax, dword [0x5c6150]
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
xor bl, bl
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x513b7c
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x513d2d
shr eax, 4
and al, 1
je 0x513d2d
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x513ba1
mov eax, dword [esi]
push eax
lea eax, [ebp - 0x810]
push str._s.
push eax
call fcn.00436730
add esp, 0xc
lea eax, [ebp - 0x810]
push 0x5dfa68
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x513d18
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
nop dword [eax]
mov ecx, 0x596174
mov eax, 0x5dfa94
nop word [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x513c16
test dx, dx
je 0x513c12
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x513c16
add eax, 4
add ecx, 4
test dx, dx
jne 0x513bf0
xor eax, eax
jmp 0x513c1b
sbb eax, eax
or eax, 1
test eax, eax
je 0x513d01
mov eax, 0x596178
mov ecx, 0x5dfa94
nop dword [eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x513c56
test dx, dx
je 0x513c52
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x513c56
add ecx, 4
add eax, 4
test dx, dx
jne 0x513c30
xor eax, eax
jmp 0x513c5b
sbb eax, eax
or eax, 1
test eax, eax
je 0x513d01
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x513c6d
mov eax, dword [esi]
push 0x5dfa94
push eax
lea eax, [ebp - 0x810]
push 0x595020
push eax
call fcn.00436730
add esp, 0x10
mov dword [ebp - 0x818], 0
xor eax, eax
mov dword [ebp - 0x814], 7
mov word [ebp - 0x828], ax
lea ecx, [ebp - 0x810]
mov dword [ebp - 4], eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x513cb0
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x828]
call fcn.00413520
lea ecx, [ebp - 0x828]
call fcn.00513e30
lea ecx, [ebp - 0x828]
mov dword [ebp - 4], 1
call fcn.00513b40
lea ecx, [ebp - 0x828]
mov dword [ebp - 4], 0xffffffff
call fcn.004134c0
push 0x5dfa68
push edi
call ebx
test eax, eax
jne 0x513be0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esi + 0x14], 8
jb 0x513d20
mov esi, dword [esi]
push esi
call fcn.004e705d
add esp, 4
mov al, 1
jmp 0x513d36
mov ecx, esi
call fcn.00513d60
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.004d6cfd
mov esp, ebp
pop ebp
ret
Function at 0x513d60
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, ecx
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x513d6d
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x513d7d
xor al, al
pop esi
ret
test al, 0x10
jne 0x513d79
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x513d8b
mov eax, dword [esi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esi + 0x14], 8
jb 0x513d9f
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
pop esi
setne al
ret

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

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x513dd8
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x513de7
xor al, al
ret
shr eax, 4
not al
and al, 1
ret
Function at 0x515b50
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x5c6150]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push eax
mov edi, ecx
lea ebx, [esi + 4]
push ebx
push 0
push 4
call fcn.00524270
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [edi + 4], eax
test eax, eax
jne 0x515c25
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp - 0x30]
push eax
call fcn.004e2e2c
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004e4ceb
push dword [ebp - 0x28]
cmp dword [0x5c92e0], 8
mov ecx, 0x5c92cc
push dword [ebp - 0x24]
cmovae ecx, dword [0x5c92cc]
push dword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
push dword [ebp - 0x1c]
inc eax
push eax
mov eax, dword [ebp - 0x14]
add eax, 0x76c
push eax
push ecx
push 0x5d2130
push str.__s___s___04d__02d__02d__02d:_02d:_02d_
call fcn.005212c0
push 0x87
push str.t_filemap::Create
push str.__S_L:_d__
call fcn.005212c0
push esi
push str.create_filemapping_fail:_d_r_n
call fcn.005212c0
add esp, 0x44
mov dword [edi], 0x59b914
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d6cfd
mov esp, ebp
pop ebp
ret 8
push ebx
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi + 0xc], eax
test eax, eax
jne 0x515ce6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp - 0x30]
push eax
call fcn.004e2e2c
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004e4ceb
push dword [ebp - 0x28]
cmp dword [0x5c92e0], 8
mov ecx, 0x5c92cc
push dword [ebp - 0x24]
cmovae ecx, dword [0x5c92cc]
push dword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
push dword [ebp - 0x1c]
inc eax
push eax
mov eax, dword [ebp - 0x14]
add eax, 0x76c
push eax
push ecx
push 0x5d2130
push str.__s___s___04d__02d__02d__02d:_02d:_02d_
call fcn.005212c0
push 0x90
push str.t_filemap::Create
push str.__S_L:_d__
call fcn.005212c0
push esi
push str.mapview_of_file_fail:_d_r_n
call fcn.005212c0
add esp, 0x44
mov dword [edi], 0x59b8d0
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 4], 0
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d6cfd
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov byte [edi + 0x14], 0
xor ecx, ebp
mov dword [eax], esi
mov al, 1
mov dword [edi + 8], esi
mov dword [edi], 0
mov byte [edi + 0x15], 1
mov dword [edi + 0x10], 1
pop edi
pop esi
pop ebx
call fcn.004d6cfd
mov esp, ebp
pop ebp
ret 8
Function at 0x515d20
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
test ebx, ebx
je 0x515eb1
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x515eb1
push esi
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
push 0
push 0x80
push 3
push 0
push 1
push 1
push ebx
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp dword [edi + 4], 0
mov ebx, eax
jne 0x515db0
cmp ebx, 0xffffffff
jne 0x515db0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.00521240
push 0x1e
push str.t_filemap::Open
push str.__S_L:_d__
call fcn.005212c0
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
push str.open_file_fail:_d__path:_s__name:_s_r_n
call fcn.005212c0
add esp, 0x1c
mov dword [edi], 0x597610
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret 8
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [edi + 8], eax
test eax, eax
jns 0x515dc7
mov dword [edi + 8], 0
cmp dword [edi + 4], 0
jne 0x515e2f
push esi
push dword [edi + 8]
push 0
push 2
call fcn.00524270
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [edi + 4], eax
test eax, eax
jne 0x515e2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.00521240
push 0x2f
push str.t_filemap::Open
push str.__S_L:_d__
call fcn.005212c0
push esi
push str.create_filemap_fail:_d_r_n
call fcn.005212c0
add esp, 0x14
mov dword [edi], 0x59b914
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov byte [edi + 0x15], 1
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push 0
push 0
push 0
push 4
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi + 0xc], eax
test eax, eax
jne 0x515e97
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.00521240
push 0x3e
push str.t_filemap::Open
push str.__S_L:_d__
call fcn.005212c0
push esi
push str.mapview_of_file_fail:_d_r_n
call fcn.005212c0
add esp, 0x14
mov dword [edi], 0x59b8d0
push dword [edi + 4]
call ebx
mov dword [edi + 4], 0
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov byte [edi + 0x14], 1
mov al, 1
mov dword [edi + 0x10], 1
mov dword [edi], 0
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov dword [edi], 0x59997c
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x515ec0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x5c6150]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
test eax, eax
jne 0x515ef5
mov dword [edi], 0x59997c
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d6cfd
mov esp, ebp
pop ebp
ret 4
push eax
push 0
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [edi + 4], eax
test eax, eax
jne 0x515f21
mov dword [edi], 0x59b964
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d6cfd
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi + 0xc], eax
test eax, eax
jne 0x515fdf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp - 0x30]
push eax
call fcn.004e2e2c
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004e4ceb
push dword [ebp - 0x28]
cmp dword [0x5c92e0], 8
mov ecx, 0x5c92cc
push dword [ebp - 0x24]
cmovae ecx, dword [0x5c92cc]
push dword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
push dword [ebp - 0x1c]
inc eax
push eax
mov eax, dword [ebp - 0x14]
add eax, 0x76c
push eax
push ecx
push 0x5d2130
push str.__s___s___04d__02d__02d__02d:_02d:_02d_
call fcn.005212c0
push 0x6b
push str.t_filemap::Open
push str.__S_L:_d__
call fcn.005212c0
push esi
push str.mapview_of_file_fail:_d_r_n
call fcn.005212c0
add esp, 0x44
mov dword [edi], 0x59b8d0
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 4], 0
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d6cfd
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov byte [edi + 0x14], 0
xor ecx, ebp
mov eax, dword [eax]
mov dword [edi + 8], eax
mov al, 1
mov dword [edi + 0x10], 1
mov byte [edi + 0x15], 0
mov dword [edi], 0
pop edi
pop esi
call fcn.004d6cfd
mov esp, ebp
pop ebp
ret 4
Function at 0x516450
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x536938
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x5c6150]
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 - 0x44], ecx
mov edi, dword [ebp + 8]
mov ecx, 7
mov esi, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], ecx
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x40]
lea eax, [esi + 0x18]
cmp edx, eax
je 0x5164bf
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x5164b0
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x40]
call fcn.00413520
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
mov dword [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call ebx
cmp eax, 0xffffffff
je 0x516514
shr eax, 4
not al
and al, 1
je 0x516514
sub esp, 0x18
lea eax, [ebp - 0x40]
mov ecx, esp
push eax
call fcn.0044bf60
mov ecx, dword [ebp - 0x44]
push edi
call fcn.005160d0
test al, al
jne 0x5165d5
push 0x23
push str.load_exists_user_fuzzy_file_failed.
mov ecx, edi
call fcn.0042c750
mov ecx, 7
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], ecx
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
cmp eax, esi
je 0x51654d
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x51653e
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x28]
push eax
call fcn.00413520
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
mov byte [ebp - 4], 3
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
cmp eax, 0xffffffff
je 0x5165a3
shr eax, 4
not al
and al, 1
je 0x5165a3
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.0044bf60
mov ecx, dword [ebp - 0x44]
push edi
call fcn.005160d0
test al, al
jne 0x5165d9
push 9
push 0x59ba6c
mov ecx, edi
call fcn.0042c750
push 0xb
push 0x59ba80
mov ecx, edi
call fcn.0042c750
xor bl, bl
lea ecx, [ebp - 0x28]
call fcn.004134c0
lea ecx, [ebp - 0x40]
call fcn.004134c0
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.004d6cfd
mov esp, ebp
pop ebp
ret 8
mov bl, 1
jmp 0x5165ad
mov bl, 1
jmp 0x5165a5
Function at 0x517530
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x536ac3
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x5c6150]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x51755f
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x51757d
shr eax, 4
not al
and al, 1
je 0x51757d
mov ecx, esi
call fcn.00513d60
jmp 0x5175a1
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x517587
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5175a1
shr eax, 4
and al, 1
je 0x5175a1
mov ecx, esi
call fcn.00513b40
mov ecx, esi
call fcn.004134c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x520d80
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x537113
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x5c6150]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x34]
cmp dword [0x5c9370], 8
mov eax, 0x5c935c
push 1
cmovae eax, dword [0x5c935c]
push eax
call fcn.00512d60
mov eax, dword [ebp - 0x18]
cmp eax, 0xffffffff
jne 0x520e03
mov dword [ebp - 0x34], 0x59af80
jmp 0x520f64
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x78], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x520e31
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
sbb eax, eax
and eax, 0x59b430
mov dword [ebp - 0x34], eax
jmp 0x520f64
cmp eax, 0xa00000
jl 0x520f64
add eax, 0xffb00000
mov dword [ebp - 0x74], 0
push 1
push eax
lea ecx, [ebp - 0x34]
call fcn.00512550
test al, al
je 0x520f64
mov dword [ebp - 0x7c], 0xff0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
push 0x500004
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 3
call fcn.00514ad0
mov esi, eax
test esi, esi
je 0x520f59
lea eax, [ebp - 0x74]
push eax
push 0x500000
push esi
lea ecx, [ebp - 0x34]
call fcn.00512a20
lea ecx, [ebp - 0x34]
call fcn.00512c50
push ecx
lea ecx, [ebp - 0x4c]
call fcn.005174b0
push 5
push str..temp
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 5
call fcn.0042c750
lea ecx, [ebp - 0x4c]
call fcn.00513e30
xor eax, eax
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 7
mov word [ebp - 0x6c], ax
mov dword [ebp - 0x54], 0xffffffff
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 6
lea eax, [ebp - 0x4c]
cmp dword [ebp - 0x38], 8
lea ecx, [ebp - 0x70]
push 2
cmovae eax, dword [ebp - 0x4c]
push eax
call fcn.00512d60
test al, al
je 0x520f3d
lea eax, [ebp - 0x74]
push eax
push 0x500000
push esi
lea ecx, [ebp - 0x70]
call fcn.00512790
test al, al
je 0x520f3d
lea ecx, [ebp - 0x70]
call fcn.00512c50
mov edx, 0x5c935c
lea ecx, [ebp - 0x4c]
call fcn.00513a20
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 9
call fcn.00512c50
lea ecx, [ebp - 0x6c]
call fcn.004134c0
lea ecx, [ebp - 0x4c]
call fcn.00517530
lea ecx, [ebp - 0x84]
call fcn.00514ba0
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0xa
call fcn.00512c50
lea ecx, [ebp - 0x30]
call fcn.004134c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d6cfd
mov esp, ebp
pop ebp
ret