joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401c8b
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 SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x401cd0
xor eax, eax
jmp 0x401d60
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 0x401d54
cmp dword [esp + 0x14], 0x40
jne 0x401d54
mov eax, 0x5a4d
cmp word [esp + 0x110], ax
jne 0x401d54
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 0x401d54
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 0x401d54
cmp dword [esp + 0x14], ebx
jne 0x401d54
cmp dword [esp + 0x18], 0x4550
jne 0x401d54
cmp word [esp + 0x1e], di
je 0x401d54
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.0047549a
mov esp, ebp
pop ebp
ret

Function at 0x401dfe
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.00475420
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x808]
push eax
lea eax, [ebp - 0x80c]
push eax
push 0x4d28bc
xor edi, edi
push 0x4d28c8
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 0x401ed3
push 0x4d2948
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 0x401ed3
lea eax, [ebp - 0x808]
push 0
push eax
call fcn.0040224e
pop ecx
pop ecx
test eax, eax
je 0x401ed3
lea eax, [ebp - 0x808]
push eax
call fcn.00402058
mov esi, eax
test esi, esi
je 0x401ed3
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.0047549a
leave
ret
Function at 0x401ee3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.00476b40
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.00475420
add esp, 0xc
mov esi, 0x800
push esi
lea eax, [ebp - 0x100c]
push 0x4d2970
push eax
call fcn.004753d2
add esp, 0xc
push esi
lea eax, [ebp - 0x100c]
push edi
push eax
call fcn.00476ee3
add esp, 0xc
push esi
lea eax, [ebp - 0x100c]
push 0x4d2978
push eax
call fcn.00476ee3
add esp, 0xc
push esi
lea eax, [ebp - 0x100c]
push edi
push eax
call fcn.00476ee3
add esp, 0xc
push esi
lea eax, [ebp - 0x100c]
push 0x4d29a4
push eax
call fcn.00476ee3
add esp, 0xc
push esi
lea eax, [ebp - 0x100c]
push ebx
push eax
call fcn.00476ee3
add esp, 0xc
push esi
lea eax, [ebp - 0x100c]
push 0x4d29c8
push eax
call fcn.00476ee3
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 0x401ff9
call fcn.00401de1
test eax, eax
je 0x401fe2
call fcn.00401dfe
test eax, eax
je 0x401fe2
push 5
xor eax, eax
push eax
push eax
push str.http:__down.360safe.com_setupbeta.exe
jmp 0x401fed
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 0x402006
push 0
call fcn.00476e4b
mov ecx, dword [ebp - 8]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047549a
leave
ret
Function at 0x402a60
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 0x402a8b
xor eax, eax
jmp 0x402c1c
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402a84
push ebx
call fcn.00475ebe
pop ecx
cmp eax, 3
jbe 0x402a84
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.00475420
xor eax, eax
push esi
push eax
mov word [esp + 0x484], ax
lea eax, [esp + 0x486]
push eax
call fcn.00475420
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
add esp, 0x18
push ebx
lea eax, [esp + 0x474]
push eax
call esi
push 0x4d2b78
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 0x402c11
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x402c07
mov edi, 0x208
test byte [esp + 0x18], 0x10
je 0x402bad
cmp word [esp + 0x44], 0x2e
jne 0x402b6c
cmp word [esp + 0x46], 0
je 0x402bf0
cmp word [esp + 0x46], 0x2e
jne 0x402b6c
cmp word [esp + 0x48], 0
je 0x402bf0
push edi
lea eax, [esp + 0x26c]
push 0
push eax
call fcn.00475420
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.00402a60
and dword [esp + 0x14], eax
pop ecx
jmp 0x402bf0
push edi
lea eax, [esp + 0x26c]
push 0
push eax
call fcn.00475420
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 0x402bf0
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 0x402b3d
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.0047549a
mov esp, ebp
pop ebp
ret
Function at 0x4034dd
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 0x403512
cmp eax, esi
je 0x403523
cmp word [eax], si
je 0x403523
push esi
push esi
push eax
push edi
push esi
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
jge 0x403567
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0047549a
leave
ret 4
xor eax, eax
push 0x40e
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push esi
push eax
call fcn.00475420
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 0x403512
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
inc eax
jmp 0x403514

