joyce8/EMBER2024-capa huggingface dataset:
Function at 0x470de0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push 0
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], vtable.CPathString.0
mov dword [ebp - 0x10], 0
call fcn.00472300
push 0
push dword [ebp + 0xc]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], vtable.CPathString.0
mov dword [ebp - 4], 0
call fcn.00472300
mov esi, dword [ebp + 0x14]
xor edi, edi
test esi, esi
je 0x470e60
push 0x10
call fcn.0056bd75
mov edi, eax
add esp, 4
test edi, edi
je 0x470e4e
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
jmp 0x470e50
xor edi, edi
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], esi
lea ecx, [ebp - 0xc]
call fcn.00472140
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.00472140
movzx ecx, byte [ebp + 0x10]
mov edx, 0x471af0
push ecx
push 0
xor ecx, ecx
test edi, edi
push edi
cmovne ecx, edx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
setne bl
test edi, edi
je 0x470ea3
push 0x10
push edi
call fcn.0056bda5
add esp, 8
mov eax, dword [ebp - 4]
test eax, eax
je 0x470eb3
push eax
call fcn.0056be44
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x470ec3
push eax
call fcn.0056be44
add esp, 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x470ed3
push eax
call fcn.0056be44
add esp, 4
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x470ee3
push ecx
call fcn.0056be44
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x470ef0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x65ff5c], 0
push ebx
jne 0x470f04
xor eax, eax
jmp 0x470f17
lea eax, [ebp - 4]
push eax
push 3
push str.BCreateDirectory
call fcn.00479b80
add esp, 0xc
push 0
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], vtable.CPathString.0
mov dword [ebp - 8], 0
call fcn.00472300
push 0
lea ecx, [ebp - 0x10]
call fcn.00472140
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x470f5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x470f5b
xor bl, bl
jmp 0x470f5d
mov bl, 1
mov eax, dword [ebp - 8]
test eax, eax
je 0x470f6d
push eax
call fcn.0056be44
add esp, 4
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x470f7d
push eax
call fcn.0056be44
add esp, 4
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x470f8d
push ecx
call fcn.00479b40
add esp, 4
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push 0
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], vtable.CPathString.0
mov dword [ebp - 4], 0
call fcn.00472300
lea ecx, [ebp - 0xc]
call fcn.00472140
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov eax, dword [ebp - 4]
setne bl
test eax, eax
je 0x471027
push eax
call fcn.0056be44
add esp, 4
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x471037
push ecx
call fcn.0056be44
add esp, 4
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x471040
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push 0
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], vtable.CPathString.0
mov dword [ebp - 4], 0
call fcn.00472300
lea ecx, [ebp - 0xc]
call fcn.00472140
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x47107e
test al, 0x10
je 0x47107e
mov bl, 1
jmp 0x471080
xor bl, bl
mov eax, dword [ebp - 4]
test eax, eax
je 0x471090
push eax
call fcn.0056be44
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x4710a0
push eax
call fcn.0056be44
add esp, 4
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x471190
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
cmp dword [0x65ff5c], 0
push ebx
push esi
push edi
mov edi, ecx
jne 0x4711ab
xor eax, eax
jmp 0x4711be
lea eax, [ebp - 0x10]
push eax
push 3
push str.CFileReader::BOpenFile
call fcn.00479b80
add esp, 0xc
mov dword [ebp - 0x10], eax
mov eax, dword [edi]
mov dword [edi + 0x30], 0
cmp eax, 0xffffffff
je 0x4711e6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4711e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], 0xffffffff
mov ebx, dword [ebp + 0xc]
mov eax, ebx
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
and eax, 0xffffffb3
je 0x47123a
push eax
push str.unsupported_flags_0x_x_passed_to_CFileReader::BOpenFile
push 0x151d
push str.C:_buildworker_steam_rel_client_win32_build_src_tier1_fileio.cpp
call fcn.00477630
add esp, 0x10
test al, al
jne 0x471237
int3
and ebx, 0x4c
cmp byte [edi + 0x2c], 0
je 0x471347
xor esi, esi
mov dword [ebp - 0xc], vtable.CPathString.0
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
mov dword [ebp - 4], esi
call fcn.00472300
push 0x3a
push dword [ebp - 8]
call fcn.0056e600
add esp, 8
test eax, eax
je 0x4712c5
mov ecx, dword [ebp - 8]
mov edx, 0x100
sub eax, ecx
lea esi, [eax + 2]
mov eax, 0xff
cmp esi, eax
cmova esi, eax
cmp esi, edx
mov eax, esi
cmova eax, edx
push eax
push ecx
lea eax, [ebp - 0x11c]
push eax
call fcn.0046a5b0
add esp, 0xc
mov byte [ebp + esi - 0x11c], 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
xor esi, esi
jmp 0x4712dd
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
mov dword [ebp - 0xc], vtable.CPathString.0
mov eax, dword [ebp - 4]
cmovne esi, dword [ebp + 0xc]
test eax, eax
je 0x471301
push eax
call fcn.0056be44
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
test eax, eax
je 0x471318
push eax
call fcn.0056be44
add esp, 4
mov dword [ebp - 8], 0
mov dword [edi + 0x30], esi
test esi, esi
je 0x471324
or ebx, 2
jmp 0x471347
push dword [ebp + 8]
push str.Failed_to_get_sector_size_for_drive_file__s_is_on__not_using_unbuffered_IO
push 0x152c
push str.C:_buildworker_steam_rel_client_win32_build_src_tier1_fileio.cpp
call fcn.00477630
add esp, 0x10
test al, al
jne 0x471343
int3
mov byte [edi + 0x2c], 0
push edi
push ebx
test bl, 0x40
mov ecx, 0
push 0
mov eax, 3
cmovne eax, ecx
push eax
push 1
push dword [ebp + 8]
call fcn.00471c80
add esp, 0x18
test eax, eax
jne 0x471376
cmp dword [edi], 0xffffffff
je 0x471376
mov bl, 1
jmp 0x471378
xor bl, bl
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x471388
push ecx
call fcn.00479b40
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4717c0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push dword [ebp + 8]
call fcn.004728b0
add esp, 4
mov dword [ebp - 0xc], vtable.CPathString.0
lea ecx, [ebp - 0xc]
mov dword [ebp - 4], 0
push 0
push dword [ebp + 8]
call fcn.00472300
lea ecx, [ebp - 0xc]
call fcn.00472140
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
mov eax, dword [ebp - 4]
setne bl
test eax, eax
je 0x471811
push eax
call fcn.0056be44
add esp, 4
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x471821
push ecx
call fcn.0056be44
add esp, 4
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x471980
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push 0
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], vtable.CPathString.0
mov dword [ebp - 0x10], 0
call fcn.00472300
push 0
push dword [ebp + 0xc]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], vtable.CPathString.0
mov dword [ebp - 4], 0
call fcn.00472300
lea ecx, [ebp - 0x18]
call fcn.00472140
lea ecx, [ebp - 0xc]
mov esi, eax
call fcn.00472140
push 0
push 0
push 0
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
test eax, eax
jne 0x471a08
lea ecx, [ebp - 0xc]
call fcn.00472140
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.00472140
push 1
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x471a08
xor bl, bl
jmp 0x471a0a
mov bl, 1
mov eax, dword [ebp - 4]
test eax, eax
je 0x471a1a
push eax
call fcn.0056be44
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x471a2a
push eax
call fcn.0056be44
add esp, 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x471a3a
push eax
call fcn.0056be44
add esp, 4
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x471a4a
push eax
call fcn.0056be44
add esp, 4
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x471b30
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push 0
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], vtable.CPathString.0
mov dword [ebp - 0x10], 0
call fcn.00472300
mov edi, dword [ebp - 0x14]
push ecx
mov eax, esp
mov dword [eax], edi
call fcn.00470fe0
add esp, 4
test al, al
jne 0x471c34
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x471b71
sub ecx, edx
lea esi, [edi - 1]
add esi, ecx
cmp esi, edi
jbe 0x471bfa
cmp byte [esi], 0x5c
jne 0x471bf2
push 0
push edi
lea ecx, [ebp - 0xc]
mov byte [esi], 0
mov dword [ebp - 0xc], vtable.CPathString.0
mov dword [ebp - 4], 0
call fcn.00472300
lea ecx, [ebp - 0xc]
call fcn.00472140
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [ebp - 4]
mov ebx, eax
mov dword [ebp - 0xc], vtable.CPathString.0
test ecx, ecx
je 0x471bd3
push ecx
call fcn.0056be44
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
test eax, eax
je 0x471bea
push eax
call fcn.0056be44
add esp, 4
mov dword [ebp - 8], 0
mov byte [esi], 0x5c
cmp ebx, 0xffffffff
jne 0x471bf9
dec esi
cmp esi, edi
ja 0x471b83
jmp 0x471bfa
inc esi
mov al, byte [esi]
test al, al
je 0x471c1f
cmp al, 0x5c
jne 0x471c17
push ecx
mov eax, esp
mov byte [esi], 0
mov dword [eax], edi
call fcn.00470ef0
add esp, 4
mov byte [esi], 0x5c
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x471c00
push ecx
mov eax, esp
mov dword [eax], edi
call fcn.00470ef0
add esp, 4
test al, al
jne 0x471c34
xor bl, bl
jmp 0x471c36
mov bl, 1
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x471c46
push eax
call fcn.0056be44
add esp, 4
test edi, edi
je 0x471c53
push edi
call fcn.0056be44
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x471c80
Capabilities:
Inspect section memory permissions
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], vtable.CPathString.0
mov dword [ebp - 0xc], 0
call fcn.00472300
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
mov eax, dword [ebp + 0x1c]
shl ecx, 0x1f
mov edx, ecx
or edx, 0x40000000
test bl, 2
mov dword [eax], 0xffffffff
mov eax, 0xc0000000
cmove edx, ecx
cmp ebx, 4
cmove edx, eax
mov eax, edx
or eax, 4
test bl, 8
cmove eax, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
cmp eax, 7
ja case.default.0x471d19
jmp dword [eax*4 + 0x471e2c]
xor edi, edi
jmp 0x471d0d
mov edi, 1
jmp 0x471d0d
mov edi, 2
jmp 0x471d0d
mov edi, 3
jmp 0x471d0d
mov edi, 7
mov eax, dword [ebp + 0x14]
cmp eax, 3
ja case.default.0x471d19
jmp dword [eax*4 + 0x471e4c]
mov dword [ebp + 0xc], 3
jmp 0x471d42
mov dword [ebp + 0xc], 4
jmp 0x471d42
mov dword [ebp + 0xc], 1
jmp 0x471d42
mov dword [ebp + 0xc], 2
mov ebx, dword [ebp + 0x18]
mov ecx, ebx
and ecx, 1
shl ecx, 0x1e
sub ecx, 0xffffff80
mov edx, ecx
or edx, 0x20000000
test bl, 2
cmove edx, ecx
mov esi, edx
or esi, 0x8000000
test bl, 8
cmove esi, edx
test bl, 0x10
je 0x471d7d
and esi, 0xffffff7f
or esi, 0x100
mov ecx, esi
or ecx, 0x4000000
test bl, 0x20
push 0
cmove ecx, esi
push ecx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
push 0
push edi
push dword [ebp - 4]
call fcn.00472140
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, dword [ebp + 0x1c]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x471dba
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x471e01
mov esi, dword [sym.imp.KERNEL32.dll_SetFileTime]
test bl, 4
je 0x471dde
push 0
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0xffffffff
push ecx
push 0
push eax
mov dword [ebp - 4], 0xffffffff
call esi
test bl, bl
jns 0x471df8
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push 0
push 0
lea eax, [ebp - 8]
push eax
push dword [edi]
call esi
xor esi, esi
jmp 0x471e01
mov esi, 0x57
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x471e11
push eax
call fcn.0056be44
add esp, 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x471e21
push eax
call fcn.0056be44
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x471ec0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
test esi, esi
je 0x471ed3
mov dword [esi], 0
mov esi, dword [ebp + 0x10]
xor edi, edi
test esi, esi
je 0x471f30
mov ebx, dword [ebp + 0xc]
mov ecx, 0x40000000
mov dword [ebp + 0x10], 0
cmp esi, ecx
mov eax, esi
push 0
cmova eax, ecx
lea ecx, [ebp + 0x10]
push ecx
push eax
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x471f21
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov edx, ecx
cmp ecx, 0xe8
je 0x471f4d
xor eax, eax
test edx, edx
jne 0x471f51
jmp 0x471f24
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x471f30
add ebx, eax
add edi, eax
sub esi, eax
jne 0x471edf
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x471f58
test esi, esi
je 0x471f5a
push 0x26
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
mov eax, 0x26
pop ebx
pop ebp
ret
test edi, edi
jne 0x471f30
pop edi
pop esi
mov eax, ecx
pop ebx
pop ebp
ret
mov dword [eax], edi
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x471f70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
test eax, eax
push ebx
push esi
lea esi, [ebp - 4]
cmovne esi, eax
push edi
mov dword [ebp - 4], esi
xor edi, edi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x471fe9
mov ebx, dword [ebp + 0xc]
push 0
mov ecx, 0x40000000
mov dword [ebp + 0x14], 0
lea eax, [ebp + 0x14]
cmp esi, ecx
push eax
mov eax, esi
cmova eax, ecx
push eax
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
je 0x471fd6
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
test eax, eax
je 0x471fd9
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov dword [ecx], 0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x14]
test ecx, ecx
jne 0x471fe1
test edi, edi
jne 0x471fe9
add ebx, ecx
add edi, ecx
sub esi, ecx
jne 0x471f91
mov ecx, dword [ebp - 4]
xor eax, eax
mov dword [ecx], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4728b0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push 0
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], vtable.CPathString.0
mov dword [ebp - 4], 0
call fcn.00472300
lea ecx, [ebp - 0xc]
call fcn.00472140
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x472901
test al, 3
je 0x4728fd
and eax, 0xfffffffc
lea ecx, [ebp - 0xc]
push eax
call fcn.00472140
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov bl, 1
jmp 0x472903
xor bl, bl
mov eax, dword [ebp - 4]
test eax, eax
je 0x472913
push eax
call fcn.0056be44
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x472923
push eax
call fcn.0056be44
add esp, 4
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x472d80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x472de4
mov edi, dword [esi + 0x1c]
lea ecx, [ebp - 4]
push ebx
xor ebx, ebx
push ebx
push ecx
push edi
push dword [esi + 0xc]
mov dword [ebp - 4], ebx
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
je 0x472dbd
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x472dc0
jmp 0x472dc4
mov ebx, dword [ebp - 4]
cmp edi, ebx
je 0x472dd1
mov eax, dword [esi + 4]
mov ecx, 1
add eax, 0x1c
xchg dword [eax], ecx
mov eax, dword [esi + 4]
neg edi
add eax, 0x18
lock xadd dword [eax], edi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 8]
test eax, eax
je 0x472eaf
cmp byte [eax], 0
je 0x472eaf
call sub.KERNEL32.dll_GetCurrentProcessId
mov ecx, dword [esi + 8]
mov edi, 0x593554
test ecx, ecx
mov edx, edi
push eax
cmovne edx, ecx
lea eax, [ebp - 0x14]
push edx
push str._s.async_u.tmp
push eax
call fcn.0046a970
add esp, 0x10
cmp byte [ebp - 5], 0
jge 0x472e30
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x472e33
mov eax, edi
jmp 0x472e33
lea eax, [ebp - 0x14]
push 1
push eax
lea eax, [esi + 0xc]
push eax
call fcn.00472ee0
add esp, 0xc
test al, al
je 0x472e92
mov eax, dword [esi + 8]
test eax, eax
cmovne edi, eax
cmp byte [ebp - 5], 0
jge 0x472e62
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x472e65
mov eax, 0x593554
jmp 0x472e65
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.00471980
add esp, 8
test al, al
jne 0x472e92
cmp byte [ebp - 5], al
jge 0x472e86
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x472e89
mov eax, 0x593554
jmp 0x472e89
lea eax, [ebp - 0x14]
push eax
call fcn.00473270
add esp, 4
cmp byte [ebp - 5], 0
jge 0x472ecb
call fcn.004802a0
push 0
push dword [ebp - 0x14]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str.Invalid_FileWriterItem_t
push 0x16f2
push str.C:_buildworker_steam_rel_client_win32_build_src_tier1_fileio.cpp
call fcn.00477620
add esp, 0xc
test al, al
jne 0x472ecb
int3
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x472ee0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], vtable.CPathString.0
mov dword [ebp - 0xc], 0
call fcn.00472300
push dword [ebp - 0x10]
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
call fcn.0046b540
push dword [ebp - 4]
call fcn.00469da0
mov eax, dword [ebp - 4]
mov ecx, esp
mov dword [ecx], eax
call fcn.00471b30
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 4
xor esi, esi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x14]
call fcn.00472140
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x472f78
call ebx
cmp eax, 0x20
jne 0x472f74
push 0xa
call fcn.004828e0
inc esi
add esp, 4
cmp esi, 0xa
jl 0x472f35
xor bl, bl
jmp 0x472fb1
mov esi, dword [ebp + 8]
lea eax, [ebp - 8]
push 0
push eax
mov dword [ebp - 8], 0
push dword [esi + 0x10]
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test byte [ebp + 0x10], 1
je 0x472fa1
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x10]
cmp eax, dword [ebp - 8]
sete bl
call fcn.004802a0
push 0
push dword [ebp - 4]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x472fd2
push eax
call fcn.0056be44
add esp, 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x472fe2
push eax
call fcn.0056be44
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x473270
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push 0
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], vtable.CPathString.0
mov dword [ebp - 4], 0
call fcn.00472300
lea ecx, [ebp - 0xc]
call fcn.00472140
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
mov eax, dword [ebp - 4]
setne bl
test eax, eax
je 0x4732b6
push eax
call fcn.0056be44
add esp, 4
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x4732c6
push ecx
call fcn.0056be44
add esp, 4
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4768f0
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ecx, esi
push edi
movzx edi, byte [ebp + 0x14]
shr ecx, 2
dec edi
mov dword [ebp - 4], ecx
or edi, 0xdfdfdfdf
lea ebx, [eax + ecx*4]
neg ecx
mov dword [ebp + 0x14], ebx
je 0x4769ae
test bl, 3
jne 0x476959
jmp 0x476930
mov eax, dword [ebx + ecx*4]
and eax, edi
imul eax, eax, 0xcc9e2d51
ror eax, 0x11
imul eax, eax, 0x1b873593
xor edx, eax
ror edx, 0x13
add edx, 0xfaddaf14
lea edx, [edx + edx*4]
add ecx, 1
jne 0x476930
jmp 0x4769ae
lea esi, [ebx + 2]
mov ebx, dword [ebp - 4]
lea esi, [esi + ecx*4]
movzx ecx, byte [esi + 1]
lea esi, [esi + 4]
movzx eax, byte [esi - 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi - 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi - 6]
shl ecx, 8
or ecx, eax
and ecx, edi
imul eax, ecx, 0xcc9e2d51
ror eax, 0x11
imul eax, eax, 0x1b873593
xor edx, eax
ror edx, 0x13
add edx, 0xfaddaf14
lea edx, [edx + edx*4]
sub ebx, 1
jne 0x476962
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
mov eax, esi
xor ecx, ecx
and eax, 3
sub eax, 1
je 0x4769d4
sub eax, 1
je 0x4769cb
sub eax, 1
jne 0x4769ec
movzx ecx, byte [ebx + 2]
shl ecx, 0x10
movzx eax, byte [ebx + 1]
shl eax, 8
xor ecx, eax
movzx eax, byte [ebx]
xor eax, ecx
and eax, edi
imul eax, eax, 0xcc9e2d51
ror eax, 0x11
imul eax, eax, 0x1b873593
xor edx, eax
xor edx, esi
mov eax, edx
shr eax, 0x10
xor eax, edx
imul ecx, eax, 0x85ebca6b
pop edi
pop esi
pop ebx
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul ecx, eax, 0xc2b2ae35
mov eax, ecx
shr eax, 0x10
xor eax, ecx
mov esp, ebp
pop ebp
ret