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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xb0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov eax, dword [0x526014]
xor eax, ebp
mov dword [esp + 0xa8], eax
test ecx, ecx
je 0x446148
cmp byte [ecx + 0xb], 0
js 0x4462e6
xor eax, eax
mov byte [ecx], al
mov byte [ecx + 0xb], al
xor ebx, ebx
test edx, edx
je 0x4462ce
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
push ebx
push ebx
push edx
call fcn.004ab31d
add esp, 0xc
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x60]
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea esi, [esp + 0x20]
push 0xcd
push str..._.._base_files_file_util.cc
push str.ReadStreamToStringWithMaxSize
push esi
call fcn.004712d0
add esp, 0x10
mov ecx, edi
push ebx
push esi
call fcn.00478af0
mov dword [esi + 0x30], ebx
pxor xmm0, xmm0
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
push dword [ebp + 8]
call fcn.004a5d20
add esp, 4
push eax
call fcn.004a5d7a
add esp, 4
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x4462f7
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
xor ebx, ebx
mov edx, ecx
neg edx
mov edx, 0
sbb edx, eax
cmovl ebx, eax
mov edi, 0xffff
cmovl edi, ecx
xor esi, esi
mov ecx, dword [ebp + 0xc]
cmp ecx, edi
mov eax, 0
sbb eax, ebx
lea ebx, [esp + 0x10]
mov dword [ebx + 4], esi
mov dword [ebx], esi
mov dword [ebx + 8], esi
cmovb edi, ecx
inc edi
mov ecx, ebx
push esi
push edi
call fcn.0046e2b0
cmp byte [esp + 0x1b], 0
mov eax, ebx
mov ecx, dword [ebp + 8]
jns 0x446234
mov eax, dword [esp + 0x10]
add eax, esi
push ecx
push edi
push 1
push eax
call fcn.004ab11a
add esp, 0x10
test eax, eax
je 0x446273
mov ecx, dword [ebp + 0xc]
sub ecx, esi
cmp ecx, eax
mov ecx, 0x10000
jb 0x446301
test esi, esi
cmove edi, ecx
add esi, eax
push dword [ebp + 8]
call fcn.004aab8e
add esp, 4
test eax, eax
je 0x446305
push dword [ebp + 8]
call fcn.004aabba
add esp, 4
test eax, eax
sete bl
mov dword [esp + 0xc], esi
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4462be
mov eax, dword [ecx]
mov edi, dword [ecx + 4]
mov edx, dword [ecx + 8]
mov esi, dword [esp + 0x18]
mov dword [ecx + 8], esi
movq xmm0, qword [esp + 0x10]
movq qword [ecx], xmm0
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edx
push 0
push dword [esp + 0x10]
call fcn.0046e2b0
cmp byte [esp + 0x1b], 0
js 0x446314
lea ecx, [esp + 0x60]
call fcn.00478b50
mov ecx, dword [esp + 0xa8]
xor ecx, ebp
call fcn.004948c8
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ecx]
mov byte [eax], 0
mov dword [ecx + 4], 0
jmp 0x446148
mov edi, 0xffff
jmp 0x4461fd
xor ebx, ebx
jmp 0x446287
lea eax, [esi + edi]
lea ecx, [esp + 0x10]
push 0
push eax
jmp 0x44621f
push dword [esp + 0x10]
call fcn.00493d6d
add esp, 4
jmp 0x4462c5
Function at 0x448120
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x527bc8]
cmp eax, 0xffffffff
je 0x448140
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 3
dec eax
cmp eax, 2
setb al
pop ebp
ret
xor eax, eax
jmp 0x44813e

Function at 0x448150
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov eax, dword [0x527bc8]
cmp eax, 0xffffffff
je 0x448217
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x448217
mov eax, dword [0x52cb00]
mov ecx, dword [0x52a234]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x448221
mov edi, dword [0x52cafc]
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x448266
mov ecx, dword [0x52bef8]
inc ecx
xor edx, edx
lea eax, [ecx + edx]
movzx ebx, al
lea eax, [ebx + ebx*2]
cmp dword [eax*4 + 0x52befc], 0
jne 0x448272
lea eax, [eax*4 + 0x52befc]
mov dword [eax], 1
lea eax, [ebx*4]
mov ecx, dword [ebp + 8]
mov dword [eax + eax*2 + 0x52bf00], ecx
mov dword [0x52bef8], ebx
mov dword [esi], ebx
mov eax, dword [eax + eax*2 + 0x52bf04]
mov dword [esi + 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x448284
cmp eax, 0x100
jge 0x448287
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.00448290
jmp 0x448175
push 0x52cb00
call fcn.00493de7
add esp, 4
cmp dword [0x52cb00], 0xffffffff
jne 0x448196
push 4
call fcn.00493d3d
add esp, 4
mov edi, eax
mov ecx, eax
call fcn.00473ed0
mov dword [0x52cafc], edi
push 0x52cb00
call fcn.00493e5d
add esp, 4
jmp 0x448196
mov ecx, edi
call fcn.00473ee0
jmp 0x4481ab
inc edx
cmp edx, 0x100
jne 0x4481b4
jmp 0x4481fb
int3
int3
Function at 0x448290
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x808
mov eax, dword [0x526014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x814], 0xffffffff
mov ecx, dword [0x527bc8]
mov dword [ebp - 0x814], ecx
cmp ecx, 0xffffffff
je 0x44833d
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x448386
mov edi, 0x800
lea ebx, [ebp - 0x810]
push edi
push 0
push ebx
call fcn.00497b10
add esp, 0xc
lea eax, [ebp - 0x80d]
push eax
push dword [ebp - 0x814]
call fcn.00452b10
add esp, 8
push edi
call fcn.00493da3
add esp, 4
mov esi, eax
push edi
push ebx
push eax
call fcn.00497010
add esp, 0xc
mov eax, esi
or eax, 3
push eax
push dword [ebp - 0x814]
call fcn.00452b10
add esp, 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004948c8
mov eax, esi
add esp, 0x808
pop esi
pop edi
pop ebx
pop ebp
ret
lea esi, [ebp - 0x814]
push esi
call fcn.00452af0
add esp, 4
test al, al
je 0x448389
mov ecx, dword [ebp - 0x814]
cmp ecx, 0xffffffff
je 0x44838c
xor eax, eax
dec eax
lock cmpxchg dword [0x527bc8], ecx
je 0x4482c1
push ecx
call fcn.004e6450
add esp, 4
mov ecx, dword [0x527bc8]
mov dword [ebp - 0x814], ecx
jmp 0x4482c1
int3
int3
push esi
call fcn.00452af0
add esp, 4
test al, al
je 0x4483b4
cmp dword [ebp - 0x814], 0xffffffff
je 0x4483b4
push 0xffffffffffffffff
call fcn.004e6450
add esp, 4
mov ecx, dword [ebp - 0x814]
jmp 0x44835b
int3

Function at 0x4485a0
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor edx, edx
pop ebp
jmp fcn.004485b0
Function at 0x448810
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor edx, edx
inc edx
pop ebp
jmp fcn.004485b0

Function at 0x448820
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x470
mov ebx, dword [ebp + 8]
mov eax, dword [0x526014]
xor eax, ebp
mov dword [esp + 0x468], eax
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x420]
movdqa xmmword [esi + 0x30], xmm0
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
lea edi, [esp + 0x218]
push 0x196
push str..._.._base_files_file_util_win.cc
push 0x512188
push edi
call fcn.004712d0
add esp, 0x10
mov ecx, esi
push 0
push edi
call fcn.00478af0
mov eax, 0x208
mov ecx, 0xff
push eax
push ecx
push edi
call fcn.00497b10
add esp, 0xc
cmp byte [ebx + 0xb], 0
mov eax, ebx
jns 0x4488a6
mov eax, dword [ebx]
mov esi, 0x104
push esi
push eax
push edi
call fcn.00479d00
add esp, 0xc
push edi
call fcn.00466ab0
add esp, 4
lea edi, [esp + 0x10]
mov eax, 0x208
push eax
mov eax, 0xff
push eax
push edi
call fcn.00497b10
add esp, 0xc
mov eax, dword [ebp + 0xc]
cmp byte [eax + 0xb], 0
jns 0x4488e6
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push esi
push eax
push edi
call fcn.00479d00
add esp, 0xc
push edi
call fcn.00466ab0
add esp, 4
cmp byte [ebx + 0xb], 0
mov eax, ebx
jns 0x448904
mov eax, dword [ebx]
mov edi, dword [ebp + 0xc]
cmp byte [edi + 0xb], 0
mov ecx, edi
jns 0x448911
mov ecx, dword [edi]
sub esp, 0x18
movaps xmm0, xmmword [0x512140]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], eax
mov dword [esp], ecx
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
mov cl, 1
test eax, eax
jne 0x44896e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00449860
add esp, 4
mov dword [esp + 0xc], eax
cmp byte [edi + 0xb], 0
jns 0x44894e
mov edi, dword [edi]
mov esi, dword [ebp + 0x10]
cmp byte [ebx + 0xb], 0
jns 0x448959
mov ebx, dword [ebx]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne cl
test esi, esi
je 0x44896e
test eax, eax
je 0x448994
mov ebx, ecx
lea ecx, [esp + 0x420]
call fcn.00478b50
mov ecx, dword [esp + 0x468]
xor ecx, ebp
call fcn.004948c8
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
cmp dword [esp + 0xc], 0xfffffffc
jne 0x4489a4
call fcn.004da7e0
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov dword [esi], eax
xor ecx, ecx
jmp 0x44896e
Function at 0x4489b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov edi, dword [ebp + 8]
mov eax, dword [0x526014]
xor eax, ebp
mov dword [esp + 0x58], eax
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x10]
movdqa xmmword [esi + 0x30], xmm0
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
mov ebx, esp
push 0x1c9
push str..._.._base_files_file_util_win.cc
push str.PathExists
push ebx
call fcn.004712d0
add esp, 0x10
mov ecx, esi
push 0
push ebx
call fcn.00478af0
cmp byte [edi + 0xb], 0
jns 0x448a11
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov ecx, esi
call fcn.00478b50
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.004948c8
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x448a40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x228
mov eax, dword [0x526014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x21a]
push 0x20a
push 0xff
push ebx
call fcn.00497b10
add esp, 0xc
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
add esi, 0xfffffefc
cmp esi, 0xfffffefd
jb 0x448ac8
push ebx
call fcn.004ad646
add esp, 4
lea edi, [ebp - 0x234]
mov ecx, edi
push eax
push ebx
call fcn.0046f130
lea ebx, [ebp - 0x228]
mov ecx, edi
push ebx
call fcn.00445e60
mov ecx, dword [ebp + 8]
push ebx
call fcn.0046f290
mov ecx, ebx
call fcn.0046f270
mov ecx, edi
call fcn.0046f270
cmp esi, 0xfffffefd
setae bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004948c8
mov eax, ebx
add esp, 0x228
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x448d90
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xb0
mov esi, dword [ebp + 8]
mov eax, dword [0x526014]
xor eax, ebp
mov dword [esp + 0xa8], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x20]
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea ebx, [esp + 0x60]
push 0x27e
push str..._.._base_files_file_util_win.cc
push str.CreateDirectoryAndGetError
push ebx
call fcn.004712d0
add esp, 0x10
mov ecx, edi
push 0
push ebx
call fcn.00478af0
cmp byte [esi + 0xb], 0
mov ebx, esi
jns 0x448dfb
mov ebx, dword [esi]
mov edi, dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x448e35
mov bl, 1
test al, 0x10
je 0x448f3a
lea ecx, [esp + 0x20]
call fcn.00478b50
mov ecx, dword [esp + 0xa8]
xor ecx, ebp
call fcn.004948c8
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
dec eax
lea edi, [esp + 4]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov ecx, esi
push edi
call fcn.0046f7e0
movzx ecx, byte [edi + 0xb]
mov eax, ecx
test cl, cl
jns 0x448e5a
mov eax, dword [esp + 8]
mov dword [esp], eax
movzx eax, byte [esi + 0xb]
mov edx, eax
test al, al
jns 0x448e6a
mov edx, dword [esi + 4]
mov edi, dword [esp]
cmp edi, edx
je 0x448f55
push dword [ebp + 0xc]
lea eax, [esp + 8]
push eax
call fcn.00448d90
add esp, 8
test al, al
je 0x448fa5
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
je 0x448eaa
lea ecx, [esp + 4]
call fcn.0046f270
jmp 0x448e14
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], eax
cmp eax, 0xb7
jne 0x448f27
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x60]
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea eax, [esp + 0x10]
push 0x1f1
push str..._.._base_files_file_util_win.cc
push str.DirectoryExists
push eax
call fcn.004712d0
add esp, 0x10
mov ecx, edi
push 0
lea eax, [esp + 0x14]
push eax
call fcn.00478af0
cmp byte [esi + 0xb], 0
jns 0x448f07
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
lea ecx, [esp + 0x60]
call fcn.00478b50
cmp esi, 0xffffffff
je 0x448f27
and esi, 0x10
jne 0x448e9c
cmp dword [ebp + 0xc], 0
je 0x448f9c
push dword [esp]
call fcn.00449860
add esp, 4
jmp 0x448f97
test edi, edi
je 0x448f46
mov eax, edi
mov dword [edi], 0xfffffff7
push 0x50
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x448e14
test edi, edi
je 0x448f85
lea edi, [esp + 4]
test cl, cl
jns 0x448f65
mov edi, dword [esp + 4]
mov ecx, esi
test al, al
jns 0x448f6d
mov ecx, dword [esi]
xor edx, edx
movzx eax, word [edi + edx*2]
cmp ax, word [ecx + edx*2]
mov eax, dword [esp]
jne 0x448e75
inc edx
cmp eax, edx
jne 0x448f6f
mov eax, 0xfffffffc
mov dword [esp], 2
cmp dword [ebp + 0xc], 0
je 0x448f9c
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push dword [esp]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x448e9c
Function at 0x448fb0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xaa0
mov eax, dword [0x526014]
xor eax, ebp
mov dword [esp + 0xa98], eax
pcmpeqd xmm0, xmm0
lea esi, [esp + 0xa50]
movdqa xmmword [esi + 0x30], xmm0
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
lea edi, [esp + 0x250]
push 0x2d1
push str..._.._base_files_file_util_win.cc
push str.DevicePathToDriveLetterPath
push edi
call fcn.004712d0
add esp, 0x10
xor ebx, ebx
mov ecx, esi
push ebx
push edi
call fcn.00478af0
push 0x800
push ebx
push edi
call fcn.00497b10
add esp, 0xc
push edi
push 0x3ff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x4491a6
lea esi, [esp + 0x48]
push 0x208
push 0xff
push esi
call fcn.00497b10
add esp, 0xc
movzx eax, word [0x512244]
mov word [esp + 0x44], ax
mov eax, dword [0x512240]
mov dword [esp + 0x40], eax
movzx eax, word [esp + 0x250]
test ax, ax
je 0x449102
lea ecx, [esp + 0x40]
mov edx, dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
xor ebx, ebx
dec ebx
mov dword [esp + 8], edi
mov word [esp + 0x40], ax
push 0x104
push esi
push ecx
call edx
test eax, eax
je 0x4490e3
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
push esi
call fcn.004ad646
add esp, 4
lea ecx, [esp + 0x34]
push eax
mov edi, esi
push esi
mov esi, ecx
call fcn.0046f130
mov ecx, esi
mov ebx, dword [ebp + 8]
push ebx
call fcn.00445910
test al, al
jne 0x449109
mov ecx, esi
push ebx
call fcn.00445940
test al, al
jne 0x449109
mov ecx, esi
call fcn.0046f270
xor ebx, ebx
dec ebx
mov esi, edi
mov edi, dword [esp + 8]
cmp word [edi], 0
lea edi, [edi + 2]
jne 0x4490e7
movzx eax, word [edi]
test ax, ax
lea ecx, [esp + 0x40]
mov edx, dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
jne 0x449082
xor ebx, ebx
jmp 0x4491a6
push edi
call fcn.004ad646
add esp, 4
lea edx, [ebx + 0xc]
lea edi, [esp + 0xc]
mov ecx, edi
push edx
push 0xffffffffffffffff
push eax
push ebx
call fcn.00444ab0
xor esi, esi
mov ecx, edi
lea eax, [esp + 0x40]
push eax
push esi
call fcn.00444b70
mov ecx, dword [eax + 8]
mov dword [esp + 0x20], ecx
movsd xmm0, qword [eax]
movsd qword [esp + 0x18], xmm0
mov dword [eax], esi
mov dword [eax + 4], esi
mov dword [eax + 8], esi
movzx eax, byte [esp + 0x23]
test al, al
jns 0x449160
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
jmp 0x449164
lea edx, [esp + 0x18]
lea edi, [esp + 0x28]
mov ecx, edi
push eax
push edx
call fcn.0046f130
mov ecx, dword [ebp + 0xc]
push edi
call fcn.0046f290
mov ecx, edi
call fcn.0046f270
cmp byte [esp + 0x23], 0
jns 0x449194
push dword [esp + 0x18]
call fcn.00493d6d
add esp, 4
cmp byte [esp + 0x17], 0
js 0x4491ca
lea ecx, [esp + 0x34]
call fcn.0046f270
mov bl, 1
lea ecx, [esp + 0xa50]
call fcn.00478b50
mov ecx, dword [esp + 0xa98]
xor ecx, ebp
call fcn.004948c8
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push dword [esp + 0xc]
call fcn.00493d6d
add esp, 4
jmp 0x44919b
Function at 0x4492f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov edi, dword [ebp + 8]
mov eax, dword [0x526014]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x20]
movdqa xmmword [esi + 0x30], xmm0
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
lea eax, [esp + 0x10]
push 0x3a3
push str..._.._base_files_file_util_win.cc
push 0x51224f
push eax
call fcn.004712d0
add esp, 0x10
xor ebx, ebx
mov ecx, esi
push ebx
lea eax, [esp + 0x14]
push eax
call fcn.00478af0
cmp byte [edi + 0xb], 0
jns 0x449358
mov edi, dword [edi]
sub esp, 0x1c
mov dword [esp + 0x18], ebx
movaps xmm0, xmmword [0x50c4b0]
movups xmmword [esp + 4], xmm0
mov dword [esp], edi
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
test eax, eax
je 0x44939d
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp esi, 0xffffffff
je 0x44940b
call fcn.00471300
mov ebx, esi
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebx + 1]
mov dword [esp + 0xc], eax
cmp eax, 2
jb 0x44940f
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
xor edi, edi
dec edi
mov dword [esp + 0x10], edi
push 0
lea ecx, [esp + 0x14]
push ecx
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x10]
cmp ecx, esi
cmove edi, ecx
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, edi
cmp dword [esp + 0xc], 2
jb 0x4493ed
call fcn.00471300
push ebx
call fcn.00474440
add esp, 4
lea ecx, [esp + 0x20]
call fcn.00478b50
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.004948c8
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
jmp 0x449396
xor esi, esi
dec esi
jmp 0x4493d8
Function at 0x449420
Capabilities:
Check if file exists
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4fc
mov ebx, edx
mov edi, ecx
mov eax, dword [0x526014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x2a4]
push 0x294
push 0xff
push esi
call fcn.00497b10
add esp, 0xc
mov ecx, esi
mov dword [ebp - 0x508], ebx
push ebx
push 3
push 0
push edi
call fcn.00451460
xor eax, eax
dec eax
lea edi, [ebp - 0x500]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov ecx, esi
push edi
call fcn.00451610
movzx eax, byte [edi + 0xb]
test al, al
jns 0x44948d
mov eax, dword [ebp - 0x4fc]
xor esi, esi
test eax, eax
je 0x44955b
lea ebx, [ebp - 0x4f4]
xor edi, edi
push 0x250
push 0xff
push ebx
call fcn.00497b10
add esp, 0xc
lea ecx, [ebp - 0x2a4]
push ebx
call fcn.00451590
mov eax, dword [ebp - 0x4f4]
test al, 1
jne 0x449588
mov ecx, ebx
call fcn.00451450
test al, al
jne 0x4495ad
cmp byte [ebp - 0x4f5], 0
lea eax, [ebp - 0x500]
jns 0x4494f0
mov eax, dword [ebp - 0x500]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x449647
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
and eax, 0xfffffffe
cmp eax, 2
mov eax, 0
cmove esi, eax
test edi, edi
cmovne esi, edi
mov ecx, ebx
call fcn.00412f50
lea ecx, [ebp - 0x2a4]
push ebx
call fcn.00451610
lea ecx, [ebp - 0x500]
push ebx
call fcn.0046f290
mov ecx, ebx
call fcn.0046f270
movzx eax, byte [ebp - 0x4f5]
test al, al
jns 0x449551
mov eax, dword [ebp - 0x4fc]
mov edi, esi
test eax, eax
jne 0x44949f
lea ecx, [ebp - 0x500]
call fcn.0046f270
lea ecx, [ebp - 0x2a4]
call fcn.00451520
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004948c8
mov eax, esi
add esp, 0x4fc
pop esi
pop edi
pop ebx
pop ebp
ret
cmp byte [ebp + 8], 0
je 0x449625
and eax, 0xfffffffe
cmp byte [ebp - 0x4f5], 0
jns 0x44964e
mov ecx, dword [ebp - 0x500]
jmp 0x449654
xor esi, esi
cmp byte [ebp + 8], 0
je 0x449515
lea ecx, [ebp - 0x500]
mov dword [ebp - 0x504], ecx
mov edx, dword [ebp - 0x508]
push 1
call fcn.00449420
add esp, 4
mov esi, eax
test eax, eax
jne 0x449515
cmp byte [ebp - 0x4f5], 0
jns 0x4495f4
mov eax, dword [ebp - 0x500]
mov dword [ebp - 0x504], eax
push dword [ebp - 0x504]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, 0
test eax, eax
jne 0x449515
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor esi, esi
cmp ecx, 2
cmovne esi, eax
jmp 0x449515
lea ecx, [ebp - 0x4f4]
call fcn.00451450
test al, al
je 0x449661
lea ecx, [ebp - 0x4f4]
call fcn.00451450
test al, al
je 0x4494db
xor esi, esi
jmp 0x449515
lea ecx, [ebp - 0x500]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x4494cc
mov eax, dword [ebp - 0x4f4]
jmp 0x449592
Function at 0x449690
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov esi, ecx
mov eax, dword [0x526014]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x20]
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea ebx, [esp + 0x10]
push 0x88
push str..._.._base_files_file_win.cc
push str.WriteAtCurrentPos
push ebx
call fcn.004712d0
add esp, 0x10
mov ecx, edi
push 0
push ebx
call fcn.00478af0
cmp dword [ebp + 0xc], 0
js 0x449757
mov edi, dword [ebp + 8]
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], 0
call fcn.004781f0
test al, al
jne 0x44975c
lea ebx, [esp + 0xc]
mov dword [ebx], 0xffffffff
push 0
push ebx
push dword [ebp + 0xc]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, dword [ebx]
lea ecx, [esp + 0x10]
call fcn.00478290
lea ecx, [esp + 0x20]
call fcn.00478b50
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.004948c8
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
xor esi, esi
dec esi
jmp 0x449737
lea ecx, [esp + 0x10]
push 0
push dword [ebp + 0xc]
push esi
push str.File::WriteAtCurrentPos
call fcn.004e3e10
jmp 0x44970c

Function at 0x449780
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov dword [esp + 4], ecx
mov eax, dword [0x526014]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
lea ebx, [esp + 0x20]
movdqa xmmword [ebx + 0x30], xmm0
movdqa xmmword [ebx + 0x20], xmm0
movdqa xmmword [ebx + 0x10], xmm0
movdqa xmmword [ebx], xmm0
lea edi, [esp + 0x10]
push 0x9c
push str..._.._base_files_file_win.cc
push str.GetLength
push edi
call fcn.004712d0
add esp, 0x10
xor esi, esi
mov ecx, ebx
push esi
push edi
call fcn.00478af0
mov dword [edi + 4], 0xffffffff
mov dword [edi], esi
call fcn.004781f0
test al, al
jne 0x44983d
xor eax, eax
dec eax
lea ebx, [esp + 8]
mov dword [ebx + 4], eax
mov dword [ebx], eax
push ebx
mov eax, dword [esp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, 1
sbb esi, esi
mov edi, dword [ebx + 4]
or edi, esi
or esi, dword [ebx]
lea ecx, [esp + 0x10]
call fcn.00478290
lea ecx, [esp + 0x20]
call fcn.00478b50
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.004948c8
mov eax, esi
mov edx, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esp + 0x10]
push esi
push esi
push dword [esp + 0xc]
push str.File::GetLength
call fcn.004e3e10
jmp 0x4497ef