Function at 0x403d5b
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 0x403d88
mov dword [esi], 0x114
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x403e2c
push 0x3f
push eax
mov byte [ebp + 0xa4], al
lea eax, [ebp + 0xa5]
push eax
call fcn.00475420
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 0x403e0b
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.00476b81
pop ecx
mov dword [esi + 8], eax
jmp 0x403e2c
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 0x403e3c
jne 0x403e93
cmp dword [esi + 8], 2
jb 0x403e93
push 0x118
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.00475420
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 0x403e93
lea ecx, [ebp - 0x78]
push ecx
call eax
test eax, eax
jne 0x403e93
mov eax, dword [esi]
cmp eax, dword [ebp - 0x78]
jb 0x403e85
mov eax, dword [ebp - 0x78]
push eax
lea eax, [ebp - 0x78]
push eax
push esi
call fcn.00479960
add esp, 0xc
mov ecx, dword [ebp + 0xe4]
xor eax, eax
xor ecx, ebp
inc eax
pop esi
call fcn.0047549a
add ebp, 0xe8
leave
ret
Function at 0x403fd4
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 0x404065
cmp dword [eax + 0xc], 1
jb 0x404065
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push eax
call fcn.00475420
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 0x404065
lea eax, [ebp - 0x78]
push str.Service_Pack_2
push eax
call fcn.004756d6
pop ecx
pop ecx
test eax, eax
jl 0x404065
xor eax, eax
inc eax
jmp 0x404067
xor eax, eax
mov ecx, dword [ebp + 0x190]
xor ecx, ebp
call fcn.0047549a
add ebp, 0x194
leave
ret 4

Function at 0x4040f3
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x1f94]
mov eax, 0x2014
call fcn.00476b40
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.00475420
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x404182
cmp eax, esi
ja 0x404182
lea ecx, [ebp - 0x70]
push ecx
push eax
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x404182
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x4d2f80
lea eax, [ebp - 0x70]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x404182
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 0x404184
xor eax, eax
mov ecx, dword [ebp + 0x1f90]
xor ecx, ebp
pop esi
call fcn.0047549a
add ebp, 0x1f94
leave
ret 4
Function at 0x404919
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, 0x4b63c9
call fcn.004764c0
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.00404e47
test eax, eax
jne 0x4049a3
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.0047549a
add ebp, 0x804
leave
ret 0x14
push edi
lea ecx, [ebp - 0x10]
call fcn.004024e0
push 1
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004051db
test eax, eax
jne 0x4049cf
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402820
jmp 0x40497c
push 0x800
lea eax, [ebp]
push ebx
push eax
call fcn.00475420
add esp, 0xc
push 0x4d3264
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.0040224e
pop ecx
pop ecx
test eax, eax
je 0x4049c2
lea eax, [ebp]
lea edi, [esi + 8]
push eax
mov ecx, edi
call fcn.00402766
push dword [edi]
call fcn.00402140
mov dword [esi + 0x10], eax
cmp eax, ebx
je 0x4049c2
push str.GetMiniUI4
mov dword [0x4fb8a0], eax
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
jne 0x404a48
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402820
mov eax, ebx
jmp 0x40497e
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 0x404a36
Function at 0x404a5d
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 0x404b42
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404b42
push 0
push esi
call fcn.0040224e
pop ecx
pop ecx
test eax, eax
je 0x404b42
push dword [ebp - 0x210]
lea esi, [edi + 8]
mov ecx, esi
call fcn.00402766
push dword [esi]
call fcn.00402140
mov dword [edi + 0x10], eax
test eax, eax
je 0x404b42
push str.GetMiniUI4
mov dword [0x4fb8a0], eax
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x404b42
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.00475420
mov eax, dword [esi]
add esp, 0xc
push dword [eax - 0xc]
mov ecx, esi
call fcn.00402684
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.00402287
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 0x404b44
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0047549a
leave
ret 8

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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1104
call fcn.00476b40
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.00475420
push esi
lea eax, [ebp - 0x904]
push edi
push eax
call fcn.00475420
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 0x404d83
push 0x100
lea eax, [ebp - 0x104]
push edi
push eax
call fcn.00475420
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.00477a17
pop ecx
pop ecx
lea eax, [ebp - 0x904]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404d94
inc edi
cmp edi, 0xa
jl 0x404d2b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047549a
leave
ret
lea eax, [ebp - 0x904]
push eax
mov ecx, ebx
call fcn.00402766
xor eax, eax
inc eax
jmp 0x404d85
Function at 0x404e82
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 0x404eb5
xor eax, eax
jmp 0x404ed4
push dword [esi + 8]
mov ecx, dword [esi + 4]
and dword [ebp + 8], 0
push edi
lea edx, [ebp + 8]
call fcn.00404ed9
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 0x404ed9
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xf98]
mov eax, 0x1018
call fcn.00476b40
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 0x404fd6
test ecx, ecx
je 0x404fd6
test edi, edi
jle 0x404fd6
mov eax, edi
cdq
and edx, 0xfff
add eax, edx
mov esi, eax
sar esi, 0xc
and edi, 0x80000fff
jns 0x404f46
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 0x404f99
mov ebx, 0x1000
push ebx
push dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push eax
call fcn.00479960
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 0x404fd6
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x404f8e
mov ecx, dword [ebp - 0x70]
add dword [eax], ecx
add dword [ebp - 0x74], ebx
inc dword [ebp - 0x78]
cmp dword [ebp - 0x78], esi
jl 0x404f5a
test edi, edi
jle 0x404fd1
push edi
push dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push eax
call fcn.00479960
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 0x404fd6
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x404fd1
mov ecx, dword [ebp - 0x70]
add dword [eax], ecx
xor eax, eax
inc eax
jmp 0x404fd8
xor eax, eax
mov ecx, dword [ebp + 0xf94]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047549a
add ebp, 0xf98
leave
ret
Function at 0x404ff3
Capabilities:
Delete file

Disassembly:
push 8
mov eax, 0x4b00e4
call fcn.004764c0
mov edi, 0x4f9e00
push edi
lea ecx, [ebp - 0x10]
call fcn.004027fb
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
call fcn.00404cbe
pop ecx
test eax, eax
jne 0x405034
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402820
xor eax, eax
call fcn.00476598
ret 0xc
mov ebx, dword [ebp - 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [ebp + 8]
push ebx
call fcn.00404e82
test eax, eax
jne 0x405050
lea ecx, [ebx - 0x10]
jmp 0x405025
push edi
lea ecx, [ebp - 0x14]
call fcn.004027fb
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 1
call fcn.00404cbe
mov esi, dword [ebp - 0x14]
pop ecx
push esi
xor edi, edi
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
cmp dword [ebp + 0x10], edi
je 0x405092
push edi
push esi
push ebx
call fcn.00473954
add esp, 0xc
test eax, eax
jge 0x4050b7
lea ecx, [esi - 0x10]
call fcn.00402820
jmp 0x40504b
mov ecx, dword [ebp + 8]
push esi
push ebx
call fcn.004053da
test eax, eax
jne 0x4050b7
lea ecx, [esi - 0x10]
call fcn.00402820
lea ecx, [ebx - 0x10]
call fcn.00402820
mov eax, edi
jmp 0x40502c
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push eax
call fcn.00401c3e
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edi, edi
inc edi
jmp 0x4050a0

Function at 0x4050cf
Capabilities:
Check if file exists
Delete file

Disassembly:
push 0xc
mov eax, 0x4b12b7
call fcn.004764c0
mov esi, ecx
mov dword [ebp - 0x18], esi
mov ebx, 0x4f9e00
push ebx
lea ecx, [ebp - 0x10]
call fcn.004027fb
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
call fcn.004010d8
pop ecx
test eax, eax
jne 0x405120
push 0x4d32e8
call fcn.00404da7
pop ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402820
xor eax, eax
call fcn.00476598
ret 8
mov edi, dword [ebp - 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call fcn.00404e82
test eax, eax
jne 0x405144
push str.UnpackToTempFolder_SaveToFile_Failed__
call fcn.00404da7
pop ecx
lea ecx, [edi - 0x10]
jmp 0x405111
push ebx
lea ecx, [ebp - 0x14]
call fcn.004027fb
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 1
call fcn.004010d8
mov esi, dword [ebp - 0x14]
pop ecx
push esi
xor ebx, ebx
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40518a
push esi
push str.UnpackToTempFolder_Create_Folder_Failed__Folder_:__s
call fcn.00404da7
pop ecx
pop ecx
lea ecx, [esi - 0x10]
call fcn.00402820
jmp 0x40513f
cmp dword [ebp + 0xc], ebx
je 0x4051b6
push ebx
push esi
push edi
call fcn.00473954
add esp, 0xc
test eax, eax
jl 0x405180
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.00401c3e
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor ebx, ebx
inc ebx
jmp 0x4051c4
mov ecx, dword [ebp - 0x18]
push esi
push edi
call fcn.004053da
test eax, eax
jne 0x40519e
lea ecx, [esi - 0x10]
call fcn.00402820
lea ecx, [edi - 0x10]
call fcn.00402820
mov eax, ebx
jmp 0x405118