joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000ea10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 0xc]
call fcn.100057f0
add esp, 4
test dword [ebp + 8], 0x40000000
je 0x1000ea44
push str.__hFile__VPK_FILE_HANDLE_FLAG_
push 0x2bb
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_steam2wrapper_steam2wrapper_stdio.cpp
call fcn.100236d0
add esp, 0xc
test al, al
jne 0x1000ea44
int3
push esi
push edi
push 0x100594a8
push str.nul:
lea edi, [ebp + 0x14]
call fcn.10035ed5
add esp, 8
mov esi, eax
xor eax, eax
test esi, esi
cmove edi, eax
push edi
push eax
push dword [ebp + 0x10]
mov dword [ebp - 4], edi
push esi
call fcn.10005600
push dword [eax + 4]
push dword [eax]
call fcn.1003973a
push esi
mov edi, eax
call fcn.10035d9a
add esp, 0x1c
test eax, eax
jne 0x1000eae6
test edi, edi
js 0x1000eae6
je 0x1000eae6
call fcn.10023250
lea esi, [edi + 1]
push esi
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x1000eae6
push dword [ebp - 4]
push dword [ebp + 0x10]
push esi
push edi
call fcn.1000f0d0
push dword [ebp + 8]
mov esi, eax
call fcn.1000c620
push eax
push esi
push 1
push edi
call fcn.1003afd4
add esp, 0x24
mov esi, eax
call fcn.10023250
push 0
push edi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000eb40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 0x18]
call fcn.100057f0
mov esi, dword [ebp + 0x14]
push esi
call fcn.1000cb20
mov ebx, eax
add esp, 8
mov dword [ebp - 4], ebx
test ebx, ebx
je 0x1000ec47
mov edx, dword [ebp + 0xc]
imul edx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov ecx, dword [ebx + 0x18]
push edx
push esi
push ebx
call fcn.10004b10
test dword [ebp + 0x14], 0x20000000
mov edi, eax
je 0x1000ec18
cmp edi, 1
jbe 0x1000ebce
add edi, esi
xor ebx, ebx
mov ecx, esi
cmp esi, edi
jae 0x1000ebc7
jmp 0x1000eba0
mov dl, byte [esi]
cmp dl, 0xd
jne 0x1000ebba
lea eax, [esi + 1]
cmp eax, edi
jae 0x1000ebba
cmp byte [eax], 0xa
jne 0x1000ebba
mov byte [ecx], 0xa
mov esi, eax
jmp 0x1000ebc0
cmp ecx, esi
je 0x1000ebc0
mov byte [ecx], dl
inc esi
inc ecx
inc ebx
cmp esi, edi
jb 0x1000eba0
mov edi, ebx
mov ebx, dword [ebp - 4]
jmp 0x1000ec18
jne 0x1000ec18
cmp byte [esi], 0xd
jne 0x1000ec18
mov ecx, dword [ebx + 0x18]
lea eax, [ebp - 4]
push 1
push eax
push ebx
mov dword [ebp - 4], 0
call fcn.10004b10
test eax, eax
je 0x1000ec18
cmp dword [ebp - 4], 0xa
jne 0x1000ebfa
mov byte [esi], 0xa
jmp 0x1000ec18
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebx + 8]
dec ecx
cmp edx, ecx
mov eax, edx
cmovge eax, ecx
test eax, eax
jns 0x1000ec10
xor ecx, ecx
jmp 0x1000ec15
cmp edx, ecx
cmovl ecx, edx
mov dword [ebx + 0xc], ecx
mov ecx, dword [ebp + 0xc]
cmp ecx, 1
jbe 0x1000ec28
mov eax, edi
xor edx, edx
div ecx
mov edi, eax
cmp edi, dword [ebp + 0x10]
je 0x1000ec75
mov eax, dword [ebx + 0xc]
cmp eax, dword [ebx + 8]
jl 0x1000ec75
mov eax, dword [ebp + 0x18]
mov dword [eax], 0xb
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.1000c620
mov esi, dword [ebp + 0x10]
mov ebx, eax
push ebx
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100360d2
mov edi, eax
add esp, 0x14
cmp edi, esi
je 0x1000ec77
push ebx
call fcn.1003a7ca
add esp, 4
test eax, eax
jne 0x1000ec35
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000f080
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x18]
call fcn.100057f0
add esp, 4
test dword [ebp + 0x14], 0x40000000
je 0x1000f0b3
push str.__hFile__VPK_FILE_HANDLE_FLAG_
push 0x29d
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_steam2wrapper_steam2wrapper_stdio.cpp
call fcn.100236d0
add esp, 0xc
test al, al
jne 0x1000f0b3
int3
push dword [ebp + 0x14]
call fcn.1000c620
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1003afd4
add esp, 0x14
pop ebp
ret
Function at 0x1000f380
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.1000f5a0
mov ebx, dword [ebp + 0xc]
add esp, 4
mov edi, ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x1000f3a6
sub edi, ecx
mov edx, 2
inc edi
xor ecx, ecx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1003186e
add esp, 4
mov esi, eax
push edi
push esi
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x1000f3e6
mov word [esi], ax
lea eax, [ebp - 4]
push eax
push 0x20219
push 0
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push esi
mov edi, eax
call fcn.10031877
add esp, 4
test edi, edi
jne 0x1000f4a4
mov ebx, dword [ebp + 0x18]
xor ecx, ecx
mov edx, 2
lea eax, [ebx + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1003186e
add esp, 4
lea ecx, [ebx + ebx]
mov dword [ebp - 8], ecx
mov esi, eax
lea ecx, [ebp - 0xc]
push dword [ebp + 0x10]
call fcn.1000f190
lea ecx, [ebp - 8]
push ecx
push esi
lea ecx, [ebp - 0x10]
push ecx
push edi
push dword [eax]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0xc]
mov edi, eax
call fcn.10031877
add esp, 4
test edi, edi
jne 0x1000f490
mov eax, dword [ebp - 8]
xor ecx, ecx
push ecx
push ecx
push ebx
push dword [ebp + 0x14]
shr eax, 1
push 0xffffffffffffffff
push esi
push ecx
push 0xfde9
mov word [esi + eax*2], cx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
mov ecx, 0x7a
cmove edi, ecx
push esi
call fcn.10031877
add esp, 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000f4b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push edi
push dword [ebp + 8]
call fcn.1000f5a0
mov edi, dword [ebp + 0xc]
add esp, 4
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
lea ecx, [edi + 1]
lea esp, [esp]
mov al, byte [edi]
inc edi
test al, al
jne 0x1000f4e0
sub edi, ecx
mov edx, 2
inc edi
xor ecx, ecx
mov eax, edi
mul edx
push esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1003186e
add esp, 4
mov esi, eax
push edi
push esi
push 0xffffffffffffffff
push dword [ebp + 0xc]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x1000f523
mov word [esi], ax
lea eax, [ebp - 4]
push eax
push 0x20219
push 0
push esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push esi
mov edi, eax
call fcn.10031877
add esp, 4
pop esi
test edi, edi
jne 0x1000f589
push dword [ebp + 0x10]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0xc], 4
call fcn.1000f190
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push 0
push dword [eax]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov edi, eax
call fcn.10031877
add esp, 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x14]
test edi, edi
pop edi
cmove eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x100103e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x404
test eax, eax
jne 0x100104c1
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 0x1001053d
mov eax, dword [ebp - 4]
push esi
push edi
cmp eax, 1
je 0x10010442
cmp eax, 2
jne 0x100104f4
mov esi, dword [ebp + 0xc]
and esi, 0xfffffffe
mov dword [ebp + 0xc], esi
cmp esi, 0xbebc200
jae 0x10010536
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.1003186e
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 0x100104a8
cmp ecx, 2
jne 0x100104eb
cmp eax, 0xea
jne 0x10010500
push edi
call fcn.10031877
add esp, 4
lea esi, [esi*2 + 0xfa0]
jmp 0x10010448
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 0x100103fb
mov eax, 0x57
mov esp, ebp
pop ebp
ret
push edi
call fcn.10031877
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.1002f210
push edi
mov ebx, eax
call fcn.10031877
add esp, 0x14
test ebx, ebx
jne 0x10010523
cmp word [edi], bx
jne 0x100104f4
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 0x100109a0
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 0x10010a34
mov ecx, edx
lea eax, [edi*4]
and ecx, 3
sub edx, eax
mov dword [ebp + 0x14], ecx
add edx, 2
jmp 0x100109e0
test ecx, ecx
jne 0x100109e9
mov eax, dword [edx - 2]
jmp 0x10010a0a
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 0x100109e0
mov edx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
xor ecx, ecx
mov eax, edi
and eax, 3
sub eax, 1
je 0x10010a5d
sub eax, 1
je 0x10010a54
sub eax, 1
jne 0x10010a75
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
Function at 0x10010aa0
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 [0x1005c180]
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 0x10010ad7
movaps xmm2, xmmword [0x1005c170]
jmp 0x10010b1a
xor edi, edi
mov ecx, 0x5b358fd3
test esi, esi
je 0x10010aff
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 0x10010ae2
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 0x10010b99
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 0x10010b25
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 + 0x1005ad70]
movzx ecx, al
shr eax, 8
mov edx, eax
shr edx, 8
xor esi, dword [ecx*4 + 0x1005a970]
movzx ecx, al
mov eax, dword [edx*4 + 0x1005a170]
xor eax, dword [ecx*4 + 0x1005a570]
xor eax, esi
cmp edi, 0x10
jl 0x10010bb0
mov ecx, dword [ebp + 8]
pop edi
pop esi
mov dword [ecx], eax
mov esp, ebp
pop ebp
ret
Function at 0x10010c00
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 0x10010cc0
test bl, 3
je 0x10010c38
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 0x10010c23
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 0x10010cbd
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 0x10010c50
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
test esi, esi
jle 0x10010cdd
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 0x10010cc4
mov ecx, dword [ebp + 8]
pop edi
pop esi
mov dword [ecx], eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10010cf0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x10074f7a], 0
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0xc], 0xffffffff
je 0x10010d32
cmp edi, 0xc0
jl 0x10010d32
mov eax, edi
shr eax, 6
dec eax
push eax
lea eax, [ebp + 0xc]
push esi
push eax
call fcn.10010aa0
mov eax, edi
add esp, 0xc
and eax, 0x3f
sub esi, eax
add esi, edi
mov edi, eax
push 0x1005a170
push edi
lea eax, [ebp + 0xc]
push esi
push eax
call fcn.10010c00
mov eax, dword [ebp + 0xc]
add esp, 0x10
not eax
pop edi
pop esi
pop ebp
ret

