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

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401971
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401971
push 0
push esi
call fcn.0040229e
pop ecx
pop ecx
test eax, eax
je 0x401971
push esi
call fcn.00472d82
pop ecx
jmp 0x401973
xor eax, eax
pop esi
ret 8

Function at 0x40198c
Capabilities:
Move file

Disassembly:
push ebp
sub esp, 0x800
lea ebp, [esp - 4]
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x800], eax
push 0x10
mov eax, 0x4b603a
call fcn.00476610
mov esi, dword [ebp + 0x80c]
mov eax, dword [ebp + 0x810]
mov ecx, dword [ebp + 0x814]
mov edx, dword [ebp + 0x818]
xor edi, edi
mov dword [ebp - 0x1c], vtable.CResourceUnpack.0
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
push edx
push ecx
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], edi
call fcn.00404e31
test eax, eax
jne 0x401a0e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.004755ea
add ebp, 0x804
leave
ret 0x10
push 0x4f9e18
lea ecx, [ebp - 0x10]
call fcn.0040284b
xor eax, eax
mov byte [ebp - 4], 1
push 0x7fe
mov word [ebp], ax
lea eax, [ebp + 2]
push edi
push eax
call fcn.00475570
push 0x800
lea eax, [ebp]
push edi
push eax
call fcn.00475570
add esp, 0x18
push 1
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004050b6
test eax, eax
jne 0x401a6b
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00404fda
test eax, eax
je 0x401a7d
push str.360SafeAssist.exe
push dword [ebp - 0x10]
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp]
push edi
push eax
call fcn.0040229e
pop ecx
pop ecx
test eax, eax
jne 0x401a9f
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402870
mov eax, edi
jmp 0x4019e9
lea eax, [ebp]
add esi, 0x39c
push eax
mov ecx, esi
call fcn.004027b6
push 4
push edi
push dword [esi]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
call esi
push 4
push edi
push dword [ebp - 0x10]
call esi
xor edi, edi
inc edi
jmp 0x401a8d

Function at 0x401bc9
Capabilities:
Check if file exists
Copy file
Delete file
Move file

Disassembly:
push 4
mov eax, 0x4b3924
call fcn.00476610
mov esi, ecx
test esi, esi
je 0x401c57
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401c57
push 0
push esi
call fcn.0040229e
pop ecx
pop ecx
test eax, eax
je 0x401c57
push 0x4f9e18
lea ecx, [ebp - 0x10]
call fcn.0040284b
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
call fcn.004010d8
mov edi, dword [ebp - 0x10]
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
add esi, 0x398
push eax
mov ecx, esi
call fcn.00401c8e
push dword [esi]
call fcn.00402190
push 4
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [edi - 0x10]
call fcn.00402870
xor eax, eax
inc eax
jmp 0x401c59
xor eax, eax
call fcn.004766e8
ret 4
Function at 0x401cdb
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14c
mov eax, dword [0x4f3bd0]
xor eax, esp
mov dword [esp + 0x148], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x401d20
xor eax, eax
jmp 0x401db0
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea ecx, [esp + 0x18]
push ecx
push 0x40
lea ecx, [esp + 0x11c]
push ecx
push eax
call esi
test eax, eax
je 0x401da4
cmp dword [esp + 0x14], 0x40
jne 0x401da4
mov eax, 0x5a4d
cmp word [esp + 0x110], ax
jne 0x401da4
push edi
push edi
push dword [esp + 0x154]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, dword [esp + 0x14c]
jne 0x401da4
push edi
lea eax, [esp + 0x18]
push eax
mov ebx, 0xf8
push ebx
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x20]
call esi
test eax, eax
je 0x401da4
cmp dword [esp + 0x14], ebx
jne 0x401da4
cmp dword [esp + 0x18], 0x4550
jne 0x401da4
cmp word [esp + 0x1e], di
je 0x401da4
xor edi, edi
inc edi
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [esp + 0x154]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004755ea
mov esp, ebp
pop ebp
ret

Function at 0x401e4e
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x808], ax
lea eax, [ebp - 0x806]
push eax
call fcn.00475570
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x808]
push eax
lea eax, [ebp - 0x80c]
push eax
push 0x4d35fc
xor edi, edi
push 0x4d3608
inc edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x80c], edi
mov dword [ebp - 0x810], 0x800
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x401f23
push 0x4d3688
lea eax, [ebp - 0x808]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401f23
lea eax, [ebp - 0x808]
push 0
push eax
call fcn.0040229e
pop ecx
pop ecx
test eax, eax
je 0x401f23
lea eax, [ebp - 0x808]
push eax
call fcn.004020a8
mov esi, eax
test esi, esi
je 0x401f23
push str.IsBetaVersion
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004755ea
leave
ret
Function at 0x401f33
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.00476c90
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0x1000
lea eax, [ebp - 0x100c]
push 0
push eax
call fcn.00475570
add esp, 0xc
mov esi, 0x800
push esi
lea eax, [ebp - 0x100c]
push 0x4d36b0
push eax
call fcn.00475519
add esp, 0xc
push esi
lea eax, [ebp - 0x100c]
push edi
push eax
call fcn.00477033
add esp, 0xc
push esi
lea eax, [ebp - 0x100c]
push 0x4d36b8
push eax
call fcn.00477033
add esp, 0xc
push esi
lea eax, [ebp - 0x100c]
push edi
push eax
call fcn.00477033
add esp, 0xc
push esi
lea eax, [ebp - 0x100c]
push 0x4d36e4
push eax
call fcn.00477033
add esp, 0xc
push esi
lea eax, [ebp - 0x100c]
push ebx
push eax
call fcn.00477033
add esp, 0xc
push esi
lea eax, [ebp - 0x100c]
push 0x4d3708
push eax
call fcn.00477033
add esp, 0xc
push 0x14
push edi
lea eax, [ebp - 0x100c]
push eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov esi, eax
cmp esi, 6
jne 0x402049
call fcn.00401e31
test eax, eax
je 0x402032
call fcn.00401e4e
test eax, eax
je 0x402032
push 5
xor eax, eax
push eax
push eax
push str.http:__down.360safe.com_setupbeta.exe
jmp 0x40203d
push 5
xor eax, eax
push eax
push eax
push str.http:__down.360safe.com_setup.exe
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [ebp + 0x10], 0
je 0x402056
push 0
call fcn.00476f9b
mov ecx, dword [ebp - 8]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004755ea
leave
ret
Function at 0x402a92
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x674
mov eax, dword [0x4f3bd0]
xor eax, esp
mov dword [esp + 0x670], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
jne 0x402abd
xor eax, eax
jmp 0x402c4e
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402ab6
push ebx
call fcn.0047600e
pop ecx
cmp eax, 3
jbe 0x402ab6
xor eax, eax
mov esi, 0x206
push esi
push eax
mov word [esp + 0x270], ax
lea eax, [esp + 0x272]
push eax
mov dword [esp + 0x1c], 1
call fcn.00475570
xor eax, eax
push esi
push eax
mov word [esp + 0x484], ax
lea eax, [esp + 0x486]
push eax
call fcn.00475570
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
add esp, 0x18
push ebx
lea eax, [esp + 0x474]
push eax
call esi
push 0x4d38b8
lea eax, [esp + 0x474]
push eax
call esi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x474]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x402c43
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x402c39
mov edi, 0x208
test byte [esp + 0x18], 0x10
je 0x402bdf
cmp word [esp + 0x44], 0x2e
jne 0x402b9e
cmp word [esp + 0x46], 0
je 0x402c22
cmp word [esp + 0x46], 0x2e
jne 0x402b9e
cmp word [esp + 0x48], 0
je 0x402c22
push edi
lea eax, [esp + 0x26c]
push 0
push eax
call fcn.00475570
add esp, 0xc
push ebx
lea eax, [esp + 0x26c]
push eax
call esi
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x26c]
push eax
call esi
lea eax, [esp + 0x268]
push eax
call fcn.00402a92
and dword [esp + 0x14], eax
pop ecx
jmp 0x402c22
push edi
lea eax, [esp + 0x26c]
push 0
push eax
call fcn.00475570
add esp, 0xc
push ebx
lea eax, [esp + 0x26c]
push eax
call esi
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x26c]
push eax
call esi
lea eax, [esp + 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x402c22
and dword [esp + 0x10], eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402b6f
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
and eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x67c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004755ea
mov esp, ebp
pop ebp
ret
Function at 0x40350f
Capabilities:
Delete file
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
xor esi, esi
cmp word [edi], si
je 0x403544
cmp eax, esi
je 0x403555
cmp word [eax], si
je 0x403555
push esi
push esi
push eax
push edi
push esi
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
jge 0x403599
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004755ea
leave
ret 4
xor eax, eax
push 0x40e
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push esi
push eax
call fcn.00475570
add esp, 0xc
push esi
push esi
push 0x104
lea eax, [ebp - 0x414]
push eax
push edi
push esi
call sub.urlmon.dll_URLDownloadToCacheFileW
test eax, eax
jl 0x403544
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
inc eax
jmp 0x403546

Function at 0x403d38
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xe8]
sub esp, 0x168
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0xe4], eax
push esi
mov esi, dword [ebp + 0xf0]
cmp dword [esi], 0
jne 0x403d65
mov dword [esi], 0x114
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x403e09
push 0x3f
push eax
mov byte [ebp + 0xa4], al
lea eax, [ebp + 0xa5]
push eax
call fcn.00475570
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0xa4]
push eax
lea eax, [ebp - 0x7c]
push eax
push str.CurrentVersion
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x7c], 1
mov dword [ebp - 0x80], 0x40
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x403de8
movsx eax, byte [ebp + 0xa4]
sub eax, 0x30
mov dword [esi + 4], eax
lea eax, [ebp + 0xa6]
push eax
mov dword [esi + 0x10], 2
call fcn.00476cd1
pop ecx
mov dword [esi + 8], eax
jmp 0x403e09
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, al
shr eax, 8
movzx eax, al
mov dword [esi + 8], eax
xor eax, eax
cmp ecx, 4
seta al
mov dword [esi + 4], ecx
inc eax
mov dword [esi + 0x10], eax
mov eax, dword [esi + 4]
cmp eax, 6
ja 0x403e19
jne 0x403e70
cmp dword [esi + 8], 2
jb 0x403e70
push 0x118
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.00475570
add esp, 0xc
push str.RtlGetVersion
push str.ntdll.dll
mov dword [ebp - 0x78], 0x11c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x403e70
lea ecx, [ebp - 0x78]
push ecx
call eax
test eax, eax
jne 0x403e70
mov eax, dword [esi]
cmp eax, dword [ebp - 0x78]
jb 0x403e62
mov eax, dword [ebp - 0x78]
push eax
lea eax, [ebp - 0x78]
push eax
push esi
call fcn.00479b60
add esp, 0xc
mov ecx, dword [ebp + 0xe4]
xor eax, eax
xor ecx, ebp
inc eax
pop esi
call fcn.004755ea
add ebp, 0xe8
leave
ret
Function at 0x403fb1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x190], eax
mov eax, dword [ebp + 0x19c]
cmp dword [eax + 8], 5
jne 0x404042
cmp dword [eax + 0xc], 1
jb 0x404042
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push eax
call fcn.00475570
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
push str.CSDVersion
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x7c], 1
mov dword [ebp - 0x80], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x404042
lea eax, [ebp - 0x78]
push str.Service_Pack_2
push eax
call fcn.00475826
pop ecx
pop ecx
test eax, eax
jl 0x404042
xor eax, eax
inc eax
jmp 0x404044
xor eax, eax
mov ecx, dword [ebp + 0x190]
xor ecx, ebp
call fcn.004755ea
add ebp, 0x194
leave
ret 4

