joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4494a0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov ebx, edx
mov edi, ecx
mov eax, dword [0x591014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x1c]
push edx
push ecx
push esi
call fcn.00451680
add esp, 0xc
cmp byte [esi + 0xb], 0
jns 0x4494ce
mov esi, dword [ebp - 0x1c]
xor eax, eax
push eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
cmp byte [ebp - 0x11], 0
jns 0x4494ec
push dword [ebp - 0x1c]
call fcn.004c5c98
add esp, 4
cmp dword [ebp + 8], 0
je 0x449585
test esi, esi
je 0x449585
lea eax, [esi + esi]
xor ecx, ecx
dec ecx
test esi, esi
cmovns ecx, eax
push ecx
call fcn.004c5cc3
add esp, 4
mov ecx, edi
mov edi, eax
mov eax, ebx
lea ebx, [ebp - 0x1c]
push eax
push ecx
push ebx
call fcn.00451680
add esp, 0xc
cmp byte [ebx + 0xb], 0
jns 0x44952f
mov ebx, dword [ebp - 0x1c]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp byte [ebp - 0x11], 0
jns 0x449549
push dword [ebp - 0x1c]
call fcn.004c5c98
add esp, 4
test edi, edi
mov ebx, dword [ebp + 8]
je 0x44959e
push edi
call fcn.004e2704
add esp, 4
lea ecx, [ebp - 0x1c]
push eax
push edi
push ecx
call fcn.004a8d40
add esp, 0xc
cmp byte [ebx + 0xb], 0
js 0x4495a1
mov eax, dword [ebp - 0x14]
mov dword [ebx + 8], eax
movsd xmm0, qword [ebp - 0x1c]
movsd qword [ebx], xmm0
push edi
call fcn.004c5ccc
add esp, 4
test esi, esi
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c66e3
mov eax, ebx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
int3
push dword [ebx]
call fcn.004c5c98
add esp, 4
jmp 0x44956d

Function at 0x4496f0
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.00454720
mov dword [esi], 0
test eax, eax
je 0x449737
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
inc ecx
cmp ecx, 2
jae 0x449769
lea ecx, [ebx + 1]
cmp ecx, 2
jb 0x449730
mov dword [esi], ebx
mov ebx, eax
call fcn.004a2700
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esi + 4]
lea eax, [edi + 4]
push eax
call fcn.004a1c50
lea ecx, [esi + 0x10]
call fcn.004af330
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.004a2700
push dword [esi]
call fcn.004ab080
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [esi], 0
jmp 0x44971d
Function at 0x44a890
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xc0
mov dword [esp + 0xc], edx
mov eax, dword [0x591014]
xor eax, ebp
mov dword [esp + 0xb8], eax
xor ebx, ebx
test ecx, ecx
je 0x44aa0a
push ebx
push ebx
push ecx
mov dword [esp + 0x1c], ecx
call fcn.004dff4a
add esp, 0xc
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x70]
movdqa xmmword [esi + 0x30], xmm0
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
lea edi, [esp + 0x30]
push 0x48
push str....._base_files_file_util.cc
push str.ReadStreamToSpanWithMaxSize
push edi
call fcn.004a26d0
add esp, 0x10
mov ecx, esi
push ebx
push edi
call fcn.004a9540
mov dword [edi + 0x30], ebx
pxor xmm0, xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
push dword [esp + 0x10]
call fcn.004d86bd
add esp, 4
push eax
call fcn.004d8ebd
add esp, 4
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x44aa22
mov eax, dword [esp + 0x54]
xor ecx, ecx
mov edx, eax
neg edx
sbb ecx, dword [esp + 0x50]
mov edi, 0xffff
cmovl edi, eax
mov eax, dword [esp + 0xc]
cmp edi, eax
cmovae edi, eax
inc edi
xor eax, eax
dec eax
lea ebx, [esp + 0x28]
mov dword [ebx], eax
mov dword [ebx + 4], eax
lea ecx, [ebp + 8]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
call dword [section..00cfg]
mov eax, dword [esp + 0x20]
push edi
push eax
push ebx
mov dword [esp + 0x24], ecx
call ecx
add esp, 0xc
xor esi, esi
mov eax, dword [ebx + 4]
add eax, esi
push dword [esp + 0x10]
push edi
push 1
push eax
call fcn.004dfd47
add esp, 0x10
test eax, eax
je 0x44a9ce
mov ebx, eax
mov eax, dword [esp + 0xc]
sub eax, esi
cmp eax, ebx
jb 0x44aa2c
add ebx, esi
push dword [esp + 0x10]
call fcn.004df8de
add esp, 4
test eax, eax
je 0x44aa34
mov esi, ebx
push dword [esp + 0x10]
call fcn.004df90a
add esp, 4
test eax, eax
sete bl
mov eax, dword [esp + 0x14]
mov dword [esp + 0x6c], eax
mov ecx, dword [esp + 0x18]
call dword [section..00cfg]
mov eax, dword [esp + 0x6c]
lea edx, [esp + 0x20]
push esi
push eax
push edx
call ecx
add esp, 0xc
lea ecx, [esp + 0x70]
call fcn.004a95a0
mov ecx, dword [esp + 0xb8]
xor ecx, ebp
call fcn.004c66e3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, 0xffff
jmp 0x44a957
xor ebx, ebx
mov esi, dword [esp + 0xc]
jmp 0x44a9df
test esi, esi
mov eax, 0x10000
cmove edi, eax
lea eax, [ebx + edi]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x6c], eax
mov ecx, dword [esp + 0x18]
call dword [section..00cfg]
mov eax, dword [esp + 0x6c]
lea esi, [esp + 0x20]
push dword [esp + 0x1c]
push eax
push esi
call ecx
add esp, 0xc
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ecx
mov esi, ebx
jmp 0x44a998
Function at 0x44bbb0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
call fcn.0044bc70
mov eax, dword [esi]
mov dword [0x592c00], eax
test al, 1
jne 0x44bbcc
mov al, 1
pop esi
pop ebp
ret
mov eax, dword [0x597fd4]
test eax, eax
jne 0x44bbe1
mov ecx, dword [0x597fc0]
test ecx, ecx
je 0x44bc03
jmp 0x44bc1f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x597fd4], 0
mov ecx, dword [0x597fc0]
test ecx, ecx
jne 0x44bc1f
and byte [0x592c00], 0xfe
push 0xc
call fcn.004c5c68
add esp, 4
mov ecx, eax
xor eax, eax
mov dword [ecx + 4], eax
mov dword [ecx], eax
mov dword [ecx + 8], eax
mov dword [0x597fc0], ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x44bc4d
push eax
call fcn.004457a0
cmp dword [esi + 0xc], 0
jne 0x44bc46
mov eax, dword [0x597fc0]
cmp byte [eax + 0xb], 0
jns 0x44bc3f
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
pop ebp
jmp fcn.0050b260
push str.string::assign_received_nullptr
push str.__s___nullptr
push 0xa17
push str....._buildtools_third_partylibc_trunkinclude_string
push str._s:_d:_assertion__s_failed:__s
call fcn.004f96d0
int3
Function at 0x44e790
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 0x44e7ae
mov eax, dword [ebx + 4]
mov ebx, dword [ebx]
jmp 0x44e7b1
and eax, 0x7f
mov esi, eax
mov ecx, ebx
mov edx, eax
mov dword [ebp - 0x18], eax
cmp eax, 4
jb 0x44e7ec
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 0x44e7c6
cmp edx, 1
je 0x44e80d
cmp edx, 2
je 0x44e804
cmp edx, 3
jne 0x44e818
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 0x44e936
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 0x44e949
mov edx, esi
cmp esi, dword [ebp - 0x10]
jb 0x44e891
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 0x44e936
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x14], esi
mov ebx, dword [eax]
test ebx, ebx
je 0x44e936
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 0x44e8fd
movzx edx, byte [ebx + 0x13]
mov eax, edx
and eax, 0x7f
mov ecx, eax
test dl, dl
jns 0x44e8d5
mov ecx, dword [ebx + 0xc]
cmp ecx, dword [ebp - 0x18]
jne 0x44e914
lea ecx, [ebx + 8]
test dl, dl
jns 0x44e8e3
mov ecx, dword [ecx]
js 0x44e91c
test al, al
je 0x44e934
xor ecx, ecx
mov dl, byte [ebx + ecx + 8]
mov edi, eax
cmp dl, byte [esi + ecx]
jne 0x44e914
inc ecx
cmp eax, ecx
jne 0x44e8eb
jmp 0x44e934
cmp dword [ebp - 0x28], 1
jbe 0x44e956
cmp eax, dword [ebp - 0x10]
jb 0x44e90f
xor edx, edx
div dword [ebp - 0x10]
mov eax, edx
cmp eax, dword [ebp - 0x24]
jne 0x44e945
mov ebx, dword [ebx]
test ebx, ebx
jne 0x44e8bb
jmp 0x44e945
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x44e934
push eax
push dword [ebp - 0x1c]
push ecx
call fcn.004c7edd
add esp, 0xc
test eax, eax
jne 0x44e914
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 0x44e936
mov eax, dword [ebp - 0x10]
lea edx, [eax - 1]
and edx, esi
jmp 0x44e891
and eax, dword [ebp - 0x20]
jmp 0x44e90f
Function at 0x451940
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x592c20]
cmp eax, 0xffffffff
je 0x451960
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 0x45195e

Function at 0x451970
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov eax, dword [0x592c20]
cmp eax, 0xffffffff
je 0x451a31
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x451a31
mov eax, dword [0x598cac]
mov ecx, dword [0x5954dc]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x451a3b
mov edi, dword [0x598ca8]
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x451a80
mov ecx, dword [0x5980a4]
inc ecx
xor edx, edx
lea eax, [ecx + edx]
movzx ebx, al
lea eax, [ebx + ebx*2]
cmp dword [eax*4 + 0x5980a8], 0
jne 0x451a8c
lea eax, [eax*4 + 0x5980a8]
mov dword [eax], 1
lea eax, [ebx*4]
mov ecx, dword [ebp + 8]
mov dword [eax + eax*2 + 0x5980ac], ecx
mov dword [0x5980a4], ebx
mov dword [esi], ebx
mov eax, dword [eax + eax*2 + 0x5980b0]
mov dword [esi + 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp dword [esi], 0x100
jae 0x451a9b
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.00451aa0
jmp 0x451995
push 0x598cac
call fcn.004c5d07
add esp, 4
cmp dword [0x598cac], 0xffffffff
jne 0x4519b6
push 4
call fcn.004c5c68
add esp, 4
mov edi, eax
mov ecx, eax
call fcn.004aaff0
mov dword [0x598ca8], edi
push 0x598cac
call fcn.004c5d7d
add esp, 4
jmp 0x4519b6
mov ecx, edi
call fcn.004ab000
jmp 0x4519cb
inc edx
cmp edx, 0x100
jne 0x4519d4
jmp 0x451a1b
int3

Function at 0x451aa0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x808
mov eax, dword [0x591014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x814], 0xffffffff
mov ecx, dword [0x592c20]
mov dword [ebp - 0x814], ecx
cmp ecx, 0xffffffff
je 0x451b4d
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x451b96
mov edi, 0x800
lea ebx, [ebp - 0x810]
push edi
push 0
push ebx
call fcn.004c9370
add esp, 0xc
lea eax, [ebp - 0x80d]
push eax
push dword [ebp - 0x814]
call fcn.00468fb0
add esp, 8
push edi
call fcn.004c5cc3
add esp, 4
mov esi, eax
push edi
push ebx
push eax
call fcn.004c8df0
add esp, 0xc
mov eax, esi
or eax, 3
push eax
push dword [ebp - 0x814]
call fcn.00468fb0
add esp, 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c66e3
mov eax, esi
add esp, 0x808
pop esi
pop edi
pop ebx
pop ebp
ret
lea esi, [ebp - 0x814]
push esi
call fcn.00468f90
add esp, 4
test al, al
je 0x451b99
mov ecx, dword [ebp - 0x814]
cmp ecx, 0xffffffff
je 0x451b9c
xor eax, eax
dec eax
lock cmpxchg dword [0x592c20], ecx
je 0x451ad1
push ecx
call fcn.00517c50
add esp, 4
mov ecx, dword [0x592c20]
mov dword [ebp - 0x814], ecx
jmp 0x451ad1
int3
int3
push esi
call fcn.00468f90
add esp, 4
test al, al
je 0x451bc4
cmp dword [ebp - 0x814], 0xffffffff
je 0x451bc4
push 0xffffffffffffffff
call fcn.00517c50
add esp, 4
mov ecx, dword [ebp - 0x814]
jmp 0x451b6b
int3
Function at 0x451c90
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 [0x591014]
xor eax, ebp
mov dword [esp + 0x1c], eax
push dword [0x592c20]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
and ecx, 3
cmp ecx, 2
jne 0x451d03
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x11e1a300
mov esi, esp
push 0x1db
push str....._base_threading_thread_local_storage.cc
push 0x57c8b4
push esi
call fcn.004a26d0
add esp, 4
movsd xmm0, qword [esp + 0x1c]
movsd qword [esp + 4], xmm0
mov dword [esp], esi
call fcn.0050abf0
add esp, 0xc
xor esi, esi
jmp 0x451d18
xor esi, esi
and eax, 0xfffffffc
je 0x451d18
mov ecx, dword [edi]
mov edx, dword [eax + ecx*8 + 4]
cmp edx, dword [edi + 4]
jne 0x451d18
mov esi, dword [eax + ecx*8]
mov ecx, dword [esp + 0x1c]
xor ecx, ebp
call fcn.004c66e3
mov eax, esi
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret

Function at 0x453720
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
pop ebp
jmp fcn.00453730
Function at 0x4539a0
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 [0x591014]
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 0x194
push str....._base_files_file_util_win.cc
push 0x57ca97
push eax
call fcn.004a26d0
add esp, 0x10
mov ecx, esi
lea esi, [esp + 0x218]
push 0
push esi
call fcn.004a9540
mov eax, 0x208
mov ecx, 0xff
push eax
push ecx
push esi
call fcn.004c9370
add esp, 0xc
cmp byte [ebx + 0xb], 0
mov eax, ebx
jns 0x453a30
mov eax, dword [ebx]
mov ecx, 0x104
push ecx
push eax
push esi
call fcn.004a8330
add esp, 0xc
push esi
call fcn.0049a2b0
add esp, 4
lea esi, [esp + 0x10]
mov eax, 0x208
push eax
mov eax, 0xff
push eax
push esi
call fcn.004c9370
add esp, 0xc
cmp byte [edi + 0xb], 0
mov eax, edi
jns 0x453a6c
mov eax, dword [edi]
mov ecx, 0x104
push ecx
push eax
push esi
call fcn.004a8330
add esp, 0xc
push esi
call fcn.0049a2b0
add esp, 4
cmp byte [ebx + 0xb], 0
mov eax, ebx
jns 0x453a8f
mov eax, dword [ebx]
cmp byte [edi + 0xb], 0
mov ecx, edi
jns 0x453a99
mov ecx, dword [edi]
sub esp, 0x18
movaps xmm0, xmmword [0x57ca40]
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 0x453b0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00454cc0
add esp, 4
mov dword [esp + 0xc], eax
cmp byte [edi + 0xb], 0
jns 0x453ad4
mov edi, dword [edi]
mov esi, dword [ebp + 0x10]
cmp byte [ebx + 0xb], 0
jns 0x453adf
mov ebx, dword [ebx]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne bl
test esi, esi
je 0x453b10
test eax, eax
jne 0x453b10
cmp dword [esp + 0xc], 0xfffffffc
jne 0x453b04
call fcn.0050fd50
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov dword [esi], eax
xor ebx, ebx
jmp 0x453b10
mov bl, 1
lea ecx, [esp + 0x420]
call fcn.004a95a0
mov ecx, dword [esp + 0x468]
xor ecx, ebp
call fcn.004c66e3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x453b40
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 [0x591014]
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 0x1c7
push str....._base_files_file_util_win.cc
push str.PathExists
push ebx
call fcn.004a26d0
add esp, 0x10
mov ecx, esi
push 0
push ebx
call fcn.004a9540
cmp byte [edi + 0xb], 0
jns 0x453ba1
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov ecx, esi
call fcn.004a95a0
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.004c66e3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x453bd0
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 [0x591014]
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 0x1ef
push str....._base_files_file_util_win.cc
push str.DirectoryExists
push ebx
call fcn.004a26d0
add esp, 0x10
mov ecx, esi
push 0
push ebx
call fcn.004a9540
cmp byte [edi + 0xb], 0
jns 0x453c31
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.004a95a0
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.004c66e3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x453c70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x228
mov eax, dword [0x591014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x21a]
push 0x20a
push 0xff
push ebx
call fcn.004c9370
add esp, 0xc
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
add esi, 0xfffffefc
cmp esi, 0xfffffefd
jb 0x453cf8
push ebx
call fcn.004e2704
add esp, 4
lea edi, [ebp - 0x234]
mov ecx, edi
push eax
push ebx
call fcn.004a1cc0
lea ebx, [ebp - 0x228]
mov ecx, edi
push ebx
call fcn.0044a590
mov ecx, dword [ebp + 8]
push ebx
call fcn.00449840
mov ecx, ebx
call fcn.004a1da0
mov ecx, edi
call fcn.004a1da0
cmp esi, 0xfffffefd
setae bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c66e3
mov eax, ebx
add esp, 0x228
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x453d20
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 [0x591014]
xor eax, ebp
mov dword [ebp - 0xc], eax
lea edi, [ebp - 0x214]
push 0x208
push 0xff
push edi
call fcn.004c9370
sub esp, 8
mov dword [esp + 0x10], edi
movaps xmm0, xmmword [0x57ca50]
movups xmmword [esp], xmm0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x453d9c
cmp word [ebp - 0x214], 0
je 0x453d9c
push edi
call fcn.004e2704
add esp, 4
mov ecx, esi
push eax
push edi
call fcn.004a1cc0
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004c66e3
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.004a1c30
push edi
call fcn.00453c70
add esp, 4
mov ecx, esi
test al, al
je 0x453dcb
push edi
call fcn.004a1c90
jmp 0x453dd7
push 3
push 0x57cac0
call fcn.004a1cc0
lea ecx, [ebp - 0x220]
call fcn.004a1da0
jmp 0x453d86
Function at 0x4543e0
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 [0x591014]
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 0x3af
push str....._base_files_file_util_win.cc
push 0x57cb16
push ebx
call fcn.004a26d0
add esp, 0x10
mov ecx, esi
push 0
push ebx
call fcn.004a9540
lea esi, [esp + 0x1a]
push 0x206
push 0xff
push esi
call fcn.004c9370
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 0x4544b1
push ebx
call fcn.004e2704
add esp, 4
mov edi, esp
mov ecx, edi
push eax
push ebx
call fcn.004a1cc0
lea ebx, [esp + 0xc]
mov ecx, edi
push ebx
call fcn.0044a590
mov ecx, dword [ebp + 8]
push ebx
call fcn.00449840
mov ecx, ebx
call fcn.004a1da0
mov ecx, edi
call fcn.004a1da0
cmp esi, 0xfffffefc
setae bl
lea ecx, [esp + 0x220]
call fcn.004a95a0
mov ecx, dword [esp + 0x268]
xor ecx, ebp
call fcn.004c66e3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4544e0
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 [0x591014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x2a4]
push 0x294
push 0xff
push esi
call fcn.004c9370
add esp, 0xc
mov ecx, esi
mov dword [ebp - 0x504], ebx
push ebx
push 3
push 0
push edi
call fcn.004605e0
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.004607a0
movzx eax, byte [edi + 0xb]
test al, al
jns 0x45454f
mov eax, dword [ebp - 0x4fc]
jmp 0x454552
and eax, 0x7f
xor esi, esi
test eax, eax
jne 0x454585
lea ecx, [ebp - 0x500]
call fcn.004a1da0
lea ecx, [ebp - 0x2a4]
call fcn.004606f0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c66e3
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.004c9370
add esp, 0xc
lea ecx, [ebp - 0x2a4]
push esi
call fcn.00460760
mov eax, dword [ebp - 0x4f4]
test al, 1
jne 0x454692
mov ecx, esi
call fcn.004605d0
test al, al
jne 0x45464f
cmp byte [ebp - 0x4f5], 0
mov eax, edi
jns 0x4545da
mov eax, dword [ebp - 0x500]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4546ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor esi, esi
cmp ecx, 2
je 0x4545fd
mov esi, eax
test ebx, ebx
cmovne esi, ebx
lea ebx, [ebp - 0x4f4]
mov ecx, ebx
call fcn.0042a720
lea ecx, [ebp - 0x2a4]
push ebx
call fcn.004607a0
mov ecx, edi
push ebx
call fcn.00449840
mov ecx, ebx
call fcn.004a1da0
movzx eax, byte [ebp - 0x4f5]
test al, al
jns 0x45463d
mov eax, dword [ebp - 0x4fc]
jmp 0x454640
and eax, 0x7f
mov ebx, esi
test eax, eax
je 0x454558
jmp 0x454587
xor esi, esi
cmp byte [ebp + 8], 0
je 0x4545fd
mov ecx, edi
mov edx, dword [ebp - 0x504]
push 1
call fcn.004544e0
add esp, 4
test eax, eax
jne 0x4545fb
cmp byte [ebp - 0x4f5], 0
mov eax, edi
jns 0x45467e
mov eax, dword [ebp - 0x500]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4545fd
jmp 0x4545e9
cmp byte [ebp + 8], 0
je 0x4546ac
and eax, 0xfffffffe
cmp byte [ebp - 0x4f5], 0
jns 0x4546d5
mov ecx, dword [ebp - 0x500]
jmp 0x4546db
lea ecx, [ebp - 0x4f4]
call fcn.004605d0
test al, al
je 0x4546ee
lea ecx, [ebp - 0x4f4]
call fcn.004605d0
test al, al
je 0x4545c9
xor esi, esi
jmp 0x4545fd
lea ecx, [ebp - 0x500]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea esi, [ebp - 0x4f4]
jmp 0x4545ba
mov eax, dword [ebp - 0x4f4]
jmp 0x454698