joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45b9c0
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 0x45b9de
mov eax, dword [ebx + 4]
mov ebx, dword [ebx]
jmp 0x45b9e1
and eax, 0x7f
mov esi, eax
mov ecx, ebx
mov edx, eax
mov dword [ebp - 0x18], eax
cmp eax, 4
jb 0x45ba1c
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 0x45b9f6
cmp edx, 1
je 0x45ba3d
cmp edx, 2
je 0x45ba34
cmp edx, 3
jne 0x45ba48
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 0x45bb66
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 0x45bb79
mov edx, esi
cmp esi, dword [ebp - 0x10]
jb 0x45bac1
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 0x45bb66
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x14], esi
mov ebx, dword [eax]
test ebx, ebx
je 0x45bb66
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 0x45bb2d
movzx edx, byte [ebx + 0x13]
mov eax, edx
and eax, 0x7f
mov ecx, eax
test dl, dl
jns 0x45bb05
mov ecx, dword [ebx + 0xc]
cmp ecx, dword [ebp - 0x18]
jne 0x45bb44
lea ecx, [ebx + 8]
test dl, dl
jns 0x45bb13
mov ecx, dword [ecx]
js 0x45bb4c
test al, al
je 0x45bb64
xor ecx, ecx
mov dl, byte [ebx + ecx + 8]
mov edi, eax
cmp dl, byte [esi + ecx]
jne 0x45bb44
inc ecx
cmp eax, ecx
jne 0x45bb1b
jmp 0x45bb64
cmp dword [ebp - 0x28], 1
jbe 0x45bb86
cmp eax, dword [ebp - 0x10]
jb 0x45bb3f
xor edx, edx
div dword [ebp - 0x10]
mov eax, edx
cmp eax, dword [ebp - 0x24]
jne 0x45bb75
mov ebx, dword [ebx]
test ebx, ebx
jne 0x45baeb
jmp 0x45bb75
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x45bb64
push eax
push dword [ebp - 0x1c]
push ecx
call fcn.0050fa0d
add esp, 0xc
test eax, eax
jne 0x45bb44
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 0x45bb66
mov eax, dword [ebp - 0x10]
lea edx, [eax - 1]
and edx, esi
jmp 0x45bac1
and eax, dword [ebp - 0x20]
jmp 0x45bb3f
Function at 0x461160
Capabilities:
Get thread local storage value

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

