joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46c8f0
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 [0x5b7f50]
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 0x46c927
movaps xmm2, xmmword [0x5b7f40]
jmp 0x46c96a
xor edi, edi
mov ecx, 0x5b358fd3
test esi, esi
je 0x46c94f
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 0x46c932
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 0x46c9e9
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 0x46c975
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 + 0x5b6b38]
movzx ecx, al
shr eax, 8
mov edx, eax
shr edx, 8
xor esi, dword [ecx*4 + 0x5b6738]
movzx ecx, al
mov eax, dword [edx*4 + 0x5b5f38]
xor eax, dword [ecx*4 + 0x5b6338]
xor eax, esi
cmp edi, 0x10
jl 0x46ca00
mov ecx, dword [ebp + 8]
pop edi
pop esi
mov dword [ecx], eax
mov esp, ebp
pop ebp
ret
Function at 0x46ca50
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 0x46cb10
test bl, 3
je 0x46ca88
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 0x46ca73
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 0x46cb0d
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 0x46caa0
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
test esi, esi
jle 0x46cb2d
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 0x46cb14
mov ecx, dword [ebp + 8]
pop edi
pop esi
mov dword [ecx], eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x470700
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
xor edx, edx
mov eax, dword [edi + 0x68]
test eax, eax
mov dword [edi], vtable.CFileWriterThread.0
cmovg edx, eax
test edx, edx
je 0x470734
push str.m_queueItemsPending.Count____0
push 0x14ba
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier1_fileio.cpp
call fcn.00476d20
add esp, 0xc
test al, al
jne 0x470734
int3
cmp dword [edi + 0x90], 0
je 0x470759
push str.m_vecRegisteredWriters.Count____0
push 0x14bb
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier1_fileio.cpp
call fcn.00476d20
add esp, 0xc
test al, al
jne 0x470759
int3
cmp byte [edi + 0x94], 0
jne 0x47077f
push 1
mov ecx, edi
call fcn.00472b10
mov ecx, edi
call fcn.00480e00
test al, al
je 0x47077f
push 0
mov ecx, edi
call fcn.004811c0
lea ecx, [edi + 0x80]
mov dword [edi + 0x90], 0
call fcn.0046a620
lea ecx, [edi + 0x80]
call fcn.0046a620
lea ecx, [edi + 0x70]
call fcn.00480d20
lea ecx, [edi + 0x50]
call fcn.00470550
lea ecx, [edi + 0x38]
call fcn.00480ce0
mov ecx, edi
pop edi
pop esi
jmp fcn.00480a70
Function at 0x470960
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push ecx
mov eax, esp
lea ecx, [ebp - 0x18]
mov dword [eax], 0
push dword [ebp + 8]
call fcn.00470340
push ecx
mov eax, esp
lea ecx, [ebp - 0xc]
mov dword [eax], 0
push dword [ebp + 0xc]
call fcn.00470340
lea ecx, [ebp - 0xc]
call fcn.00471a00
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.00471a00
movzx ecx, byte [ebp + 0x10]
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
mov eax, dword [ebp - 4]
setne bl
test eax, eax
je 0x4709c4
push eax
call fcn.0056b524
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x4709d4
push eax
call fcn.0056b524
add esp, 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4709e4
push eax
call fcn.0056b524
add esp, 4
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4709f4
push ecx
call fcn.0056b524
add esp, 4
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x470a00
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push ecx
mov eax, esp
lea ecx, [ebp - 0xc]
mov dword [eax], 0
push dword [ebp + 8]
call fcn.00470340
push 0
lea ecx, [ebp - 0xc]
call fcn.00471a00
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x470a41
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x470a41
xor bl, bl
jmp 0x470a43
mov bl, 1
mov eax, dword [ebp - 4]
test eax, eax
je 0x470a53
push eax
call fcn.0056b524
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x470a63
push eax
call fcn.0056b524
add esp, 4
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x470a70
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ecx
mov eax, esp
lea ecx, [ebp - 0xc]
mov dword [eax], 0
push dword [ebp + 8]
call fcn.00470340
lea ecx, [ebp - 0xc]
call fcn.00471a00
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
mov eax, dword [ebp - 4]
je 0x470ac3
test eax, eax
je 0x470aad
push eax
call fcn.0056b524
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x470abd
push eax
call fcn.0056b524
add esp, 4
mov al, 1
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x470ad0
push eax
call fcn.0056b524
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x470ae0
push eax
call fcn.0056b524
add esp, 4
push dword [ebp + 8]
call fcn.00470b10
add esp, 4
test al, al
je 0x470abd
push dword [ebp + 8]
call fcn.00472360
push dword [ebp + 8]
call fcn.00472d30
add esp, 8
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push ecx
mov eax, esp
lea ecx, [ebp - 0xc]
mov dword [eax], 0
push dword [ebp + 8]
call fcn.00470340
lea ecx, [ebp - 0xc]
call fcn.00471a00
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov eax, dword [ebp - 4]
setne bl
test eax, eax
je 0x470b50
push eax
call fcn.0056b524
add esp, 4
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x470b60
push ecx
call fcn.0056b524
add esp, 4
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x470b70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push ecx
mov eax, esp
lea ecx, [ebp - 0xc]
mov dword [eax], 0
push dword [ebp + 8]
call fcn.00470340
lea ecx, [ebp - 0xc]
call fcn.00471a00
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x470ba7
test al, 0x10
je 0x470ba7
mov bl, 1
jmp 0x470ba9
xor bl, bl
mov eax, dword [ebp - 4]
test eax, eax
je 0x470bb9
push eax
call fcn.0056b524
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x470bc9
push eax
call fcn.0056b524
add esp, 4
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4710d0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push dword [ebp + 8]
call fcn.00472360
mov eax, esp
lea ecx, [ebp - 0xc]
mov dword [eax], 0
push dword [ebp + 8]
call fcn.00470340
lea ecx, [ebp - 0xc]
call fcn.00471a00
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
mov eax, dword [ebp - 4]
setne bl
test eax, eax
je 0x471116
push eax
call fcn.0056b524
add esp, 4
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x471126
push ecx
call fcn.0056b524
add esp, 4
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x471130
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
push ebx
push esi
push edi
push ecx
mov eax, esp
lea ecx, [ebp - 0x434]
mov dword [eax], 0x5b35d8
push dword [ebp + 8]
call fcn.00470170
lea ecx, [ebp - 0x434]
call fcn.00470bd0
test al, al
je 0x471258
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea esp, [esp]
push dword [ebp + 8]
push ecx
mov eax, esp
lea ecx, [ebp - 0x428]
mov dword [eax], ecx
lea ecx, [ebp - 0x18]
call fcn.00470340
mov eax, dword [ebp - 0x42c]
mov esi, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, ecx
shr eax, 4
test al, 1
je 0x471206
shr ecx, 0xa
test cl, 1
je 0x4711fa
push esi
call fcn.00472360
mov eax, esp
lea ecx, [ebp - 0xc]
push esi
mov dword [eax], 0
call fcn.00470340
lea ecx, [ebp - 0xc]
call fcn.00471a00
push eax
call edi
test eax, eax
mov dword [ebp - 0xc], vtable.CPathString.0
mov eax, dword [ebp - 4]
test eax, eax
je 0x4711e4
push eax
call fcn.0056b524
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
test eax, eax
je 0x471213
push eax
call fcn.0056b524
mov dword [ebp - 8], 0
jmp 0x471210
push ecx
mov eax, esp
mov dword [eax], esi
call fcn.00471130
jmp 0x471210
push ecx
mov eax, esp
mov dword [eax], esi
call fcn.00470a70
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], vtable.CPathString.0
test eax, eax
je 0x471231
push eax
call fcn.0056b524
add esp, 4
mov dword [ebp - 0x10], 0
test esi, esi
je 0x471245
push esi
call fcn.0056b524
add esp, 4
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x434]
call fcn.00470bd0
test al, al
jne 0x471170
push dword [ebp + 8]
call fcn.004710d0
mov ecx, dword [ebp - 0x430]
add esp, 4
mov bl, al
cmp ecx, 0xffffffff
je 0x471277
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x250
push dword [ebp - 0x42c]
call fcn.0056b485
add esp, 8
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4712a0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push ecx
mov eax, esp
lea ecx, [ebp - 0x18]
mov dword [eax], 0
push dword [ebp + 8]
call fcn.00470340
push ecx
mov eax, esp
lea ecx, [ebp - 0xc]
mov dword [eax], 0
push dword [ebp + 0xc]
call fcn.00470340
lea ecx, [ebp - 0xc]
call fcn.00471a00
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.00471a00
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 0x471301
push eax
call fcn.0056b524
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x471311
push eax
call fcn.0056b524
add esp, 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x471321
push eax
call fcn.0056b524
add esp, 4
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x471331
push ecx
call fcn.0056b524
add esp, 4
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4713c0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push ecx
mov eax, esp
lea ecx, [ebp - 0x18]
mov dword [eax], 0
push dword [ebp + 8]
call fcn.00470340
mov edi, dword [ebp - 0x14]
push ecx
mov eax, esp
lea ecx, [ebp - 0xc]
push edi
mov dword [eax], 0
call fcn.00470340
lea ecx, [ebp - 0xc]
call fcn.00471a00
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov eax, dword [ebp - 4]
setne bl
test eax, eax
je 0x471417
push eax
call fcn.0056b524
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x471427
push eax
call fcn.0056b524
add esp, 4
test bl, bl
jne 0x47154a
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x471434
sub ecx, edx
lea esi, [edi - 1]
add esi, ecx
cmp esi, edi
jbe 0x4714b9
cmp byte [esi], 0x5c
jne 0x4714b1
push ecx
mov eax, esp
mov byte [esi], 0
push edi
lea ecx, [ebp - 0xc]
mov dword [eax], 0
call fcn.00470340
lea ecx, [ebp - 0xc]
call fcn.00471a00
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 0x471493
push eax
call fcn.0056b524
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
test eax, eax
je 0x4714aa
push eax
call fcn.0056b524
add esp, 4
mov dword [ebp - 8], 0
mov byte [esi], 0x5c
test bl, bl
jne 0x4714b8
dec esi
cmp esi, edi
ja 0x471446
jmp 0x4714b9
inc esi
mov al, byte [esi]
test al, al
je 0x471535
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp al, 0x5c
jne 0x47152d
push ecx
mov eax, esp
mov byte [esi], 0
push edi
lea ecx, [ebp - 0xc]
mov dword [eax], 0
call fcn.00470340
push 0
lea ecx, [ebp - 0xc]
call fcn.00471a00
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4714f5
call ebx
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], vtable.CPathString.0
test eax, eax
je 0x471513
push eax
call fcn.0056b524
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
test eax, eax
je 0x47152a
push eax
call fcn.0056b524
add esp, 4
mov dword [ebp - 8], 0
mov byte [esi], 0x5c
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4714c5
push ecx
mov eax, esp
mov dword [eax], edi
call fcn.00470a00
add esp, 4
test al, al
jne 0x47154a
xor bl, bl
jmp 0x47154c
mov bl, 1
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x47155c
push eax
call fcn.0056b524
add esp, 4
test edi, edi
je 0x471569
push edi
call fcn.0056b524
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4715a0
Capabilities:
Inspect section memory permissions
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push ecx
mov eax, esp
lea ecx, [ebp - 0x14]
mov dword [eax], 0
push dword [ebp + 8]
call fcn.00470340
mov eax, dword [ebp + 0x1c]
mov ecx, ebx
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.0x471633
jmp dword [eax*4 + 0x471744]
xor edi, edi
jmp 0x471627
mov edi, 1
jmp 0x471627
mov edi, 2
jmp 0x471627
mov edi, 3
jmp 0x471627
mov edi, 7
mov eax, dword [ebp + 0x14]
cmp eax, 3
ja case.default.0x471633
jmp dword [eax*4 + 0x471764]
mov ebx, 3
jmp 0x471654
mov ebx, 4
jmp 0x471654
mov ebx, 1
jmp 0x471654
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 0x471693
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.00471a00
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, dword [ebp + 0x1c]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x4716cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x471719
mov ebx, dword [ebp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileTime]
test bl, 4
je 0x4716f6
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 0x471710
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 0x471719
mov esi, 0x57
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x471729
push eax
call fcn.0056b524
add esp, 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x471739
push eax
call fcn.0056b524
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4717e0
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 0x4717f3
mov dword [esi], 0
mov esi, dword [ebp + 0x10]
xor edi, edi
test esi, esi
je 0x471852
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
je 0x471838
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x471852
add ebx, eax
add edi, eax
sub esi, eax
je 0x471852
jmp 0x4717ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe8
jne 0x47184e
test edi, edi
jne 0x471852
pop edi
pop esi
pop ebx
pop ebp
ret
test eax, eax
jne 0x471873
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x47186f
test esi, esi
je 0x471871
push 0x26
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
mov eax, 0x26
pop ebx
pop ebp
ret
mov dword [eax], edi
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x471880
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 0x4718f0
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 0x4718dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4718e3
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 0x4718e7
test ebx, ebx
jne 0x4718f0
add dword [ebp + 0xc], esi
add ebx, esi
sub edi, esi
jmp 0x47189c
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 0x472360
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push ecx
mov eax, esp
lea ecx, [ebp - 0xc]
mov dword [eax], 0
push dword [ebp + 8]
call fcn.00470340
lea ecx, [ebp - 0xc]
call fcn.00471a00
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4723aa
test al, 3
je 0x4723a6
and eax, 0xfffffffc
lea ecx, [ebp - 0xc]
push eax
call fcn.00471a00
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov bl, 1
jmp 0x4723ac
xor bl, bl
mov eax, dword [ebp - 4]
test eax, eax
je 0x4723bc
push eax
call fcn.0056b524
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x4723cc
push eax
call fcn.0056b524
add esp, 4
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x472830
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 0x472894
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 0x47286d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x472870
jmp 0x472874
mov ebx, dword [ebp - 4]
cmp edi, ebx
je 0x472881
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 0x47295f
cmp byte [eax], 0
je 0x47295f
call sub.KERNEL32.dll_GetCurrentProcessId
mov ecx, dword [esi + 8]
mov edi, 0x594544
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.0046a980
add esp, 0x10
cmp byte [ebp - 5], 0
jge 0x4728e0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x4728e3
mov eax, edi
jmp 0x4728e3
lea eax, [ebp - 0x14]
push 1
push eax
lea eax, [esi + 0xc]
push eax
call fcn.00472990
add esp, 0xc
test al, al
je 0x472942
mov eax, dword [esi + 8]
test eax, eax
cmovne edi, eax
cmp byte [ebp - 5], 0
jge 0x472912
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x472915
mov eax, 0x594544
jmp 0x472915
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.004712a0
add esp, 8
test al, al
jne 0x472942
cmp byte [ebp - 5], al
jge 0x472936
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x472939
mov eax, 0x594544
jmp 0x472939
lea eax, [ebp - 0x14]
push eax
call fcn.00472d30
add esp, 4
cmp byte [ebp - 5], 0
jge 0x47297b
call fcn.0047f4e0
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 0x143d
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier1_fileio.cpp
call fcn.00476d20
add esp, 0xc
test al, al
jne 0x47297b
int3
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x472990
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push ecx
mov eax, esp
lea ecx, [ebp - 0x14]
mov dword [eax], 0
push dword [ebp + 0xc]
call fcn.00470340
push dword [ebp - 0x10]
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
call fcn.0046b2a0
push dword [ebp - 4]
call fcn.00469a70
mov eax, dword [ebp - 4]
mov ecx, esp
mov dword [ecx], eax
call fcn.004713c0
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 4
xor esi, esi
mov edi, edi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x14]
call fcn.00471a00
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x472a3f
call ebx
cmp eax, 0x20
jne 0x472a3b
push 0xa
call fcn.00481750
inc esi
add esp, 4
cmp esi, 0xa
jl 0x4729e0
push str.INVALID_HANDLE_VALUE:_ERROR_SHARING_VIOLATION
push 0x81e
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier1_fileio.cpp
call fcn.00476d20
add esp, 0xc
test al, al
jne 0x472a3b
int3
xor bl, bl
jmp 0x472a79
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 0x472a69
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.0047f4e0
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 0x472a9a
push eax
call fcn.0056b524
add esp, 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x472aaa
push eax
call fcn.0056b524
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x472d30
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push ecx
mov eax, esp
lea ecx, [ebp - 0xc]
mov dword [eax], 0
push dword [ebp + 8]
call fcn.00470340
lea ecx, [ebp - 0xc]
call fcn.00471a00
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
mov eax, dword [ebp - 4]
setne bl
test eax, eax
je 0x472d6f
push eax
call fcn.0056b524
add esp, 4
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x472d7f
push ecx
call fcn.0056b524
add esp, 4
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret