joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420740
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f2028
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5321d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4207bb
test al, 0x10
je 0x4207bb
push esi
mov edi, 1
call fcn.0042e070
add esp, 4
test eax, eax
jne 0x4207de
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4207de
push esi
test edi, edi
jne 0x4207d6
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4207de
push esi
push 0x501e64
call fcn.00422b70
add esp, 8
jmp 0x4207de
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x42078c
push esi
push 0x501e64
call fcn.00422b70
add esp, 8
jmp 0x4207de
call fcn.0042e070
add esp, 4
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x420852
push esi
lea ecx, [ebp - 0x10]
call fcn.00405a30
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
push ecx
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
je 0x420815
mov ecx, eax
call fcn.0041b600
add dword [esi + 4], 4
jmp 0x42081d
push eax
mov ecx, esi
call fcn.0041e3f0
mov edx, dword [ebp - 0x10]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42083f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x420fc0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f2140
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x5321d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x14], edi
call fcn.004066d0
mov ecx, eax
test ecx, ecx
je 0x4210b2
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push str.SoftwareMicrosoftInternet_ExplorerMainFeatureControl_
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
call fcn.00406130
test al, al
jne 0x421027
push str.SoftwareMicrosoftInternet_ExplorerMainFeatureControl_
lea ecx, [ebp - 0x10]
call fcn.0040e2f0
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 1
call fcn.0041ee70
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x421072
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
push str.Anything.exe
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov ecx, 1
cmove edi, ecx
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x421080
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x42109f
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402ad0
int3
Function at 0x422730
Capabilities:
Check if file exists
Delete file
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 8
push esi
lea esi, [ecx + 0x2c]
mov ecx, dword [eax]
mov eax, dword [esi]
push edi
lea edx, [ecx - 0x10]
lea edi, [eax - 0x10]
cmp edx, edi
je 0x422794
cmp dword [edi + 0xc], 0
push ebx
lea ebx, [edi + 0xc]
jl 0x422786
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x422786
push edx
call fcn.00406260
add esp, 4
mov dword [ebp + 8], eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x42277f
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
jmp 0x422793
push dword [ecx - 0xc]
push ecx
mov ecx, esi
call fcn.00407b50
mov eax, dword [esi]
pop ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4227fa
mov eax, dword [esi]
xorps xmm0, xmm0
movlpd qword [ebp - 8], xmm0
cmp dword [eax - 0xc], 0
je 0x4227fa
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4227e1
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
jl 0x4227fa
jg 0x4227f2
cmp dword [ebp - 8], 0x40000000
jbe 0x4227fa
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4252a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f271b
mov eax, dword fs:[0]
push eax
sub esp, 0x81c
mov eax, dword [0x5321d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x828], ebx
cmp word [0x537be8], 0
jne 0x4253da
push 0x20219
push str.SOFTWAREAnything
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x824]
mov dword [ebp - 0x824], 0
mov dword [ebp - 0x820], 0
mov dword [ebp - 0x81c], 0
call fcn.004194e0
mov edi, dword [ebp - 0x824]
test eax, eax
jne 0x4253cf
lea eax, [ebp - 0x814]
mov dword [ebp - 0x814], 0x800
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x818]
push eax
push 0
push 0x4fd9e8
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4253cf
mov eax, dword [ebp - 0x818]
cmp eax, 1
je 0x42536c
cmp eax, 2
jne 0x4253cf
mov eax, dword [ebp - 0x814]
test eax, eax
je 0x425389
test al, 1
jne 0x4253cf
shr eax, 1
cmp word [ebp + eax*2 - 0x812], 0
je 0x425392
jmp 0x4253cf
xor eax, eax
mov word [ebp - 0x810], ax
mov ecx, 0x537be8
lea esi, [ebp - 0x810]
mov edx, 0x3ff
sub esi, ecx
lea eax, [edx + 0x7ffffbff]
test eax, eax
je 0x4253c2
movzx eax, word [esi + ecx]
test ax, ax
je 0x4253c2
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x4253a4
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
test edi, edi
je 0x4253da
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x537be8
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jg 0x42542b
mov ecx, 0x537be8
mov esi, str.noset
mov edx, 0x3ff
sub esi, ecx
nop word [eax + eax]
lea eax, [edx + 0x7ffffbff]
test eax, eax
je 0x42541e
movzx eax, word [esi + ecx]
test ax, ax
je 0x42541e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x425400
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
call fcn.0041d5d0
mov ecx, eax
test ecx, ecx
je 0x42549a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
push 0x537be8
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.00406130
test al, al
jne 0x42547c
mov ecx, 0x537be8
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x425460
sub ecx, edx
sar ecx, 1
push ecx
push 0x537be8
mov ecx, ebx
call fcn.00407b50
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044474a
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402ad0
int3
Function at 0x42c4f0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f35d0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5321d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.0041d5d0
mov ecx, eax
test ecx, ecx
je 0x42c5d1
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push edi
push 0x502bc4
push eax
mov dword [ebp - 4], 0
call fcn.00406610
mov esi, dword [ebp - 0x10]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp edi, 0x64
mov dword [ebp - 0x20], vtable.mf_bind_t_1_class_CUninstaller__class_CUninstaller___void__int_.0
mov eax, 0x63
mov dword [ebp - 0x1c], 0x42c5f0
cmovl eax, edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 1
push eax
call fcn.0041d900
add esp, 4
mov dword [ebp - 0x20], vtable.mf_bind_t_1_class_CUninstaller__class_CUninstaller___void__int_.0
mov dword [ebp - 0x1c], 0
add esi, 0xfffffff0
mov dword [ebp - 0x18], 0
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x42c5bd
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00402ad0
int3
Function at 0x42e070
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2024
call fcn.00444760
mov eax, dword [0x5321d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x42e0a0
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044474a
mov esp, ebp
pop ebp
ret
push 0x2000
xorps xmm0, xmm0
mov dword [ebp - 0x200c], 0
lea eax, [ebp - 0x2004]
movq qword [ebp - 0x2014], xmm0
push 0
movups xmmword [ebp - 0x2024], xmm0
push eax
mov word [ebp - 0x2008], 0
mov dword [ebp - 0x2020], 3
call fcn.00470520
push 0x1000
lea eax, [ebp - 0x2004]
push esi
push eax
call fcn.0049a1ad
lea eax, [ebp - 0x2004]
add esp, 0x18
mov dword [ebp - 0x201c], eax
mov eax, 0x614
mov word [ebp - 0x2014], ax
lea eax, [ebp - 0x2024]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.0044474a
mov esp, ebp
pop ebp
ret
Function at 0x42e130
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
mov eax, dword [0x5321d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x42e343
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42e343
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42e163
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jbe 0x42e343
push ebx
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov edi, 1
push 0
push eax
call fcn.00470520
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00470520
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x414]
add esp, 0x18
push esi
push eax
call ebx
push 0x502ec8
lea eax, [ebp - 0x414]
push eax
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42e1e4
test al, 1
je 0x42e1e4
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x668], eax
cmp eax, 0xffffffff
je 0x42e329
lea ecx, [ebp - 0x664]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x42e31d
nop dword [eax]
test byte [ebp - 0x664], 0x10
je 0x42e298
cmp word [ebp - 0x638], 0x2e
jne 0x42e257
mov ax, word [ebp - 0x636]
test ax, ax
je 0x42e302
cmp ax, 0x2e
jne 0x42e257
cmp word [ebp - 0x634], 0
je 0x42e302
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00470520
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push eax
call ebx
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x20c]
push eax
call ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.0042e130
add esp, 4
jmp 0x42e300
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00470520
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push eax
call ebx
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x20c]
push eax
call ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42e2ef
test al, 1
je 0x42e2ef
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
and edi, eax
lea eax, [ebp - 0x664]
push eax
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x42e220
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
and eax, edi
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044474a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0044474a
mov esp, ebp
pop ebp
ret
Function at 0x42e360
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x42e3b8
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42e3b8
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x42e398
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x42e3b8
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42e3b3
test al, 0x10
je 0x42e3b3
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x42e3b8
xor eax, eax
pop esi
pop ebp
ret
mov eax, 1
pop esi
pop ebp
ret
Function at 0x42e670
Capabilities:
Check if file exists
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f3886
mov eax, dword fs:[0]
push eax
sub esp, 0x82c
mov eax, dword [0x5321d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
test edi, edi
jne 0x42e6ab
xor eax, eax
jmp 0x42e766
push 0x800
xorps xmm0, xmm0
mov dword [ebp - 0x820], 0
lea eax, [ebp - 0x810]
movq qword [ebp - 0x828], xmm0
push 0
push eax
movups xmmword [ebp - 0x838], xmm0
mov word [ebp - 0x81c], 0
call fcn.00470520
lea edx, [ebp - 0x810]
mov dword [ebp - 0x834], 3
add esp, 0xc
mov ecx, edi
sub edx, edi
nop word [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x42e700
lea eax, [ebp - 0x810]
mov dword [ebp - 0x830], eax
mov eax, 0x614
mov word [ebp - 0x828], ax
lea eax, [ebp - 0x838]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
je 0x42e748
push eax
push edi
push str.SHFileOperation__s_failed___X
call fcn.00422b70
add esp, 0xc
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edi
test eax, eax
jne 0x42e781
push str.rm__s_ok
call fcn.00422b70
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044474a
mov esp, ebp
pop ebp
ret
call fcn.0042e360
add esp, 4
test eax, eax
jne 0x42e761
call fcn.004066d0
mov ecx, eax
test ecx, ecx
je 0x42e83d
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x818], eax
push edi
lea ecx, [ebp - 0x814]
mov dword [ebp - 4], 0
call fcn.00405a30
lea eax, [ebp - 0x818]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x814]
push eax
call fcn.0042dbe0
mov edx, dword [ebp - 0x814]
add esp, 8
mov esi, eax
mov byte [ebp - 4], 0
add edx, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x42e7fd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 4
test esi, esi
mov esi, dword [ebp - 0x818]
push 0
je 0x42e80e
push esi
jmp 0x42e80f
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x42e836
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
jmp 0x42e766
push 0x80004005
call fcn.00402ad0
int3
Function at 0x42e850
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x42e87f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.delete__s_failed__error_d
call fcn.00422b70
add esp, 0xc
mov eax, 1
pop esi
pop ebp
ret
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42e877
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x42e8a5
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x42e862
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor eax, eax
pop esi
pop ebp
ret
Function at 0x42e8c0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f38c6
mov eax, dword fs:[0]
push eax
sub esp, 0x880
mov eax, dword [0x5321d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x42e8fc
xor eax, eax
jmp 0x42eb02
cmp word [ebx], 0
je 0x42e8f5
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42e907
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
jge 0x42e8f5
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00470520
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x501e60
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42e962
test al, 1
je 0x42e962
and eax, 0xfffffffe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, 0x5c
mov dword [ebp - 0x428], 0
mov word [ebp - 0x42c], ax
mov dword [ebp - 0x424], 0
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x884]
call fcn.0042ba80
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x42eab2
cmp dword [ebp - 0x424], 0
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
je 0x42ea11
mov eax, dword [ebp - 0x884]
shr eax, 4
and eax, 1
je 0x42ea11
cmp word [ebp - 0x858], 0x2e
jne 0x42ea11
mov ax, word [ebp - 0x856]
test ax, ax
je 0x42e9ec
cmp ax, 0x2e
jne 0x42ea11
cmp word [ebp - 0x854], 0
jne 0x42ea11
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x42eb1e
lea ecx, [ebp - 0x884]
push ecx
push eax
call edi
mov edi, eax
mov dword [ebp - 0x424], edi
jmp 0x42eaa4
lea eax, [ebp - 0x888]
push eax
lea ecx, [ebp - 0x884]
call fcn.0041f510
cmp dword [ebp - 0x424], 0
mov byte [ebp - 4], 1
je 0x42ea4c
mov eax, dword [ebp - 0x884]
shr eax, 4
and eax, 1
je 0x42ea4c
mov esi, dword [ebp - 0x888]
push esi
call fcn.0042e8c0
jmp 0x42ea58
mov esi, dword [ebp - 0x888]
push esi
call fcn.0042e850
mov eax, dword [ebp - 0x428]
add esp, 4
test eax, eax
jne 0x42ea69
xor edi, edi
jmp 0x42ea88
cmp dword [ebp - 0x424], 0
jne 0x42ea76
xor edi, edi
jmp 0x42ea88
lea ecx, [ebp - 0x884]
push ecx
push eax
call edi
mov edi, eax
mov dword [ebp - 0x424], edi
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x42eaa4
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
jne 0x42e9a9
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x428]
mov dword [ebp - 0x424], 0
test eax, eax
je 0x42ead8
cmp eax, 0xffffffff
je 0x42ead8
push eax
call esi
mov dword [ebp - 0x428], 0
push ebx
call fcn.0042e070
mov eax, dword [ebp - 0x428]
add esp, 4
mov dword [ebp - 0x424], 0
test eax, eax
je 0x42eafd
cmp eax, 0xffffffff
je 0x42eafd
push eax
call esi
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044474a
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x424], 0
jmp 0x42ead8
Function at 0x42ecf0
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
mov eax, dword [0x5321d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
jne 0x42edb1
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00470520
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x42ed9b
push edi
push 0x104
lea edi, [ebx + 4]
push 0
push edi
call fcn.00470520
add esp, 0xc
lea eax, [ebp - 0x108]
push edi
push 0
push str.anything
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str..bat
push edi
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 4
push 0
push 7
push 0xc01200a0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebx], eax
pop edi
cmp dword [ebx], 0
jne 0x42edb1
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044474a
mov esp, ebp
pop ebp
ret
push 0x208
lea eax, [ebp - 0x310]
push 0
push eax
call fcn.00470520
add esp, 0xc
mov dword [ebp - 0x314], 0
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x310]
push 0x207
push eax
call fcn.004030f0
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.0048b84e
or ecx, 0xffffffff
add esp, 0x1c
test eax, eax
cmovs eax, ecx
test eax, eax
js 0x42ee11
cmp eax, 0x207
ja 0x42ee11
jne 0x42ee18
mov byte [ebp - 0x109], 0
lea ecx, [ebp - 0x310]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42ee21
push 0
lea eax, [ebp - 0x314]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x310]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0044474a
mov esp, ebp
pop ebp
ret