joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005daf0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x10394e20], 0
push esi
mov esi, dword [ebp + 0x10]
push edi
je 0x1005db2c
cmp esi, 0xc0
jl 0x1005db2c
mov edi, dword [ebp + 0xc]
mov eax, esi
shr eax, 6
dec eax
push eax
push edi
push dword [ebp + 8]
call fcn.1005db50
mov eax, esi
add esp, 0xc
and eax, 0x3f
sub esi, eax
add edi, esi
mov esi, eax
jmp 0x1005db2f
mov edi, dword [ebp + 0xc]
push 0x102aabd0
push esi
push edi
push dword [ebp + 8]
call fcn.1005dcb0
add esp, 0x10
pop edi
pop esi
pop ebp
ret

Function at 0x1005db50
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
sub esp, 0x40
mov eax, dword [ebp + 8]
movaps xmm3, xmmword [0x102acbe0]
movups xmm4, xmmword [edx]
push esi
movups xmm5, xmmword [edx + 0x10]
mov esi, dword [eax]
movups xmm6, xmmword [edx + 0x20]
push edi
movups xmm7, xmmword [edx + 0x30]
add edx, 0x40
cmp esi, 0xffffffff
jne 0x1005db87
movaps xmm2, xmmword [0x102acbd0]
jmp 0x1005dbca
xor edi, edi
mov ecx, 0x5b358fd3
test esi, esi
je 0x1005dbaf
mov eax, esi
sar eax, 0x1f
and eax, ecx
xor edi, eax
mov eax, ecx
and eax, 1
shr ecx, 1
neg eax
and eax, 0xedb88320
xor ecx, eax
add esi, esi
jne 0x1005db92
xor eax, eax
movd xmm0, edi
xorps xmm2, xmm2
movd xmm1, eax
punpckldq xmm1, xmm0
punpckldq xmm2, xmm1
pclmulqdq xmm2, xmm3, 0x11
mov eax, dword [ebp + 0x10]
pxor xmm2, xmm7
test eax, eax
jle 0x1005dc49
lea edx, [edx + 0x40]
movaps xmm1, xmm4
movups xmm0, xmmword [edx - 0x40]
pclmulqdq xmm1, xmm3, 0x11
pclmulqdq xmm4, xmm3, 0
pxor xmm4, xmm1
movaps xmm1, xmm5
pxor xmm4, xmm0
movups xmm0, xmmword [edx - 0x30]
pclmulqdq xmm1, xmm3, 0x11
pclmulqdq xmm5, xmm3, 0
pxor xmm5, xmm1
movaps xmm1, xmm6
pxor xmm5, xmm0
movups xmm0, xmmword [edx - 0x20]
pclmulqdq xmm1, xmm3, 0x11
pclmulqdq xmm6, xmm3, 0
pxor xmm6, xmm1
movaps xmm1, xmm2
pxor xmm6, xmm0
movups xmm0, xmmword [edx - 0x10]
pclmulqdq xmm2, xmm3, 0
pclmulqdq xmm1, xmm3, 0x11
pxor xmm2, xmm1
pxor xmm2, xmm0
sub eax, 1
jne 0x1005dbd5
xor eax, eax
xor edi, edi
movups xmmword [ebp - 0x40], xmm4
movups xmmword [ebp - 0x30], xmm5
movups xmmword [ebp - 0x20], xmm6
movups xmmword [ebp - 0x10], xmm2
lea ecx, [ecx]
xor eax, dword [ebp + edi*4 - 0x40]
inc edi
movzx ecx, al
shr eax, 8
mov esi, dword [ecx*4 + 0x102ab7d0]
movzx ecx, al
shr eax, 8
mov edx, eax
shr edx, 8
xor esi, dword [ecx*4 + 0x102ab3d0]
movzx ecx, al
mov eax, dword [edx*4 + 0x102aabd0]
xor eax, dword [ecx*4 + 0x102aafd0]
xor eax, esi
cmp edi, 0x10
jl 0x1005dc60
mov ecx, dword [ebp + 8]
pop edi
pop esi
mov dword [ecx], eax
mov esp, ebp
pop ebp
ret
Function at 0x1005dcb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [ecx]
push edi
mov edi, dword [ebp + 0x14]
cmp esi, 7
jle 0x1005dd70
test bl, 3
je 0x1005dce8
movzx edx, byte [ebx]
dec esi
movzx ecx, al
inc ebx
xor edx, ecx
shr eax, 8
xor eax, dword [edi + edx*4]
test bl, 3
jne 0x1005dcd3
mov ecx, esi
and ecx, 0xfffffff8
add ebx, ecx
sub esi, ecx
neg ecx
mov dword [ebp + 0xc], ebx
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], ecx
je 0x1005dd6d
mov esi, ecx
xor eax, dword [esi + ebx]
movzx ecx, al
shr eax, 8
mov edx, dword [edi + ecx*4 + 0xc00]
movzx ecx, al
shr eax, 8
xor edx, dword [edi + ecx*4 + 0x800]
movzx ecx, al
shr eax, 8
mov ebx, dword [edi + ecx*4 + 0x400]
xor ebx, dword [edi + eax*4]
mov eax, dword [ebp + 0xc]
xor ebx, dword [esi + eax + 4]
xor ebx, edx
movzx eax, bl
shr ebx, 8
mov ecx, dword [edi + eax*4 + 0xc00]
movzx eax, bl
shr ebx, 8
xor ecx, dword [edi + eax*4 + 0x800]
movzx eax, bl
shr ebx, 8
mov eax, dword [edi + eax*4 + 0x400]
xor eax, dword [edi + ebx*4]
mov ebx, dword [ebp + 0xc]
xor eax, ecx
add esi, 8
jne 0x1005dd00
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
test esi, esi
jle 0x1005dd8d
movzx edx, byte [ebx]
lea ebx, [ebx + 1]
movzx ecx, al
dec esi
xor edx, ecx
shr eax, 8
xor eax, dword [edi + edx*4]
test esi, esi
jg 0x1005dd74
mov ecx, dword [ebp + 8]
pop edi
pop esi
mov dword [ecx], eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1005dda0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x10394e20], 0
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0xc], 0xffffffff
je 0x1005dde2
cmp edi, 0xc0
jl 0x1005dde2
mov eax, edi
shr eax, 6
dec eax
push eax
lea eax, [ebp + 0xc]
push esi
push eax
call fcn.1005db50
mov eax, edi
add esp, 0xc
and eax, 0x3f
sub esi, eax
add esi, edi
mov edi, eax
push 0x102aabd0
push edi
lea eax, [ebp + 0xc]
push esi
push eax
call fcn.1005dcb0
mov eax, dword [ebp + 0xc]
add esp, 0x10
not eax
pop edi
pop esi
pop ebp
ret
Function at 0x10061760
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
cmp byte [edi + 0x94], 0
mov dword [edi], vtable.CFileWriterThread.0
jne 0x1006178e
push 1
call fcn.10064200
mov ecx, edi
call fcn.10079b30
test al, al
je 0x1006178e
push 0
mov ecx, edi
call fcn.1007a0d0
lea ecx, [edi + 0x80]
mov dword [edi + 0x90], 0
call fcn.1006ace0
lea ecx, [edi + 0x80]
call fcn.1006ace0
lea ecx, [edi + 0x70]
call fcn.100799b0
lea ecx, [edi + 0x50]
call fcn.100615d0
lea ecx, [edi + 0x38]
call fcn.10079970
mov ecx, edi
pop edi
pop esi
jmp fcn.10079700

Function at 0x10061970
Capabilities:
Create directory

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.10062e80
push 0
lea ecx, [ebp - 0xc]
call fcn.10062cb0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x100619b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x100619b8
xor bl, bl
jmp 0x100619ba
mov bl, 1
mov eax, dword [ebp - 4]
test eax, eax
je 0x100619ca
push eax
call fcn.100ffe9d
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x100619da
push eax
call fcn.100ffe9d
add esp, 4
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10061a40
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.10062e80
lea ecx, [ebp - 0xc]
call fcn.10062cb0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov eax, dword [ebp - 4]
setne bl
test eax, eax
je 0x10061a87
push eax
call fcn.100ffe9d
add esp, 4
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x10061a97
push ecx
call fcn.100ffe9d
add esp, 4
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10061b90
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
mov dword [edi + 0x30], 0
cmp eax, 0xffffffff
je 0x10061bc3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x10061bbd
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 0x10061c17
push eax
push str.unsupported_flags_0x_x_passed_to_CFileReader::BOpenFile
push 0x138c
push str.c:_buildslave_steam_rel_client_win32_build_src_tier1_fileio.cpp
call fcn.10078390
add esp, 0x10
test al, al
jne 0x10061c14
int3
and ebx, 0x4c
cmp byte [edi + 0x2c], 0
je 0x10061d24
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.10062e80
push 0x3a
push dword [ebp - 8]
call fcn.10102580
add esp, 8
test eax, eax
je 0x10061ca2
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 - 0x118]
push eax
call fcn.1006ead0
add esp, 0xc
mov byte [ebp + esi - 0x118], 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
xor esi, esi
jmp 0x10061cba
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x18]
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 0x10061cde
push eax
call fcn.100ffe9d
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
test eax, eax
je 0x10061cf5
push eax
call fcn.100ffe9d
add esp, 4
mov dword [ebp - 8], 0
mov dword [edi + 0x30], esi
test esi, esi
je 0x10061d01
or ebx, 2
jmp 0x10061d24
push dword [ebp + 8]
push str.Failed_to_get_sector_size_for_drive_file__s_is_on__not_using_unbuffered_IO
push 0x139b
push str.c:_buildslave_steam_rel_client_win32_build_src_tier1_fileio.cpp
call fcn.10078390
add esp, 0x10
test al, al
jne 0x10061d20
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.10062820
add esp, 0x18
test eax, eax
jne 0x10061d5a
cmp dword [edi], 0xffffffff
je 0x10061d5a
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10062190
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push dword [ebp + 8]
call fcn.10063830
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.10062e80
lea ecx, [ebp - 0xc]
call fcn.10062cb0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
mov eax, dword [ebp - 4]
setne bl
test eax, eax
je 0x100621e1
push eax
call fcn.100ffe9d
add esp, 4
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x100621f1
push ecx
call fcn.100ffe9d
add esp, 4
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100624e0
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.10062e80
push 0
push dword [ebp + 0xc]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], vtable.CPathString.0
mov dword [ebp - 4], 0
call fcn.10062e80
lea ecx, [ebp - 0xc]
call fcn.10062cb0
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.10062cb0
push 1
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
mov eax, dword [ebp - 4]
setne bl
test eax, eax
je 0x1006254f
push eax
call fcn.100ffe9d
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x1006255f
push eax
call fcn.100ffe9d
add esp, 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1006256f
push eax
call fcn.100ffe9d
add esp, 4
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x1006257f
push ecx
call fcn.100ffe9d
add esp, 4
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10062610
Capabilities:
Check if file exists
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.10062e80
mov edi, dword [ebp - 0x14]
push ecx
mov eax, esp
mov dword [eax], edi
call fcn.10061a40
add esp, 4
test al, al
jne 0x10062717
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10062651
sub ecx, edx
lea esi, [edi - 1]
add esi, ecx
cmp esi, edi
jbe 0x100626dd
cmp byte [esi], 0x5c
jne 0x100626d5
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.10062e80
lea ecx, [ebp - 0xc]
call fcn.10062cb0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], vtable.CPathString.0
mov eax, dword [ebp - 4]
setne bl
test eax, eax
je 0x100626b7
push eax
call fcn.100ffe9d
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
test eax, eax
je 0x100626ce
push eax
call fcn.100ffe9d
add esp, 4
mov dword [ebp - 8], 0
mov byte [esi], 0x5c
test bl, bl
jne 0x100626dc
dec esi
cmp esi, edi
ja 0x10062663
jmp 0x100626dd
inc esi
mov al, byte [esi]
test al, al
je 0x10062702
cmp al, 0x5c
jne 0x100626fa
push ecx
mov eax, esp
mov byte [esi], 0
mov dword [eax], edi
call fcn.10061970
add esp, 4
mov byte [esi], 0x5c
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x100626e3
push ecx
mov eax, esp
mov dword [eax], edi
call fcn.10061970
add esp, 4
test al, al
jne 0x10062717
xor bl, bl
jmp 0x10062719
mov bl, 1
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10062729
push eax
call fcn.100ffe9d
add esp, 4
test edi, edi
je 0x10062736
push edi
call fcn.100ffe9d
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10062740
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
lea eax, [ebp - 0x410]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x100627c6
lea eax, [ebp - 0x208]
push eax
push 0
push 0
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x100627c6
push esi
push edi
push 4
push 0
lea eax, [ebp - 0x208]
push 0
push eax
call fcn.1006f840
mov esi, eax
push esi
call fcn.100ffe94
push 0
mov edi, eax
lea eax, [ebp - 0x208]
push esi
push edi
push eax
call fcn.1006f840
mov ecx, dword [ebp + 8]
add esp, 0x24
push edi
call fcn.1006be00
push edi
call fcn.100ffe9d
add esp, 4
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x10062820
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.10062e80
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
mov eax, dword [ebp + 0x1c]
shl ecx, 0x1f
mov edx, ecx
or edx, 0x40000000
mov dword [eax], 0xffffffff
mov eax, ebx
and al, 2
mov eax, 0xc0000000
cmove edx, ecx
cmp ebx, 4
cmove edx, eax
mov eax, edx
or eax, 4
and bl, 8
cmove eax, edx
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x10]
cmp eax, 7
ja case.default.0x100628ba
jmp dword [eax*4 + 0x100629cc]
xor edi, edi
jmp 0x100628ae
mov edi, 1
jmp 0x100628ae
mov edi, 2
jmp 0x100628ae
mov edi, 3
jmp 0x100628ae
mov edi, 7
mov eax, dword [ebp + 0x14]
cmp eax, 3
ja case.default.0x100628ba
jmp dword [eax*4 + 0x100629ec]
mov ebx, 3
jmp 0x100628db
mov ebx, 4
jmp 0x100628db
mov ebx, 1
jmp 0x100628db
mov ebx, 2
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x18]
and ecx, 1
shl ecx, 0x1e
sub ecx, 0xffffff80
mov edx, ecx
or edx, 0x20000000
and al, 2
cmove edx, ecx
mov ecx, dword [ebp + 0x18]
mov esi, edx
mov eax, ecx
or esi, 0x8000000
and al, 8
cmove esi, edx
test cl, 0x10
je 0x1006291a
and esi, 0xffffff7f
or esi, 0x100
mov eax, ecx
mov ecx, esi
or ecx, 0x4000000
and al, 0x20
push 0
cmove ecx, esi
push ecx
push ebx
push 0
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
call fcn.10062cb0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, dword [ebp + 0x1c]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x10062956
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x100629a0
mov ebx, dword [ebp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileTime]
test bl, 4
je 0x1006297d
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 0x10062997
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 0x100629a0
mov esi, 0x57
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x100629b0
push eax
call fcn.100ffe9d
add esp, 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x100629c0
push eax
call fcn.100ffe9d
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10062ac0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
test eax, eax
push ebx
lea ebx, [ebp - 4]
cmovne ebx, eax
push esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], ebx
xor ebx, ebx
test edi, edi
je 0x10062b30
xor esi, esi
lea eax, [ebp + 0x14]
push esi
push eax
mov ecx, 0x40000000
mov dword [ebp + 0x14], esi
cmp edi, ecx
mov eax, edi
cmova eax, ecx
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
je 0x10062b1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x10062b23
mov ecx, dword [ebp - 4]
pop edi
mov dword [ecx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x10062b27
test ebx, ebx
jne 0x10062b30
add dword [ebp + 0xc], esi
add ebx, esi
sub edi, esi
jmp 0x10062adc
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
mov dword [ecx], ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10063830
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.10062e80
lea ecx, [ebp - 0xc]
call fcn.10062cb0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10063881
test al, 3
je 0x1006387d
and eax, 0xfffffffc
lea ecx, [ebp - 0xc]
push eax
call fcn.10062cb0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov bl, 1
jmp 0x10063883
xor bl, bl
mov eax, dword [ebp - 4]
test eax, eax
je 0x10063893
push eax
call fcn.100ffe9d
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x100638a3
push eax
call fcn.100ffe9d
add esp, 4
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10063d00
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 0x10063d64
mov edi, dword [esi + 0x20]
lea ecx, [ebp - 4]
push ebx
xor ebx, ebx
push ebx
push ecx
push edi
push dword [esi + 0x10]
mov dword [ebp - 4], ebx
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
je 0x10063d3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x10063d40
jmp 0x10063d44
mov ebx, dword [ebp - 4]
cmp edi, ebx
je 0x10063d51
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 0x10063e2f
cmp byte [eax], 0
je 0x10063e2f
call sub.KERNEL32.dll_GetCurrentProcessId
mov ecx, dword [esi + 8]
mov edi, 0x102a7940
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.1006b480
add esp, 0x10
cmp byte [ebp - 5], 0
jge 0x10063db0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x10063db3
mov eax, edi
jmp 0x10063db3
lea eax, [ebp - 0x14]
push 1
push eax
lea eax, [esi + 0xc]
push eax
call fcn.10063e60
add esp, 0xc
test al, al
je 0x10063e12
mov eax, dword [esi + 8]
test eax, eax
cmovne edi, eax
cmp byte [ebp - 5], 0
jge 0x10063de2
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x10063de5
mov eax, 0x102a7940
jmp 0x10063de5
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.100624e0
add esp, 8
test al, al
jne 0x10063e12
cmp byte [ebp - 5], al
jge 0x10063e06
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x10063e09
mov eax, 0x102a7940
jmp 0x10063e09
lea eax, [ebp - 0x14]
push eax
call fcn.10064420
add esp, 4
cmp byte [ebp - 5], 0
jge 0x10063e4b
call fcn.10077ed0
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 0x1542
push str.c:_buildslave_steam_rel_client_win32_build_src_tier1_fileio.cpp
call fcn.10078380
add esp, 0xc
test al, al
jne 0x10063e4b
int3
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10063e60
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.10062e80
push dword [ebp - 0x10]
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
call fcn.1006be00
push dword [ebp - 4]
call fcn.1006e0b0
mov eax, dword [ebp - 4]
mov ecx, esp
mov dword [ecx], eax
call fcn.10062610
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.10062cb0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10063f14
call ebx
cmp eax, 0x20
jne 0x10063f10
push 0xa
call fcn.1007a810
inc esi
add esp, 4
cmp esi, 0xa
jl 0x10063eb5
push str.INVALID_HANDLE_VALUE:_ERROR_SHARING_VIOLATION
push 0x889
push str.c:_buildslave_steam_rel_client_win32_build_src_tier1_fileio.cpp
call fcn.10078380
add esp, 0xc
test al, al
jne 0x10063f10
int3
xor bl, bl
jmp 0x10063f4e
mov esi, dword [ebp + 8]
lea eax, [ebp - 8]
push 0
push eax
mov dword [ebp - 8], 0
push dword [esi + 0x14]
push dword [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test byte [ebp + 0x10], 1
je 0x10063f3e
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x14]
cmp eax, dword [ebp - 8]
sete bl
call fcn.10077ed0
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 0x10063f6f
push eax
call fcn.100ffe9d
add esp, 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10063f7f
push eax
call fcn.100ffe9d
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10064420
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.10062e80
lea ecx, [ebp - 0xc]
call fcn.10062cb0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
mov eax, dword [ebp - 4]
setne bl
test eax, eax
je 0x10064466
push eax
call fcn.100ffe9d
add esp, 4
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x10064476
push ecx
call fcn.100ffe9d
add esp, 4
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10064860
Capabilities:
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
movzx ebx, byte [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
dec ebx
push edi
mov edi, dword [ebp + 0xc]
or ebx, 0xdfdfdfdf
shr edi, 2
lea edx, [eax + edi*4]
mov dword [ebp + 0x10], edx
test edi, edi
je 0x100648f4
mov ecx, edx
lea eax, [edi*4]
and ecx, 3
sub edx, eax
mov dword [ebp + 0x14], ecx
add edx, 2
jmp 0x100648a0
test ecx, ecx
jne 0x100648a9
mov eax, dword [edx - 2]
jmp 0x100648ca
movzx eax, byte [edx + 1]
movzx ecx, byte [edx]
shl eax, 8
or eax, ecx
movzx ecx, byte [edx - 1]
shl eax, 8
or eax, ecx
movzx ecx, byte [edx - 2]
shl eax, 8
or eax, ecx
mov ecx, dword [ebp + 0x14]
and eax, ebx
add edx, 4
imul eax, eax, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor esi, eax
rol esi, 0xd
add esi, 0xfaddaf14
lea esi, [esi + esi*4]
sub edi, 1
jne 0x100648a0
mov edx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
xor ecx, ecx
mov eax, edi
and eax, 3
sub eax, 1
je 0x1006491d
sub eax, 1
je 0x10064914
sub eax, 1
jne 0x10064935
movzx ecx, byte [edx + 2]
shl ecx, 0x10
movzx eax, byte [edx + 1]
shl eax, 8
xor ecx, eax
movzx eax, byte [edx]
xor eax, ecx
and eax, ebx
imul eax, eax, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor esi, eax
xor esi, edi
mov eax, esi
shr eax, 0x10
xor eax, esi
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
pop ebp
ret