joyce8/EMBER2024-capa huggingface dataset:
Function at 0x464850
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xb0
mov esi, dword [ebp + 8]
mov eax, dword [0x603024]
xor eax, ebp
mov dword [esp + 0xa8], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x20]
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea ebx, [esp + 0x60]
push 0x264
push str..._.._base_files_file_util_win.cc
push str.CreateDirectoryAndGetError
push ebx
call fcn.004e0f50
add esp, 0x10
mov ecx, edi
push 0
push ebx
call fcn.004e70c0
cmp byte [esi + 0xb], 0
mov ebx, esi
jns 0x4648bb
mov ebx, dword [esi]
mov edi, dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4648f5
mov bl, 1
test al, 0x10
je 0x4649fa
lea ecx, [esp + 0x20]
call fcn.004e7120
mov ecx, dword [esp + 0xa8]
xor ecx, ebp
call fcn.00504b53
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
dec eax
lea edi, [esp + 4]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov ecx, esi
push edi
call fcn.004dfb60
movzx ecx, byte [edi + 0xb]
mov eax, ecx
test cl, cl
jns 0x46491a
mov eax, dword [esp + 8]
mov dword [esp], eax
movzx eax, byte [esi + 0xb]
mov edx, eax
test al, al
jns 0x46492a
mov edx, dword [esi + 4]
mov edi, dword [esp]
cmp edi, edx
je 0x464a15
push dword [ebp + 0xc]
lea eax, [esp + 8]
push eax
call fcn.00464850
add esp, 8
test al, al
je 0x464a65
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
je 0x46496a
lea ecx, [esp + 4]
call fcn.004dfb00
jmp 0x4648d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], eax
cmp eax, 0xb7
jne 0x4649e7
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x60]
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea eax, [esp + 0x10]
push 0x1d7
push str..._.._base_files_file_util_win.cc
push str.DirectoryExists
push eax
call fcn.004e0f50
add esp, 0x10
mov ecx, edi
push 0
lea eax, [esp + 0x14]
push eax
call fcn.004e70c0
cmp byte [esi + 0xb], 0
jns 0x4649c7
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
lea ecx, [esp + 0x60]
call fcn.004e7120
cmp esi, 0xffffffff
je 0x4649e7
and esi, 0x10
jne 0x46495c
cmp dword [ebp + 0xc], 0
je 0x464a5c
push dword [esp]
call fcn.00465610
add esp, 4
jmp 0x464a57
test edi, edi
je 0x464a06
mov eax, edi
mov dword [edi], 0xfffffff7
push 0x50
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x4648d4
test edi, edi
je 0x464a45
lea edi, [esp + 4]
test cl, cl
jns 0x464a25
mov edi, dword [esp + 4]
mov ecx, esi
test al, al
jns 0x464a2d
mov ecx, dword [esi]
xor edx, edx
movzx eax, word [edi + edx*2]
cmp ax, word [ecx + edx*2]
mov eax, dword [esp]
jne 0x464935
inc edx
cmp eax, edx
jne 0x464a2f
mov eax, 0xfffffffc
mov dword [esp], 2
cmp dword [ebp + 0xc], 0
je 0x464a5c
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push dword [esp]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x46495c
Function at 0x464cb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov edi, dword [ebp + 8]
mov eax, dword [0x603024]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x20]
movdqa xmmword [esi + 0x30], xmm0
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
lea eax, [esp + 0x10]
push 0x359
push str..._.._base_files_file_util_win.cc
push 0x5e7da0
push eax
call fcn.004e0f50
add esp, 0x10
xor ebx, ebx
mov ecx, esi
push ebx
lea eax, [esp + 0x14]
push eax
call fcn.004e70c0
cmp byte [edi + 0xb], 0
jns 0x464d18
mov edi, dword [edi]
sub esp, 0x1c
mov dword [esp + 0x18], ebx
movaps xmm0, xmmword [0x5e7ca0]
movups xmmword [esp + 4], xmm0
mov dword [esp], edi
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
test eax, eax
je 0x464d5d
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp esi, 0xffffffff
je 0x464dcb
call fcn.004e0f80
mov ebx, esi
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebx + 1]
mov dword [esp + 0xc], eax
cmp eax, 2
jb 0x464dcf
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
xor edi, edi
dec edi
mov dword [esp + 0x10], edi
push 0
lea ecx, [esp + 0x14]
push ecx
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x10]
cmp ecx, esi
cmove edi, ecx
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, edi
cmp dword [esp + 0xc], 2
jb 0x464dad
call fcn.004e0f80
push ebx
call fcn.004e9ae0
add esp, 4
lea ecx, [esp + 0x20]
call fcn.004e7120
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.00504b53
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
jmp 0x464d56
xor esi, esi
dec esi
jmp 0x464d98

Function at 0x464de0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x270
mov eax, dword [0x603024]
xor eax, ebp
mov dword [esp + 0x268], eax
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x220]
movdqa xmmword [esi + 0x30], xmm0
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
lea ebx, [esp + 0x18]
push 0x391
push str..._.._base_files_file_util_win.cc
push 0x5e7daa
push ebx
call fcn.004e0f50
add esp, 0x10
mov ecx, esi
push 0
push ebx
call fcn.004e70c0
lea esi, [esp + 0x1a]
push 0x206
push 0xff
push esi
call fcn.005072d0
add esp, 0xc
mov word [esi - 2], 0
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
add esi, 0xfffffefb
cmp esi, 0xfffffefc
jb 0x464eb1
push ebx
call fcn.00520e34
add esp, 4
mov edi, esp
mov ecx, edi
push eax
push ebx
call fcn.004dfa40
lea ebx, [esp + 0xc]
mov ecx, edi
push ebx
call fcn.0045c890
mov ecx, dword [ebp + 8]
push ebx
call fcn.004dfb20
mov ecx, ebx
call fcn.004dfb00
mov ecx, edi
call fcn.004dfb00
cmp esi, 0xfffffefc
setae bl
lea ecx, [esp + 0x220]
call fcn.004e7120
mov ecx, dword [esp + 0x268]
xor ecx, ebp
call fcn.00504b53
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x464ee0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov edi, dword [ebp + 8]
mov eax, dword [0x603024]
xor eax, ebp
mov dword [esp + 0x58], eax
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x10]
movdqa xmmword [esi + 0x30], xmm0
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
mov ebx, esp
push 0x3a1
push str..._.._base_files_file_util_win.cc
push 0x5e7dbf
push ebx
call fcn.004e0f50
add esp, 0x10
mov ecx, esi
push 0
push ebx
call fcn.004e70c0
cmp byte [edi + 0xb], 0
jns 0x464f41
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov ecx, esi
call fcn.004e7120
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.00504b53
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x464f70
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 ebx, edx
mov edi, ecx
mov eax, dword [0x603024]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x2a4]
push 0x294
push 0xff
push esi
call fcn.005072d0
add esp, 0xc
mov ecx, esi
mov dword [ebp - 0x504], ebx
push ebx
push 3
push 0
push edi
call fcn.0046af90
xor eax, eax
dec eax
lea edi, [ebp - 0x500]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov ecx, esi
push edi
call fcn.0046b140
movzx eax, byte [edi + 0xb]
test al, al
jns 0x464fdd
mov eax, dword [ebp - 0x4fc]
xor esi, esi
test eax, eax
je 0x465109
lea ebx, [ebp - 0x4f4]
xor edi, edi
push 0x250
push 0xff
push ebx
call fcn.005072d0
add esp, 0xc
lea ecx, [ebp - 0x2a4]
push ebx
call fcn.0046b0c0
mov eax, dword [ebp - 0x4f4]
test al, 1
jne 0x46513e
mov ecx, ebx
call fcn.0046aee0
test al, al
jne 0x4650ad
cmp byte [ebp - 0x4f5], 0
lea eax, [ebp - 0x500]
jns 0x465040
mov eax, dword [ebp - 0x500]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4650a9
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.0042a3b0
lea ecx, [ebp - 0x2a4]
push ebx
call fcn.0046b140
lea ecx, [ebp - 0x500]
push ebx
call fcn.004dfb20
mov ecx, ebx
call fcn.004dfb00
movzx eax, byte [ebp - 0x4f5]
test al, al
jns 0x46509d
mov eax, dword [ebp - 0x4fc]
mov edi, esi
test eax, eax
jne 0x464fef
jmp 0x465109
xor esi, esi
jmp 0x465061
xor esi, esi
cmp byte [ebp + 8], 0
lea ecx, [ebp - 0x500]
je 0x465061
mov edx, dword [ebp - 0x504]
push 1
call fcn.00464f70
add esp, 4
test eax, eax
jne 0x46519a
cmp byte [ebp - 0x4f5], 0
lea eax, [ebp - 0x500]
js 0x465136
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x465061
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor esi, esi
cmp ecx, 2
cmovne esi, eax
jmp 0x465061
lea ecx, [ebp - 0x500]
call fcn.004dfb00
lea ecx, [ebp - 0x2a4]
call fcn.0046b050
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00504b53
mov eax, esi
add esp, 0x4f8
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x500]
jmp 0x4650e2
cmp byte [ebp + 8], 0
je 0x465158
and eax, 0xfffffffe
cmp byte [ebp - 0x4f5], 0
jns 0x46517f
mov ecx, dword [ebp - 0x500]
jmp 0x465185
lea ecx, [ebp - 0x4f4]
call fcn.0046aee0
test al, al
je 0x465192
lea ecx, [ebp - 0x4f4]
call fcn.0046aee0
test al, al
je 0x46502b
jmp 0x4650a9
lea ecx, [ebp - 0x500]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x46501c
mov eax, dword [ebp - 0x4f4]
jmp 0x465144
mov esi, eax
jmp 0x465061
Function at 0x4651b0
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 eax, dword [0x603024]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x20]
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea ebx, [esp + 0x10]
push 0x88
push str..._.._base_files_file_win.cc
push str.WriteAtCurrentPos
push ebx
call fcn.004e0f50
add esp, 0x10
mov ecx, edi
push 0
push ebx
call fcn.004e70c0
cmp dword [ebp + 0xc], 0
js 0x465277
mov edi, dword [ebp + 8]
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], 0
call fcn.004f1780
test al, al
jne 0x46527c
lea ebx, [esp + 0xc]
mov dword [ebx], 0xffffffff
push 0
push ebx
push dword [ebp + 0xc]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, dword [ebx]
lea ecx, [esp + 0x10]
call fcn.004f1820
lea ecx, [esp + 0x20]
call fcn.004e7120
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.00504b53
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
xor esi, esi
dec esi
jmp 0x465257
lea ecx, [esp + 0x10]
push 0
push dword [ebp + 0xc]
push esi
push str.File::WriteAtCurrentPos
call fcn.00575970
jmp 0x46522c

