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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6d7105
push eax
mov dword fs:[0], esp
sub esp, 0x628
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ebx, 0x6e3a60
test edi, edi
jne 0x465d9e
call fcn.0053c930
test al, al
je 0x465d8f
mov edi, str.steamdeck_stable
jmp 0x465d9e
call fcn.0053c810
test al, al
mov edi, str.chromeos_public_88ac3843c888c7adb9cd406fbac4ff7a7d2cde9b
cmove edi, ebx
mov ecx, dword [esi + 0xa8]
mov eax, ebx
test ecx, ecx
mov dword [ebp + 8], ecx
cmovne eax, ecx
mov ecx, edi
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x465dd0
test dl, dl
je 0x465dcc
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x465dd0
add ecx, 2
add eax, 2
test dl, dl
jne 0x465db0
xor eax, eax
jmp 0x465dd5
sbb eax, eax
or eax, 1
test eax, eax
je 0x465e0a
push 1
push esi
lea eax, [ebp - 0x634]
push 0x30a
push eax
call fcn.004617b0
add esp, 0xc
lea ecx, [ebp - 0x634]
mov eax, esp
mov dword [eax], ecx
call fcn.0049a8e0
mov ecx, dword [esi + 0xa8]
add esp, 4
jmp 0x465e0d
mov ecx, dword [ebp + 8]
test ecx, ecx
mov eax, ebx
push edi
cmovne eax, ecx
push eax
lea eax, [ebp - 0x1c]
push str.Beta_changed_from__s_to__s_n
push eax
call fcn.0049eb10
add esp, 0x10
mov dword [ebp - 4], 0
cmp byte [eax + 0xf], 0
jge 0x465e36
mov eax, dword [eax]
test eax, eax
lea ecx, [esi + 0xd8]
cmovne ebx, eax
push ebx
call fcn.00464ae0
mov dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0xd], 0
jge 0x465e65
call fcn.005368d0
push 0
push dword [ebp - 0x1c]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
push edi
lea ecx, [esi + 0xa8]
call fcn.0049f670
push edi
lea ecx, [esi + 0xac]
call fcn.0049f670
push str.package
push str._s_beta
lea eax, [ebp - 0x328]
push 0x30a
push eax
call fcn.00547160
lea eax, [ebp - 0x328]
push 0x5c
push eax
call fcn.00545eb0
mov eax, dword [esi + 0xa8]
add esp, 0x18
test eax, eax
je 0x465f0e
cmp byte [eax], 0
je 0x465f0e
push fcn.0055cb4e
lea eax, [ebp - 0x328]
push 0x6e3c14
push eax
call fcn.0053e170
mov edi, eax
add esp, 0xc
test edi, edi
je 0x465f21
mov edx, dword [esi + 0xa8]
test edx, edx
jne 0x465eea
xor ecx, ecx
mov edx, 0x6e3a60
jmp 0x465ef9
mov ecx, edx
lea ebx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x465ef0
sub ecx, ebx
push edi
push 1
push ecx
push edx
call fcn.0055ec39
push edi
call fcn.0055c95d
add esp, 0x14
jmp 0x465f21
push ecx
mov eax, esp
lea ecx, [ebp - 0x328]
mov dword [eax], ecx
call fcn.0049a8e0
add esp, 4
call fcn.0052fe10
fld qword [esi + 0x88]
fxch st(1)
fcompi st(1)
fstp st(0)
jbe 0x465f50
call fcn.0052fe10
fadd qword [0x6e8790]
fstp qword [esi + 0x88]
call fcn.0054a100
mov dword [esi + 0x80], eax
lea ecx, [esi + 0x90]
call fcn.0053d3d0
mov ecx, esi
call fcn.0053d180
test al, al
jne 0x465f74
cmp byte [esi + 0x57], al
jne 0x465f74
push 0
mov ecx, esi
call fcn.0053d470
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x467b50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x20]
test edi, edi
je 0x467bdc
push ebx
mov eax, dword [edi]
mov dword [esi + 0x20], eax
mov ebx, dword [edi + 0x18]
test ebx, ebx
je 0x467bc9
mov ecx, esi
call fcn.00468820
push ebx
push 1
call dword [0x7d9e38]
push 0xc
push ebx
call fcn.0054d20e
add esp, 8
cmp dword [esi + 0xc], 0
je 0x467bc9
dec dword [esi + 0xf4]
cmp dword [esi + 0xf4], 0
jg 0x467bc9
push 0
push 0
call dword [0x7d9de4]
push dword [esi + 0xfc]
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov dword [esi + 0xfc], 0
lea eax, [esi + 0xf8]
xor ecx, ecx
xchg dword [eax], ecx
push 0x1c
push edi
call fcn.0054d20e
mov edi, dword [esi + 0x20]
add esp, 8
test edi, edi
jne 0x467b60
pop ebx
xor eax, eax
mov dword [esi + 0xec], 0
mov dword [esi + 0xf0], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x64], eax
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], eax
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], eax
mov dword [esi + 0x78], eax
mov dword [esi + 0x7c], eax
mov dword [esi + 0x80], eax
mov dword [esi + 0x84], eax
mov dword [esi + 0x88], eax
mov dword [esi + 0x8c], eax
mov ecx, dword [esi + 0xa0]
test ecx, ecx
je 0x467c5a
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 4]
mov dword [esi + 0xa0], 0
mov ecx, dword [esi + 0xa4]
test ecx, ecx
je 0x467c76
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 4]
mov dword [esi + 0xa4], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x467c8b
push eax
call dword [0x7d9de8]
mov dword [esi + 0xc], 0
pop edi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
pop esi
ret

Function at 0x46a250
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 0
push dword [esi + 0x16c]
mov dword [esi + 0x28], 0
push dword [esi + 0x168]
mov byte [esi + 0x34], 0
push dword [esi + 0x164]
push dword [esi + 0x160]
push dword [esi + 0x58]
call dword [sym.imp.USER32.dll_MoveWindow]
push 1
push dword [esi + 0x58]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 0x58]
call dword [sym.imp.USER32.dll_UpdateWindow]
pop esi
ret

Function at 0x46b4d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x6e9abc]
mov dword [ebp - 0x14], eax
mov eax, dword [0x6e9ac0]
mov dword [ebp - 0x10], eax
mov eax, dword [0x6e9ac4]
mov dword [ebp - 0xc], eax
mov eax, dword [0x6e9ac8]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 0
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jne 0x46b538
push 4
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.00549710
add esp, 0x10
test eax, eax
je 0x46b538
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov al, 1
mov esp, ebp
pop ebp
ret
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x46c310
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x404
test eax, eax
jne 0x46c3f1
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 0x46c46d
mov eax, dword [ebp - 4]
push esi
push edi
cmp eax, 1
je 0x46c372
cmp eax, 2
jne 0x46c424
mov esi, dword [ebp + 0xc]
and esi, 0xfffffffe
mov dword [ebp + 0xc], esi
cmp esi, 0xbebc200
jae 0x46c466
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.0054d21c
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 0x46c3d8
cmp ecx, 2
jne 0x46c41b
cmp eax, 0xea
jne 0x46c430
push edi
call fcn.0054d225
add esp, 4
lea esi, [esi*2 + 0xfa0]
jmp 0x46c378
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 0x46c32b
mov eax, 0x57
mov esp, ebp
pop ebp
ret
push edi
call fcn.0054d225
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.00549710
push edi
mov ebx, eax
call fcn.0054d225
add esp, 0x14
test ebx, ebx
jne 0x46c453
cmp word [edi], bx
jne 0x46c424
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 0x46c480
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6d78ed
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 0x46c5bd
mov word [ebp - 0x41c], ax
mov eax, dword [ebp + 0x10]
mov edi, 0x6e3a60
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.005498d0
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0054d21c
push 0
mov ebx, eax
push esi
push ebx
push edi
mov dword [ebp - 0x18], ebx
call fcn.005498d0
mov ecx, ebx
add esp, 0x24
lea edx, [ecx + 2]
jmp 0x46c550
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46c550
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.0054d225
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 0x46c4b3
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 0x477d40
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 0x47fab0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x47fae2
push esi
call fcn.00483580
add esp, 4
cmp byte [esi + 0x40], 0
je 0x47fadb
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 0x47fb6e
mov eax, dword [esi + 0x1a0]
cmp byte [eax + 0x10], 0
je 0x47fb58
lea ecx, [ecx]
mov eax, dword [esi + 8]
test eax, eax
je 0x47fb0f
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 0x47fb52
cmp eax, 2
je 0x47fb58
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x47fb00
cmp eax, 3
je 0x47fb37
cmp eax, 1
jne 0x47fb00
inc dword [ecx + 4]
mov edx, dword [esi + 8]
mov edi, dword [edx + 8]
cmp dword [ecx + 4], edi
jl 0x47fb00
mov eax, dword [esi + 0x120]
add eax, edi
mov dword [edx + 8], eax
jmp 0x47fb00
pop edi
xor al, al
pop esi
pop ebp
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.0047fba0
add esp, 4
pop edi
pop esi
pop ebp
ret
cmp eax, 0xcc
je 0x47fb90
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.0047fba0
add esp, 4
pop edi
pop esi
pop ebp
ret

Function at 0x47fba0
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 0x47fbce
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 0x47fc52
lea ebx, [esi + 0x78]
lea ecx, [ecx]
mov eax, dword [ebx]
cmp eax, dword [esi + 0x60]
jae 0x47fc26
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x47fc05
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 0x47fc69
cmp eax, dword [esi + 0x60]
jb 0x47fbe7
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 0x47fbe0
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 0x489b80
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 0x489ba6
mov eax, 0x1fe
mov byte [ebx + 0x1c], 1
jmp 0x489bab
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 0x489c93
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 0x489bf3
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.00489f20
add esp, 0x10
mov edx, eax
xor esi, esi
cmp esi, edx
jle 0x489c2e
mov eax, dword [ebp - 0x10]
inc ebx
dec eax
push eax
push ebx
push edi
push dword [ebp + 8]
call fcn.00489f20
mov edx, eax
add esp, 0x10
cmp esi, edx
jg 0x489c15
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 0x489c11
cmp dword [ebp - 4], 0
je 0x489c80
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 0x489c60
mov esi, dword [ebp + 8]
inc edi
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x14]
cmp edi, dword [esi + 0x64]
jl 0x489bd6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x49a4d0
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 0x49a4fe
push 1
call fcn.0049d640
mov ecx, edi
call fcn.0053d180
test al, al
je 0x49a4fe
push 0
mov ecx, edi
call fcn.0053d720
lea ecx, [edi + 0x80]
mov dword [edi + 0x90], 0
call fcn.004998e0
lea ecx, [edi + 0x80]
call fcn.004998e0
lea ecx, [edi + 0x70]
call fcn.0053cf80
lea ecx, [edi + 0x50]
call fcn.0049a2f0
lea ecx, [edi + 0x38]
call fcn.0053cf40
mov ecx, edi
pop edi
pop esi
jmp fcn.0053cd40
Function at 0x49a710
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.0049c260
push 0
push dword [ebp + 0xc]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], vtable.CPathString.0
mov dword [ebp - 4], 0
call fcn.0049c260
lea ecx, [ebp - 0xc]
call fcn.0049c090
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.0049c090
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 0x49a782
push eax
call fcn.0054d225
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x49a792
push eax
call fcn.0054d225
add esp, 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x49a7a2
push eax
call fcn.0054d225
add esp, 4
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x49a7b2
push ecx
call fcn.0054d225
add esp, 4
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x49a7c0
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.0049c260
push 0
lea ecx, [ebp - 0xc]
call fcn.0049c090
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x49a808
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x49a808
xor bl, bl
jmp 0x49a80a
mov bl, 1
mov eax, dword [ebp - 4]
test eax, eax
je 0x49a81a
push eax
call fcn.0054d225
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x49a82a
push eax
call fcn.0054d225
add esp, 4
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x49a920
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.0049c260
lea ecx, [ebp - 0xc]
call fcn.0049c090
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov eax, dword [ebp - 4]
setne bl
test eax, eax
je 0x49a967
push eax
call fcn.0054d225
add esp, 4
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x49a977
push ecx
call fcn.0054d225
add esp, 4
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49a980
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.0049c260
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebx], 0
mov dword [ebx + 4], 0
test edi, edi
je 0x49a9c8
mov dword [edi], 0
mov dword [edi + 4], 0
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x49a9dc
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.0049c090
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x49aa28
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [ebx], eax
mov dword [ebx + 4], ecx
test edi, edi
je 0x49aa15
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [edi], eax
mov dword [edi + 4], ecx
test esi, esi
je 0x49aa24
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov bl, 1
jmp 0x49aa2a
xor bl, bl
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x49aa3a
push eax
call fcn.0054d225
add esp, 4
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x49aa4a
push eax
call fcn.0054d225
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x49aa70
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.0049c260
lea ecx, [ebp - 0xc]
call fcn.0049c090
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x49aaae
test al, 0x10
je 0x49aaae
mov bl, 1
jmp 0x49aab0
xor bl, bl
mov eax, dword [ebp - 4]
test eax, eax
je 0x49aac0
push eax
call fcn.0054d225
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x49aad0
push eax
call fcn.0054d225
add esp, 4
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49abc0
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 0x49abf3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x49abed
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 0x49ac47
push eax
push str.unsupported_flags_0x_x_passed_to_CFileReader::BOpenFile
push 0x138c
push str.c:_buildslave_steam_rel_client_win32_build_src_tier1_fileio.cpp
call fcn.00536d20
add esp, 0x10
test al, al
jne 0x49ac44
int3
and ebx, 0x4c
cmp byte [edi + 0x2c], 0
je 0x49ad54
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.0049c260
push 0x3a
push dword [ebp - 8]
call fcn.0054eba0
add esp, 8
test eax, eax
je 0x49acd2
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.00547620
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 0x49acea
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 0x49ad0e
push eax
call fcn.0054d225
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
test eax, eax
je 0x49ad25
push eax
call fcn.0054d225
add esp, 4
mov dword [ebp - 8], 0
mov dword [edi + 0x30], esi
test esi, esi
je 0x49ad31
or ebx, 2
jmp 0x49ad54
push dword [ebp + 8]
push str.Failed_to_get_sector_size_for_drive_file__s_is_on__not_using_unbuffered_IO
push 0x139b
push str.c:_buildslave_steam_rel_client_win32_build_src_tier1_fileio.cpp
call fcn.00536d20
add esp, 0x10
test al, al
jne 0x49ad50
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.0049b920
add esp, 0x18
test eax, eax
jne 0x49ad8a
cmp dword [edi], 0xffffffff
je 0x49ad8a
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 0x49b1c0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push dword [ebp + 8]
call fcn.0049ccc0
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.0049c260
lea ecx, [ebp - 0xc]
call fcn.0049c090
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
mov eax, dword [ebp - 4]
setne bl
test eax, eax
je 0x49b211
push eax
call fcn.0054d225
add esp, 4
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x49b221
push ecx
call fcn.0054d225
add esp, 4
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret