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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [0x5a05c4]
mov edi, dword [ebp + 8]
lea ebx, [ebp - 0x2c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 0x1ba
push str..._.._base_files_file_util_win.cc
push str.PathExists
push ebx
call fcn.0043e1b0
add esp, 0x10
lea esi, [ebp - 0x1c]
mov ecx, esi
push 0
push ebx
call fcn.00449640
cmp byte [edi + 0xb], 0
jns 0x453266
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov ecx, esi
setne bl
call fcn.00449730
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00527311
mov eax, ebx
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [0x5a05c4]
mov edi, dword [ebp + 8]
lea ebx, [ebp - 0x2c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 0x1cc
push str..._.._base_files_file_util_win.cc
push str.DirectoryExists
push ebx
call fcn.0043e1b0
add esp, 0x10
lea esi, [ebp - 0x1c]
mov ecx, esi
push 0
push ebx
call fcn.00449640
cmp byte [edi + 0xb], 0
jns 0x4532d6
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
mov ecx, esi
setne al
and ebx, 0x10
shr ebx, 4
and bl, al
call fcn.00449730
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00527311
mov eax, ebx
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x453310
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x228
mov eax, dword [0x5a05c4]
lea esi, [ebp - 0x21a]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
xor ebx, ebx
cmp eax, 0x102
ja 0x453394
cmp word [ebp - 0x21a], 0
je 0x45335e
xor ebx, ebx
nop
cmp word [ebp + ebx*2 - 0x218], 0
lea ebx, [ebx + 1]
jne 0x453350
lea edi, [ebp - 0x234]
mov ecx, edi
push ebx
push esi
call fcn.0043a400
lea ebx, [ebp - 0x228]
mov ecx, edi
push ebx
call fcn.0043be90
mov ecx, dword [ebp + 8]
push ebx
call fcn.0043a500
mov ecx, ebx
call fcn.0043a4c0
mov ecx, edi
call fcn.0043a4c0
mov bl, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00527311
mov eax, ebx
add esp, 0x228
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4533b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x218
mov eax, dword [0x5a05c4]
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x214]
xor eax, ebp
mov dword [ebp - 0xc], eax
push edi
push 0
push 0
push 0x28
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x453409
cmp word [ebp - 0x214], 0
je 0x453409
xor eax, eax
nop dword [eax]
cmp word [ebp + eax*2 - 0x212], 0
lea eax, [eax + 1]
jne 0x4533f0
mov ecx, esi
push eax
push edi
call fcn.0043a400
jmp 0x453444
lea edi, [ebp - 0x220]
mov ecx, edi
call fcn.0043a3a0
push edi
call fcn.00453310
add esp, 4
mov ecx, esi
test al, al
je 0x45342d
push edi
call fcn.0043a3d0
jmp 0x453439
push 3
push 0x55e420
call fcn.0043a400
lea ecx, [ebp - 0x220]
call fcn.0043a4c0
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00527311
mov eax, esi
add esp, 0x218
pop esi
pop edi
pop ebp
ret
Function at 0x453c30
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
mov eax, dword [0x5a05c4]
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x2c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 0x265
push str..._.._base_files_file_util_win.cc
push str.CreateDirectoryAndGetError
push edi
call fcn.0043e1b0
add esp, 0x10
lea ecx, [ebp - 0x38]
push 0
push edi
call fcn.00449640
cmp byte [esi + 0xb], 0
mov ebx, esi
jns 0x453c76
mov ebx, dword [esi]
mov edi, dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x453ca8
mov bl, 1
test al, 0x10
jne 0x453dbb
test edi, edi
je 0x453c99
mov dword [edi], 0xfffffff7
push 0x50
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x453dbb
lea eax, [ebp - 0x44]
mov ecx, esi
push eax
call fcn.0043ad30
movzx ecx, byte [ebp - 0x39]
test cl, cl
mov eax, ecx
jns 0x453cc0
mov eax, dword [ebp - 0x40]
movzx edx, byte [esi + 0xb]
mov dword [ebp - 0x48], ebx
test dl, dl
mov edi, edx
jns 0x453cd0
mov edi, dword [esi + 4]
cmp eax, edi
jne 0x453d13
test eax, eax
je 0x453cff
test cl, cl
lea ecx, [ebp - 0x44]
jns 0x453ce2
mov ecx, dword [ebp - 0x44]
test dl, dl
mov edx, esi
jns 0x453cea
mov edx, dword [esi]
xor edi, edi
nop dword [eax]
movzx ebx, word [ecx + edi*2]
cmp bx, word [edx + edi*2]
jne 0x453d13
inc edi
cmp eax, edi
jne 0x453cf0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x453d0c
mov dword [eax], 0xfffffffc
push 2
jmp 0x453dab
mov edi, dword [ebp + 0xc]
push edi
lea eax, [ebp - 0x44]
push eax
call fcn.00453c30
add esp, 8
test al, al
je 0x453db1
push 0
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
jne 0x453db3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov dword [ebp - 0x48], eax
jne 0x453d98
push 0x1cc
push str..._.._base_files_file_util_win.cc
push str.DirectoryExists
lea eax, [ebp - 0x2c]
push eax
call fcn.0043e1b0
add esp, 0x10
lea ecx, [ebp - 0x1c]
push 0
lea eax, [ebp - 0x2c]
push eax
call fcn.00449640
cmp byte [esi + 0xb], 0
jns 0x453d7d
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.00449730
cmp esi, 0xffffffff
je 0x453d98
and esi, 0x10
jne 0x453db3
mov esi, dword [ebp - 0x48]
test edi, edi
je 0x453daa
push esi
call fcn.00454be0
add esp, 4
mov dword [edi], eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
lea ecx, [ebp - 0x44]
call fcn.0043a4c0
lea ecx, [ebp - 0x38]
call fcn.00449730
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00527311
mov eax, ebx
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x453ed0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x24
mov eax, dword [0x5a05c4]
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x28]
xor eax, ebp
mov dword [ebp - 0xc], eax
push 0x343
push str..._.._base_files_file_util_win.cc
push 0x55e4bf
push edi
call fcn.0043e1b0
add esp, 0x10
lea ecx, [ebp - 0x18]
push 0
push edi
call fcn.00449640
cmp byte [esi + 0xb], 0
jns 0x453f13
mov esi, dword [esi]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea esi, [ebp - 0x28]
mov dword [ebp - 0x28], 0
mov ecx, esi
push eax
call fcn.0040582a
mov eax, dword [ebp - 0x28]
mov edi, 0xffffffff
lea ecx, [eax + 1]
cmp ecx, 2
jb 0x453f79
mov edi, dword [ebp + 0x10]
lea ecx, [ebp - 0x2c]
push 0
push ecx
push edi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x2c], edi
mov ecx, 0xffffffff
cmove ecx, edi
xor edi, edi
cmp eax, 1
mov eax, dword [ebp - 0x28]
sbb edi, edi
or edi, ecx
inc eax
cmp eax, 2
jb 0x453fa6
call fcn.0043e1e0
push eax
push dword [ebp + 4]
push esi
push dword [ebp - 0x28]
call fcn.00457890
add esp, 0x10
push dword [ebp - 0x28]
call fcn.00457840
add esp, 4
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x18]
call fcn.00449730
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00527311
mov eax, edi
add esp, 0x24
pop esi
pop edi
pop ebp
ret