Function at 0x4040d0
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x1f94]
mov eax, 0x2014
call fcn.00476c90
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x1f90], eax
mov eax, dword [ebp + 0x1f9c]
push esi
mov esi, 0x1fff
push esi
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x6f]
push 0
push eax
mov byte [ebp - 0x70], 0
call fcn.00475570
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x40415f
cmp eax, esi
ja 0x40415f
lea ecx, [ebp - 0x70]
push ecx
push eax
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40415f
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x4d3cc0
lea eax, [ebp - 0x70]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40415f
mov eax, dword [ebp - 0x78]
movzx eax, word [eax + 0xa]
mov ecx, dword [ebp - 0x74]
mov dword [ecx], eax
xor eax, eax
inc eax
jmp 0x404161
xor eax, eax
mov ecx, dword [ebp + 0x1f90]
xor ecx, ebp
pop esi
call fcn.004755ea
add ebp, 0x1f94
leave
ret 4
Function at 0x4048f6
Capabilities:
Move file

Disassembly:
push ebp
sub esp, 0x800
lea ebp, [esp - 4]
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x800], eax
push 0x10
mov eax, 0x4b603a
call fcn.00476610
mov esi, dword [ebp + 0x80c]
mov eax, dword [ebp + 0x810]
mov ecx, dword [ebp + 0x814]
mov edx, dword [ebp + 0x818]
mov edi, dword [ebp + 0x81c]
xor ebx, ebx
mov dword [ebp - 0x1c], vtable.CResourceUnpack.0
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
push edx
push ecx
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], ebx
call fcn.00404e31
test eax, eax
jne 0x404980
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.004755ea
add ebp, 0x804
leave
ret 0x14
push edi
lea ecx, [ebp - 0x10]
call fcn.00402530
push 1
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004051c2
test eax, eax
jne 0x4049ac
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402870
jmp 0x404959
push 0x800
lea eax, [ebp]
push ebx
push eax
call fcn.00475570
add esp, 0xc
push 0x4d3fa4
push dword [ebp - 0x10]
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp]
push ebx
push eax
call fcn.0040229e
pop ecx
pop ecx
test eax, eax
je 0x40499f
lea eax, [ebp]
lea edi, [esi + 8]
push eax
mov ecx, edi
call fcn.004027b6
push dword [edi]
call fcn.00402190
mov dword [esi + 0x10], eax
cmp eax, ebx
je 0x40499f
push str.GetMiniUI4
mov dword [0x4fb8b8], eax
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
jne 0x404a25
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402870
mov eax, ebx
jmp 0x40495b
call eax
push 4
push ebx
push dword [edi]
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor ebx, ebx
inc ebx
jmp 0x404a13
Function at 0x404a3a
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x210], esi
test esi, esi
je 0x404b1f
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404b1f
push 0
push esi
call fcn.0040229e
pop ecx
pop ecx
test eax, eax
je 0x404b1f
push dword [ebp - 0x210]
lea esi, [edi + 8]
mov ecx, esi
call fcn.004027b6
push dword [esi]
call fcn.00402190
mov dword [edi + 0x10], eax
test eax, eax
je 0x404b1f
push str.GetMiniUI4
mov dword [0x4fb8b8], eax
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x404b1f
call eax
push 4
push 0
push dword [esi]
mov dword [edi + 0x14], eax
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
call edi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00475570
mov eax, dword [esi]
add esp, 0xc
push dword [eax - 0xc]
mov ecx, esi
call fcn.004026d4
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.004022d7
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 4
push 0
lea eax, [ebp - 0x20c]
push eax
call edi
xor eax, eax
inc eax
jmp 0x404b21
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004755ea
leave
ret 8

Function at 0x404ca8
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1104
call fcn.00476c90
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, 0x800
push esi
xor edi, edi
lea eax, [ebp - 0x1104]
push edi
push eax
call fcn.00475570
push esi
lea eax, [ebp - 0x904]
push edi
push eax
call fcn.00475570
add esp, 0x18
push edi
push 0x1a
lea eax, [ebp - 0x1104]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x404d6d
push pe_nt_image_headers32
lea eax, [ebp - 0x104]
push edi
push eax
call fcn.00475570
add esp, 0xc
lea eax, [ebp - 0x104]
push 0x80
push eax
call fcn.00401000
pop ecx
pop ecx
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x1104]
push eax
lea eax, [ebp - 0x904]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x904]
push str..tmp
push eax
call fcn.00477b67
pop ecx
pop ecx
lea eax, [ebp - 0x904]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404d7e
inc edi
cmp edi, 0xa
jl 0x404d15
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004755ea
leave
ret
lea eax, [ebp - 0x904]
push eax
mov ecx, ebx
call fcn.004027b6
xor eax, eax
inc eax
jmp 0x404d6f
Function at 0x404e6c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x80
push 1
push 0
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x404e9f
xor eax, eax
jmp 0x404ebe
push dword [esi + 8]
mov ecx, dword [esi + 4]
and dword [ebp + 8], 0
push edi
lea edx, [ebp + 8]
call fcn.00404ec3
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop edi
pop ebp
ret 4

Function at 0x404ec3
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xf98]
mov eax, 0x1018
call fcn.00476c90
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0xf94], eax
mov eax, dword [ebp + 0xfa0]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xfa4]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], edx
cmp eax, 0xffffffff
je 0x404fc0
test ecx, ecx
je 0x404fc0
test edi, edi
jle 0x404fc0
mov eax, edi
cdq
and edx, 0xfff
add eax, edx
mov esi, eax
sar esi, 0xc
and edi, 0x80000fff
jns 0x404f30
dec edi
or edi, 0xfffff000
inc edi
and dword [ebp - 0x70], 0
and dword [ebp - 0x78], 0
mov dword [ebp - 0x74], ecx
test esi, esi
jle 0x404f83
mov ebx, 0x1000
push ebx
push dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push eax
call fcn.00479b60
add esp, 0xc
push 0
lea eax, [ebp - 0x70]
push eax
push ebx
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404fc0
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x404f78
mov ecx, dword [ebp - 0x70]
add dword [eax], ecx
add dword [ebp - 0x74], ebx
inc dword [ebp - 0x78]
cmp dword [ebp - 0x78], esi
jl 0x404f44
test edi, edi
jle 0x404fbb
push edi
push dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push eax
call fcn.00479b60
add esp, 0xc
push 0
lea eax, [ebp - 0x70]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404fc0
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x404fbb
mov ecx, dword [ebp - 0x70]
add dword [eax], ecx
xor eax, eax
inc eax
jmp 0x404fc2
xor eax, eax
mov ecx, dword [ebp + 0xf94]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004755ea
add ebp, 0xf98
leave
ret