Function at 0x461190
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 0x461251
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x461251
mov eax, dword [0x5fa038]
mov ecx, dword [0x5f7664]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x46125b
mov edi, dword [0x5fa034]
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x4612a0
mov ecx, dword [0x5f9430]
inc ecx
xor edx, edx
lea eax, [ecx + edx]
movzx ebx, al
lea eax, [ebx + ebx*2]
cmp dword [eax*4 + 0x5f9434], 0
jne 0x4612ac
lea eax, [eax*4 + 0x5f9434]
mov dword [eax], 1
lea eax, [ebx*4]
mov ecx, dword [ebp + 8]
mov dword [eax + eax*2 + 0x5f9438], ecx
mov dword [0x5f9430], ebx
mov dword [esi], ebx
mov eax, dword [eax + eax*2 + 0x5f943c]
mov dword [esi + 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp dword [esi], 0x100
jae 0x4612bb
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.004612c0
jmp 0x4611b5
push 0x5fa038
call fcn.0050d687
add esp, 4
cmp dword [0x5fa038], 0xffffffff
jne 0x4611d6
push 4
call fcn.0050d5de
add esp, 4
mov edi, eax
mov ecx, eax
call fcn.004dfae0
mov dword [0x5fa034], edi
push 0x5fa038
call fcn.0050d6fd
add esp, 4
jmp 0x4611d6
mov ecx, edi
call fcn.004dfaf0
jmp 0x4611eb
inc edx
cmp edx, 0x100
jne 0x4611f4
jmp 0x46123b
int3

Function at 0x4612c0
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 0x46136d
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x4613b6
mov edi, 0x800
lea ebx, [ebp - 0x810]
push edi
push 0
push ebx
call fcn.00510ea0
add esp, 0xc
lea eax, [ebp - 0x80d]
push eax
push dword [ebp - 0x814]
call fcn.0048a1c0
add esp, 8
push edi
call fcn.0050d643
add esp, 4
mov esi, eax
push edi
push ebx
push eax
call fcn.00510920
add esp, 0xc
mov eax, esi
or eax, 3
push eax
push dword [ebp - 0x814]
call fcn.0048a1c0
add esp, 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050dc12
mov eax, esi
add esp, 0x808
pop esi
pop edi
pop ebx
pop ebp
ret
lea esi, [ebp - 0x814]
push esi
call fcn.0048a1a0
add esp, 4
test al, al
je 0x4613b9
mov ecx, dword [ebp - 0x814]
cmp ecx, 0xffffffff
je 0x4613bc
xor eax, eax
dec eax
lock cmpxchg dword [0x5f4b90], ecx
je 0x4612f1
push ecx
call fcn.0056dc30
add esp, 4
mov ecx, dword [0x5f4b90]
mov dword [ebp - 0x814], ecx
jmp 0x4612f1
int3
int3
push esi
call fcn.0048a1a0
add esp, 4
test al, al
je 0x4613e4
cmp dword [ebp - 0x814], 0xffffffff
je 0x4613e4
push 0xffffffffffffffff
call fcn.0056dc30
add esp, 4
mov ecx, dword [ebp - 0x814]
jmp 0x46138b
int3
Function at 0x4614b0
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 0x461523
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x11e1a300
mov esi, esp
push 0x1db
push str....._base_threading_thread_local_storage.cc
push 0x5db556
push esi
call fcn.004cfec0
add esp, 4
movsd xmm0, qword [esp + 0x1c]
movsd qword [esp + 4], xmm0
mov dword [esp], esi
call fcn.0055a060
add esp, 0xc
xor esi, esi
jmp 0x461538
xor esi, esi
and eax, 0xfffffffc
je 0x461538
mov ecx, dword [edi]
mov edx, dword [eax + ecx*8 + 4]
cmp edx, dword [edi + 4]
jne 0x461538
mov esi, dword [eax + ecx*8]
mov ecx, dword [esp + 0x1c]
xor ecx, ebp
call fcn.0050dc12
mov eax, esi
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret

Function at 0x464710
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.00464720
Function at 0x464990
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.00464720

Function at 0x4649a0
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 0x5db7dd
push eax
call fcn.004cfec0
add esp, 0x10
mov ecx, esi
lea esi, [esp + 0x218]
push 0
push esi
call fcn.004da750
mov eax, 0x208
mov ecx, 0xff
push eax
push ecx
push esi
call fcn.00510ea0
add esp, 0xc
cmp byte [ebx + 0xb], 0
mov eax, ebx
jns 0x464a30
mov eax, dword [ebx]
mov ecx, 0x104
push ecx
push eax
push esi
call fcn.004d8280
add esp, 0xc
push esi
call fcn.004c5c00
add esp, 4
lea esi, [esp + 0x10]
mov eax, 0x208
push eax
mov eax, 0xff
push eax
push esi
call fcn.00510ea0
add esp, 0xc
cmp byte [edi + 0xb], 0
mov eax, edi
jns 0x464a6c
mov eax, dword [edi]
mov ecx, 0x104
push ecx
push eax
push esi
call fcn.004d8280
add esp, 0xc
push esi
call fcn.004c5c00
add esp, 4
cmp byte [ebx + 0xb], 0
mov eax, ebx
jns 0x464a8f
mov eax, dword [ebx]
cmp byte [edi + 0xb], 0
mov ecx, edi
jns 0x464a99
mov ecx, dword [edi]
sub esp, 0x18
movaps xmm0, xmmword [0x5db760]
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 0x464b0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004660e0
add esp, 4
mov dword [esp + 0xc], eax
cmp byte [edi + 0xb], 0
jns 0x464ad4
mov edi, dword [edi]
mov esi, dword [ebp + 0x10]
cmp byte [ebx + 0xb], 0
jns 0x464adf
mov ebx, dword [ebx]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne bl
test esi, esi
je 0x464b10
test eax, eax
jne 0x464b10
cmp dword [esp + 0xc], 0xfffffffc
jne 0x464b04
call fcn.00560d30
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov dword [esi], eax
xor ebx, ebx
jmp 0x464b10
mov bl, 1
lea ecx, [esp + 0x420]
call fcn.004da7d0
mov ecx, dword [esp + 0x468]
xor ecx, ebp
call fcn.0050dc12
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x464b40
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.004cfec0
add esp, 0x10
mov ecx, esi
push 0
push ebx
call fcn.004da750
cmp byte [edi + 0xb], 0
jns 0x464ba1
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov ecx, esi
call fcn.004da7d0
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.0050dc12
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x464bd0
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.004cfec0
add esp, 0x10
mov ecx, esi
push 0
push ebx
call fcn.004da750
cmp byte [edi + 0xb], 0
jns 0x464c31
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.004da7d0
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.0050dc12
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x464c70
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.00510ea0
add esp, 0xc
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
add esi, 0xfffffefc
cmp esi, 0xfffffefd
jb 0x464cf8
push ebx
call fcn.0052a934
add esp, 4
lea edi, [ebp - 0x234]
mov ecx, edi
push eax
push ebx
call fcn.004ceea0
lea ebx, [ebp - 0x228]
mov ecx, edi
push ebx
call fcn.00456bc0
mov ecx, dword [ebp + 8]
push ebx
call fcn.004558e0
mov ecx, ebx
call fcn.004cefd0
mov ecx, edi
call fcn.004cefd0
cmp esi, 0xfffffefd
setae bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050dc12
mov eax, ebx
add esp, 0x228
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x464d20
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.00510ea0
sub esp, 8
mov dword [esp + 0x10], edi
movaps xmm0, xmmword [0x5db770]
movups xmmword [esp], xmm0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x464d9c
cmp word [ebp - 0x214], 0
je 0x464d9c
push edi
call fcn.0052a934
add esp, 4
mov ecx, esi
push eax
push edi
call fcn.004ceea0
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0050dc12
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.004ced90
push edi
call fcn.00464c70
add esp, 4
mov ecx, esi
test al, al
je 0x464dcb
push edi
call fcn.004cee70
jmp 0x464dd7
push 3
push 0x5db806
call fcn.004ceea0
lea ecx, [ebp - 0x220]
call fcn.004cefd0
jmp 0x464d86
Function at 0x465620
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 0x5db868
push eax
call fcn.004cfec0
add esp, 0x10
xor ebx, ebx
mov ecx, esi
push ebx
lea eax, [esp + 4]
push eax
call fcn.004da750
cmp byte [edi + 0xb], 0
jns 0x465686
mov edi, dword [edi]
sub esp, 0x1c
mov dword [esp + 0x18], ebx
movaps xmm0, xmmword [0x5db780]
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 0x4656cf
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp esi, 0xffffffff
je 0x465741
call fcn.004cfef0
mov ebx, esi
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
dec esi
cmp dword [ebp + 0x10], 0
js 0x46570d
lea eax, [ebx + 1]
cmp eax, 2
jb 0x46570d
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 0x465723
call fcn.004cfef0
push ebx
call fcn.004dfb70
add esp, 4
lea ecx, [esp + 0x10]
call fcn.004da7d0
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.0050dc12
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
jmp 0x4656c8

Function at 0x465750
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 0x5db872
push ebx
call fcn.004cfec0
add esp, 0x10
mov ecx, esi
push 0
push ebx
call fcn.004da750
lea esi, [esp + 0x1a]
push 0x206
push 0xff
push esi
call fcn.00510ea0
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 0x465821
push ebx
call fcn.0052a934
add esp, 4
mov edi, esp
mov ecx, edi
push eax
push ebx
call fcn.004ceea0
lea ebx, [esp + 0xc]
mov ecx, edi
push ebx
call fcn.00456bc0
mov ecx, dword [ebp + 8]
push ebx
call fcn.004558e0
mov ecx, ebx
call fcn.004cefd0
mov ecx, edi
call fcn.004cefd0
cmp esi, 0xfffffefc
setae bl
lea ecx, [esp + 0x220]
call fcn.004da7d0
mov ecx, dword [esp + 0x268]
xor ecx, ebp
call fcn.0050dc12
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x465900
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.00510ea0
add esp, 0xc
mov ecx, esi
mov dword [ebp - 0x504], ebx
push ebx
push 3
push 0
push edi
call fcn.0046b770
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.0046b930
movzx eax, byte [edi + 0xb]
test al, al
jns 0x46596f
mov eax, dword [ebp - 0x4fc]
jmp 0x465972
and eax, 0x7f
xor esi, esi
test eax, eax
jne 0x4659a5
lea ecx, [ebp - 0x500]
call fcn.004cefd0
lea ecx, [ebp - 0x2a4]
call fcn.0046b880
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050dc12
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.00510ea0
add esp, 0xc
lea ecx, [ebp - 0x2a4]
push esi
call fcn.0046b8f0
mov eax, dword [ebp - 0x4f4]
test al, 1
jne 0x465ab2
mov ecx, esi
call fcn.0046b6a0
test al, al
jne 0x465a6f
cmp byte [ebp - 0x4f5], 0
mov eax, edi
jns 0x4659fa
mov eax, dword [ebp - 0x500]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x465aee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor esi, esi
cmp ecx, 2
je 0x465a1d
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.0046b930
mov ecx, edi
push ebx
call fcn.004558e0
mov ecx, ebx
call fcn.004cefd0
movzx eax, byte [ebp - 0x4f5]
test al, al
jns 0x465a5d
mov eax, dword [ebp - 0x4fc]
jmp 0x465a60
and eax, 0x7f
mov ebx, esi
test eax, eax
je 0x465978
jmp 0x4659a7
xor esi, esi
cmp byte [ebp + 8], 0
je 0x465a1d
mov ecx, edi
mov edx, dword [ebp - 0x504]
push 1
call fcn.00465900
add esp, 4
test eax, eax
jne 0x465a1b
cmp byte [ebp - 0x4f5], 0
mov eax, edi
jns 0x465a9e
mov eax, dword [ebp - 0x500]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x465a1d
jmp 0x465a09
cmp byte [ebp + 8], 0
je 0x465acc
and eax, 0xfffffffe
cmp byte [ebp - 0x4f5], 0
jns 0x465af5
mov ecx, dword [ebp - 0x500]
jmp 0x465afb
lea ecx, [ebp - 0x4f4]
call fcn.0046b6a0
test al, al
je 0x465b0e
lea ecx, [ebp - 0x4f4]
call fcn.0046b6a0
test al, al
je 0x4659e9
xor esi, esi
jmp 0x465a1d
lea ecx, [ebp - 0x500]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea esi, [ebp - 0x4f4]
jmp 0x4659da
mov eax, dword [ebp - 0x4f4]
jmp 0x465ab8
Function at 0x465b60
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.004cfec0
add esp, 0x10
mov ecx, edi
push 0
push ebx
call fcn.004da750
cmp dword [ebp + 0xc], 0
js 0x465c27
mov edi, dword [ebp + 8]
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], 0
call fcn.004e5730
test al, al
jne 0x465c2c
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.004e57d0
lea ecx, [esp + 0x20]
call fcn.004da7d0
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.0050dc12
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
xor esi, esi
dec esi
jmp 0x465c07
lea ecx, [esp + 0x10]
push 0
push dword [ebp + 0xc]
push esi
push str.File::WriteAtCurrentPos
call fcn.00568080
jmp 0x465bdc

Function at 0x465c50
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.004cfec0
add esp, 0x10
xor esi, esi
mov ecx, ebx
push esi
push edi
call fcn.004da750
mov dword [edi + 4], 0xffffffff
mov dword [edi], esi
call fcn.004e5730
test al, al
jne 0x465d0d
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.004e57d0
lea ecx, [esp + 0x20]
call fcn.004da7d0
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.0050dc12
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.00568080
jmp 0x465cbf
Function at 0x465d30
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.004cfec0
add esp, 0x10
xor ebx, ebx
mov ecx, edi
push ebx
push esi
call fcn.004da750
mov dword [esi + 4], 0xffffffff
mov dword [esi], ebx
call fcn.004e5730
test al, al
jne 0x465e92
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 0x465e66
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 0x465e66
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
xor ebx, ebx
test eax, eax
je 0x465e66
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.004e57d0
lea ecx, [esp + 0x40]
call fcn.004da7d0
mov ecx, dword [esp + 0x88]
xor ecx, ebp
call fcn.0050dc12
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.00568080
jmp 0x465da9