joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46c350
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x404
test eax, eax
jne 0x46c431
mov word [ebp - 0x404], ax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
lea eax, [ebp - 0x404]
mov dword [ebp + 0xc], 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46c4ad
mov eax, dword [ebp - 4]
push esi
push edi
cmp eax, 1
je 0x46c3b2
cmp eax, 2
jne 0x46c464
mov esi, dword [ebp + 0xc]
and esi, 0xfffffffe
mov dword [ebp + 0xc], esi
cmp esi, 0xbebc200
jae 0x46c4a6
mov eax, esi
xor ecx, ecx
shr eax, 1
mov edx, 2
inc eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0054a91b
add esp, 4
mov edi, eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
lea eax, [ebp - 0x404]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp + 0xc]
xor edx, edx
shr ecx, 1
mov word [edi + ecx*2], dx
mov ecx, dword [ebp - 4]
cmp ecx, 1
je 0x46c418
cmp ecx, 2
jne 0x46c45b
cmp eax, 0xea
jne 0x46c470
push edi
call fcn.0054a924
add esp, 4
lea esi, [esi*2 + 0xfa0]
jmp 0x46c3b8
push 0x200
lea ecx, [ebp - 0x404]
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x46c36b
mov eax, 0x57
mov esp, ebp
pop ebp
ret
push edi
call fcn.0054a924
add esp, 4
pop edi
pop esi
mov eax, 0xd
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0x14]
push 0xa
push esi
push dword [ebp + 0x10]
push edi
call fcn.00546e10
push edi
mov ebx, eax
call fcn.0054a924
add esp, 0x14
test ebx, ebx
jne 0x46c493
cmp word [edi], bx
jne 0x46c464
xor eax, eax
mov ecx, 0xea
cmp ebx, esi
pop edi
pop esi
cmovg eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 0xe
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46c4c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6d4fbd
push eax
mov eax, dword [ebp + 0xc]
mov dword fs:[0], esp
sub esp, 0x410
push ebx
push esi
push edi
test eax, eax
jne 0x46c5fd
mov word [ebp - 0x41c], ax
mov eax, dword [ebp + 0x10]
mov edi, 0x6e0a80
test eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], 0x4000000
mov dword [ebp - 0x1c], 0
cmovne edi, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0x4000000
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 0xd], 4
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0
push 4
push 0
push 0
push edi
mov byte [ebp - 0xf], 1
call fcn.00546fd0
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0054a91b
push 0
mov ebx, eax
push esi
push ebx
push edi
mov dword [ebp - 0x18], ebx
call fcn.00546fd0
mov ecx, ebx
add esp, 0x24
lea edx, [ecx + 2]
jmp 0x46c590
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46c590
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push ebx
push 1
push 0
lea eax, [ebp - 0x41c]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
push ebx
call fcn.0054a924
add esp, 4
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov eax, esi
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0x4000000
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x200
lea ecx, [ebp - 0x41c]
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x46c4f3
mov ecx, dword [ebp - 0xc]
mov eax, 0x57
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x477d80
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
movzx eax, byte [esi]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [esi + 1]
xor ecx, eax
movzx eax, byte [esi + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [esi + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [esi + 4]
imul edx, ecx, 0x1000193
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [esi + 5]
xor ecx, eax
movzx eax, byte [esi + 6]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [esi + 7]
imul ecx, ecx, 0x1000193
pop esi
xor ecx, eax
imul eax, ecx, 0x1000193
xor eax, edx
pop ebp
ret 4
Function at 0x47fae0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x47fb12
push esi
call fcn.004835b0
add esp, 4
cmp byte [esi + 0x40], 0
je 0x47fb0b
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
pop ebp
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
push edi
cmp eax, 0xcb
jne 0x47fb9e
mov eax, dword [esi + 0x1a0]
cmp byte [eax + 0x10], 0
je 0x47fb88
lea ecx, [ecx]
mov eax, dword [esi + 8]
test eax, eax
je 0x47fb3f
mov eax, dword [eax]
push esi
call eax
add esp, 4
mov eax, dword [esi + 0x1a0]
push esi
mov eax, dword [eax]
call eax
add esp, 4
test eax, eax
je 0x47fb82
cmp eax, 2
je 0x47fb88
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x47fb30
cmp eax, 3
je 0x47fb67
cmp eax, 1
jne 0x47fb30
inc dword [ecx + 4]
mov edx, dword [esi + 8]
mov edi, dword [edx + 8]
cmp dword [ecx + 4], edi
jl 0x47fb30
mov eax, dword [esi + 0x120]
add eax, edi
mov dword [edx + 8], eax
jmp 0x47fb30
pop edi
xor al, al
pop esi
pop ebp
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.0047fbd0
add esp, 4
pop edi
pop esi
pop ebp
ret
cmp eax, 0xcc
je 0x47fbc0
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x15
mov ecx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [ecx + 0x18], eax
mov eax, dword [esi]
mov eax, dword [eax]
call eax
add esp, 4
push esi
call fcn.0047fbd0
add esp, 4
pop edi
pop esi
pop ebp
ret

Function at 0x47fbd0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp dword [esi + 0x14], 0xcc
je 0x47fbfe
mov eax, dword [esi + 0x190]
push esi
mov eax, dword [eax]
call eax
add esp, 4
mov dword [esi + 0x78], 0
mov dword [esi + 0x14], 0xcc
mov eax, dword [esi + 0x190]
cmp byte [eax + 8], 0
je 0x47fc82
lea ebx, [esi + 0x78]
lea ecx, [ecx]
mov eax, dword [ebx]
cmp eax, dword [esi + 0x60]
jae 0x47fc56
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x47fc35
mov dword [ecx + 4], eax
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0x60]
push esi
mov dword [ecx + 8], eax
mov eax, dword [esi + 8]
mov eax, dword [eax]
call eax
add esp, 4
mov eax, dword [esi + 0x194]
mov edi, dword [ebx]
push 0
push ebx
mov eax, dword [eax + 4]
push 0
push esi
call eax
mov eax, dword [ebx]
add esp, 0x10
cmp eax, edi
je 0x47fc99
cmp eax, dword [esi + 0x60]
jb 0x47fc17
mov eax, dword [esi + 0x190]
push esi
mov eax, dword [eax + 4]
call eax
mov eax, dword [esi + 0x190]
push esi
mov eax, dword [eax]
call eax
mov dword [ebx], 0
add esp, 8
mov eax, dword [esi + 0x190]
cmp byte [eax + 8], 0
jne 0x47fc10
xor eax, eax
cmp byte [esi + 0x41], al
pop edi
setne al
add eax, 0xcd
mov dword [esi + 0x14], eax
mov al, 1
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret
Function at 0x489bb0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp dword [esi + 0x4c], 1
mov ebx, dword [esi + 0x1b8]
mov dword [ebp - 0x14], ebx
jne 0x489bd6
mov eax, 0x1fe
mov byte [ebx + 0x1c], 1
jmp 0x489bdb
xor eax, eax
mov byte [ebx + 0x1c], al
push dword [esi + 0x64]
mov ecx, dword [esi + 4]
mov dword [ebp - 4], eax
add eax, 0x100
push eax
push 1
mov eax, dword [ecx + 8]
push esi
call eax
mov dword [ebx + 0x18], eax
xor edi, edi
mov eax, dword [ebx + 0x14]
add esp, 0x10
cmp dword [esi + 0x64], edi
jle 0x489cc3
mov ecx, dword [ebx + edi*4 + 0x20]
cdq
idiv ecx
cmp dword [ebp - 4], 0
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
je 0x489c23
mov eax, dword [ebx + 0x18]
add dword [eax + edi*4], 0xff
mov eax, dword [ebx + 0x18]
xor ebx, ebx
mov eax, dword [eax + edi*4]
mov dword [ebp - 8], eax
lea eax, [ecx - 1]
push eax
push ebx
push edi
push esi
call fcn.00489f50
add esp, 0x10
mov edx, eax
xor esi, esi
cmp esi, edx
jle 0x489c5e
mov eax, dword [ebp - 0x10]
inc ebx
dec eax
push eax
push ebx
push edi
push dword [ebp + 8]
call fcn.00489f50
mov edx, eax
add esp, 0x10
cmp esi, edx
jg 0x489c45
mov ecx, dword [ebp - 0xc]
movzx eax, bl
movzx ecx, cl
imul ecx, eax
mov eax, dword [ebp - 8]
mov byte [esi + eax], cl
inc esi
cmp esi, 0xff
jle 0x489c41
cmp dword [ebp - 4], 0
je 0x489cb0
mov ebx, eax
mov ecx, 1
lea edx, [ebx - 1]
lea esp, [esp]
movzx eax, byte [ebx]
lea edx, [edx - 1]
mov byte [edx + 1], al
movzx eax, byte [ebx + 0xff]
mov byte [ebx + ecx + 0xff], al
inc ecx
cmp ecx, 0xff
jle 0x489c90
mov esi, dword [ebp + 8]
inc edi
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x14]
cmp edi, dword [esi + 0x64]
jl 0x489c06
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x49a500
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 0x49a52e
push 1
call fcn.0049d670
mov ecx, edi
call fcn.0053a920
test al, al
je 0x49a52e
push 0
mov ecx, edi
call fcn.0053aea0
lea ecx, [edi + 0x80]
mov dword [edi + 0x90], 0
call fcn.00499910
lea ecx, [edi + 0x80]
call fcn.00499910
lea ecx, [edi + 0x70]
call fcn.0053a730
lea ecx, [edi + 0x50]
call fcn.0049a320
lea ecx, [edi + 0x38]
call fcn.0053a6f0
mov ecx, edi
pop edi
pop esi
jmp fcn.0053a4f0
Function at 0x49a740
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.0049c290
push 0
push dword [ebp + 0xc]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], vtable.CPathString.0
mov dword [ebp - 4], 0
call fcn.0049c290
lea ecx, [ebp - 0xc]
call fcn.0049c0c0
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.0049c0c0
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 0x49a7b2
push eax
call fcn.0054a924
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x49a7c2
push eax
call fcn.0054a924
add esp, 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x49a7d2
push eax
call fcn.0054a924
add esp, 4
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x49a7e2
push ecx
call fcn.0054a924
add esp, 4
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x49a7f0
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.0049c290
push 0
lea ecx, [ebp - 0xc]
call fcn.0049c0c0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x49a838
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x49a838
xor bl, bl
jmp 0x49a83a
mov bl, 1
mov eax, dword [ebp - 4]
test eax, eax
je 0x49a84a
push eax
call fcn.0054a924
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x49a85a
push eax
call fcn.0054a924
add esp, 4
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x49a950
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.0049c290
lea ecx, [ebp - 0xc]
call fcn.0049c0c0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov eax, dword [ebp - 4]
setne bl
test eax, eax
je 0x49a997
push eax
call fcn.0054a924
add esp, 4
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x49a9a7
push ecx
call fcn.0054a924
add esp, 4
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49a9b0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
push 0
push dword [ebp + 8]
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.CPathString.0
mov dword [ebp - 0x1c], 0
call fcn.0049c290
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebx], 0
mov dword [ebx + 4], 0
test edi, edi
je 0x49a9f8
mov dword [edi], 0
mov dword [edi + 4], 0
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x49aa0c
mov dword [esi], 0
mov dword [esi + 4], 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x24]
call fcn.0049c0c0
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x49aa58
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [ebx], eax
mov dword [ebx + 4], ecx
test edi, edi
je 0x49aa45
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [edi], eax
mov dword [edi + 4], ecx
test esi, esi
je 0x49aa54
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov bl, 1
jmp 0x49aa5a
xor bl, bl
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x49aa6a
push eax
call fcn.0054a924
add esp, 4
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x49aa7a
push eax
call fcn.0054a924
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x49aaa0
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.0049c290
lea ecx, [ebp - 0xc]
call fcn.0049c0c0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x49aade
test al, 0x10
je 0x49aade
mov bl, 1
jmp 0x49aae0
xor bl, bl
mov eax, dword [ebp - 4]
test eax, eax
je 0x49aaf0
push eax
call fcn.0054a924
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x49ab00
push eax
call fcn.0054a924
add esp, 4
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49abf0
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 0x49ac23
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x49ac1d
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 0x49ac77
push eax
push str.unsupported_flags_0x_x_passed_to_CFileReader::BOpenFile
push 0x138c
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier1_fileio.cpp
call fcn.005344b0
add esp, 0x10
test al, al
jne 0x49ac74
int3
and ebx, 0x4c
cmp byte [edi + 0x2c], 0
je 0x49ad84
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.0049c290
push 0x3a
push dword [ebp - 8]
call fcn.0054c2a0
add esp, 8
test eax, eax
je 0x49ad02
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.00544d20
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 0x49ad1a
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 0x49ad3e
push eax
call fcn.0054a924
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
test eax, eax
je 0x49ad55
push eax
call fcn.0054a924
add esp, 4
mov dword [ebp - 8], 0
mov dword [edi + 0x30], esi
test esi, esi
je 0x49ad61
or ebx, 2
jmp 0x49ad84
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_hotfix_win32_build_src_tier1_fileio.cpp
call fcn.005344b0
add esp, 0x10
test al, al
jne 0x49ad80
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.0049b950
add esp, 0x18
test eax, eax
jne 0x49adba
cmp dword [edi], 0xffffffff
je 0x49adba
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 0x49b1f0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push dword [ebp + 8]
call fcn.0049ccf0
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.0049c290
lea ecx, [ebp - 0xc]
call fcn.0049c0c0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
mov eax, dword [ebp - 4]
setne bl
test eax, eax
je 0x49b241
push eax
call fcn.0054a924
add esp, 4
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x49b251
push ecx
call fcn.0054a924
add esp, 4
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49b540
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.0049c290
push 0
push dword [ebp + 0xc]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], vtable.CPathString.0
mov dword [ebp - 4], 0
call fcn.0049c290
lea ecx, [ebp - 0xc]
call fcn.0049c0c0
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.0049c0c0
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 0x49b5af
push eax
call fcn.0054a924
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x49b5bf
push eax
call fcn.0054a924
add esp, 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x49b5cf
push eax
call fcn.0054a924
add esp, 4
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x49b5df
push ecx
call fcn.0054a924
add esp, 4
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x49b7d0
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.0049c290
mov edi, dword [ebp - 0x14]
push ecx
mov eax, esp
mov dword [eax], edi
call fcn.0049a950
add esp, 4
test al, al
jne 0x49b8d7
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49b811
sub ecx, edx
lea esi, [edi - 1]
add esi, ecx
cmp esi, edi
jbe 0x49b89d
cmp byte [esi], 0x5c
jne 0x49b895
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.0049c290
lea ecx, [ebp - 0xc]
call fcn.0049c0c0
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 0x49b877
push eax
call fcn.0054a924
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
test eax, eax
je 0x49b88e
push eax
call fcn.0054a924
add esp, 4
mov dword [ebp - 8], 0
mov byte [esi], 0x5c
test bl, bl
jne 0x49b89c
dec esi
cmp esi, edi
ja 0x49b823
jmp 0x49b89d
inc esi
mov al, byte [esi]
test al, al
je 0x49b8c2
cmp al, 0x5c
jne 0x49b8ba
push ecx
mov eax, esp
mov byte [esi], 0
mov dword [eax], edi
call fcn.0049a7f0
add esp, 4
mov byte [esi], 0x5c
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x49b8a3
push ecx
mov eax, esp
mov dword [eax], edi
call fcn.0049a7f0
add esp, 4
test al, al
jne 0x49b8d7
xor bl, bl
jmp 0x49b8d9
mov bl, 1
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x49b8e9
push eax
call fcn.0054a924
add esp, 4
test edi, edi
je 0x49b8f6
push edi
call fcn.0054a924
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49b950
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.0049c290
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.0x49b9ea
jmp dword [eax*4 + 0x49bafc]
xor edi, edi
jmp 0x49b9de
mov edi, 1
jmp 0x49b9de
mov edi, 2
jmp 0x49b9de
mov edi, 3
jmp 0x49b9de
mov edi, 7
mov eax, dword [ebp + 0x14]
cmp eax, 3
ja case.default.0x49b9ea
jmp dword [eax*4 + 0x49bb1c]
mov ebx, 3
jmp 0x49ba0b
mov ebx, 4
jmp 0x49ba0b
mov ebx, 1
jmp 0x49ba0b
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 0x49ba4a
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.0049c0c0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, dword [ebp + 0x1c]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x49ba86
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x49bad0
mov ebx, dword [ebp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileTime]
test bl, 4
je 0x49baad
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 0x49bac7
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 0x49bad0
mov esi, 0x57
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x49bae0
push eax
call fcn.0054a924
add esp, 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x49baf0
push eax
call fcn.0054a924
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret