joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46abc0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov edi, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [0x59d024]
xor edx, ebp
mov dword [ebp - 0x10], edx
lea esi, [ebp - 0x20]
push 3
push ecx
push eax
push esi
call fcn.0047e650
add esp, 0x10
mov eax, dword [esi + 4]
test eax, eax
je 0x46ad16
mov esi, dword [ebp - 0x20]
mov dword [edi], esi
mov dword [edi + 4], eax
xor eax, eax
mov dword [ebp - 0x14], eax
push 0x800
mov dword [ebp - 0x24], 0
push eax
push 0x58d130
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], eax
je 0x46ad53
push 0x58d180
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x46ac4c
mov ecx, eax
call dword [section..00cfg]
lea eax, [ebp - 0x14]
push eax
push esi
call ecx
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov edi, 0
mov dword [ebp - 0x28], 0
test ebx, ebx
je 0x46acb6
shl ebx, 2
cmp ebx, 0x55555555
jae 0x46ad63
lea esi, [ebx + ebx*2]
push esi
call fcn.004eca5e
add esp, 4
mov edi, eax
mov dword [ebp - 0x20], eax
add eax, esi
mov dword [ebp - 0x18], eax
xor esi, esi
mov dword [ebp - 0x28], edi
test edi, edi
je 0x46ad2a
mov ecx, edi
mov eax, dword [ebp - 0x24]
push dword [eax + esi]
call fcn.0051d070
add edi, 0xc
add esi, 4
cmp ebx, esi
jne 0x46ac94
mov dword [ebp - 0x1c], edi
mov esi, dword [ebp - 0x30]
mov ecx, esi
lea eax, [ebp - 0x20]
push eax
call fcn.0046a990
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x46ace2
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x46ad16
cmp edi, esi
je 0x46ad0d
add edi, 0xfffffff4
test edi, edi
je 0x46ad45
cmp byte [edi + 0xb], 0
jns 0x46ad04
push dword [edi]
call fcn.004eca8e
add esp, 4
lea eax, [edi - 0xc]
cmp edi, esi
mov edi, eax
jne 0x46acf0
push esi
call fcn.004eca8e
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ed092
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret 8
push str.null_pointer_given_to_construct_at
push str.__location___nullptr
push 0x23
push str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
push str._s:_d:_assertion__s_failed:__s
call fcn.0051d7e0
push str.null_pointer_given_to_destroy_at
push str.__loc___nullptr
push 0x3f
jmp 0x46ad36
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
jmp 0x46ac49
call fcn.00501b50
int3
Function at 0x46cc90
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 [0x59d024]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x1c]
push edx
push ecx
push esi
call fcn.00477810
add esp, 0xc
cmp byte [esi + 0xb], 0
jns 0x46ccbe
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 0x46ccdc
push dword [ebp - 0x1c]
call fcn.004eca8e
add esp, 4
cmp dword [ebp + 8], 0
je 0x46cd75
test esi, esi
je 0x46cd75
lea eax, [esi + esi]
xor ecx, ecx
dec ecx
test esi, esi
cmovns ecx, eax
push ecx
call fcn.004ecac3
add esp, 4
mov ecx, edi
mov edi, eax
mov eax, ebx
lea ebx, [ebp - 0x1c]
push eax
push ecx
push ebx
call fcn.00477810
add esp, 0xc
cmp byte [ebx + 0xb], 0
jns 0x46cd1f
mov ebx, dword [ebp - 0x1c]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp byte [ebp - 0x11], 0
jns 0x46cd39
push dword [ebp - 0x1c]
call fcn.004eca8e
add esp, 4
test edi, edi
mov ebx, dword [ebp + 8]
je 0x46cd8e
push edi
call fcn.00508f54
add esp, 4
lea ecx, [ebp - 0x1c]
push eax
push edi
push ecx
call fcn.004bd370
add esp, 0xc
cmp byte [ebx + 0xb], 0
js 0x46cd91
mov eax, dword [ebp - 0x14]
mov dword [ebx + 8], eax
movsd xmm0, qword [ebp - 0x1c]
movsd qword [ebx], xmm0
push edi
call fcn.004ecacc
add esp, 4
test esi, esi
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ed092
mov eax, ebx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
int3
push dword [ebx]
call fcn.004eca8e
add esp, 4
jmp 0x46cd5d
Function at 0x46e740
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 [0x59d024]
xor eax, ebp
mov dword [esp + 0xb8], eax
xor ebx, ebx
test ecx, ecx
je 0x46e8ba
push ebx
push ebx
push ecx
mov dword [esp + 0x1c], ecx
call fcn.005068ba
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.004b4450
add esp, 0x10
mov ecx, esi
push ebx
push edi
call fcn.004be2f0
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.004ff8b2
add esp, 4
push eax
call fcn.004ff90a
add esp, 4
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x46e8d2
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.005066b7
add esp, 0x10
test eax, eax
je 0x46e87e
mov ebx, eax
mov eax, dword [esp + 0xc]
sub eax, esi
cmp eax, ebx
jb 0x46e8dc
add ebx, esi
push dword [esp + 0x10]
call fcn.0050624e
add esp, 4
test eax, eax
je 0x46e8e4
mov esi, ebx
push dword [esp + 0x10]
call fcn.0050627a
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.004be370
mov ecx, dword [esp + 0xb8]
xor ecx, ebp
call fcn.004ed092
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, 0xffff
jmp 0x46e807
xor ebx, ebx
mov esi, dword [esp + 0xc]
jmp 0x46e88f
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 0x46e848
Function at 0x46fb30
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
call fcn.0046fbd0
mov eax, dword [esi]
mov dword [0x59ebc0], eax
test al, 1
jne 0x46fb4c
mov al, 1
pop esi
pop ebp
ret
mov eax, dword [0x5a2e20]
test eax, eax
jne 0x46fb61
mov ecx, dword [0x5a2e0c]
test ecx, ecx
je 0x46fb83
jmp 0x46fb9f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x5a2e20], 0
mov ecx, dword [0x5a2e0c]
test ecx, ecx
jne 0x46fb9f
and byte [0x59ebc0], 0xfe
push 0xc
call fcn.004eca5e
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 [0x5a2e0c], ecx
push dword [esi + 4]
call fcn.00470600
cmp dword [esi + 0xc], 0
jne 0x46fbc1
mov eax, dword [0x5a2e0c]
cmp byte [eax + 0xb], 0
jns 0x46fbba
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
pop ebp
jmp fcn.00539020
Function at 0x4726b0
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 0x4726ce
mov eax, dword [ebx + 4]
mov ebx, dword [ebx]
jmp 0x4726d1
and eax, 0x7f
mov esi, eax
mov ecx, ebx
mov edx, eax
mov dword [ebp - 0x18], eax
cmp eax, 4
jb 0x47270c
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 0x4726e6
cmp edx, 1
je 0x47272d
cmp edx, 2
je 0x472724
cmp edx, 3
jne 0x472738
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 0x472856
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 0x472869
mov edx, esi
cmp esi, dword [ebp - 0x10]
jb 0x4727b1
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 0x472856
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x14], esi
mov ebx, dword [eax]
test ebx, ebx
je 0x472856
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 0x47281d
movzx edx, byte [ebx + 0x13]
mov eax, edx
and eax, 0x7f
mov ecx, eax
test dl, dl
jns 0x4727f5
mov ecx, dword [ebx + 0xc]
cmp ecx, dword [ebp - 0x18]
jne 0x472834
lea ecx, [ebx + 8]
test dl, dl
jns 0x472803
mov ecx, dword [ecx]
js 0x47283c
test al, al
je 0x472854
xor ecx, ecx
mov dl, byte [ebx + ecx + 8]
mov edi, eax
cmp dl, byte [esi + ecx]
jne 0x472834
inc ecx
cmp eax, ecx
jne 0x47280b
jmp 0x472854
cmp dword [ebp - 0x28], 1
jbe 0x472876
cmp eax, dword [ebp - 0x10]
jb 0x47282f
xor edx, edx
div dword [ebp - 0x10]
mov eax, edx
cmp eax, dword [ebp - 0x24]
jne 0x472865
mov ebx, dword [ebx]
test ebx, ebx
jne 0x4727db
jmp 0x472865
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x472854
push eax
push dword [ebp - 0x1c]
push ecx
call fcn.004eee7d
add esp, 0xc
test eax, eax
jne 0x472834
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 0x472856
mov eax, dword [ebp - 0x10]
lea edx, [eax - 1]
and edx, esi
jmp 0x4727b1
and eax, dword [ebp - 0x20]
jmp 0x47282f
Function at 0x478a30
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x59ece0]
cmp eax, 0xffffffff
je 0x478a50
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 0x478a4e

Function at 0x478a60
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov eax, dword [0x59ece0]
cmp eax, 0xffffffff
je 0x478b21
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x478b21
mov eax, dword [0x5a3b2c]
mov ecx, dword [0x5a0f40]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x478b2b
mov edi, dword [0x5a3b28]
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x478b70
mov ecx, dword [0x5a2f24]
inc ecx
xor edx, edx
lea eax, [ecx + edx]
movzx ebx, al
lea eax, [ebx + ebx*2]
cmp dword [eax*4 + 0x5a2f28], 0
jne 0x478b7c
lea eax, [eax*4 + 0x5a2f28]
mov dword [eax], 1
lea eax, [ebx*4]
mov ecx, dword [ebp + 8]
mov dword [eax + eax*2 + 0x5a2f2c], ecx
mov dword [0x5a2f24], ebx
mov dword [esi], ebx
mov eax, dword [eax + eax*2 + 0x5a2f30]
mov dword [esi + 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp dword [esi], 0x100
jae 0x478b8b
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.00478b90
jmp 0x478a85
push 0x5a3b2c
call fcn.004ecb07
add esp, 4
cmp dword [0x5a3b2c], 0xffffffff
jne 0x478aa6
push 4
call fcn.004eca5e
add esp, 4
mov edi, eax
mov ecx, eax
call fcn.004c2ee0
mov dword [0x5a3b28], edi
push 0x5a3b2c
call fcn.004ecb7d
add esp, 4
jmp 0x478aa6
mov ecx, edi
call fcn.004c2ef0
jmp 0x478abb
inc edx
cmp edx, 0x100
jne 0x478ac4
jmp 0x478b0b
int3

Function at 0x478b90
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x808
mov eax, dword [0x59d024]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x814], 0xffffffff
mov ecx, dword [0x59ece0]
mov dword [ebp - 0x814], ecx
cmp ecx, 0xffffffff
je 0x478c3d
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x478c86
mov edi, 0x800
lea ebx, [ebp - 0x810]
push edi
push 0
push ebx
call fcn.004f0310
add esp, 0xc
lea eax, [ebp - 0x80d]
push eax
push dword [ebp - 0x814]
call fcn.00493e80
add esp, 8
push edi
call fcn.004ecac3
add esp, 4
mov esi, eax
push edi
push ebx
push eax
call fcn.004efd90
add esp, 0xc
mov eax, esi
or eax, 3
push eax
push dword [ebp - 0x814]
call fcn.00493e80
add esp, 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ed092
mov eax, esi
add esp, 0x808
pop esi
pop edi
pop ebx
pop ebp
ret
lea esi, [ebp - 0x814]
push esi
call fcn.00493e60
add esp, 4
test al, al
je 0x478c89
mov ecx, dword [ebp - 0x814]
cmp ecx, 0xffffffff
je 0x478c8c
xor eax, eax
dec eax
lock cmpxchg dword [0x59ece0], ecx
je 0x478bc1
push ecx
call fcn.00549ba0
add esp, 4
mov ecx, dword [0x59ece0]
mov dword [ebp - 0x814], ecx
jmp 0x478bc1
int3
int3
push esi
call fcn.00493e60
add esp, 4
test al, al
je 0x478cb4
cmp dword [ebp - 0x814], 0xffffffff
je 0x478cb4
push 0xffffffffffffffff
call fcn.00549ba0
add esp, 4
mov ecx, dword [ebp - 0x814]
jmp 0x478c5b
int3
Function at 0x478d80
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 [0x59d024]
xor eax, ebp
mov dword [esp + 0x1c], eax
push dword [0x59ece0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
and ecx, 3
cmp ecx, 2
jne 0x478df3
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x11e1a300
mov esi, esp
push 0x1db
push str....._base_threading_thread_local_storage.cc
push 0x58de32
push esi
call fcn.004b4450
add esp, 4
movsd xmm0, qword [esp + 0x1c]
movsd qword [esp + 4], xmm0
mov dword [esp], esi
call fcn.00538960
add esp, 0xc
xor esi, esi
jmp 0x478e08
xor esi, esi
and eax, 0xfffffffc
je 0x478e08
mov ecx, dword [edi]
mov edx, dword [eax + ecx*8 + 4]
cmp edx, dword [edi + 4]
jne 0x478e08
mov esi, dword [eax + ecx*8]
mov ecx, dword [esp + 0x1c]
xor ecx, ebp
call fcn.004ed092
mov eax, esi
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret

Function at 0x47b190
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.0047b1a0
Function at 0x47b410
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.0047b1a0

Function at 0x47b5c0
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 [0x59d024]
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.004b4450
add esp, 0x10
mov ecx, esi
push 0
push ebx
call fcn.004be2f0
cmp byte [edi + 0xb], 0
jns 0x47b621
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov ecx, esi
call fcn.004be370
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.004ed092
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x47b650
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 [0x59d024]
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.004b4450
add esp, 0x10
mov ecx, esi
push 0
push ebx
call fcn.004be2f0
cmp byte [edi + 0xb], 0
jns 0x47b6b1
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.004be370
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.004ed092
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x47b6f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x228
mov eax, dword [0x59d024]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x21a]
push 0x20a
push 0xff
push ebx
call fcn.004f0310
add esp, 0xc
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
add esi, 0xfffffefc
cmp esi, 0xfffffefd
jb 0x47b778
push ebx
call fcn.00508f54
add esp, 4
lea edi, [ebp - 0x234]
mov ecx, edi
push eax
push ebx
call fcn.004b3430
lea ebx, [ebp - 0x228]
mov ecx, edi
push ebx
call fcn.0046e2e0
mov ecx, dword [ebp + 8]
push ebx
call fcn.0046d000
mov ecx, ebx
call fcn.004b3560
mov ecx, edi
call fcn.004b3560
cmp esi, 0xfffffefd
setae bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ed092
mov eax, ebx
add esp, 0x228
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x47b7a0
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 [0x59d024]
xor eax, ebp
mov dword [ebp - 0xc], eax
lea edi, [ebp - 0x214]
push 0x208
push 0xff
push edi
call fcn.004f0310
sub esp, 8
mov dword [esp + 0x10], edi
movaps xmm0, xmmword [0x58dfa0]
movups xmmword [esp], xmm0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x47b81c
cmp word [ebp - 0x214], 0
je 0x47b81c
push edi
call fcn.00508f54
add esp, 4
mov ecx, esi
push eax
push edi
call fcn.004b3430
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004ed092
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.004b3320
push edi
call fcn.0047b6f0
add esp, 4
mov ecx, esi
test al, al
je 0x47b84b
push edi
call fcn.004b3400
jmp 0x47b857
push 3
push 0x58aa18
call fcn.004b3430
lea ecx, [ebp - 0x220]
call fcn.004b3560
jmp 0x47b806
Function at 0x47bc20
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 [0x59d024]
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 0x58e061
push ebx
call fcn.004b4450
add esp, 0x10
mov ecx, esi
push 0
push ebx
call fcn.004be2f0
lea esi, [esp + 0x1a]
push 0x206
push 0xff
push esi
call fcn.004f0310
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 0x47bcf1
push ebx
call fcn.00508f54
add esp, 4
mov edi, esp
mov ecx, edi
push eax
push ebx
call fcn.004b3430
lea ebx, [esp + 0xc]
mov ecx, edi
push ebx
call fcn.0046e2e0
mov ecx, dword [ebp + 8]
push ebx
call fcn.0046d000
mov ecx, ebx
call fcn.004b3560
mov ecx, edi
call fcn.004b3560
cmp esi, 0xfffffefc
setae bl
lea ecx, [esp + 0x220]
call fcn.004be370
mov ecx, dword [esp + 0x268]
xor ecx, ebp
call fcn.004ed092
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x47bd20
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 [0x59d024]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x2a4]
push 0x294
push 0xff
push esi
call fcn.004f0310
add esp, 0xc
mov ecx, esi
mov dword [ebp - 0x504], ebx
push ebx
push 3
push 0
push edi
call fcn.00481a90
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.00481c50
movzx eax, byte [edi + 0xb]
test al, al
jns 0x47bd8f
mov eax, dword [ebp - 0x4fc]
jmp 0x47bd92
and eax, 0x7f
xor esi, esi
test eax, eax
jne 0x47bdc5
lea ecx, [ebp - 0x500]
call fcn.004b3560
lea ecx, [ebp - 0x2a4]
call fcn.00481ba0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ed092
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.004f0310
add esp, 0xc
lea ecx, [ebp - 0x2a4]
push esi
call fcn.00481c10
mov eax, dword [ebp - 0x4f4]
test al, 1
jne 0x47bed2
mov ecx, esi
call fcn.004819c0
test al, al
jne 0x47be8f
cmp byte [ebp - 0x4f5], 0
mov eax, edi
jns 0x47be1a
mov eax, dword [ebp - 0x500]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x47bf0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor esi, esi
cmp ecx, 2
je 0x47be3d
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.00481c50
mov ecx, edi
push ebx
call fcn.0046d000
mov ecx, ebx
call fcn.004b3560
movzx eax, byte [ebp - 0x4f5]
test al, al
jns 0x47be7d
mov eax, dword [ebp - 0x4fc]
jmp 0x47be80
and eax, 0x7f
mov ebx, esi
test eax, eax
je 0x47bd98
jmp 0x47bdc7
xor esi, esi
cmp byte [ebp + 8], 0
je 0x47be3d
mov ecx, edi
mov edx, dword [ebp - 0x504]
push 1
call fcn.0047bd20
add esp, 4
test eax, eax
jne 0x47be3b
cmp byte [ebp - 0x4f5], 0
mov eax, edi
jns 0x47bebe
mov eax, dword [ebp - 0x500]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x47be3d
jmp 0x47be29
cmp byte [ebp + 8], 0
je 0x47beec
and eax, 0xfffffffe
cmp byte [ebp - 0x4f5], 0
jns 0x47bf15
mov ecx, dword [ebp - 0x500]
jmp 0x47bf1b
lea ecx, [ebp - 0x4f4]
call fcn.004819c0
test al, al
je 0x47bf2e
lea ecx, [ebp - 0x4f4]
call fcn.004819c0
test al, al
je 0x47be09
xor esi, esi
jmp 0x47be3d
lea ecx, [ebp - 0x500]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea esi, [ebp - 0x4f4]
jmp 0x47bdfa
mov eax, dword [ebp - 0x4f4]
jmp 0x47bed8