Function at 0x100111c0
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 0x100111ee
push 1
call fcn.100136a0
mov ecx, edi
call fcn.10024650
test al, al
je 0x100111ee
push 0
mov ecx, edi
call fcn.10024af0
lea ecx, [edi + 0x80]
mov dword [edi + 0x90], 0
call fcn.100106a0
lea ecx, [edi + 0x80]
call fcn.100106a0
lea ecx, [edi + 0x70]
call fcn.10024540
lea ecx, [edi + 0x50]
call fcn.10010fe0
lea ecx, [edi + 0x38]
call fcn.10024500
mov ecx, edi
pop edi
pop esi
jmp fcn.10024300
Function at 0x10011390
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], 0x1005c1e0
mov dword [ebp - 4], 0
call fcn.10012490
push 0
lea ecx, [ebp - 0xc]
call fcn.100122c0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x100113d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x100113d8
xor bl, bl
jmp 0x100113da
mov bl, 1
mov eax, dword [ebp - 4]
test eax, eax
je 0x100113ea
push eax
call fcn.10031877
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x100113fa
push eax
call fcn.10031877
add esp, 4
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10011450
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], 0x1005c1e0
mov dword [ebp - 4], 0
call fcn.10012490
lea ecx, [ebp - 0xc]
call fcn.100122c0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov eax, dword [ebp - 4]
setne bl
test eax, eax
je 0x10011497
push eax
call fcn.10031877
add esp, 4
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x100114a7
push ecx
call fcn.10031877
add esp, 4
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100114b0
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], 0x1005c1e0
mov dword [ebp - 4], 0
call fcn.10012490
lea ecx, [ebp - 0xc]
call fcn.100122c0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100114ee
test al, 0x10
je 0x100114ee
mov bl, 1
jmp 0x100114f0
xor bl, bl
mov eax, dword [ebp - 4]
test eax, eax
je 0x10011500
push eax
call fcn.10031877
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x10011510
push eax
call fcn.10031877
add esp, 4
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10011600
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 0x10011633
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1001162d
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 0x10011687
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.100236e0
add esp, 0x10
test al, al
jne 0x10011684
int3
and ebx, 0x4c
cmp byte [edi + 0x2c], 0
je 0x10011794
xor esi, esi
mov dword [ebp - 0xc], 0x1005c1e0
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
mov dword [ebp - 4], esi
call fcn.10012490
push 0x3a
push dword [ebp - 8]
call fcn.10032f40
add esp, 8
test eax, eax
je 0x10011712
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.1002e710
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 0x1001172a
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], 0x1005c1e0
mov eax, dword [ebp - 4]
cmovne esi, dword [ebp + 0xc]
test eax, eax
je 0x1001174e
push eax
call fcn.10031877
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
test eax, eax
je 0x10011765
push eax
call fcn.10031877
add esp, 4
mov dword [ebp - 8], 0
mov dword [edi + 0x30], esi
test esi, esi
je 0x10011771
or ebx, 2
jmp 0x10011794
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.100236e0
add esp, 0x10
test al, al
jne 0x10011790
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.10011e30
add esp, 0x18
test eax, eax
jne 0x100117ca
cmp dword [edi], 0xffffffff
je 0x100117ca
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 0x10011c00
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], 0x1005c1e0
mov dword [ebp - 0x10], 0
call fcn.10012490
push 0
push dword [ebp + 0xc]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0x1005c1e0
mov dword [ebp - 4], 0
call fcn.10012490
lea ecx, [ebp - 0xc]
call fcn.100122c0
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.100122c0
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 0x10011c6f
push eax
call fcn.10031877
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x10011c7f
push eax
call fcn.10031877
add esp, 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10011c8f
push eax
call fcn.10031877
add esp, 4
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x10011c9f
push ecx
call fcn.10031877
add esp, 4
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10011cf0
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], 0x1005c1e0
mov dword [ebp - 0x10], 0
call fcn.10012490
mov edi, dword [ebp - 0x14]
push ecx
mov eax, esp
mov dword [eax], edi
call fcn.10011450
add esp, 4
test al, al
jne 0x10011df7
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10011d31
sub ecx, edx
lea esi, [edi - 1]
add esi, ecx
cmp esi, edi
jbe 0x10011dbd
cmp byte [esi], 0x5c
jne 0x10011db5
push 0
push edi
lea ecx, [ebp - 0xc]
mov byte [esi], 0
mov dword [ebp - 0xc], 0x1005c1e0
mov dword [ebp - 4], 0
call fcn.10012490
lea ecx, [ebp - 0xc]
call fcn.100122c0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], 0x1005c1e0
mov eax, dword [ebp - 4]
setne bl
test eax, eax
je 0x10011d97
push eax
call fcn.10031877
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
test eax, eax
je 0x10011dae
push eax
call fcn.10031877
add esp, 4
mov dword [ebp - 8], 0
mov byte [esi], 0x5c
test bl, bl
jne 0x10011dbc
dec esi
cmp esi, edi
ja 0x10011d43
jmp 0x10011dbd
inc esi
mov al, byte [esi]
test al, al
je 0x10011de2
cmp al, 0x5c
jne 0x10011dda
push ecx
mov eax, esp
mov byte [esi], 0
mov dword [eax], edi
call fcn.10011390
add esp, 4
mov byte [esi], 0x5c
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x10011dc3
push ecx
mov eax, esp
mov dword [eax], edi
call fcn.10011390
add esp, 4
test al, al
jne 0x10011df7
xor bl, bl
jmp 0x10011df9
mov bl, 1
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10011e09
push eax
call fcn.10031877
add esp, 4
test edi, edi
je 0x10011e16
push edi
call fcn.10031877
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret