joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b6a90
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xa0
mov esi, dword [ebp + 8]
mov eax, dword [0x7024bc]
xor eax, ebp
mov dword [esp + 0x98], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
movdqa xmmword [esp + 0x10], xmm0
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x40], 0xffffffff
lea edi, [esp + 0x60]
push 0x41c
push str..._.._base_files_file_util_win.cc
push str.MoveUnsafe
push edi
call fcn.004994e0
add esp, 0x10
lea ecx, [esp + 0x10]
push 0
push edi
call fcn.004ab280
mov al, byte [esi + 0xb]
test al, al
jns 0x4b6b12
cmp dword [esi + 4], 0x103
ja 0x4b6c6f
mov ecx, dword [ebp + 0xc]
cmp byte [ecx + 0xb], 0
jns 0x4b6b2a
cmp dword [ecx + 4], 0x103
ja 0x4b6c6f
mov ecx, dword [ecx]
mov edx, esi
test al, al
jns 0x4b6b32
mov edx, dword [esi]
push 3
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov bl, 1
test eax, eax
jne 0x4b6c71
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0xc], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x80], xmm0
movdqa xmmword [esp + 0x70], xmm0
movdqa xmmword [esp + 0x60], xmm0
mov dword [esp + 0x94], 0xffffffff
mov dword [esp + 0x90], 0xffffffff
lea edi, [esp + 0x50]
push 0x1f1
push str..._.._base_files_file_util_win.cc
push str.DirectoryExists
push edi
call fcn.004994e0
add esp, 0x10
lea ecx, [esp + 0x60]
push 0
push edi
call fcn.004ab280
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x4b6bb1
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
lea ecx, [esp + 0x60]
call fcn.004ab2f0
cmp edi, 0xffffffff
je 0x4b6c65
and edi, 0x10
je 0x4b6c65
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x80], xmm0
movdqa xmmword [esp + 0x70], xmm0
movdqa xmmword [esp + 0x60], xmm0
mov dword [esp + 0x94], 0xffffffff
mov dword [esp + 0x90], 0xffffffff
push 0x43f
push str..._.._base_files_file_util_win.cc
push str.CopyAndDeleteDirectory
lea edi, [esp + 0x5c]
push edi
call fcn.004994e0
add esp, 0x10
lea ecx, [esp + 0x60]
push 0
push edi
call fcn.004ab280
mov ecx, esi
mov edx, dword [ebp + 0xc]
push 0
push 1
call fcn.004b5110
add esp, 8
test al, al
je 0x4b6c5c
mov ecx, esi
mov edx, 1
call fcn.004b4ac0
test al, al
je 0x4b6c5c
lea ecx, [esp + 0x60]
call fcn.004ab2f0
jmp 0x4b6c71
lea ecx, [esp + 0x60]
call fcn.004ab2f0
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
lea ecx, [esp + 0x10]
call fcn.004ab2f0
mov ecx, dword [esp + 0x98]
xor ecx, ebp
call fcn.0064180a
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4b6ca0
Capabilities:
Check if file exists
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4f8
mov edi, edx
mov esi, ecx
mov eax, dword [0x7024bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x2a4]
push 0x294
push 0xff
push ebx
call fcn.00645dd0
add esp, 0xc
mov ecx, ebx
mov dword [ebp - 0x504], edi
push edi
push 3
push 0
push esi
call fcn.004bc840
mov dword [ebp - 0x500], 0xffffffff
mov dword [ebp - 0x4fc], 0xffffffff
mov dword [ebp - 0x4f8], 0xffffffff
lea eax, [ebp - 0x500]
mov ecx, ebx
push eax
call fcn.004bca90
movzx eax, byte [ebp - 0x4f5]
test al, al
jns 0x4b6d23
mov eax, dword [ebp - 0x4fc]
test eax, eax
je 0x4b6e9d
lea ebx, [ebp - 0x4f4]
xor edi, edi
jmp 0x4b6d4a
mov edi, esi
test eax, eax
je 0x4b6e9f
push 0x250
push 0xff
push ebx
call fcn.00645dd0
add esp, 0xc
lea ecx, [ebp - 0x2a4]
push ebx
call fcn.004bca10
mov eax, dword [ebp - 0x4f4]
test al, 1
je 0x4b6dc0
cmp byte [ebp + 8], 0
jne 0x4b6da0
mov ecx, ebx
call fcn.004bc790
test al, al
je 0x4b6d9a
mov ecx, ebx
call fcn.004bc790
xor esi, esi
test al, al
je 0x4b6e20
jmp 0x4b6e58
mov eax, dword [ebp - 0x4f4]
and eax, 0xfffffffe
cmp byte [ebp - 0x4f5], 0
lea ecx, [ebp - 0x500]
jns 0x4b6db8
mov ecx, dword [ebp - 0x500]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, ebx
call fcn.004bc790
test al, al
je 0x4b6e20
xor esi, esi
cmp byte [ebp + 8], 0
je 0x4b6e58
lea ecx, [ebp - 0x500]
mov edx, dword [ebp - 0x504]
push 1
call fcn.004b6ca0
add esp, 4
mov esi, eax
test eax, eax
jne 0x4b6e58
cmp byte [ebp - 0x4f5], 0
lea eax, [ebp - 0x500]
jns 0x4b6e08
mov eax, dword [ebp - 0x500]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, 0
test eax, eax
jne 0x4b6e58
jmp 0x4b6e42
cmp byte [ebp - 0x4f5], 0
lea eax, [ebp - 0x500]
jns 0x4b6e35
mov eax, dword [ebp - 0x500]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
test eax, eax
jne 0x4b6e58
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
and eax, 0xfffffffe
cmp eax, 2
mov eax, 0
cmove esi, eax
test edi, edi
cmovne esi, edi
mov ecx, ebx
call fcn.00402f50
lea ecx, [ebp - 0x2a4]
push ebx
call fcn.004bca90
lea ecx, [ebp - 0x500]
push ebx
call fcn.004957d0
mov ecx, ebx
call fcn.00495790
movzx eax, byte [ebp - 0x4f5]
test al, al
jns 0x4b6d40
mov eax, dword [ebp - 0x4fc]
jmp 0x4b6d40
xor esi, esi
lea ecx, [ebp - 0x500]
call fcn.00495790
lea ecx, [ebp - 0x2a4]
call fcn.004bc9a0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0064180a
mov eax, esi
add esp, 0x4f8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4b7110
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov esi, ecx
mov edi, dword [ebp + 0x14]
mov eax, dword [0x7024bc]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
mov dword [esp + 0x64], 0xffffffff
mov dword [esp + 0x60], 0xffffffff
lea ebx, [esp + 0x10]
push 0x3e
push str..._.._base_files_file_win.cc
push str.Read
push ebx
call fcn.004994e0
add esp, 0x10
lea ecx, [esp + 0x30]
push 0
push ebx
call fcn.004ab280
test edi, edi
js 0x4b71f3
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.00490e60
call fcn.00552f40
test al, al
je 0x4b71af
lea ecx, [esp + 0x28]
push 0
push edi
push esi
push str.File::Read
call fcn.00552fc0
pxor xmm0, xmm0
movdqa xmmword [esp + 0x10], xmm0
mov dword [esp + 0x20], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], 0xffffffff
lea eax, [esp + 0xc]
push ebx
push eax
push edi
push dword [ebp + 0x10]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b71fa
mov ebx, dword [esp + 0xc]
jmp 0x4b720a
mov ebx, 0xffffffff
jmp 0x4b7213
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x26
setne bl
neg ebx
lea ecx, [esp + 0x28]
call fcn.00552fa0
lea ecx, [esp + 0x30]
call fcn.004ab2f0
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.0064180a
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10

Function at 0x4b7240
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov esi, ecx
mov edi, dword [ebp + 0xc]
mov eax, dword [0x7024bc]
xor eax, ebp
mov dword [esp + 0x58], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
mov dword [esp + 0x54], 0xffffffff
mov dword [esp + 0x50], 0xffffffff
lea ebx, [esp + 0x10]
push 0x57
push str..._.._base_files_file_win.cc
push str.ReadAtCurrentPos
push ebx
call fcn.004994e0
add esp, 0x10
lea ecx, [esp + 0x20]
push 0
push ebx
call fcn.004ab280
test edi, edi
js 0x4b7305
mov ebx, dword [ebp + 8]
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.00490e60
call fcn.00552f40
test al, al
je 0x4b72e2
lea ecx, [esp + 0x10]
push 0
push edi
push esi
push str.File::ReadAtCurrentPos
call fcn.00552fc0
mov dword [esp + 0xc], 0xffffffff
lea eax, [esp + 0xc]
push 0
push eax
push edi
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b730c
mov ebx, dword [esp + 0xc]
jmp 0x4b731c
mov ebx, 0xffffffff
jmp 0x4b7325
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x26
setne bl
neg ebx
lea ecx, [esp + 0x10]
call fcn.00552fa0
lea ecx, [esp + 0x20]
call fcn.004ab2f0
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.0064180a
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x4b7350
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov esi, ecx
mov edi, dword [ebp + 0x14]
mov eax, dword [0x7024bc]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
mov dword [esp + 0x64], 0xffffffff
mov dword [esp + 0x60], 0xffffffff
lea ebx, [esp + 0x10]
push 0x73
push str..._.._base_files_file_win.cc
push str.Write
push ebx
call fcn.004994e0
add esp, 0x10
lea ecx, [esp + 0x30]
push 0
push ebx
call fcn.004ab280
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.00490e60
call fcn.00552f40
test al, al
je 0x4b73ef
mov eax, edi
sar eax, 0x1f
lea ecx, [esp + 0x28]
push eax
push edi
push esi
push str.File::Write
call fcn.00552fc0
pxor xmm0, xmm0
movdqa xmmword [esp + 0x10], xmm0
mov dword [esp + 0x20], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], 0xffffffff
lea eax, [esp + 0xc]
push ebx
push eax
push edi
push dword [ebp + 0x10]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, dword [esp + 0xc]
lea ecx, [esp + 0x28]
call fcn.00552fa0
lea ecx, [esp + 0x30]
call fcn.004ab2f0
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.0064180a
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10