Function at 0x453fd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x230
mov eax, dword [0x5a05c4]
lea esi, [ebp - 0x218]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 0x376
push str..._.._base_files_file_util_win.cc
push 0x55e4c9
push esi
call fcn.0043e1b0
add esp, 0x10
lea ecx, [ebp - 0x224]
push 0
push esi
call fcn.00449640
mov word [ebp - 0x218], 0
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
dec eax
xor ebx, ebx
cmp eax, 0x103
ja 0x454084
cmp word [ebp - 0x218], 0
je 0x45404e
xor ebx, ebx
nop dword [eax]
cmp word [ebp + ebx*2 - 0x216], 0
lea ebx, [ebx + 1]
jne 0x454040
lea edi, [ebp - 0x23c]
mov ecx, edi
push ebx
push esi
call fcn.0043a400
lea ebx, [ebp - 0x230]
mov ecx, edi
push ebx
call fcn.0043be90
mov ecx, dword [ebp + 8]
push ebx
call fcn.0043a500
mov ecx, ebx
call fcn.0043a4c0
mov ecx, edi
call fcn.0043a4c0
mov bl, 1
lea ecx, [ebp - 0x224]
call fcn.00449730
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00527311
mov eax, ebx
add esp, 0x230
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4540b0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [0x5a05c4]
mov edi, dword [ebp + 8]
lea ebx, [ebp - 0x2c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 0x386
push str..._.._base_files_file_util_win.cc
push 0x55e4de
push ebx
call fcn.0043e1b0
add esp, 0x10
lea esi, [ebp - 0x1c]
mov ecx, esi
push 0
push ebx
call fcn.00449640
cmp byte [edi + 0xb], 0
jns 0x4540f6
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
mov ecx, esi
setne bl
call fcn.00449730
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00527311
mov eax, ebx
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x454140
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [0x5a05c4]
mov esi, edx
mov edi, ecx
lea ebx, [ebp - 0x2c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 0xaf
push str..._.._base_files_file_util_win.cc
push str.DoCopyFile
push ebx
call fcn.0043e1b0
add esp, 0x10
lea ecx, [ebp - 0x1c]
push 0
push ebx
call fcn.00449640
mov ecx, edi
call fcn.0043bec0
test al, al
jne 0x454193
mov ecx, esi
call fcn.0043bec0
test al, al
je 0x4541b1
xor ebx, ebx
lea ecx, [ebp - 0x1c]
call fcn.00449730
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00527311
mov eax, ebx
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
cmp byte [edi + 0xb], 0
jns 0x4541c0
cmp dword [edi + 4], 0x103
ja 0x454193
cmp byte [esi + 0xb], 0
jns 0x4541cf
cmp dword [esi + 4], 0x103
ja 0x454193
push 0xbc
push str..._.._base_files_file_util_win.cc
push str.DoCopyFile
push ebx
call fcn.0043e1b0
add esp, 0x10
lea ecx, [ebp - 0x34]
push ebx
call fcn.0048d410
mov ecx, dword [0x5a4294]
mov edx, dword fs:[0x2c]
mov eax, dword [0x5a2098]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x45425e
mov al, byte [ebp + 8]
cmp byte [esi + 0xb], 0
jns 0x454218
mov esi, dword [esi]
cmp byte [edi + 0xb], 0
movzx eax, al
jns 0x454223
mov edi, dword [edi]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x45424f
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45424f
mov bl, 1
test al, 1
je 0x454251
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x454251
xor ebx, ebx
lea ecx, [ebp - 0x34]
call fcn.0048d590
jmp 0x454195
push 0x5a2098
call fcn.00527357
add esp, 4
cmp dword [0x5a2098], 0xffffffff
jne 0x45420d
lea ecx, [ebp - 0x34]
call fcn.0048d500
push 0x5a2098
call fcn.005273cd
add esp, 4
jmp 0x45420d
Function at 0x454290
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [0x5a05c4]
mov edi, dword [ebp + 8]
lea esi, [ebp - 0x2c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 0x3e7
push str..._.._base_files_file_util_win.cc
push str.MoveUnsafe
push esi
call fcn.0043e1b0
add esp, 0x10
lea ecx, [ebp - 0x38]
push 0
push esi
call fcn.00449640
mov al, byte [edi + 0xb]
test al, al
jns 0x4542e0
cmp dword [edi + 4], 0x103
ja 0x4543cb
mov ecx, dword [ebp + 0xc]
cmp byte [ecx + 0xb], 0
jns 0x4542f8
cmp dword [ecx + 4], 0x103
ja 0x4543cb
mov ecx, dword [ecx]
test al, al
mov eax, edi
jns 0x454300
mov eax, dword [edi]
push 3
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov bl, 1
test eax, eax
jne 0x4543cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c], eax
push 0x1cc
push str..._.._base_files_file_util_win.cc
push str.DirectoryExists
push esi
call fcn.0043e1b0
add esp, 0x10
lea ecx, [ebp - 0x1c]
push 0
push esi
call fcn.00449640
cmp byte [edi + 0xb], 0
mov eax, edi
jns 0x45434a
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [ebp - 0x1c]
mov edi, eax
call fcn.00449730
cmp edi, 0xffffffff
je 0x4543c2
and edi, 0x10
je 0x4543c2
push 0x40a
push str..._.._base_files_file_util_win.cc
push str.CopyAndDeleteDirectory
push esi
call fcn.0043e1b0
add esp, 0x10
lea ecx, [ebp - 0x1c]
push 0
push esi
call fcn.00449640
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ecx, esi
push 0
push 1
call fcn.00452cb0
add esp, 8
test al, al
je 0x4543ba
mov ecx, esi
mov edx, 1
call fcn.00452760
test al, al
je 0x4543ba
lea ecx, [ebp - 0x1c]
call fcn.00449730
jmp 0x4543cd
lea ecx, [ebp - 0x1c]
call fcn.00449730
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
lea ecx, [ebp - 0x38]
call fcn.00449730
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00527311
mov eax, ebx
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4543f0
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4f0
mov eax, ecx
mov ecx, dword [0x5a05c4]
lea esi, [ebp - 0x29c]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
mov ecx, esi
mov dword [ebp - 0x4fc], edx
push edx
push 3
push 0
push eax
call fcn.00458cb0
lea eax, [ebp - 0x4f8]
mov ecx, esi
push eax
call fcn.00458dd0
movzx eax, byte [ebp - 0x4ed]
test al, al
jns 0x454441
mov eax, dword [ebp - 0x4f4]
test eax, eax
je 0x45459d
lea ebx, [ebp - 0x4ec]
xor edi, edi
jmp 0x45446a
test eax, eax
mov edi, esi
je 0x45459f
lea ecx, [ebp - 0x29c]
push ebx
call fcn.00458d50
mov eax, dword [ebp - 0x4ec]
test al, 1
je 0x4544b7
cmp byte [ebp + 8], 0
jne 0x454497
mov ecx, ebx
call fcn.00458ab0
test al, al
jne 0x4544b7
mov eax, dword [ebp - 0x4ec]
and eax, 0xfffffffe
cmp byte [ebp - 0x4ed], 0
lea ecx, [ebp - 0x4f8]
jns 0x4544af
mov ecx, dword [ebp - 0x4f8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, ebx
call fcn.00458ab0
test al, al
je 0x454520
xor esi, esi
cmp byte [ebp + 8], 0
je 0x454558
mov edx, dword [ebp - 0x4fc]
lea ecx, [ebp - 0x4f8]
push 1
call fcn.004543f0
add esp, 4
mov esi, eax
test eax, eax
jne 0x454558
cmp byte [ebp - 0x4ed], 0
lea eax, [ebp - 0x4f8]
jns 0x4544ff
mov eax, dword [ebp - 0x4f8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
mov esi, 0
jne 0x454558
jmp 0x454542
cmp byte [ebp - 0x4ed], 0
lea eax, [ebp - 0x4f8]
jns 0x454535
mov eax, dword [ebp - 0x4f8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
test eax, eax
jne 0x454558
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
or eax, 1
mov ecx, 0
cmp eax, 3
cmove esi, ecx
test edi, edi
mov ecx, ebx
cmovne esi, edi
call fcn.0040de20
lea ecx, [ebp - 0x29c]
push ebx
call fcn.00458dd0
lea ecx, [ebp - 0x4f8]
push ebx
call fcn.0043a500
mov ecx, ebx
call fcn.0043a4c0
movzx eax, byte [ebp - 0x4ed]
test al, al
jns 0x454460
mov eax, dword [ebp - 0x4f4]
jmp 0x454460
xor esi, esi
lea ecx, [ebp - 0x4f8]
call fcn.0043a4c0
lea ecx, [ebp - 0x29c]
call fcn.00458ce0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00527311
mov eax, esi
add esp, 0x4f0
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4546a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x40
mov eax, dword [0x5a05c4]
mov edi, dword [ebp + 0x14]
mov esi, ecx
lea ebx, [esp + 0x10]
xor eax, ebp
mov dword [esp + 0x38], eax
push 0x3d
push str..._.._base_files_file_win.cc
push str.Read
push ebx
call fcn.0043e1b0
add esp, 0x10
lea ecx, [esp + 0x2c]
push 0
push ebx
call fcn.00449640
test edi, edi
js 0x454743
lea ecx, [esp + 0x24]
call fcn.00456100
call fcn.0047d3b0
test al, al
je 0x454709
lea ecx, [esp + 0x24]
push 0
push edi
push esi
push str.File::Read
call fcn.0047d430
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [esp + 0x20], 0
movaps xmmword [esp + 0x10], xmm0
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
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 0x45474a
mov ebx, dword [esp + 0xc]
jmp 0x45475a
mov ebx, 0xffffffff
jmp 0x454763
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x26
setne bl
neg ebx
lea ecx, [esp + 0x24]
call fcn.0047d410
lea ecx, [esp + 0x2c]
call fcn.00449730
mov ecx, dword [esp + 0x38]
xor ecx, ebp
call fcn.00527311
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10

Function at 0x454790
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x40
mov eax, dword [0x5a05c4]
mov edi, dword [ebp + 0x14]
mov esi, ecx
lea ebx, [esp + 0x10]
xor eax, ebp
mov dword [esp + 0x38], eax
push 0x72
push str..._.._base_files_file_win.cc
push str.Write
push ebx
call fcn.0043e1b0
add esp, 0x10
lea ecx, [esp + 0x2c]
push 0
push ebx
call fcn.00449640
lea ecx, [esp + 0x24]
call fcn.00456100
call fcn.0047d3b0
test al, al
je 0x4547f9
mov eax, edi
lea ecx, [esp + 0x24]
sar eax, 0x1f
push eax
push edi
push esi
push str.File::Write
call fcn.0047d430
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [esp + 0x20], 0
movaps xmmword [esp + 0x10], xmm0
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
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
lea ecx, [esp + 0x24]
sbb esi, esi
or esi, dword [esp + 0xc]
call fcn.0047d410
lea ecx, [esp + 0x2c]
call fcn.00449730
mov ecx, dword [esp + 0x38]
xor ecx, ebp
call fcn.00527311
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
Function at 0x454860
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov eax, dword [0x5a05c4]
mov esi, ecx
lea edi, [esp + 8]
xor eax, ebp
mov dword [esp + 0x24], eax
push 0x9b
push str..._.._base_files_file_win.cc
push str.GetLength
push edi
call fcn.0043e1b0
add esp, 0x10
lea ecx, [esp + 0x18]
push 0
push edi
call fcn.00449640
lea ecx, [esp + 8]
call fcn.00456100
call fcn.0047d3b0
test al, al
je 0x4548c5
lea ecx, [esp + 8]
push 0
push 0
push esi
push str.File::GetLength
call fcn.0047d430
mov eax, esp
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov edi, dword [esp + 4]
xor esi, esi
cmp eax, 1
lea ecx, [esp + 8]
sbb esi, esi
or edi, esi
or esi, dword [esp]
call fcn.0047d410
lea ecx, [esp + 0x18]
call fcn.00449730
mov ecx, dword [esp + 0x24]
xor ecx, ebp
call fcn.00527311
mov eax, esi
mov edx, edi
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret

Function at 0x454910
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x48
mov eax, dword [0x5a05c4]
mov ebx, dword [ebp + 8]
mov esi, ecx
lea edi, [esp + 0x24]
xor eax, ebp
mov dword [esp + 0x40], eax
push 0xa8
push str..._.._base_files_file_win.cc
push str.SetLength
push edi
call fcn.0043e1b0
add esp, 0x10
lea ecx, [esp + 0x34]
push 0
push edi
mov edi, dword [ebp + 0xc]
call fcn.00449640
lea ecx, [esp + 0x24]
call fcn.00456100
call fcn.0047d3b0
test al, al
je 0x45497a
lea ecx, [esp + 0x24]
push edi
push ebx
push esi
push str.File::SetLength
call fcn.0047d430
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov eax, dword [esi]
sub esp, 0x14
movsd xmm0, qword [esp + 0x24]
lea ecx, [esp + 0x2c]
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 0x454a3e
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 0x454a3e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x454a3e
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 0x454a40
xor ebx, ebx
lea ecx, [esp + 0x24]
call fcn.0047d410
lea ecx, [esp + 0x34]
call fcn.00449730
mov ecx, dword [esp + 0x40]
xor ecx, ebp
call fcn.00527311
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8

Function at 0x454ee0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040582a
Function at 0x454f20
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [0x5a05c4]
mov esi, ecx
lea edi, [ebp - 0x2c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 0x1a
push str..._.._base_files_memory_mapped_file_win.cc
push str.MapImageToMemory
push edi
call fcn.0043e1b0
add esp, 0x10
lea ecx, [ebp - 0x1c]
push 0
push edi
call fcn.00449640
mov ecx, esi
call fcn.004545d0
test al, al
je 0x454f94
mov ecx, esi
lea edi, [esi + 0x24]
call fcn.0040a890
push 0
push 0
push 0
push 0x11000002
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ecx, edi
push eax
call fcn.0040582a
mov eax, dword [esi + 0x24]
lea ecx, [eax + 1]
cmp ecx, 2
jae 0x454fb4
xor ebx, ebx
lea ecx, [ebp - 0x1c]
call fcn.00449730
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00527311
mov eax, ebx
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret 4
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 0x1c], eax
je 0x454f94
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x55e880
mov dword [ebp - 0x28], eax
call fcn.0048d658
mov eax, dword [eax + 0x50]
mov bl, 1
mov dword [esi + 0x20], eax
jmp 0x454f96
Function at 0x455e80
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x5a05c4]
mov edi, dword [ebp + 8]
mov esi, ecx
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 4], 0
je 0x455ea6
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x455ea8
mov eax, dword [esi]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x455ec8
cmp byte [ebp + 0xc], 0
je 0x455f11
cmp byte [esi + 4], 0
je 0x455f03
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x455f05
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [esi + 4], 0
je 0x455edc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x455ede
mov eax, dword [esi]
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x455ef5
xor ebx, ebx
jmp 0x455f7f
cmp byte [esi + 4], 0
je 0x455f3f
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x455f41
mov eax, dword [esi]
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [esi + 4], 0
je 0x455f1f
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x455f21
mov eax, dword [esi]
push eax
call fcn.00481690
add esp, 4
mov ecx, dword [0x5a43b4]
mov bl, 1
test ecx, ecx
je 0x455f7f
push edi
push eax
call fcn.0047f840
jmp 0x455f7f
mov eax, dword [esi]
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x455f53
mov edi, dword [ebp - 0x14]
cmp byte [esi + 4], 0
je 0x455f61
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x455f63
mov eax, dword [esi]
push eax
call fcn.00481690
add esp, 4
mov ecx, dword [0x5a43b4]
test ecx, ecx
je 0x455f7d
push edi
push eax
call fcn.0047f840
mov bl, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00527311
mov eax, ebx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 8