joyce8/EMBER2024-capa huggingface dataset:
Function at 0x443d40
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.004483b0
mov dword [esi], 0
test eax, eax
je 0x443d87
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
inc ecx
cmp ecx, 2
jae 0x443db9
lea ecx, [ebx + 1]
cmp ecx, 2
jb 0x443d80
mov dword [esi], ebx
mov ebx, eax
call fcn.0046dd90
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esi + 4]
lea eax, [edi + 4]
push eax
call fcn.0046c200
lea ecx, [esi + 0x10]
call fcn.00473e70
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
mov al, byte [edi + 0x18]
mov byte [esi + 0x18], al
mov al, byte [edi + 0x19]
mov byte [esi + 0x19], al
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov dword [ebp - 0x10], eax
call fcn.0046dd90
push dword [esi]
call fcn.00470d70
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [esi], 0
jmp 0x443d6d
Function at 0x444d50
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 [0x520014]
xor eax, ebp
mov dword [esp + 0xa8], eax
test ecx, ecx
je 0x444d88
cmp byte [ecx + 0xb], 0
js 0x444f26
xor eax, eax
mov byte [ecx], al
mov byte [ecx + 0xb], al
xor ebx, ebx
test edx, edx
je 0x444f0e
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
push ebx
push ebx
push edx
call fcn.004a5ebd
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.0046dd60
add esp, 0x10
mov ecx, edi
push ebx
push esi
call fcn.004745e0
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.004a08c0
add esp, 4
push eax
call fcn.004a091a
add esp, 4
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x444f37
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.0046b5c0
cmp byte [esp + 0x1b], 0
mov eax, ebx
mov ecx, dword [ebp + 8]
jns 0x444e74
mov eax, dword [esp + 0x10]
add eax, esi
push ecx
push edi
push 1
push eax
call fcn.004a5cba
add esp, 0x10
test eax, eax
je 0x444eb3
mov ecx, dword [ebp + 0xc]
sub ecx, esi
cmp ecx, eax
mov ecx, 0x10000
jb 0x444f41
test esi, esi
cmove edi, ecx
add esi, eax
push dword [ebp + 8]
call fcn.004a572e
add esp, 4
test eax, eax
je 0x444f45
push dword [ebp + 8]
call fcn.004a575a
add esp, 4
test eax, eax
sete bl
mov dword [esp + 0xc], esi
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x444efe
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.0046b5c0
cmp byte [esp + 0x1b], 0
js 0x444f54
lea ecx, [esp + 0x60]
call fcn.00474640
mov ecx, dword [esp + 0xa8]
xor ecx, ebp
call fcn.0048f468
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 0x444d88
mov edi, 0xffff
jmp 0x444e3d
xor ebx, ebx
jmp 0x444ec7
lea eax, [esi + edi]
lea ecx, [esp + 0x10]
push 0
push eax
jmp 0x444e5f
push dword [esp + 0x10]
call fcn.0048e90d
add esp, 4
jmp 0x444f05
Function at 0x446e60
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x521bc8]
cmp eax, 0xffffffff
je 0x446e80
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 0x446e7e

Function at 0x446e90
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov eax, dword [0x521bc8]
cmp eax, 0xffffffff
je 0x446f57
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x446f57
mov eax, dword [0x526ab0]
mov ecx, dword [0x52420c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x446f61
mov edi, dword [0x526aac]
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x446fa6
mov ecx, dword [0x525ea8]
inc ecx
xor edx, edx
lea eax, [ecx + edx]
movzx ebx, al
lea eax, [ebx + ebx*2]
cmp dword [eax*4 + 0x525eac], 0
jne 0x446fb2
lea eax, [eax*4 + 0x525eac]
mov dword [eax], 1
lea eax, [ebx*4]
mov ecx, dword [ebp + 8]
mov dword [eax + eax*2 + 0x525eb0], ecx
mov dword [0x525ea8], ebx
mov dword [esi], ebx
mov eax, dword [eax + eax*2 + 0x525eb4]
mov dword [esi + 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x446fc4
cmp eax, 0x100
jge 0x446fc7
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.00446fd0
jmp 0x446eb5
push 0x526ab0
call fcn.0048e987
add esp, 4
cmp dword [0x526ab0], 0xffffffff
jne 0x446ed6
push 4
call fcn.0048e8dd
add esp, 4
mov edi, eax
mov ecx, eax
call fcn.00470800
mov dword [0x526aac], edi
push 0x526ab0
call fcn.0048e9fd
add esp, 4
jmp 0x446ed6
mov ecx, edi
call fcn.00470810
jmp 0x446eeb
inc edx
cmp edx, 0x100
jne 0x446ef4
jmp 0x446f3b
int3
int3
Function at 0x446fd0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x808
mov eax, dword [0x520014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x814], 0xffffffff
mov ecx, dword [0x521bc8]
mov dword [ebp - 0x814], ecx
cmp ecx, 0xffffffff
je 0x44707d
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x4470c6
mov edi, 0x800
lea ebx, [ebp - 0x810]
push edi
push 0
push ebx
call fcn.004926b0
add esp, 0xc
lea eax, [ebp - 0x80d]
push eax
push dword [ebp - 0x814]
call fcn.00451330
add esp, 8
push edi
call fcn.0048e943
add esp, 4
mov esi, eax
push edi
push ebx
push eax
call fcn.00491bb0
add esp, 0xc
mov eax, esi
or eax, 3
push eax
push dword [ebp - 0x814]
call fcn.00451330
add esp, 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048f468
mov eax, esi
add esp, 0x808
pop esi
pop edi
pop ebx
pop ebp
ret
lea esi, [ebp - 0x814]
push esi
call fcn.00451310
add esp, 4
test al, al
je 0x4470c9
mov ecx, dword [ebp - 0x814]
cmp ecx, 0xffffffff
je 0x4470cc
xor eax, eax
dec eax
lock cmpxchg dword [0x521bc8], ecx
je 0x447001
push ecx
call fcn.004e0f10
add esp, 4
mov ecx, dword [0x521bc8]
mov dword [ebp - 0x814], ecx
jmp 0x447001
int3
int3
push esi
call fcn.00451310
add esp, 4
test al, al
je 0x4470f4
cmp dword [ebp - 0x814], 0xffffffff
je 0x4470f4
push 0xffffffffffffffff
call fcn.004e0f10
add esp, 4
mov ecx, dword [ebp - 0x814]
jmp 0x44709b
int3

Function at 0x4472e0
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.004472f0
Function at 0x447550
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.004472f0

Function at 0x447560
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 [0x520014]
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 0x50bfc8
push edi
call fcn.0046dd60
add esp, 0x10
mov ecx, esi
push 0
push edi
call fcn.004745e0
mov eax, 0x208
mov ecx, 0xff
push eax
push ecx
push edi
call fcn.004926b0
add esp, 0xc
cmp byte [ebx + 0xb], 0
mov eax, ebx
jns 0x4475e6
mov eax, dword [ebx]
mov esi, 0x104
push esi
push eax
push edi
call fcn.00475670
add esp, 0xc
push edi
call fcn.004640e0
add esp, 4
lea edi, [esp + 0x10]
mov eax, 0x208
push eax
mov eax, 0xff
push eax
push edi
call fcn.004926b0
add esp, 0xc
mov eax, dword [ebp + 0xc]
cmp byte [eax + 0xb], 0
jns 0x447626
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push esi
push eax
push edi
call fcn.00475670
add esp, 0xc
push edi
call fcn.004640e0
add esp, 4
cmp byte [ebx + 0xb], 0
mov eax, ebx
jns 0x447644
mov eax, dword [ebx]
mov edi, dword [ebp + 0xc]
cmp byte [edi + 0xb], 0
mov ecx, edi
jns 0x447651
mov ecx, dword [edi]
sub esp, 0x18
movaps xmm0, xmmword [0x50bf80]
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 0x4476ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004485a0
add esp, 4
mov dword [esp + 0xc], eax
cmp byte [edi + 0xb], 0
jns 0x44768e
mov edi, dword [edi]
mov esi, dword [ebp + 0x10]
cmp byte [ebx + 0xb], 0
jns 0x447699
mov ebx, dword [ebx]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne cl
test esi, esi
je 0x4476ae
test eax, eax
je 0x4476d4
mov ebx, ecx
lea ecx, [esp + 0x420]
call fcn.00474640
mov ecx, dword [esp + 0x468]
xor ecx, ebp
call fcn.0048f468
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
cmp dword [esp + 0xc], 0xfffffffc
jne 0x4476e4
call fcn.004d51a0
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov dword [esi], eax
xor ecx, ecx
jmp 0x4476ae
Function at 0x4476f0
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 [0x520014]
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.0046dd60
add esp, 0x10
mov ecx, esi
push 0
push ebx
call fcn.004745e0
cmp byte [edi + 0xb], 0
jns 0x447751
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov ecx, esi
call fcn.00474640
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.0048f468
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x447780
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x228
mov eax, dword [0x520014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x21a]
push 0x20a
push 0xff
push ebx
call fcn.004926b0
add esp, 0xc
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
add esi, 0xfffffefc
cmp esi, 0xfffffefd
jb 0x447808
push ebx
call fcn.004a81e6
add esp, 4
lea edi, [ebp - 0x234]
mov ecx, edi
push eax
push ebx
call fcn.00443e60
lea ebx, [ebp - 0x228]
mov ecx, edi
push ebx
call fcn.00444930
mov ecx, dword [ebp + 8]
push ebx
call fcn.00443f80
mov ecx, ebx
call fcn.0046c2c0
mov ecx, edi
call fcn.0046c2c0
cmp esi, 0xfffffefd
setae bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048f468
mov eax, ebx
add esp, 0x228
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x447ad0
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 [0x520014]
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.0046dd60
add esp, 0x10
mov ecx, edi
push 0
push ebx
call fcn.004745e0
cmp byte [esi + 0xb], 0
mov ebx, esi
jns 0x447b3b
mov ebx, dword [esi]
mov edi, dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x447b75
mov bl, 1
test al, 0x10
je 0x447c7a
lea ecx, [esp + 0x20]
call fcn.00474640
mov ecx, dword [esp + 0xa8]
xor ecx, ebp
call fcn.0048f468
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.0046c3d0
movzx ecx, byte [edi + 0xb]
mov eax, ecx
test cl, cl
jns 0x447b9a
mov eax, dword [esp + 8]
mov dword [esp], eax
movzx eax, byte [esi + 0xb]
mov edx, eax
test al, al
jns 0x447baa
mov edx, dword [esi + 4]
mov edi, dword [esp]
cmp edi, edx
je 0x447c95
push dword [ebp + 0xc]
lea eax, [esp + 8]
push eax
call fcn.00447ad0
add esp, 8
test al, al
je 0x447ce5
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
je 0x447bea
lea ecx, [esp + 4]
call fcn.0046c2c0
jmp 0x447b54
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], eax
cmp eax, 0xb7
jne 0x447c67
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.0046dd60
add esp, 0x10
mov ecx, edi
push 0
lea eax, [esp + 0x14]
push eax
call fcn.004745e0
cmp byte [esi + 0xb], 0
jns 0x447c47
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
lea ecx, [esp + 0x60]
call fcn.00474640
cmp esi, 0xffffffff
je 0x447c67
and esi, 0x10
jne 0x447bdc
cmp dword [ebp + 0xc], 0
je 0x447cdc
push dword [esp]
call fcn.004485a0
add esp, 4
jmp 0x447cd7
test edi, edi
je 0x447c86
mov eax, edi
mov dword [edi], 0xfffffff7
push 0x50
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x447b54
test edi, edi
je 0x447cc5
lea edi, [esp + 4]
test cl, cl
jns 0x447ca5
mov edi, dword [esp + 4]
mov ecx, esi
test al, al
jns 0x447cad
mov ecx, dword [esi]
xor edx, edx
movzx eax, word [edi + edx*2]
cmp ax, word [ecx + edx*2]
mov eax, dword [esp]
jne 0x447bb5
inc edx
cmp eax, edx
jne 0x447caf
mov eax, 0xfffffffc
mov dword [esp], 2
cmp dword [ebp + 0xc], 0
je 0x447cdc
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push dword [esp]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x447bdc
Function at 0x447cf0
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 [0x520014]
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.0046dd60
add esp, 0x10
xor ebx, ebx
mov ecx, esi
push ebx
push edi
call fcn.004745e0
push 0x800
push ebx
push edi
call fcn.004926b0
add esp, 0xc
push edi
push 0x3ff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x447ee6
lea esi, [esp + 0x48]
push 0x208
push 0xff
push esi
call fcn.004926b0
add esp, 0xc
movzx eax, word [0x50c084]
mov word [esp + 0x44], ax
mov eax, dword [0x50c080]
mov dword [esp + 0x40], eax
movzx eax, word [esp + 0x250]
test ax, ax
je 0x447e42
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 0x447e23
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
push esi
call fcn.004a81e6
add esp, 4
lea ecx, [esp + 0x34]
push eax
mov edi, esi
push esi
mov esi, ecx
call fcn.00443e60
mov ecx, esi
mov ebx, dword [ebp + 8]
push ebx
call fcn.00443fc0
test al, al
jne 0x447e49
mov ecx, esi
push ebx
call fcn.00444410
test al, al
jne 0x447e49
mov ecx, esi
call fcn.0046c2c0
xor ebx, ebx
dec ebx
mov esi, edi
mov edi, dword [esp + 8]
cmp word [edi], 0
lea edi, [edi + 2]
jne 0x447e27
movzx eax, word [edi]
test ax, ax
lea ecx, [esp + 0x40]
mov edx, dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
jne 0x447dc2
xor ebx, ebx
jmp 0x447ee6
push edi
call fcn.004a81e6
add esp, 4
lea edx, [ebx + 0xc]
lea edi, [esp + 0xc]
mov ecx, edi
push edx
push 0xffffffffffffffff
push eax
push ebx
call fcn.00442fc0
xor esi, esi
mov ecx, edi
lea eax, [esp + 0x40]
push eax
push esi
call fcn.00443080
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 0x447ea0
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
jmp 0x447ea4
lea edx, [esp + 0x18]
lea edi, [esp + 0x28]
mov ecx, edi
push eax
push edx
call fcn.00443e60
mov ecx, dword [ebp + 0xc]
push edi
call fcn.00443f80
mov ecx, edi
call fcn.0046c2c0
cmp byte [esp + 0x23], 0
jns 0x447ed4
push dword [esp + 0x18]
call fcn.0048e90d
add esp, 4
cmp byte [esp + 0x17], 0
js 0x447f0a
lea ecx, [esp + 0x34]
call fcn.0046c2c0
mov bl, 1
lea ecx, [esp + 0xa50]
call fcn.00474640
mov ecx, dword [esp + 0xa98]
xor ecx, ebp
call fcn.0048f468
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push dword [esp + 0xc]
call fcn.0048e90d
add esp, 4
jmp 0x447edb
Function at 0x448030
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 [0x520014]
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 0x50c08f
push eax
call fcn.0046dd60
add esp, 0x10
xor ebx, ebx
mov ecx, esi
push ebx
lea eax, [esp + 0x14]
push eax
call fcn.004745e0
cmp byte [edi + 0xb], 0
jns 0x448098
mov edi, dword [edi]
sub esp, 0x1c
mov dword [esp + 0x18], ebx
movaps xmm0, xmmword [0x5062e0]
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 0x4480dd
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp esi, 0xffffffff
je 0x44814b
call fcn.0046dd90
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 0x44814f
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 0x44812d
call fcn.0046dd90
push ebx
call fcn.00470d70
add esp, 4
lea ecx, [esp + 0x20]
call fcn.00474640
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.0048f468
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
jmp 0x4480d6
xor esi, esi
dec esi
jmp 0x448118
Function at 0x448160
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 [0x520014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x2a4]
push 0x294
push 0xff
push esi
call fcn.004926b0
add esp, 0xc
mov ecx, esi
mov dword [ebp - 0x508], ebx
push ebx
push 3
push 0
push edi
call fcn.0044f970
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.0044fb20
movzx eax, byte [edi + 0xb]
test al, al
jns 0x4481cd
mov eax, dword [ebp - 0x4fc]
xor esi, esi
test eax, eax
je 0x44829b
lea ebx, [ebp - 0x4f4]
xor edi, edi
push 0x250
push 0xff
push ebx
call fcn.004926b0
add esp, 0xc
lea ecx, [ebp - 0x2a4]
push ebx
call fcn.0044faa0
mov eax, dword [ebp - 0x4f4]
test al, 1
jne 0x4482c8
mov ecx, ebx
call fcn.0044f960
test al, al
jne 0x4482ed
cmp byte [ebp - 0x4f5], 0
lea eax, [ebp - 0x500]
jns 0x448230
mov eax, dword [ebp - 0x500]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x448387
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.004131a0
lea ecx, [ebp - 0x2a4]
push ebx
call fcn.0044fb20
lea ecx, [ebp - 0x500]
push ebx
call fcn.00443f80
mov ecx, ebx
call fcn.0046c2c0
movzx eax, byte [ebp - 0x4f5]
test al, al
jns 0x448291
mov eax, dword [ebp - 0x4fc]
mov edi, esi
test eax, eax
jne 0x4481df
lea ecx, [ebp - 0x500]
call fcn.0046c2c0
lea ecx, [ebp - 0x2a4]
call fcn.0044fa30
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048f468
mov eax, esi
add esp, 0x4fc
pop esi
pop edi
pop ebx
pop ebp
ret
cmp byte [ebp + 8], 0
je 0x448365
and eax, 0xfffffffe
cmp byte [ebp - 0x4f5], 0
jns 0x44838e
mov ecx, dword [ebp - 0x500]
jmp 0x448394
xor esi, esi
cmp byte [ebp + 8], 0
je 0x448255
lea ecx, [ebp - 0x500]
mov dword [ebp - 0x504], ecx
mov edx, dword [ebp - 0x508]
push 1
call fcn.00448160
add esp, 4
mov esi, eax
test eax, eax
jne 0x448255
cmp byte [ebp - 0x4f5], 0
jns 0x448334
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 0x448255
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor esi, esi
cmp ecx, 2
cmovne esi, eax
jmp 0x448255
lea ecx, [ebp - 0x4f4]
call fcn.0044f960
test al, al
je 0x4483a1
lea ecx, [ebp - 0x4f4]
call fcn.0044f960
test al, al
je 0x44821b
xor esi, esi
jmp 0x448255
lea ecx, [ebp - 0x500]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x44820c
mov eax, dword [ebp - 0x4f4]
jmp 0x4482d2