Function at 0x4652a0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov dword [esp + 4], ecx
mov eax, dword [0x603024]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
lea ebx, [esp + 0x20]
movdqa xmmword [ebx + 0x30], xmm0
movdqa xmmword [ebx + 0x20], xmm0
movdqa xmmword [ebx + 0x10], xmm0
movdqa xmmword [ebx], xmm0
lea edi, [esp + 0x10]
push 0x9c
push str..._.._base_files_file_win.cc
push str.GetLength
push edi
call fcn.004e0f50
add esp, 0x10
xor esi, esi
mov ecx, ebx
push esi
push edi
call fcn.004e70c0
mov dword [edi + 4], 0xffffffff
mov dword [edi], esi
call fcn.004f1780
test al, al
jne 0x46535d
xor eax, eax
dec eax
lea ebx, [esp + 8]
mov dword [ebx + 4], eax
mov dword [ebx], eax
push ebx
mov eax, dword [esp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, 1
sbb esi, esi
mov edi, dword [ebx + 4]
or edi, esi
or esi, dword [ebx]
lea ecx, [esp + 0x10]
call fcn.004f1820
lea ecx, [esp + 0x20]
call fcn.004e7120
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.00504b53
mov eax, esi
mov edx, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esp + 0x10]
push esi
push esi
push dword [esp + 0xc]
push str.File::GetLength
call fcn.00575970
jmp 0x46530f
Function at 0x465380
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x90
mov dword [esp + 0xc], ecx
mov eax, dword [0x603024]
xor eax, ebp
mov dword [esp + 0x88], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x40]
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea esi, [esp + 0x30]
push 0xa9
push str..._.._base_files_file_win.cc
push str.SetLength
push esi
call fcn.004e0f50
add esp, 0x10
xor ebx, ebx
mov ecx, edi
push ebx
push esi
call fcn.004e70c0
mov dword [esi + 4], 0xffffffff
mov dword [esi], ebx
call fcn.004f1780
test al, al
jne 0x4654e2
xor eax, eax
dec eax
lea ecx, [esp + 0x28]
mov dword [ecx + 4], eax
mov dword [ecx], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
mov esi, dword [esp + 0xc]
mov eax, dword [esi]
sub esp, 0x14
movsd xmm0, qword [esp + 0x34]
movsd qword [esp + 4], xmm0
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 0x4654b6
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [esi]
sub esp, 0x14
movsd xmm0, qword [esp + 0x2c]
movsd qword [esp + 4], xmm0
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x4654b6
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
xor ebx, ebx
test eax, eax
je 0x4654b6
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov eax, dword [esi]
sub esp, 0x14
movsd xmm0, qword [esp + 0x24]
movsd qword [esp + 4], xmm0
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
setne bl
lea ecx, [esp + 0x30]
call fcn.004f1820
lea ecx, [esp + 0x40]
call fcn.004e7120
mov ecx, dword [esp + 0x88]
xor ecx, ebp
call fcn.00504b53
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
lea ecx, [esp + 0x30]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esp + 0x14]
push str.File::SetLength
call fcn.00575970
jmp 0x4653f9
Function at 0x465750
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov dword [esp + 8], ecx
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x603024]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x20]
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea esi, [esp + 0x10]
push 0x160
push str..._.._base_files_file_win.cc
push str.DoInitialize
push esi
call fcn.004e0f50
add esp, 0x10
mov ecx, edi
push 0
push esi
call fcn.004e70c0
mov eax, ebx
and eax, 1
neg eax
and eax, 3
xor ecx, ecx
inc ecx
test bl, 2
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
mov dword [esp + 4], eax
test eax, eax
je 0x46596b
mov ecx, ebx
and ecx, 0x40
shl ecx, 0x18
test bl, 0x80
cmove 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
shl eax, 8
mov ebx, eax
and ebx, 0x2000000
or ebx, esi
and eax, 0x8000000
or eax, ebx
mov esi, dword [ebp + 8]
xor edx, 3
cmp byte [esi + 0xb], 0
jns 0x46588f
mov esi, dword [esi]
xor ebx, ebx
push ebx
push eax
push dword [esp + 0xc]
push ebx
push edx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov esi, dword [esp + 8]
cmp dword [esi], eax
je 0x46591f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
inc ecx
cmp ecx, 2
mov ebx, dword [ebp + 0xc]
jae 0x465949
mov ecx, edi
inc ecx
cmp ecx, 2
jb 0x4658d3
mov dword [esi], edi
mov edi, eax
call fcn.004e0f80
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [esi]
inc edi
cmp edi, 2
jb 0x465924
mov eax, dword [esp + 0xc]
shr eax, 0xa
mov dword [esi + 0x14], 0
mov byte [esi + 0x19], al
test bl, 4
jne 0x465938
test bl, 0xa
je 0x465901
mov byte [esi + 0x18], 1
lea ecx, [esp + 0x20]
call fcn.004e7120
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.00504b53
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov ebx, dword [ebp + 0xc]
jmp 0x4658dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00465610
add esp, 4
mov dword [esi + 0x14], eax
jmp 0x465901
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [esi + 0x18]
jmp 0x465901
mov dword [esp + 4], eax
call fcn.00404d30
push dword [esi]
call fcn.004e9ae0
mov eax, dword [esp + 8]
add esp, 4
mov dword [esi], 0
jmp 0x4658c0
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 8]
mov dword [eax + 0x14], 0xffffffff
jmp 0x465901
Function at 0x465a40
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 0x465a75
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x465a7c
lea eax, [ebx + 1]
cmp eax, 2
jb 0x465a6e
mov dword [esi], ebx
call fcn.004e0f80
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.004e0f80
push dword [esi]
call fcn.004e9ae0
add esp, 4
mov dword [esi], 0
jmp 0x465a5f