Function at 0x4b7460
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov esi, ecx
mov edi, dword [ebp + 0xc]
mov eax, dword [0x7024bc]
xor eax, ebp
mov dword [esp + 0x58], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
mov dword [esp + 0x54], 0xffffffff
mov dword [esp + 0x50], 0xffffffff
lea ebx, [esp + 0x10]
push 0x88
push str..._.._base_files_file_win.cc
push str.WriteAtCurrentPos
push ebx
call fcn.004994e0
add esp, 0x10
lea ecx, [esp + 0x20]
push 0
push ebx
call fcn.004ab280
test edi, edi
js 0x4b7534
mov ebx, dword [ebp + 8]
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.00490e60
call fcn.00552f40
test al, al
je 0x4b7505
lea ecx, [esp + 0x10]
push 0
push edi
push esi
push str.File::WriteAtCurrentPos
call fcn.00552fc0
mov dword [esp + 0xc], 0xffffffff
lea eax, [esp + 0xc]
push 0
push eax
push edi
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
call fcn.00552fa0
jmp 0x4b7539
mov esi, 0xffffffff
lea ecx, [esp + 0x20]
call fcn.004ab2f0
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.0064180a
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x4b7560
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov esi, ecx
mov eax, dword [0x7024bc]
xor eax, ebp
mov dword [esp + 0x5c], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
mov dword [esp + 0x54], 0xffffffff
mov dword [esp + 0x50], 0xffffffff
lea edi, [esp + 0x10]
push 0x9c
push str..._.._base_files_file_win.cc
push str.GetLength
push edi
call fcn.004994e0
add esp, 0x10
lea ecx, [esp + 0x20]
push 0
push edi
call fcn.004ab280
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.00490e60
call fcn.00552f40
test al, al
je 0x4b75fb
lea ecx, [esp + 0x10]
push 0
push 0
push esi
push str.File::GetLength
call fcn.00552fc0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], 0xffffffff
lea eax, [esp + 8]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xor esi, esi
cmp eax, 1
sbb esi, esi
mov edi, dword [esp + 0xc]
or edi, esi
or esi, dword [esp + 8]
lea ecx, [esp + 0x10]
call fcn.00552fa0
lea ecx, [esp + 0x20]
call fcn.004ab2f0
mov ecx, dword [esp + 0x5c]
xor ecx, ebp
call fcn.0064180a
mov eax, esi
mov edx, edi
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
Function at 0x4b7660
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov esi, ecx
mov ebx, dword [ebp + 8]
mov eax, dword [0x7024bc]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
mov dword [esp + 0x64], 0xffffffff
mov dword [esp + 0x60], 0xffffffff
lea edi, [esp + 0x20]
push 0xa9
push str..._.._base_files_file_win.cc
push str.SetLength
push edi
call fcn.004994e0
add esp, 0x10
lea ecx, [esp + 0x30]
push 0
push edi
mov edi, dword [ebp + 0xc]
call fcn.004ab280
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.00490e60
call fcn.00552f40
test al, al
je 0x4b7700
lea ecx, [esp + 0x20]
push edi
push ebx
push esi
push str.File::SetLength
call fcn.00552fc0
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov eax, dword [esi]
sub esp, 0x14
movsd xmm0, qword [esp + 0x24]
movsd qword [esp + 4], xmm0
lea ecx, [esp + 0x2c]
mov dword [esp + 0xc], ecx
mov dword [esp], eax
mov dword [esp + 0x10], 1
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x4b77d4
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edi
mov eax, dword [esi]
sub esp, 0x14
movsd xmm0, qword [esp + 0x1c]
movsd qword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x4b77d4
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x4b77d4
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 4], ecx
mov dword [esp], eax
mov eax, dword [esi]
sub esp, 0x14
movsd xmm0, qword [esp + 0x14]
movsd qword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
setne bl
jmp 0x4b77d6
xor ebx, ebx
lea ecx, [esp + 0x20]
call fcn.00552fa0
lea ecx, [esp + 0x30]
call fcn.004ab2f0
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.0064180a
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x4b7b60
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov edi, ecx
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x7024bc]
xor eax, ebp
mov dword [esp + 0x58], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
mov dword [esp + 0x54], 0xffffffff
mov dword [esp + 0x50], 0xffffffff
lea esi, [esp + 0x10]
push 0x15a
push str..._.._base_files_file_win.cc
push str.DoInitialize
push esi
call fcn.004994e0
add esp, 0x10
lea ecx, [esp + 0x20]
push 0
push esi
call fcn.004ab280
mov eax, ebx
and eax, 1
neg eax
and eax, 3
test bl, 2
mov ecx, 1
cmove ecx, eax
test bl, 4
mov edx, 4
cmovne ecx, edx
test bl, 8
mov esi, 2
cmove esi, ecx
test bl, 0x10
mov eax, 5
cmove eax, esi
test eax, eax
je 0x4b7d2c
mov dword [esp + 4], eax
mov dword [esp + 8], edi
mov ecx, ebx
and ecx, 0x40
shl ecx, 0x18
test bl, bl
cmovns edx, ecx
mov ecx, ebx
rol ecx, 0x1a
mov esi, ebx
shl esi, 0xb
and esi, 0x20000000
mov edi, ebx
shr edi, 4
and edi, 0x10000
and ecx, 0x80000100
or ecx, esi
or ecx, edi
or ecx, edx
mov esi, ebx
shr esi, 8
and esi, 3
mov edx, ebx
shr edx, 0xd
and edx, 4
or edx, esi
mov esi, ebx
and esi, 0x400
mov eax, ebx
mov dword [esp + 0xc], esi
mov ebx, esi
shl ebx, 0x14
mov esi, eax
shr esi, 3
and esi, 0x100
or esi, ebx
mov edi, eax
shr edi, 0xb
and edi, 2
or edi, esi
mov esi, eax
shl esi, 0xd
and esi, 0x4000000
or esi, edi
mov edi, eax
shl edi, 8
mov ebx, edi
and ebx, 0x2000000
or ebx, esi
and edi, 0x8000000
or edi, ebx
mov esi, dword [ebp + 8]
xor edx, 3
cmp byte [esi + 0xb], 0
jns 0x4b7cb2
mov esi, dword [esi]
mov ebx, dword [esp + 8]
mov eax, dword [esp + 4]
push 0
push edi
push eax
push 0
push edx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov eax, dword [ebx]
cmp eax, edi
je 0x4b7d10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebx]
add eax, 1
cmp eax, 2
jb 0x4b7cf8
call fcn.00499510
push dword [ebx]
call fcn.004bbc10
add esp, 4
mov dword [ebx], 0
lea eax, [edi + 1]
cmp eax, 2
jb 0x4b7d07
mov dword [ebx], edi
call fcn.00499510
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebx]
add eax, 1
cmp eax, 2
jae 0x4b7d3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004b7ab0
add esp, 4
mov dword [ebx + 0x14], eax
jmp 0x4b7d6e
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [edi + 0x14], 0xffffffff
jmp 0x4b7d6e
mov eax, dword [esp + 0xc]
shr eax, 0xa
mov dword [ebx + 0x14], 0
mov byte [ebx + 0x19], al
mov eax, dword [ebp + 0xc]
test al, 4
jne 0x4b7d5f
test al, 0xa
je 0x4b7d6e
mov byte [ebx + 0x18], 1
jmp 0x4b7d6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [ebx + 0x18]
lea ecx, [esp + 0x20]
call fcn.004ab2f0
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.0064180a
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x4b7e60
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ebx, dword [ebp + 8]
cmp dword [ecx], ebx
je 0x4b7eac
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
add eax, 1
cmp eax, 2
jb 0x4b7e96
call fcn.00499510
push dword [esi]
call fcn.004bbc10
add esp, 4
mov dword [esi], 0
lea eax, [ebx + 1]
cmp eax, 2
jb 0x4b7ea5
mov dword [esi], ebx
call fcn.00499510
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop edi
pop ebx
pop ebp
ret 4

