joyce8/EMBER2024-capa huggingface dataset:
Function at 0x549190
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x7acc10]
cmp eax, 0xffffffff
je 0x5491b0
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 0x5491ae

Function at 0x5491c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov eax, dword [0x7acc10]
cmp eax, 0xffffffff
je 0x549287
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x549287
mov eax, dword [0x7bc2e0]
mov ecx, dword [0x7ae174]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x549291
mov edi, dword [0x7bc2dc]
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x5492d6
mov ecx, dword [0x7bb6d8]
inc ecx
xor edx, edx
lea eax, [ecx + edx]
movzx ebx, al
lea eax, [ebx + ebx*2]
cmp dword [eax*4 + 0x7bb6dc], 0
jne 0x5492e2
lea eax, [eax*4 + 0x7bb6dc]
mov dword [eax], 1
lea eax, [ebx*4]
mov ecx, dword [ebp + 8]
mov dword [eax + eax*2 + 0x7bb6e0], ecx
mov dword [0x7bb6d8], ebx
mov dword [esi], ebx
mov eax, dword [eax + eax*2 + 0x7bb6e4]
mov dword [esi + 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x5492f4
cmp eax, 0x100
jge 0x5492f7
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.00549300
jmp 0x5491e5
push 0x7bc2e0
call fcn.0064cde7
add esp, 4
cmp dword [0x7bc2e0], 0xffffffff
jne 0x549206
push 4
call fcn.0064cd3e
add esp, 4
mov edi, eax
mov ecx, eax
call fcn.005ee960
mov dword [0x7bc2dc], edi
push 0x7bc2e0
call fcn.0064ce5d
add esp, 4
jmp 0x549206
mov ecx, edi
call fcn.005f1f90
jmp 0x54921b
inc edx
cmp edx, 0x100
jne 0x549224
jmp 0x54926b
int3
int3
Function at 0x549300
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x808
mov eax, dword [0x7aa024]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x814], 0xffffffff
mov ecx, dword [0x7acc10]
mov dword [ebp - 0x814], ecx
cmp ecx, 0xffffffff
je 0x5493ad
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x5493f6
mov edi, 0x800
lea ebx, [ebp - 0x810]
push edi
push 0
push ebx
call fcn.00650600
add esp, 0xc
lea eax, [ebp - 0x80d]
push eax
push dword [ebp - 0x814]
call fcn.00575f30
add esp, 8
push edi
call fcn.0064cda3
add esp, 4
mov esi, eax
push edi
push ebx
push eax
call fcn.00650080
add esp, 0xc
mov eax, esi
or eax, 3
push eax
push dword [ebp - 0x814]
call fcn.00575f30
add esp, 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0064d372
mov eax, esi
add esp, 0x808
pop esi
pop edi
pop ebx
pop ebp
ret
lea esi, [ebp - 0x814]
push esi
call fcn.00575f10
add esp, 4
test al, al
je 0x5493f9
mov ecx, dword [ebp - 0x814]
cmp ecx, 0xffffffff
je 0x5493fc
xor eax, eax
dec eax
lock cmpxchg dword [0x7acc10], ecx
je 0x549331
push ecx
call fcn.006d0050
add esp, 4
mov ecx, dword [0x7acc10]
mov dword [ebp - 0x814], ecx
jmp 0x549331
int3
int3
push esi
call fcn.00575f10
add esp, 4
test al, al
je 0x549424
cmp dword [ebp - 0x814], 0xffffffff
je 0x549424
push 0xffffffffffffffff
call fcn.006d0050
add esp, 4
mov ecx, dword [ebp - 0x814]
jmp 0x5493cb
int3

Function at 0x5494f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x20
mov edi, ecx
mov eax, dword [0x7aa024]
xor eax, ebp
mov dword [esp + 0x1c], eax
push dword [0x7acc10]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
and ecx, 3
cmp ecx, 2
jne 0x549563
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x11e1a300
mov esi, esp
push 0x1dd
push str....._base_threading_thread_local_storage.cc
push 0x75a898
push esi
call fcn.005e42b0
add esp, 4
movsd xmm0, qword [esp + 0x1c]
movsd qword [esp + 4], xmm0
mov dword [esp], esi
call fcn.006cfce0
add esp, 0xc
xor esi, esi
jmp 0x549578
xor esi, esi
and eax, 0xfffffffc
je 0x549578
mov ecx, dword [edi]
mov edx, dword [eax + ecx*8 + 4]
cmp edx, dword [edi + 4]
jne 0x549578
mov esi, dword [eax + ecx*8]
mov ecx, dword [esp + 0x1c]
xor ecx, ebp
call fcn.0064d372
mov eax, esi
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret

Function at 0x54d100
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.0054d110
Function at 0x54d370
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.0054d110

Function at 0x54d380
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x470
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, dword [0x7aa024]
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 eax, [esp + 0x218]
push 0x1a0
push str....._base_files_file_util_win.cc
push 0x75ac3d
push eax
call fcn.005e42b0
add esp, 0x10
mov ecx, esi
lea esi, [esp + 0x218]
push 0
push esi
call fcn.005eec20
mov eax, 0x208
mov ecx, 0xff
push eax
push ecx
push esi
call fcn.00650600
add esp, 0xc
cmp byte [ebx + 0xb], 0
mov eax, ebx
jns 0x54d410
mov eax, dword [ebx]
mov ecx, 0x104
push ecx
push eax
push esi
call fcn.005ed220
add esp, 0xc
push esi
call fcn.005d1080
add esp, 4
lea esi, [esp + 0x10]
mov eax, 0x208
push eax
mov eax, 0xff
push eax
push esi
call fcn.00650600
add esp, 0xc
cmp byte [edi + 0xb], 0
mov eax, edi
jns 0x54d44c
mov eax, dword [edi]
mov ecx, 0x104
push ecx
push eax
push esi
call fcn.005ed220
add esp, 0xc
push esi
call fcn.005d1080
add esp, 4
cmp byte [ebx + 0xb], 0
mov eax, ebx
jns 0x54d46f
mov eax, dword [ebx]
cmp byte [edi + 0xb], 0
mov ecx, edi
jns 0x54d479
mov ecx, dword [edi]
sub esp, 0x18
movaps xmm0, xmmword [0x755a20]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], eax
mov dword [esp], ecx
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
test eax, eax
jne 0x54d4f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0054ea80
add esp, 4
mov dword [esp + 0xc], eax
cmp byte [edi + 0xb], 0
jns 0x54d4b4
mov edi, dword [edi]
mov esi, dword [ebp + 0x10]
cmp byte [ebx + 0xb], 0
jns 0x54d4bf
mov ebx, dword [ebx]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne bl
test esi, esi
je 0x54d4d4
test eax, eax
je 0x54d4fc
lea ecx, [esp + 0x420]
call fcn.005eec80
mov ecx, dword [esp + 0x468]
xor ecx, ebp
call fcn.0064d372
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov bl, 1
jmp 0x54d4d4
cmp dword [esp + 0xc], 0xfffffffc
jne 0x54d50c
call fcn.006a8700
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov dword [esi], eax
xor ebx, ebx
jmp 0x54d4d4
Function at 0x54d520
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 [0x7aa024]
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 0x1d3
push str....._base_files_file_util_win.cc
push str.PathExists
push ebx
call fcn.005e42b0
add esp, 0x10
mov ecx, esi
push 0
push ebx
call fcn.005eec20
cmp byte [edi + 0xb], 0
jns 0x54d581
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov ecx, esi
call fcn.005eec80
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.0064d372
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x54d5b0
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 [0x7aa024]
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 0x1fb
push str....._base_files_file_util_win.cc
push str.DirectoryExists
push ebx
call fcn.005e42b0
add esp, 0x10
mov ecx, esi
push 0
push ebx
call fcn.005eec20
cmp byte [edi + 0xb], 0
jns 0x54d611
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
setne al
and ebx, 0x10
shr ebx, 4
and bl, al
mov ecx, esi
call fcn.005eec80
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.0064d372
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x54d650
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x228
mov eax, dword [0x7aa024]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x21a]
push 0x20a
push 0xff
push ebx
call fcn.00650600
add esp, 0xc
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
add esi, 0xfffffefc
cmp esi, 0xfffffefd
jb 0x54d6d8
push ebx
call fcn.0066b526
add esp, 4
lea edi, [ebp - 0x234]
mov ecx, edi
push eax
push ebx
call fcn.005e18e0
lea ebx, [ebp - 0x228]
mov ecx, edi
push ebx
call fcn.0053fe90
mov ecx, dword [ebp + 8]
push ebx
call fcn.005e1a10
mov ecx, ebx
call fcn.005e1990
mov ecx, edi
call fcn.005e1990
cmp esi, 0xfffffefd
setae bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0064d372
mov eax, ebx
add esp, 0x228
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x54d700
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x218
mov esi, dword [ebp + 8]
mov eax, dword [0x7aa024]
xor eax, ebp
mov dword [ebp - 0xc], eax
lea edi, [ebp - 0x214]
push 0x208
push 0xff
push edi
call fcn.00650600
sub esp, 8
mov dword [esp + 0x10], edi
movaps xmm0, xmmword [0x75abd0]
movups xmmword [esp], xmm0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x54d77c
cmp word [ebp - 0x214], 0
je 0x54d77c
push edi
call fcn.0066b526
add esp, 4
mov ecx, esi
push eax
push edi
call fcn.005e18e0
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0064d372
mov eax, esi
add esp, 0x218
pop esi
pop edi
pop ebp
ret
xor eax, eax
dec eax
lea edi, [ebp - 0x220]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov ecx, edi
call fcn.005e1850
push edi
call fcn.0054d650
add esp, 4
mov ecx, esi
test al, al
je 0x54d7ab
push edi
call fcn.005e18b0
jmp 0x54d7b7
push 3
push 0x75ac4a
call fcn.005e18e0
lea ecx, [ebp - 0x220]
call fcn.005e1990
jmp 0x54d766
Function at 0x54daf0
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 [0x7aa024]
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 0x288
push str....._base_files_file_util_win.cc
push str.CreateDirectoryAndGetError
push ebx
call fcn.005e42b0
add esp, 0x10
mov ecx, edi
push 0
push ebx
call fcn.005eec20
cmp byte [esi + 0xb], 0
mov ebx, esi
jns 0x54db5b
mov ebx, dword [esi]
mov edi, dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x54db95
mov bl, 1
test al, 0x10
je 0x54dc9a
lea ecx, [esp + 0x20]
call fcn.005eec80
mov ecx, dword [esp + 0xa8]
xor ecx, ebp
call fcn.0064d372
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.005e1f90
movzx ecx, byte [edi + 0xb]
mov eax, ecx
test cl, cl
jns 0x54dbba
mov eax, dword [esp + 8]
mov dword [esp], eax
movzx eax, byte [esi + 0xb]
mov edx, eax
test al, al
jns 0x54dbca
mov edx, dword [esi + 4]
mov edi, dword [esp]
cmp edi, edx
je 0x54dcb5
push dword [ebp + 0xc]
lea eax, [esp + 8]
push eax
call fcn.0054daf0
add esp, 8
test al, al
je 0x54dd05
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
je 0x54dc0a
lea ecx, [esp + 4]
call fcn.005e1990
jmp 0x54db74
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], eax
cmp eax, 0xb7
jne 0x54dc87
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 0x1fb
push str....._base_files_file_util_win.cc
push str.DirectoryExists
push eax
call fcn.005e42b0
add esp, 0x10
mov ecx, edi
push 0
lea eax, [esp + 0x14]
push eax
call fcn.005eec20
cmp byte [esi + 0xb], 0
jns 0x54dc67
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
lea ecx, [esp + 0x60]
call fcn.005eec80
cmp esi, 0xffffffff
je 0x54dc87
and esi, 0x10
jne 0x54dbfc
cmp dword [ebp + 0xc], 0
je 0x54dcfc
push dword [esp]
call fcn.0054ea80
add esp, 4
jmp 0x54dcf7
test edi, edi
je 0x54dca6
mov eax, edi
mov dword [edi], 0xfffffff7
push 0x50
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x54db74
test edi, edi
je 0x54dce5
lea edi, [esp + 4]
test cl, cl
jns 0x54dcc5
mov edi, dword [esp + 4]
mov ecx, esi
test al, al
jns 0x54dccd
mov ecx, dword [esi]
xor edx, edx
movzx eax, word [edi + edx*2]
cmp ax, word [ecx + edx*2]
mov eax, dword [esp]
jne 0x54dbd5
inc edx
cmp eax, edx
jne 0x54dccf
mov eax, 0xfffffffc
mov dword [esp], 2
cmp dword [ebp + 0xc], 0
je 0x54dcfc
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push dword [esp]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x54dbfc
Function at 0x54df60
Capabilities:
Write file on windows

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 [0x7aa024]
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 eax, esp
push 0x382
push str....._base_files_file_util_win.cc
push 0x75ac97
push eax
call fcn.005e42b0
add esp, 0x10
xor ebx, ebx
mov ecx, esi
push ebx
lea eax, [esp + 4]
push eax
call fcn.005eec20
cmp byte [edi + 0xb], 0
jns 0x54dfc6
mov edi, dword [edi]
sub esp, 0x1c
mov dword [esp + 0x18], ebx
movaps xmm0, xmmword [0x75abe0]
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 0x54e00f
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp esi, 0xffffffff
je 0x54e081
call fcn.005e42e0
mov ebx, esi
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
dec esi
cmp dword [ebp + 0x10], 0
js 0x54e04d
lea eax, [ebx + 1]
cmp eax, 2
jb 0x54e04d
mov eax, dword [ebp + 0xc]
xor edi, edi
dec edi
mov dword [esp], edi
push 0
lea ecx, [esp + 4]
push ecx
mov esi, dword [ebp + 0x10]
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp]
cmp ecx, esi
cmove edi, ecx
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, edi
lea eax, [ebx + 1]
cmp eax, 2
jb 0x54e063
call fcn.005e42e0
push ebx
call fcn.005f2830
add esp, 4
lea ecx, [esp + 0x10]
call fcn.005eec80
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.0064d372
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
jmp 0x54e008

