joyce8/EMBER2024-capa huggingface dataset:
Function at 0x467790
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ebp + 8]
mov edi, 5
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4677c7
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x467841
cmp esi, dword [ebp + 0xc]
ja 0x467841
call fcn.0047f350
mov ecx, eax
push esi
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, eax
mov dword [ebp - 4], ecx
test ecx, ecx
je 0x467841
xor edi, edi
test esi, esi
je 0x467832
lea esp, [esp]
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
mov eax, 0x100000
cmp esi, eax
cmovb eax, esi
push eax
lea eax, [edi + ecx]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x467851
add edi, dword [ebp - 8]
mov ecx, dword [ebp - 4]
sub esi, dword [ebp - 8]
jne 0x467800
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp - 4]
mov dword [ecx], esi
mov ecx, dword [ebp + 0x14]
mov dword [ecx], edi
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0047f350
mov esi, dword [ebp - 4]
mov ecx, eax
push 0
push esi
mov edx, dword [eax]
call dword [edx + 0x1c]
mov eax, dword [ebp + 0x10]
pop esi
pop edi
pop ebx
mov dword [eax], 0
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov eax, 5
mov esp, ebp
pop ebp
ret

Function at 0x46c340
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x62df90], 0
push esi
mov esi, dword [ebp + 0x10]
push edi
je 0x46c37c
cmp esi, 0xc0
jl 0x46c37c
mov edi, dword [ebp + 0xc]
mov eax, esi
shr eax, 6
dec eax
push eax
push edi
push dword [ebp + 8]
call fcn.0046c3a0
mov eax, esi
add esp, 0xc
and eax, 0x3f
sub esi, eax
add edi, esi
mov esi, eax
jmp 0x46c37f
mov edi, dword [ebp + 0xc]
push 0x5b4248
push esi
push edi
push dword [ebp + 8]
call fcn.0046c500
add esp, 0x10
pop edi
pop esi
pop ebp
ret
Function at 0x46c3a0
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 [0x5b6260]
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 0x46c3d7
movaps xmm2, xmmword [0x5b6250]
jmp 0x46c41a
xor edi, edi
mov ecx, 0x5b358fd3
test esi, esi
je 0x46c3ff
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 0x46c3e2
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 0x46c499
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 0x46c425
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 + 0x5b4e48]
movzx ecx, al
shr eax, 8
mov edx, eax
shr edx, 8
xor esi, dword [ecx*4 + 0x5b4a48]
movzx ecx, al
mov eax, dword [edx*4 + 0x5b4248]
xor eax, dword [ecx*4 + 0x5b4648]
xor eax, esi
cmp edi, 0x10
jl 0x46c4b0
mov ecx, dword [ebp + 8]
pop edi
pop esi
mov dword [ecx], eax
mov esp, ebp
pop ebp
ret
Function at 0x46c500
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 0x46c5c0
test bl, 3
je 0x46c538
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 0x46c523
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 0x46c5bd
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 0x46c550
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
test esi, esi
jle 0x46c5dd
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 0x46c5c4
mov ecx, dword [ebp + 8]
pop edi
pop esi
mov dword [ecx], eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46ffc0
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 0x46ffee
push 1
call fcn.00472530
mov ecx, edi
call fcn.00480c90
test al, al
je 0x46ffee
push 0
mov ecx, edi
call fcn.00481160
lea ecx, [edi + 0x80]
mov dword [edi + 0x90], 0
call fcn.0046a080
lea ecx, [edi + 0x80]
call fcn.0046a080
lea ecx, [edi + 0x70]
call fcn.00480b90
lea ecx, [edi + 0x50]
call fcn.0046fe10
lea ecx, [edi + 0x38]
call fcn.00480b50
mov ecx, edi
pop edi
pop esi
jmp fcn.004808e0

Function at 0x4701d0
Capabilities:
Copy 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.004713c0
push 0
push dword [ebp + 0xc]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], vtable.CPathString.0
mov dword [ebp - 4], 0
call fcn.004713c0
lea ecx, [ebp - 0xc]
call fcn.004711f0
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.004711f0
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 0x470242
push eax
call fcn.0056acf4
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x470252
push eax
call fcn.0056acf4
add esp, 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x470262
push eax
call fcn.0056acf4
add esp, 4
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x470272
push ecx
call fcn.0056acf4
add esp, 4
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x470280
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.004713c0
push 0
lea ecx, [ebp - 0xc]
call fcn.004711f0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4702c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4702c8
xor bl, bl
jmp 0x4702ca
mov bl, 1
mov eax, dword [ebp - 4]
test eax, eax
je 0x4702da
push eax
call fcn.0056acf4
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x4702ea
push eax
call fcn.0056acf4
add esp, 4
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x470340
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.004713c0
lea ecx, [ebp - 0xc]
call fcn.004711f0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov eax, dword [ebp - 4]
setne bl
test eax, eax
je 0x470387
push eax
call fcn.0056acf4
add esp, 4
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x470397
push ecx
call fcn.0056acf4
add esp, 4
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4703a0
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.004713c0
lea ecx, [ebp - 0xc]
call fcn.004711f0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4703de
test al, 0x10
je 0x4703de
mov bl, 1
jmp 0x4703e0
xor bl, bl
mov eax, dword [ebp - 4]
test eax, eax
je 0x4703f0
push eax
call fcn.0056acf4
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x470400
push eax
call fcn.0056acf4
add esp, 4
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x470900
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push dword [ebp + 8]
call fcn.00471d80
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.004713c0
lea ecx, [ebp - 0xc]
call fcn.004711f0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
mov eax, dword [ebp - 4]
setne bl
test eax, eax
je 0x470951
push eax
call fcn.0056acf4
add esp, 4
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x470961
push ecx
call fcn.0056acf4
add esp, 4
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x470970
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], 0x5b18e4
push dword [ebp + 8]
call fcn.0046fc10
lea ecx, [ebp - 0x434]
call fcn.00470410
test al, al
je 0x470ad3
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea esp, [esp]
push dword [ebp + 8]
lea eax, [ebp - 0x428]
mov dword [ebp - 0x18], vtable.CPathString.0
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], 0
call fcn.004713c0
mov eax, dword [ebp - 0x42c]
mov esi, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, ecx
shr eax, 4
test al, 1
je 0x470a65
shr ecx, 0xa
test cl, 1
je 0x470a56
push esi
call fcn.00471d80
add esp, 4
mov dword [ebp - 0xc], vtable.CPathString.0
lea ecx, [ebp - 0xc]
mov dword [ebp - 4], 0
push 0
push esi
call fcn.004713c0
lea ecx, [ebp - 0xc]
call fcn.004711f0
push eax
call edi
test eax, eax
mov dword [ebp - 0xc], vtable.CPathString.0
mov eax, dword [ebp - 4]
test eax, eax
je 0x470a3d
push eax
call fcn.0056acf4
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
test eax, eax
je 0x470a8e
push eax
call fcn.0056acf4
add esp, 4
mov dword [ebp - 8], 0
jmp 0x470a8e
push ecx
mov eax, esp
mov dword [eax], esi
call fcn.00470970
add esp, 4
jmp 0x470a8e
push esi
call fcn.00472750
add esp, 4
test al, al
jne 0x470a8e
push esi
call fcn.00470340
add esp, 4
test al, al
je 0x470a8e
push esi
call fcn.00471d80
push esi
call fcn.00472750
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], vtable.CPathString.0
test eax, eax
je 0x470aac
push eax
call fcn.0056acf4
add esp, 4
mov dword [ebp - 0x10], 0
test esi, esi
je 0x470ac0
push esi
call fcn.0056acf4
add esp, 4
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x434]
call fcn.00470410
test al, al
jne 0x4709b0
push dword [ebp + 8]
call fcn.00470900
mov ecx, dword [ebp - 0x430]
add esp, 4
mov bl, al
cmp ecx, 0xffffffff
je 0x470af2
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x250
push dword [ebp - 0x42c]
call fcn.0056ac55
add esp, 8
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x470b10
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.004713c0
push 0
push dword [ebp + 0xc]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], vtable.CPathString.0
mov dword [ebp - 4], 0
call fcn.004713c0
lea ecx, [ebp - 0xc]
call fcn.004711f0
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.004711f0
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 0x470b7f
push eax
call fcn.0056acf4
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x470b8f
push eax
call fcn.0056acf4
add esp, 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x470b9f
push eax
call fcn.0056acf4
add esp, 4
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x470baf
push ecx
call fcn.0056acf4
add esp, 4
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x470c40
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.004713c0
mov edi, dword [ebp - 0x14]
push ecx
mov eax, esp
mov dword [eax], edi
call fcn.00470340
add esp, 4
test al, al
jne 0x470d47
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x470c81
sub ecx, edx
lea esi, [edi - 1]
add esi, ecx
cmp esi, edi
jbe 0x470d0d
cmp byte [esi], 0x5c
jne 0x470d05
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.004713c0
lea ecx, [ebp - 0xc]
call fcn.004711f0
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 0x470ce7
push eax
call fcn.0056acf4
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
test eax, eax
je 0x470cfe
push eax
call fcn.0056acf4
add esp, 4
mov dword [ebp - 8], 0
mov byte [esi], 0x5c
test bl, bl
jne 0x470d0c
dec esi
cmp esi, edi
ja 0x470c93
jmp 0x470d0d
inc esi
mov al, byte [esi]
test al, al
je 0x470d32
cmp al, 0x5c
jne 0x470d2a
push ecx
mov eax, esp
mov byte [esi], 0
mov dword [eax], edi
call fcn.00470280
add esp, 4
mov byte [esi], 0x5c
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x470d13
push ecx
mov eax, esp
mov dword [eax], edi
call fcn.00470280
add esp, 4
test al, al
jne 0x470d47
xor bl, bl
jmp 0x470d49
mov bl, 1
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x470d59
push eax
call fcn.0056acf4
add esp, 4
test edi, edi
je 0x470d66
push edi
call fcn.0056acf4
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x470d90
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.004713c0
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.0x470e29
jmp dword [eax*4 + 0x470f3c]
xor edi, edi
jmp 0x470e1d
mov edi, 1
jmp 0x470e1d
mov edi, 2
jmp 0x470e1d
mov edi, 3
jmp 0x470e1d
mov edi, 7
mov eax, dword [ebp + 0x14]
cmp eax, 3
ja case.default.0x470e29
jmp dword [eax*4 + 0x470f5c]
mov dword [ebp + 0xc], 3
jmp 0x470e52
mov dword [ebp + 0xc], 4
jmp 0x470e52
mov dword [ebp + 0xc], 1
jmp 0x470e52
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 0x470e8d
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.004711f0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, dword [ebp + 0x1c]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x470eca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x470f11
mov esi, dword [sym.imp.KERNEL32.dll_SetFileTime]
test bl, 4
je 0x470eee
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 0x470f08
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 0x470f11
mov esi, 0x57
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x470f21
push eax
call fcn.0056acf4
add esp, 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x470f31
push eax
call fcn.0056acf4
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x470fd0
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 0x470fe3
mov dword [esi], 0
mov esi, dword [ebp + 0x10]
xor edi, edi
test esi, esi
je 0x471042
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 0x471028
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x471042
add ebx, eax
add edi, eax
sub esi, eax
je 0x471042
jmp 0x470fef
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe8
jne 0x47103e
test edi, edi
jne 0x471042
pop edi
pop esi
pop ebx
pop ebp
ret
test eax, eax
jne 0x471063
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x47105f
test esi, esi
je 0x471061
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 0x471070
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 0x4710e0
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 0x4710cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4710d3
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 0x4710d7
test ebx, ebx
jne 0x4710e0
add dword [ebp + 0xc], esi
add ebx, esi
sub edi, esi
jmp 0x47108c
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 0x471d80
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.004713c0
lea ecx, [ebp - 0xc]
call fcn.004711f0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x471dd1
test al, 3
je 0x471dcd
and eax, 0xfffffffc
lea ecx, [ebp - 0xc]
push eax
call fcn.004711f0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov bl, 1
jmp 0x471dd3
xor bl, bl
mov eax, dword [ebp - 4]
test eax, eax
je 0x471de3
push eax
call fcn.0056acf4
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x471df3
push eax
call fcn.0056acf4
add esp, 4
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x472250
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 0x4722b4
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 0x47228d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x472290
jmp 0x472294
mov ebx, dword [ebp - 4]
cmp edi, ebx
je 0x4722a1
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 0x47237f
cmp byte [eax], 0
je 0x47237f
call sub.KERNEL32.dll_GetCurrentProcessId
mov ecx, dword [esi + 8]
mov edi, 0x592544
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.0046a380
add esp, 0x10
cmp byte [ebp - 5], 0
jge 0x472300
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x472303
mov eax, edi
jmp 0x472303
lea eax, [ebp - 0x14]
push 1
push eax
lea eax, [esi + 0xc]
push eax
call fcn.004723b0
add esp, 0xc
test al, al
je 0x472362
mov eax, dword [esi + 8]
test eax, eax
cmovne edi, eax
cmp byte [ebp - 5], 0
jge 0x472332
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x472335
mov eax, 0x592544
jmp 0x472335
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.00470b10
add esp, 8
test al, al
jne 0x472362
cmp byte [ebp - 5], al
jge 0x472356
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x472359
mov eax, 0x592544
jmp 0x472359
lea eax, [ebp - 0x14]
push eax
call fcn.00472750
add esp, 4
cmp byte [ebp - 5], 0
jge 0x47239b
call fcn.0047f350
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 0x1587
push str.c:_buildslave_steam_rel_client_win32_build_src_tier1_fileio.cpp
call fcn.004767e0
add esp, 0xc
test al, al
jne 0x47239b
int3
pop edi
pop esi
mov esp, ebp
pop ebp
ret