Function at 0x4b7ef0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x50
mov esi, ecx
mov eax, dword [0x7024bc]
xor eax, ebp
mov dword [esp + 0x48], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
movdqa xmmword [esp + 0x10], xmm0
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x40], 0xffffffff
mov edi, esp
push 0x1b
push str..._.._base_files_memory_mapped_file_win.cc
push str.MapImageToMemory
push edi
call fcn.004994e0
add esp, 0x10
lea ecx, [esp + 0x10]
push 0
push edi
call fcn.004ab280
mov ecx, esi
call fcn.004b6ed0
test al, al
je 0x4b7fdb
mov ecx, esi
call fcn.004b6ee0
sub esp, 0x18
movdqa xmm0, xmmword [0x68a4b0]
movdqu xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
cmp dword [esi + 0x24], eax
je 0x4b7fd3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi + 0x24]
add eax, 1
cmp eax, 2
jb 0x4b7fb7
call fcn.00499510
push dword [esi + 0x24]
call fcn.004bbc10
add esp, 4
mov dword [esi + 0x24], 0
mov eax, edi
add eax, 1
cmp eax, 2
jb 0x4b7fc9
mov dword [esi + 0x24], edi
call fcn.00499510
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [esi + 0x24]
lea eax, [edi + 1]
cmp eax, 2
jae 0x4b7ffd
xor ebx, ebx
lea ecx, [esp + 0x10]
call fcn.004ab2f0
mov ecx, dword [esp + 0x48]
xor ecx, ebp
call fcn.0064180a
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
sub esp, 0x14
movdqa xmm0, xmmword [0x67c8d0]
movdqu xmmword [esp + 4], xmm0
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x1c], eax
test eax, eax
je 0x4b7fdb
mov dword [esp], 0x68a514
mov dword [esp + 4], eax
mov ecx, esp
call fcn.0056c9a8
mov eax, dword [eax + 0x50]
mov dword [esi + 0x20], eax
mov bl, 1
jmp 0x4b7fdd
Function at 0x4b8040
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov esi, ecx
mov eax, dword [0x7024bc]
xor eax, ebp
mov dword [esp + 0x58], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
mov dword [esp + 0x54], 0xffffffff
mov dword [esp + 0x50], 0xffffffff
lea edi, [esp + 0x10]
push 0x3a
push str..._.._base_files_memory_mapped_file_win.cc
push str.MapFileRegionToMemory
push edi
call fcn.004994e0
add esp, 0x10
lea ecx, [esp + 0x20]
push 0
push edi
call fcn.004ab280
mov ecx, esi
call fcn.004b6ed0
xor ebx, ebx
test al, al
je 0x4b8164
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
cmp eax, 3
ja case.default.0x4b80c0
jmp dword [eax*4 + 0x68a51c]
mov edi, 2
jmp 0x4b80ef
mov edi, 4
jmp 0x4b80ef
mov ebx, dword [ecx + 8]
mov edi, 4
jmp 0x4b80ef
sub esp, 4
mov ecx, esi
call fcn.004b7ef0
mov ebx, eax
jmp 0x4b8164
xor edi, edi
mov ecx, esi
call fcn.004b6ee0
push 0
push ebx
push 0
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
mov eax, dword [esi + 0x24]
cmp eax, ebx
je 0x4b815a
mov dword [esp + 4], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi + 0x24]
add eax, 1
cmp eax, 2
jb 0x4b813c
call fcn.00499510
push dword [esi + 0x24]
call fcn.004bbc10
add esp, 4
mov dword [esi + 0x24], 0
lea eax, [ebx + 1]
cmp eax, 2
jb 0x4b814c
mov dword [esi + 0x24], ebx
call fcn.00499510
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi + 0x24]
mov edi, dword [esp + 4]
add eax, 1
cmp eax, 2
jae 0x4b8184
xor ebx, ebx
lea ecx, [esp + 0x20]
call fcn.004ab2f0
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.0064180a
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov dword [esp + 0xc], 0
mov ebx, dword [ebp + 8]
mov ecx, ebx
push 0x6894f0
call fcn.00498170
test al, al
je 0x4b81c1
mov ecx, esi
call fcn.004b7560
xor ebx, ebx
cmp eax, 1
mov ecx, edx
sbb ecx, 0
jl 0x4b8164
test edx, edx
jne 0x4b8164
mov dword [esi + 0x20], eax
xor ecx, ecx
xor eax, eax
xor edx, edx
jmp 0x4b821c
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
push ecx
lea eax, [esp + 0x18]
push eax
push dword [ebx + 8]
push dword [ebx + 4]
push dword [ebx]
call fcn.004982c0
add esp, 0x18
mov eax, dword [esp + 0x14]
test eax, eax
js 0x4b8162
mov dword [esp + 4], edi
mov edi, dword [ebx + 8]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
add edx, edi
mov dword [esi + 0x20], edi
mov edi, dword [esp + 4]
and edi, 2
add edi, 2
push edx
push ecx
push eax
push edi
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x1c], eax
test eax, eax
je 0x4b8162
add eax, dword [esp + 0xc]
mov dword [esi + 0x1c], eax
mov bl, 1
jmp 0x4b8164