Function at 0x54e090
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x270
mov eax, dword [0x7aa024]
xor eax, ebp
mov dword [esp + 0x268], eax
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x220]
movdqa xmmword [esi + 0x30], xmm0
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
lea ebx, [esp + 0x18]
push 0x3bb
push str....._base_files_file_util_win.cc
push 0x75aca1
push ebx
call fcn.005e42b0
add esp, 0x10
mov ecx, esi
push 0
push ebx
call fcn.005eec20
lea esi, [esp + 0x1a]
push 0x206
push 0xff
push esi
call fcn.00650600
add esp, 0xc
mov word [esi - 2], 0
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
add esi, 0xfffffefb
cmp esi, 0xfffffefc
jb 0x54e161
push ebx
call fcn.0066b526
add esp, 4
mov edi, esp
mov ecx, edi
push eax
push ebx
call fcn.005e18e0
lea ebx, [esp + 0xc]
mov ecx, edi
push ebx
call fcn.0053fe90
mov ecx, dword [ebp + 8]
push ebx
call fcn.005e1a10
mov ecx, ebx
call fcn.005e1990
mov ecx, edi
call fcn.005e1990
cmp esi, 0xfffffefc
setae bl
lea ecx, [esp + 0x220]
call fcn.005eec80
mov ecx, dword [esp + 0x268]
xor ecx, ebp
call fcn.0064d372
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x54e190
Capabilities:
Set current directory

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 [0x7aa024]
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 0x3cb
push str....._base_files_file_util_win.cc
push 0x75acb6
push ebx
call fcn.005e42b0
add esp, 0x10
mov ecx, esi
push 0
push ebx
call fcn.005eec20
cmp byte [edi + 0xb], 0
jns 0x54e1f1
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov ecx, esi
call fcn.005eec80
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.0064d372
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x54e2b0
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 [0x7aa024]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x2a4]
push 0x294
push 0xff
push esi
call fcn.00650600
add esp, 0xc
mov ecx, esi
mov dword [ebp - 0x508], ebx
push ebx
push 3
push 0
push edi
call fcn.00552bc0
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.00552d70
movzx eax, byte [edi + 0xb]
test al, al
jns 0x54e31d
mov eax, dword [ebp - 0x4fc]
xor esi, esi
test eax, eax
jne 0x54e350
lea ecx, [ebp - 0x500]
call fcn.005e1990
lea ecx, [ebp - 0x2a4]
call fcn.00552c80
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0064d372
mov eax, esi
add esp, 0x4fc
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
push 0x250
push 0xff
lea esi, [ebp - 0x4f4]
push esi
call fcn.00650600
add esp, 0xc
lea ecx, [ebp - 0x2a4]
push esi
call fcn.00552cf0
mov eax, dword [ebp - 0x4f4]
test al, 1
jne 0x54e415
mov ecx, esi
call fcn.00552b10
test al, al
jne 0x54e436
cmp byte [ebp - 0x4f5], 0
mov eax, edi
jns 0x54e3a5
mov eax, dword [ebp - 0x500]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x54e4b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor esi, esi
cmp ecx, 2
je 0x54e3c8
mov esi, eax
test ebx, ebx
cmovne esi, ebx
lea ebx, [ebp - 0x4f4]
mov ecx, ebx
call fcn.004a2a70
lea ecx, [ebp - 0x2a4]
push ebx
call fcn.00552d70
mov ecx, edi
push ebx
call fcn.005e1a10
mov ecx, ebx
call fcn.005e1990
movzx eax, byte [ebp - 0x4f5]
test al, al
jns 0x54e406
mov eax, dword [ebp - 0x4fc]
mov ebx, esi
test eax, eax
je 0x54e323
jmp 0x54e352
cmp byte [ebp + 8], 0
je 0x54e497
and eax, 0xfffffffe
cmp byte [ebp - 0x4f5], 0
jns 0x54e4c0
mov ecx, dword [ebp - 0x500]
jmp 0x54e4c6
xor esi, esi
cmp byte [ebp + 8], 0
je 0x54e3c8
lea ecx, [ebp - 0x500]
mov dword [ebp - 0x504], ecx
mov edx, dword [ebp - 0x508]
push 1
call fcn.0054e2b0
add esp, 4
mov esi, eax
test eax, eax
jne 0x54e3c8
cmp byte [ebp - 0x4f5], 0
jns 0x54e479
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 0x54e3c8
jmp 0x54e3b4
lea ecx, [ebp - 0x4f4]
call fcn.00552b10
test al, al
je 0x54e4d9
lea ecx, [ebp - 0x4f4]
call fcn.00552b10
test al, al
je 0x54e394
xor esi, esi
jmp 0x54e3c8
lea ecx, [ebp - 0x500]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea esi, [ebp - 0x4f4]
jmp 0x54e385
mov eax, dword [ebp - 0x4f4]
jmp 0x54e41b
Function at 0x54e500
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 [0x7aa024]
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 0x93
push str....._base_files_file_win.cc
push str.WriteAtCurrentPos
push ebx
call fcn.005e42b0
add esp, 0x10
mov ecx, edi
push 0
push ebx
call fcn.005eec20
cmp dword [ebp + 0xc], 0
js 0x54e5c7
mov edi, dword [ebp + 8]
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], 0
call fcn.006003e0
test al, al
jne 0x54e5cc
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.00600480
lea ecx, [esp + 0x20]
call fcn.005eec80
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.0064d372
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
xor esi, esi
dec esi
jmp 0x54e5a7
lea ecx, [esp + 0x10]
push 0
push dword [ebp + 0xc]
push esi
push str.File::WriteAtCurrentPos
call fcn.006c71f0
jmp 0x54e57c

Function at 0x54e5f0
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 [0x7aa024]
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 0xa8
push str....._base_files_file_win.cc
push str.GetLength
push edi
call fcn.005e42b0
add esp, 0x10
xor esi, esi
mov ecx, ebx
push esi
push edi
call fcn.005eec20
mov dword [edi + 4], 0xffffffff
mov dword [edi], esi
call fcn.006003e0
test al, al
jne 0x54e6ad
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.00600480
lea ecx, [esp + 0x20]
call fcn.005eec80
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.0064d372
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.006c71f0
jmp 0x54e65f