joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40adbb
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea esi, [edi + 0x2c]
call fcn.00404582
xor ebx, ebx
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x228
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x6b8]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x6bc]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 0x6bc], 0x22c
call sub.KERNEL32.dll_Process32FirstW
jmp 0x40af76
push 0x30
lea eax, [ebp - 0x44]
push ebx
push eax
mov dword [ebp - 0x27c], ebx
mov word [ebp - 0x278], bx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0x6b4]
mov ecx, dword [ebp - 0x6a4]
mov esi, dword [sym.imp.KERNEL32.dll_OpenProcess]
add esp, 0xc
push eax
push ebx
push 0x410
mov dword [ebp - 0x27c], eax
mov dword [ebp - 0x6c], ecx
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x40ae9c
call fcn.004037c7
cmp dword [eax + 4], 5
jbe 0x40af67
push dword [ebp - 0x27c]
push ebx
push 0x1000
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x40af67
push 0x208
lea eax, [ebp - 0x48a]
push ebx
push eax
mov word [ebp - 0x48c], bx
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x48c]
push eax
push dword [ebp - 8]
mov eax, edi
call fcn.0040b0da
cmp word [ebp - 0x48c], bx
je 0x40aedc
cmp word [ebp - 0x48c], 0x3f
jne 0x40af2f
cmp dword [0x41175c], ebx
mov dword [ebp - 0x10], 0x104
jne 0x40af15
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x40af15
push str.QueryFullProcessImageNameW
push eax
mov dword [0x41175c], 1
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x411760], eax
mov eax, dword [0x411760]
cmp eax, ebx
je 0x40af2f
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x48c]
push ecx
push ebx
push dword [ebp - 8]
call eax
lea esi, [ebp - 0x48c]
lea edi, [ebp - 0x278]
call fcn.0040a93f
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 8]
call fcn.0040ac8a
add esp, 0x14
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x27c]
push eax
lea eax, [edi + 0x2c]
call fcn.0040b164
lea eax, [ebp - 0x6bc]
push eax
push dword [ebp - 0xc]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40ae12
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40b102
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [esi], 0
jne 0x40b163
push edi
push str.psapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetModuleBaseNameW
push eax
mov dword [esi], eax
call edi
push str.EnumProcessModules
push dword [esi]
mov dword [esi + 4], eax
call edi
push str.EnumProcessModulesEx
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.GetModuleFileNameExW
push dword [esi]
mov dword [esi + 0xc], eax
call edi
push str.EnumProcesses
push dword [esi]
mov dword [esi + 0x14], eax
call edi
push str.GetModuleInformation
push dword [esi]
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x10], eax
pop edi
ret
Function at 0x40b782
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20000
call fcn.0040c5c0
cmp dword [ebp + 8], 0
je 0x40b7e7
test esi, esi
je 0x40b7d5
push 0x22
push esi
call sub.msvcrt.dll_wcschr
test eax, eax
pop ecx
pop ecx
je 0x40b7d5
and word [ebp - 0x20000], 0
push esi
push str.__s_
lea eax, [ebp - 0x20000]
push 0xfffe
push eax
call sub.msvcrt.dll__snwprintf
add esp, 0x10
push dword [ebp + 0x1c]
lea eax, [ebp - 0x20000]
push eax
jmp 0x40b7d9
push dword [ebp + 0x1c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
leave
ret
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
leave
ret

Function at 0x40b7ff
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4004
call fcn.0040c5c0
push esi
push edi
xor eax, eax
cmp dword [ebp + 8], eax
push 0x4000
push eax
mov word [ebp - 0x4004], ax
lea eax, [ebp - 0x4002]
mov edi, ecx
push eax
je 0x40b85e
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x4004]
push eax
push dword [edi]
push dword [ebp + 0x14]
call fcn.00403de6
add esp, 0x18
push dword [ebp + 0x18]
lea eax, [ebp - 0x4004]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov esi, eax
jmp 0x40b89f
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [ebp + 0x18]
lea eax, [ebp - 0x4004]
push 0x2000
push eax
push 0x40d43c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push dword [ebp + 0x14]
xor ecx, ecx
cmp ecx, eax
sbb esi, esi
push edi
lea edi, [ebp - 0x4004]
neg esi
call fcn.00403e6f
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x40b8a5
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push dword [ebp + 0x18]
je 0x40b8c3
push dword [esi]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040b735
add esp, 0x10
pop ebp
ret
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [esi], eax
pop ebp
ret
Function at 0x40c0c5
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
push esi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x10], esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, esi
mov dword [ebp - 4], eax
jbe 0x40c257
push ebx
mov eax, edi
call fcn.00401969
push dword [ebp - 4]
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ebx, eax
push ebx
push dword [ebp - 4]
push esi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0x40d780
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40c148
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x30]
mov dword [edi + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edi], ecx
mov ecx, dword [eax + 0x14]
mov dword [edi + 0xc], ecx
mov ecx, dword [eax + 0x10]
mov dword [edi + 8], ecx
mov ecx, dword [eax + 0x24]
mov dword [edi + 0x10], ecx
mov eax, dword [eax + 0x28]
mov dword [edi + 0x14], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push str.VarFileInfoTranslation
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40c197
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
push str._4.4X_4.4X
lea eax, [ebp - 0x38]
push 0x14
push eax
call sub.msvcrt.dll__snwprintf
add esp, 0x14
push 0x40d43c
lea eax, [ebp - 0x38]
push eax
push ebx
lea esi, [ebp - 0x238]
call fcn.0040c036
test eax, eax
jne 0x40c1a7
lea eax, [ebp - 0x38]
push str.040904E4
push eax
call sub.msvcrt.dll_wcscpy
pop ecx
pop ecx
push str.ProductName
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0x18]
push ebx
call fcn.0040c036
push str.FileDescription
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0x218]
push ebx
call fcn.0040c036
push str.FileVersion
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0x418]
push ebx
call fcn.0040c036
push str.ProductVersion
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0x618]
push ebx
call fcn.0040c036
push str.CompanyName
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0x818]
push ebx
call fcn.0040c036
push str.InternalName
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0xa18]
push ebx
call fcn.0040c036
push str.LegalCopyright
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0xc18]
push ebx
call fcn.0040c036
push str.OriginalFileName
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0xe18]
push ebx
call fcn.0040c036
xor esi, esi
push ebx
inc esi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ebx
mov eax, esi
pop esi
leave
ret 4
Function at 0x40c332
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x40d3d0
call fcn.0040c544
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x40c36d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40c36d
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40c385
cmp eax, 0x20b
je 0x40c372
mov dword [ebp - 0x1c], edi
jmp 0x40c399
cmp dword [ecx + 0x84], 0xe
jbe 0x40c36d
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x40c393
cmp dword [ecx + 0x74], 0xe
jbe 0x40c36d
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
pop ebx
push ebx
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x411778], 0xffffffff
or dword [0x41177c], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x41035c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x410358]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x411774], eax
call fcn.0040c540
cmp dword [section..data], edi
jne 0x40c3f6
push fcn.0040c540
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0040c52e
push 0x40d3a0
push 0x40d39c
call sub.msvcrt.dll__initterm
mov eax, dword [0x410354]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x410350]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x30], eax
push 0x40d398
push 0x40d374
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x40c45c
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x40c516
mov dword [ebp - 0x34], esi
cmp word [esi], 0x22
jne 0x40c4aa
add esi, ebx
mov dword [ebp - 0x34], esi
mov ax, word [esi]
cmp ax, di
je 0x40c478
cmp ax, 0x22
jne 0x40c465
cmp word [esi], 0x22
jne 0x40c483
add esi, ebx
mov dword [ebp - 0x34], esi
mov ax, word [esi]
cmp ax, di
je 0x40c491
cmp ax, 0x20
jbe 0x40c47e
mov dword [ebp - 0x4c], edi
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x4c], 1
je 0x40c4b7
movzx eax, word [ebp - 0x48]
jmp 0x40c4ba
cmp word [esi], 0x20
jbe 0x40c483
add esi, ebx
mov dword [ebp - 0x34], esi
jmp 0x40c4aa
push 0xa
pop eax
push eax
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], edi
jne 0x40c4db
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x40c510
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0040c57d
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x427e1e
Capabilities:
Encode data using xor

Disassembly:
xor eax, 0x3c244434
xor al, 0xc7
and al, 0x3c
xor al, 0x6c
mov cl, 0x35
xor al, 0xc7
and al, 0x3c
xor al, 0xe5
and al, 0x3c
xor al, 0xac
mov cl, 0x35
xor al, 0xf4
and al, 0x3c
xor al, 0x22
and al, 0x3c
xor al, 0xbc
mov cl, 0x35
xor al, 0x22
and al, 0x3c
xor al, 0x3e
and eax, 0xb1e4343c
xor eax, 0x3c253e34
xor al, 0x5a
and eax, 0xb1f0343c
xor eax, 0x3c255a34
xor al, 0x79
and eax, 0xb1fc343c
xor eax, 0x3c258434
xor al, 0x6d
sub bh, byte [esp + esi]
or byte [ecx + 0x2a6d3435], dh
cmp al, 0x34
xchg esp, eax
sub bh, byte [esp + esi]
push esp
mov bl, 0x35
xor al, 0x94
sub bh, byte [esp + esi]
mov ebx, 0x70343c2a
mov bl, 0x35
xor al, 0xbb
sub bh, byte [esp + esi]
sbb byte [edx], ch
cmp al, 0x34
invalid
Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x585692b
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x432024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
mov ecx, 0x2d3c5dd5
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x432084
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
popal
nop
jmp 0x431219

Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x3fc927ba
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x2dbd4187
nop
nop
nop
nop
test eax, eax
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x406610
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x6403f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
call fcn.00406770
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x40663a
xor eax, eax
jmp 0x4066dd
push 0x208
push 0
lea ecx, [ebp - 0x20c]
push ecx
call fcn.005163e0
add esp, 0xc
push 0x208
push 0
lea edx, [ebp - 0x20c]
push edx
call fcn.005163e0
add esp, 0xc
mov dword [ebp - 0x214], 0
lea eax, [ebp + 0x10]
mov dword [ebp - 0x210], eax
mov ecx, dword [ebp - 0x210]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0x208
lea eax, [ebp - 0x20c]
push eax
call fcn.00406940
mov dword [ebp - 0x21c], eax
push 0
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x20c]
push edx
call fcn.0051fe70
add esp, 4
push eax
lea eax, [ebp - 0x20c]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x210], 0
mov eax, dword [ebp - 0x218]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004742a8
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x6403f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x10c], ecx
mov eax, dword [ebp - 0x10c]
cmp dword [eax], 0
je 0x406799
jmp 0x406860
push 0x104
push 0
lea ecx, [ebp - 0x108]
push ecx
call fcn.005163e0
add esp, 0xc
lea edx, [ebp - 0x108]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x4067ca
jmp 0x406860
push 0x104
push 0
mov eax, dword [ebp - 0x10c]
add eax, 4
push eax
call fcn.005163e0
add esp, 0xc
mov ecx, dword [ebp - 0x10c]
add ecx, 4
push ecx
push 0
push 0x5deae0
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov eax, dword [ebp - 0x10c]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x5deae8
mov ecx, dword [ebp - 0x10c]
add ecx, 4
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionA]
mov edx, dword [ebp - 0x10c]
add edx, 4
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 4
push 0
push 7
push 0xc01200a0
mov eax, dword [ebp - 0x10c]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp - 0x10c]
mov dword [ecx], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004742a8
mov esp, ebp
pop ebp
ret
Function at 0x406c30
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2028
call fcn.004746d0
mov eax, dword [0x6403f4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x406c51
xor eax, eax
jmp 0x406cd0
push 0x1e
push 0
lea eax, [ebp - 0x2028]
push eax
call fcn.005163e0
add esp, 0xc
mov dword [ebp - 0x2008], 0x1000
mov dword [ebp - 0x2024], 3
push 0x2000
push 0
lea ecx, [ebp - 0x2004]
push ecx
call fcn.005163e0
add esp, 0xc
push 0x1000
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x2004]
push eax
call fcn.00532ba2
add esp, 0xc
lea ecx, [ebp - 0x2004]
mov dword [ebp - 0x2020], ecx
mov edx, 0x614
mov word [ebp - 0x2018], dx
lea eax, [ebp - 0x2028]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004742a8
mov esp, ebp
pop ebp
ret
Function at 0x407260
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x407282
mov eax, 1
jmp 0x4072f1
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x407297
mov eax, 1
jmp 0x4072f1
push 0x80
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4072bf
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4072bf
mov eax, 1
jmp 0x4072f1
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x4072ef
mov edx, dword [ebp - 4]
and edx, 0x10
je 0x4072ef
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x4072ef
mov eax, 1
jmp 0x4072f1
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x407300
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x407338
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x5deb8c
call fcn.00439410
add esp, 0xc
mov eax, 1
jmp 0x40739d
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40734d
mov eax, 1
jmp 0x40739d
push 0x80
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40738d
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40738d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, dword [ebp + 8]
push edx
push str.delete__s_failed__error_d
call fcn.00439410
add esp, 0xc
mov eax, 1
jmp 0x40739d
push 4
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4073b0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c63bf
mov eax, dword fs:[0]
push eax
sub esp, 0x88c
mov eax, dword [0x6403f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 8], 0
jne 0x4073e8
xor eax, eax
jmp 0x407594
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x4073f9
xor eax, eax
jmp 0x407594
mov edx, dword [ebp + 8]
push edx
call fcn.005328cf
add esp, 4
mov dword [ebp - 0x894], eax
cmp dword [ebp - 0x894], 0x104
jl 0x40741e
xor eax, eax
jmp 0x407594
push 0x410
push 0
lea eax, [ebp - 0x420]
push eax
call fcn.005163e0
add esp, 0xc
push 0x5debfc
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x420]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x888], eax
cmp dword [ebp - 0x888], 0xffffffff
je 0x40748e
mov ecx, dword [ebp - 0x888]
and ecx, 1
je 0x40748e
mov edx, dword [ebp - 0x888]
and edx, 0xfffffffe
mov dword [ebp - 0x888], edx
mov eax, dword [ebp - 0x888]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x884]
call fcn.00407cc0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x420]
push edx
lea ecx, [ebp - 0x884]
call fcn.00408830
mov dword [ebp - 0x88c], eax
cmp dword [ebp - 0x88c], 0
je 0x40755b
lea ecx, [ebp - 0x884]
call fcn.00409050
test eax, eax
je 0x4074e7
lea ecx, [ebp - 0x884]
call fcn.00408990
mov dword [ebp - 0x88c], eax
jmp 0x4074b8
lea eax, [ebp - 0x890]
push eax
lea ecx, [ebp - 0x884]
call fcn.00408cb0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x884]
call fcn.00409030
test eax, eax
je 0x407522
lea ecx, [ebp - 0x890]
call fcn.00407f90
push eax
call fcn.004073b0
add esp, 4
jmp 0x407536
lea ecx, [ebp - 0x890]
call fcn.00407f90
push eax
call fcn.00407300
add esp, 4
lea ecx, [ebp - 0x884]
call fcn.00408990
mov dword [ebp - 0x88c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x890]
call fcn.00407db0
jmp 0x4074b8
lea ecx, [ebp - 0x884]
call fcn.004086d0
mov ecx, dword [ebp + 8]
push ecx
call fcn.00406c30
add esp, 4
mov dword [ebp - 0x898], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x884]
call fcn.00407de0
mov eax, dword [ebp - 0x898]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004742a8
mov esp, ebp
pop ebp
ret