joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45b8e0
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov dword [ebp - 0x14], ecx
mov ebx, dword [ebp + 0xc]
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x45b8fe
mov eax, dword [ebx + 4]
mov ebx, dword [ebx]
jmp 0x45b901
and eax, 0x7f
mov esi, eax
mov ecx, ebx
mov edx, eax
mov dword [ebp - 0x18], eax
cmp eax, 4
jb 0x45b93c
mov eax, dword [ebp - 0x18]
mov edx, eax
mov ecx, ebx
imul esi, dword [ecx], 0x5bd1e995
mov edi, esi
shr edi, 0x18
xor edi, esi
imul esi, edi, 0x5bd1e995
imul eax, eax, 0x5bd1e995
xor eax, esi
add ecx, 4
add edx, 0xfffffffc
cmp edx, 3
ja 0x45b916
cmp edx, 1
je 0x45b95d
cmp edx, 2
je 0x45b954
cmp edx, 3
jne 0x45b968
movzx edx, byte [ecx + 2]
shl edx, 0x10
xor eax, edx
movzx edx, byte [ecx + 1]
shl edx, 8
xor eax, edx
movzx ecx, byte [ecx]
xor ecx, eax
imul eax, ecx, 0x5bd1e995
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 4]
xor ecx, ecx
mov dword [ebp - 0x10], edx
test edx, edx
je 0x45ba86
mov dword [ebp - 0x1c], ebx
mov edx, eax
shr edx, 0xd
xor edx, eax
imul eax, edx, 0x5bd1e995
mov esi, eax
shr esi, 0xf
xor esi, eax
mov eax, dword [ebp - 0x10]
mov edx, eax
shr edx, 1
and edx, 0x55555555
sub eax, edx
mov edx, 0x33333333
mov ebx, eax
and ebx, edx
shr eax, 2
and eax, edx
add eax, ebx
mov edx, eax
shr edx, 4
add edx, eax
and edx, 0xf0f0f0f
imul eax, edx, 0x1010101
shr eax, 0x18
mov dword [ebp - 0x28], eax
cmp eax, 1
jbe 0x45ba99
mov edx, esi
cmp esi, dword [ebp - 0x10]
jb 0x45b9e1
mov eax, esi
xor edx, edx
div dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov eax, dword [eax + edx*4]
test eax, eax
je 0x45ba86
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x14], esi
mov ebx, dword [eax]
test ebx, ebx
je 0x45ba86
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0x20], eax
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebx + 4]
cmp eax, dword [ebp - 0x14]
jne 0x45ba4d
movzx edx, byte [ebx + 0x13]
mov eax, edx
and eax, 0x7f
mov ecx, eax
test dl, dl
jns 0x45ba25
mov ecx, dword [ebx + 0xc]
cmp ecx, dword [ebp - 0x18]
jne 0x45ba64
lea ecx, [ebx + 8]
test dl, dl
jns 0x45ba33
mov ecx, dword [ecx]
js 0x45ba6c
test al, al
je 0x45ba84
xor ecx, ecx
mov dl, byte [ebx + ecx + 8]
mov edi, eax
cmp dl, byte [esi + ecx]
jne 0x45ba64
inc ecx
cmp eax, ecx
jne 0x45ba3b
jmp 0x45ba84
cmp dword [ebp - 0x28], 1
jbe 0x45baa6
cmp eax, dword [ebp - 0x10]
jb 0x45ba5f
xor edx, edx
div dword [ebp - 0x10]
mov eax, edx
cmp eax, dword [ebp - 0x24]
jne 0x45ba95
mov ebx, dword [ebx]
test ebx, ebx
jne 0x45ba0b
jmp 0x45ba95
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x45ba84
push eax
push dword [ebp - 0x1c]
push ecx
call fcn.0050f92d
add esp, 0xc
test eax, eax
jne 0x45ba64
mov ecx, ebx
mov eax, dword [ebp + 8]
mov dword [eax], ecx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret 8
xor ecx, ecx
jmp 0x45ba86
mov eax, dword [ebp - 0x10]
lea edx, [eax - 1]
and edx, esi
jmp 0x45b9e1
and eax, dword [ebp - 0x20]
jmp 0x45ba5f
Function at 0x461080
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x5f4b90]
cmp eax, 0xffffffff
je 0x4610a0
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 0x46109e

Function at 0x4610b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov eax, dword [0x5f4b90]
cmp eax, 0xffffffff
je 0x461171
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x461171
mov eax, dword [0x5fa028]
mov ecx, dword [0x5f7664]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x46117b
mov edi, dword [0x5fa024]
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x4611c0
mov ecx, dword [0x5f9420]
inc ecx
xor edx, edx
lea eax, [ecx + edx]
movzx ebx, al
lea eax, [ebx + ebx*2]
cmp dword [eax*4 + 0x5f9424], 0
jne 0x4611cc
lea eax, [eax*4 + 0x5f9424]
mov dword [eax], 1
lea eax, [ebx*4]
mov ecx, dword [ebp + 8]
mov dword [eax + eax*2 + 0x5f9428], ecx
mov dword [0x5f9420], ebx
mov dword [esi], ebx
mov eax, dword [eax + eax*2 + 0x5f942c]
mov dword [esi + 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp dword [esi], 0x100
jae 0x4611db
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.004611e0
jmp 0x4610d5
push 0x5fa028
call fcn.0050d5a7
add esp, 4
cmp dword [0x5fa028], 0xffffffff
jne 0x4610f6
push 4
call fcn.0050d4fe
add esp, 4
mov edi, eax
mov ecx, eax
call fcn.004dfa00
mov dword [0x5fa024], edi
push 0x5fa028
call fcn.0050d61d
add esp, 4
jmp 0x4610f6
mov ecx, edi
call fcn.004dfa10
jmp 0x46110b
inc edx
cmp edx, 0x100
jne 0x461114
jmp 0x46115b
int3

Function at 0x4611e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x808
mov eax, dword [0x5f3024]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x814], 0xffffffff
mov ecx, dword [0x5f4b90]
mov dword [ebp - 0x814], ecx
cmp ecx, 0xffffffff
je 0x46128d
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x4612d6
mov edi, 0x800
lea ebx, [ebp - 0x810]
push edi
push 0
push ebx
call fcn.00510dc0
add esp, 0xc
lea eax, [ebp - 0x80d]
push eax
push dword [ebp - 0x814]
call fcn.0048a040
add esp, 8
push edi
call fcn.0050d563
add esp, 4
mov esi, eax
push edi
push ebx
push eax
call fcn.00510840
add esp, 0xc
mov eax, esi
or eax, 3
push eax
push dword [ebp - 0x814]
call fcn.0048a040
add esp, 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050db32
mov eax, esi
add esp, 0x808
pop esi
pop edi
pop ebx
pop ebp
ret
lea esi, [ebp - 0x814]
push esi
call fcn.0048a020
add esp, 4
test al, al
je 0x4612d9
mov ecx, dword [ebp - 0x814]
cmp ecx, 0xffffffff
je 0x4612dc
xor eax, eax
dec eax
lock cmpxchg dword [0x5f4b90], ecx
je 0x461211
push ecx
call fcn.0056db50
add esp, 4
mov ecx, dword [0x5f4b90]
mov dword [ebp - 0x814], ecx
jmp 0x461211
int3
int3
push esi
call fcn.0048a020
add esp, 4
test al, al
je 0x461304
cmp dword [ebp - 0x814], 0xffffffff
je 0x461304
push 0xffffffffffffffff
call fcn.0056db50
add esp, 4
mov ecx, dword [ebp - 0x814]
jmp 0x4612ab
int3
Function at 0x4613d0
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 [0x5f3024]
xor eax, ebp
mov dword [esp + 0x1c], eax
push dword [0x5f4b90]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
and ecx, 3
cmp ecx, 2
jne 0x461443
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x11e1a300
mov esi, esp
push 0x1db
push str....._base_threading_thread_local_storage.cc
push 0x5db4d6
push esi
call fcn.004cfde0
add esp, 4
movsd xmm0, qword [esp + 0x1c]
movsd qword [esp + 4], xmm0
mov dword [esp], esi
call fcn.00559f80
add esp, 0xc
xor esi, esi
jmp 0x461458
xor esi, esi
and eax, 0xfffffffc
je 0x461458
mov ecx, dword [edi]
mov edx, dword [eax + ecx*8 + 4]
cmp edx, dword [edi + 4]
jne 0x461458
mov esi, dword [eax + ecx*8]
mov ecx, dword [esp + 0x1c]
xor ecx, ebp
call fcn.0050db32
mov eax, esi
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret

Function at 0x464630
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.00464640
Function at 0x4648b0
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.00464640

Function at 0x4648c0
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 [0x5f3024]
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 0x196
push str....._base_files_file_util_win.cc
push 0x5db75d
push eax
call fcn.004cfde0
add esp, 0x10
mov ecx, esi
lea esi, [esp + 0x218]
push 0
push esi
call fcn.004da670
mov eax, 0x208
mov ecx, 0xff
push eax
push ecx
push esi
call fcn.00510dc0
add esp, 0xc
cmp byte [ebx + 0xb], 0
mov eax, ebx
jns 0x464950
mov eax, dword [ebx]
mov ecx, 0x104
push ecx
push eax
push esi
call fcn.004d81a0
add esp, 0xc
push esi
call fcn.004c5b20
add esp, 4
lea esi, [esp + 0x10]
mov eax, 0x208
push eax
mov eax, 0xff
push eax
push esi
call fcn.00510dc0
add esp, 0xc
cmp byte [edi + 0xb], 0
mov eax, edi
jns 0x46498c
mov eax, dword [edi]
mov ecx, 0x104
push ecx
push eax
push esi
call fcn.004d81a0
add esp, 0xc
push esi
call fcn.004c5b20
add esp, 4
cmp byte [ebx + 0xb], 0
mov eax, ebx
jns 0x4649af
mov eax, dword [ebx]
cmp byte [edi + 0xb], 0
mov ecx, edi
jns 0x4649b9
mov ecx, dword [edi]
sub esp, 0x18
movaps xmm0, xmmword [0x5db6e0]
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 0x464a2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00466000
add esp, 4
mov dword [esp + 0xc], eax
cmp byte [edi + 0xb], 0
jns 0x4649f4
mov edi, dword [edi]
mov esi, dword [ebp + 0x10]
cmp byte [ebx + 0xb], 0
jns 0x4649ff
mov ebx, dword [ebx]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne bl
test esi, esi
je 0x464a30
test eax, eax
jne 0x464a30
cmp dword [esp + 0xc], 0xfffffffc
jne 0x464a24
call fcn.00560c50
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov dword [esi], eax
xor ebx, ebx
jmp 0x464a30
mov bl, 1
lea ecx, [esp + 0x420]
call fcn.004da6f0
mov ecx, dword [esp + 0x468]
xor ecx, ebp
call fcn.0050db32
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x464a60
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 [0x5f3024]
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.004cfde0
add esp, 0x10
mov ecx, esi
push 0
push ebx
call fcn.004da670
cmp byte [edi + 0xb], 0
jns 0x464ac1
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov ecx, esi
call fcn.004da6f0
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.0050db32
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x464af0
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 [0x5f3024]
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 0x1f1
push str....._base_files_file_util_win.cc
push str.DirectoryExists
push ebx
call fcn.004cfde0
add esp, 0x10
mov ecx, esi
push 0
push ebx
call fcn.004da670
cmp byte [edi + 0xb], 0
jns 0x464b51
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.004da6f0
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.0050db32
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x464b90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x228
mov eax, dword [0x5f3024]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x21a]
push 0x20a
push 0xff
push ebx
call fcn.00510dc0
add esp, 0xc
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
add esi, 0xfffffefc
cmp esi, 0xfffffefd
jb 0x464c18
push ebx
call fcn.0052a854
add esp, 4
lea edi, [ebp - 0x234]
mov ecx, edi
push eax
push ebx
call fcn.004cedc0
lea ebx, [ebp - 0x228]
mov ecx, edi
push ebx
call fcn.00456ae0
mov ecx, dword [ebp + 8]
push ebx
call fcn.00455800
mov ecx, ebx
call fcn.004ceef0
mov ecx, edi
call fcn.004ceef0
cmp esi, 0xfffffefd
setae bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050db32
mov eax, ebx
add esp, 0x228
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x464c40
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 [0x5f3024]
xor eax, ebp
mov dword [ebp - 0xc], eax
lea edi, [ebp - 0x214]
push 0x208
push 0xff
push edi
call fcn.00510dc0
sub esp, 8
mov dword [esp + 0x10], edi
movaps xmm0, xmmword [0x5db6f0]
movups xmmword [esp], xmm0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x464cbc
cmp word [ebp - 0x214], 0
je 0x464cbc
push edi
call fcn.0052a854
add esp, 4
mov ecx, esi
push eax
push edi
call fcn.004cedc0
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0050db32
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.004cecb0
push edi
call fcn.00464b90
add esp, 4
mov ecx, esi
test al, al
je 0x464ceb
push edi
call fcn.004ced90
jmp 0x464cf7
push 3
push 0x5db786
call fcn.004cedc0
lea ecx, [ebp - 0x220]
call fcn.004ceef0
jmp 0x464ca6
Function at 0x465540
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 [0x5f3024]
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 0x38a
push str....._base_files_file_util_win.cc
push 0x5db7e8
push eax
call fcn.004cfde0
add esp, 0x10
xor ebx, ebx
mov ecx, esi
push ebx
lea eax, [esp + 4]
push eax
call fcn.004da670
cmp byte [edi + 0xb], 0
jns 0x4655a6
mov edi, dword [edi]
sub esp, 0x1c
mov dword [esp + 0x18], ebx
movaps xmm0, xmmword [0x5db700]
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 0x4655ef
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp esi, 0xffffffff
je 0x465661
call fcn.004cfe10
mov ebx, esi
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
dec esi
cmp dword [ebp + 0x10], 0
js 0x46562d
lea eax, [ebx + 1]
cmp eax, 2
jb 0x46562d
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 0x465643
call fcn.004cfe10
push ebx
call fcn.004dfa90
add esp, 4
lea ecx, [esp + 0x10]
call fcn.004da6f0
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.0050db32
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
jmp 0x4655e8

Function at 0x465670
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 [0x5f3024]
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 0x3c3
push str....._base_files_file_util_win.cc
push 0x5db7f2
push ebx
call fcn.004cfde0
add esp, 0x10
mov ecx, esi
push 0
push ebx
call fcn.004da670
lea esi, [esp + 0x1a]
push 0x206
push 0xff
push esi
call fcn.00510dc0
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 0x465741
push ebx
call fcn.0052a854
add esp, 4
mov edi, esp
mov ecx, edi
push eax
push ebx
call fcn.004cedc0
lea ebx, [esp + 0xc]
mov ecx, edi
push ebx
call fcn.00456ae0
mov ecx, dword [ebp + 8]
push ebx
call fcn.00455800
mov ecx, ebx
call fcn.004ceef0
mov ecx, edi
call fcn.004ceef0
cmp esi, 0xfffffefc
setae bl
lea ecx, [esp + 0x220]
call fcn.004da6f0
mov ecx, dword [esp + 0x268]
xor ecx, ebp
call fcn.0050db32
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x465820
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, 0x4f8
mov ebx, edx
mov edi, ecx
mov eax, dword [0x5f3024]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x2a4]
push 0x294
push 0xff
push esi
call fcn.00510dc0
add esp, 0xc
mov ecx, esi
mov dword [ebp - 0x504], ebx
push ebx
push 3
push 0
push edi
call fcn.0046b690
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.0046b850
movzx eax, byte [edi + 0xb]
test al, al
jns 0x46588f
mov eax, dword [ebp - 0x4fc]
jmp 0x465892
and eax, 0x7f
xor esi, esi
test eax, eax
jne 0x4658c5
lea ecx, [ebp - 0x500]
call fcn.004ceef0
lea ecx, [ebp - 0x2a4]
call fcn.0046b7a0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050db32
mov eax, esi
add esp, 0x4f8
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
push 0x250
push 0xff
lea esi, [ebp - 0x4f4]
push esi
call fcn.00510dc0
add esp, 0xc
lea ecx, [ebp - 0x2a4]
push esi
call fcn.0046b810
mov eax, dword [ebp - 0x4f4]
test al, 1
jne 0x4659d2
mov ecx, esi
call fcn.0046b5c0
test al, al
jne 0x46598f
cmp byte [ebp - 0x4f5], 0
mov eax, edi
jns 0x46591a
mov eax, dword [ebp - 0x500]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x465a0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor esi, esi
cmp ecx, 2
je 0x46593d
mov esi, eax
test ebx, ebx
cmovne esi, ebx
lea ebx, [ebp - 0x4f4]
mov ecx, ebx
call fcn.0042a760
lea ecx, [ebp - 0x2a4]
push ebx
call fcn.0046b850
mov ecx, edi
push ebx
call fcn.00455800
mov ecx, ebx
call fcn.004ceef0
movzx eax, byte [ebp - 0x4f5]
test al, al
jns 0x46597d
mov eax, dword [ebp - 0x4fc]
jmp 0x465980
and eax, 0x7f
mov ebx, esi
test eax, eax
je 0x465898
jmp 0x4658c7
xor esi, esi
cmp byte [ebp + 8], 0
je 0x46593d
mov ecx, edi
mov edx, dword [ebp - 0x504]
push 1
call fcn.00465820
add esp, 4
test eax, eax
jne 0x46593b
cmp byte [ebp - 0x4f5], 0
mov eax, edi
jns 0x4659be
mov eax, dword [ebp - 0x500]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x46593d
jmp 0x465929
cmp byte [ebp + 8], 0
je 0x4659ec
and eax, 0xfffffffe
cmp byte [ebp - 0x4f5], 0
jns 0x465a15
mov ecx, dword [ebp - 0x500]
jmp 0x465a1b
lea ecx, [ebp - 0x4f4]
call fcn.0046b5c0
test al, al
je 0x465a2e
lea ecx, [ebp - 0x4f4]
call fcn.0046b5c0
test al, al
je 0x465909
xor esi, esi
jmp 0x46593d
lea ecx, [ebp - 0x500]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea esi, [ebp - 0x4f4]
jmp 0x4658fa
mov eax, dword [ebp - 0x4f4]
jmp 0x4659d8
Function at 0x465a80
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 [0x5f3024]
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.004cfde0
add esp, 0x10
mov ecx, edi
push 0
push ebx
call fcn.004da670
cmp dword [ebp + 0xc], 0
js 0x465b47
mov edi, dword [ebp + 8]
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], 0
call fcn.004e5650
test al, al
jne 0x465b4c
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.004e56f0
lea ecx, [esp + 0x20]
call fcn.004da6f0
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.0050db32
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
xor esi, esi
dec esi
jmp 0x465b27
lea ecx, [esp + 0x10]
push 0
push dword [ebp + 0xc]
push esi
push str.File::WriteAtCurrentPos
call fcn.00567fa0
jmp 0x465afc

Function at 0x465b70
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 [0x5f3024]
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.004cfde0
add esp, 0x10
xor esi, esi
mov ecx, ebx
push esi
push edi
call fcn.004da670
mov dword [edi + 4], 0xffffffff
mov dword [edi], esi
call fcn.004e5650
test al, al
jne 0x465c2d
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.004e56f0
lea ecx, [esp + 0x20]
call fcn.004da6f0
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.0050db32
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.00567fa0
jmp 0x465bdf
Function at 0x465c50
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x90
mov dword [esp + 0xc], ecx
mov eax, dword [0x5f3024]
xor eax, ebp
mov dword [esp + 0x88], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x40]
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea esi, [esp + 0x30]
push 0xb5
push str....._base_files_file_win.cc
push str.SetLength
push esi
call fcn.004cfde0
add esp, 0x10
xor ebx, ebx
mov ecx, edi
push ebx
push esi
call fcn.004da670
mov dword [esi + 4], 0xffffffff
mov dword [esi], ebx
call fcn.004e5650
test al, al
jne 0x465db2
xor eax, eax
dec eax
lea ecx, [esp + 0x28]
mov dword [ecx + 4], eax
mov dword [ecx], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
mov esi, dword [esp + 0xc]
mov eax, dword [esi]
sub esp, 0x14
movsd xmm0, qword [esp + 0x34]
movsd qword [esp + 4], xmm0
mov dword [esp + 0xc], ecx
mov dword [esp], eax
mov dword [esp + 0x10], 1
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x465d86
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [esi]
sub esp, 0x14
movsd xmm0, qword [esp + 0x2c]
movsd qword [esp + 4], xmm0
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x465d86
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
xor ebx, ebx
test eax, eax
je 0x465d86
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov eax, dword [esi]
sub esp, 0x14
movsd xmm0, qword [esp + 0x24]
movsd qword [esp + 4], xmm0
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
setne bl
lea ecx, [esp + 0x30]
call fcn.004e56f0
lea ecx, [esp + 0x40]
call fcn.004da6f0
mov ecx, dword [esp + 0x88]
xor ecx, ebp
call fcn.0050db32
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
lea ecx, [esp + 0x30]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esp + 0x14]
push str.File::SetLength
call fcn.00567fa0
jmp 0x465cc9