Function at 0x465ac0
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 [0x603024]
xor eax, ebp
mov dword [esp + 0x58], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x10]
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
mov ebx, esp
push 0x1a
push str..._.._base_files_memory_mapped_file_win.cc
push str.MapImageToMemory
push ebx
call fcn.004e0f50
add esp, 0x10
mov ecx, edi
push 0
push ebx
call fcn.004e70c0
mov ecx, esi
call fcn.004e9430
test al, al
je 0x465bfc
mov ecx, esi
call fcn.00435eb0
sub esp, 0x18
movdqa xmm0, xmmword [0x5e7f40]
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 0x465b7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi + 0x24]
inc eax
cmp eax, 2
jae 0x465be0
mov eax, edi
inc eax
cmp eax, 2
jb 0x465b75
mov dword [esi + 0x24], edi
call fcn.004e0f80
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [esi + 0x24]
lea eax, [edi + 1]
cmp eax, 2
jb 0x465bfc
sub esp, 0x14
movdqa xmm0, xmmword [0x5e7f50]
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 0x465bfc
mov ecx, esp
mov dword [ecx], fcn.00546f80
mov dword [ecx + 4], eax
call fcn.004879f0
mov eax, dword [eax + 0x50]
mov dword [esi + 0x20], eax
mov bl, 1
lea ecx, [esp + 0x10]
call fcn.004e7120
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.00504b53
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.004e0f80
push dword [esi + 0x24]
call fcn.004e9ae0
add esp, 4
mov dword [esi + 0x24], 0
jmp 0x465b65
xor ebx, ebx
jmp 0x465bc0
Function at 0x465c00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov esi, ecx
mov eax, dword [0x603024]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x20]
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea ebx, [esp + 0x10]
push 0x39
push str..._.._base_files_memory_mapped_file_win.cc
push str.MapFileRegionToMemory
push ebx
call fcn.004e0f50
add esp, 0x10
mov ecx, edi
push 0
push ebx
call fcn.004e70c0
mov ecx, esi
call fcn.004e9430
xor ebx, ebx
test al, al
je 0x465d51
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
test eax, eax
jne 0x465d71
mov edi, 2
mov ecx, esi
call fcn.00435eb0
xor ecx, ecx
push ecx
push ebx
push ecx
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
cmp dword [esi + 0x24], eax
je 0x465cc8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0x24]
inc ecx
cmp ecx, 2
jae 0x465d88
mov ecx, ebx
inc ecx
cmp ecx, 2
jb 0x465cbe
mov dword [esi + 0x24], ebx
mov ebx, eax
call fcn.004e0f80
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [esi + 0x24]
inc ebx
cmp ebx, 2
jb 0x465df8
mov dword [esp + 0xc], 0
mov ebx, dword [ebp + 8]
mov ecx, ebx
push 0x5e7550
call fcn.0045cfc0
test al, al
je 0x465dac
mov ebx, edi
mov ecx, esi
call fcn.004652a0
mov ecx, eax
add ecx, 0xffffffff
adc edx, 0xffffffff
mov dword [esp + 4], 0
mov edi, 0xfffffffe
cmp edi, ecx
mov ecx, 0
sbb ecx, edx
jb 0x465df8
mov dword [esi + 0x20], eax
xor eax, eax
xor ecx, ecx
mov edi, ebx
and edi, 2
add edi, 2
push ecx
push dword [esp + 8]
push eax
push edi
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x1c], eax
test eax, eax
je 0x465df8
add eax, dword [esp + 0xc]
mov dword [esi + 0x1c], eax
mov bl, 1
lea ecx, [esp + 0x20]
call fcn.004e7120
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.00504b53
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
cmp eax, 3
jne 0x465dff
sub esp, 4
mov ecx, esi
call fcn.00465ac0
mov ebx, eax
jmp 0x465d51
mov dword [esp + 4], eax
call fcn.004e0f80
push dword [esi + 0x24]
call fcn.004e9ae0
mov eax, dword [esp + 8]
add esp, 4
mov dword [esi + 0x24], 0
jmp 0x465caa
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
lea ecx, [esp + 8]
mov dword [ecx], eax
lea eax, [esp + 0xc]
push eax
push ecx
lea eax, [esp + 0x18]
push eax
push dword [ebx + 8]
push dword [ebx + 4]
push dword [ebx]
call fcn.0045d110
add esp, 0x18
mov eax, dword [esp + 0x14]
test eax, eax
js 0x465df8
mov ecx, dword [esp + 0x10]
mov dword [esp + 4], ecx
mov edx, dword [ebx + 8]
mov ecx, dword [esp + 0xc]
add ecx, edx
mov dword [esi + 0x20], edx
jmp 0x465d27
xor ebx, ebx
jmp 0x465d51
cmp eax, 2
jne 0x465e11
mov ebx, dword [ecx + 8]
mov edi, 4
jmp 0x465c7b
cmp eax, 1
jne 0x465e1d
mov edi, 4
jmp 0x465e1f
xor edi, edi
xor ebx, ebx
jmp 0x465c7b