joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403530
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x2c
mov eax, dword [0x42c400]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x34]
push ebx
push ebp
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 0x11], eax
mov dword [esp + 0x15], eax
push esi
mov dword [esp + 0x1d], eax
push edi
mov dword [esp + 0x25], eax
mov dword [esp + 0x29], eax
mov dword [esp + 0x2d], eax
mov dword [esp + 0x31], eax
mov word [esp + 0x35], ax
mov byte [esp + 0x37], al
mov al, 0x69
mov ebx, edx
xor edi, edi
add ebx, 0xffffff8c
mov dword [esp + 0x10], ecx
mov byte [esp + 0x18], 0x42
mov byte [esp + 0x19], al
mov byte [esp + 0x1a], 0x6e
mov byte [esp + 0x1b], 0x64
mov byte [esp + 0x1c], 0x5a
mov byte [esp + 0x1d], al
mov byte [esp + 0x1e], 0x70
mov byte [esp + 0x1f], 0x46
mov byte [esp + 0x20], 0x6c
mov byte [esp + 0x21], 0x61
mov byte [esp + 0x22], 0x67
je 0x403667
lea esp, [esp]
lea eax, [esp + 0x18]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4035c7
sub eax, edx
mov edx, dword [esp + 0x40]
add edx, edi
cmp eax, 4
lea ecx, [esp + 0x18]
jb 0x4035f5
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x4035f9
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x4035e1
test eax, eax
je 0x403656
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x403648
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x403656
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x403648
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x403656
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x403648
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x403656
movzx esi, byte [edx]
movzx eax, byte [ecx]
sub esi, eax
je 0x403656
test esi, esi
mov eax, 1
jg 0x403658
or eax, 0xffffffff
jmp 0x403658
xor eax, eax
test eax, eax
je 0x40367c
add edi, 1
cmp edi, ebx
jb 0x4035c0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0041310b
add esp, 0x2c
ret
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x14]
lea eax, [edi + ecx]
mov ecx, dword [esp + 0x10]
pop edi
mov dword [edx], eax
add eax, 0x74
pop esi
mov dword [ecx], eax
mov ecx, dword [esp + 0x30]
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0041310b
add esp, 0x2c
ret
Function at 0x405320
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x218
mov eax, dword [0x42c400]
xor eax, esp
mov dword [esp + 0x214], eax
push edi
push 0x103
lea eax, [esp + 9]
push 0
push eax
mov byte [esp + 0x10], 0
call fcn.0041c150
add esp, 0xc
lea edi, [esp + 4]
call fcn.00407020
mov eax, edi
add eax, 0xffffffff
lea esp, [esp]
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x405360
mov ecx, dword [str.Extend.zip]
mov edx, dword [0x425b6c]
mov dword [eax], ecx
mov ecx, dword [0x425b70]
mov dword [eax + 4], edx
lea edx, [esp + 4]
push edx
mov dword [eax + 8], ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4053e3
push 0x425b74
push 0x728
push str..Setup.cpp
push 2
mov ecx, str.InstallExtendFile
call fcn.00405d70
push 0x425b74
push 0x728
push str..Setup.cpp
push 2
mov ecx, str.InstallExtendFile
call fcn.00405a90
add esp, 0x20
pop edi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.0041310b
add esp, 0x218
ret
push 0x103
lea eax, [esp + 0x111]
push 0
push eax
mov byte [esp + 0x118], 0
call fcn.0041c150
add esp, 0xc
lea eax, [esp + 0x10c]
call fcn.0040b3a0
lea eax, [esp + 0x10c]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x405418
mov ecx, dword [str.IsAgent]
mov edx, dword [0x424c88]
mov dword [eax], ecx
mov cl, byte [0x424c8c]
push 0x425b98
push 0x730
mov dword [eax + 4], edx
mov byte [eax + 8], cl
push str..Setup.cpp
push 2
mov ecx, str.InstallExtendFile
call fcn.00405d70
push 0x425b98
push 0x730
push str..Setup.cpp
push 2
mov ecx, str.InstallExtendFile
call fcn.00405a90
push 1
lea edx, [esp + 0x130]
lea ecx, [esp + 0x28]
call fcn.0040a780
mov ecx, dword [esp + 0x23c]
add esp, 0x24
pop edi
xor ecx, esp
call fcn.0041310b
add esp, 0x218
ret
Function at 0x405810
Capabilities:
Check if file exists
Get file attributes
Set current directory

Disassembly:
sub esp, 0x114
mov eax, dword [0x42c400]
xor eax, esp
mov dword [esp + 0x110], eax
push esi
push edi
push 0x103
lea eax, [esp + 0x11]
push 0
push eax
mov byte [esp + 0x18], 0
call fcn.0041c150
add esp, 0xc
lea edi, [esp + 0xc]
call fcn.00407020
mov ecx, edi
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, edi
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x405856
mov edx, dword [str.Setup.bat]
mov ecx, dword [0x425c24]
mov dword [eax], edx
mov dx, word [0x425c28]
mov dword [eax + 4], ecx
mov cl, byte [0x425c2a]
mov word [eax + 8], dx
lea edx, [esp + 0xc]
push edx
mov byte [eax + 0xa], cl
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4058e5
push 0x425c80
push 0x78c
push str..Setup.cpp
push 2
mov ecx, str.RunUninstallBat
call fcn.00405d70
push 0x425c80
push 0x78c
push str..Setup.cpp
push 2
mov ecx, str.RunUninstallBat
call fcn.00405a90
add esp, 0x20
pop edi
pop esi
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0041310b
add esp, 0x114
ret
push 0
mov edx, str.Uninstall
lea ecx, [esp + 0x10]
call fcn.00405960
add esp, 4
mov esi, eax
push esi
lea eax, [esp + 0x10]
push eax
push 0x425cac
push 0x791
push str..Setup.cpp
push 2
mov ecx, str.RunUninstallBat
call fcn.00405d70
push esi
lea ecx, [esp + 0x28]
push ecx
push 0x425cac
push 0x791
push str..Setup.cpp
push 2
mov ecx, str.RunUninstallBat
call fcn.00405a90
mov ecx, dword [esp + 0x148]
add esp, 0x30
pop edi
pop esi
xor ecx, esp
call fcn.0041310b
add esp, 0x114
ret
Function at 0x406180
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x148
mov eax, dword [0x42c400]
xor eax, esp
mov dword [esp + 0x144], eax
mov ax, word [0x425e20]
mov cl, byte [0x425e22]
push ebp
mov ebp, dword [esp + 0x150]
push 0x3d
lea edx, [esp + 0xb]
push 0
push edx
mov word [esp + 0x10], ax
mov byte [esp + 0x12], cl
call fcn.0041c150
add esp, 0xc
test ebx, ebx
je 0x4062e5
cmp byte [ebx], 0
je 0x4062e5
test ebp, ebp
je 0x4062e5
push esi
push edi
push 0x40
lea eax, [esp + 0x10]
push eax
push str.SOFTWAREISADB
mov esi, str.Langue
call fcn.00407960
push 0x103
lea ecx, [esp + 0x5d]
push 0
push ecx
mov byte [esp + 0x64], 0
call fcn.0041c150
add esp, 0x18
lea eax, [esp + 0x4c]
call fcn.0040b3a0
lea eax, [esp + 0x4c]
add eax, 0xffffffff
lea esp, [esp]
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x406220
mov edx, dword [str.Isagent_]
mov ecx, dword [0x425e28]
mov dword [eax], edx
mov dx, word [0x425e2c]
mov dword [eax + 4], ecx
mov word [eax + 8], dx
lea eax, [esp + 0xc]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x406250
lea edi, [esp + 0x4c]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x406262
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x4c]
pop edi
add eax, 0xffffffff
pop esi
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x406285
mov ecx, dword [str..langue]
mov edx, dword [0x425e34]
mov dword [eax], ecx
mov dword [eax + 4], edx
lea eax, [esp + 0x44]
push eax
push 0x104
push ebp
push ebx
push ebx
push str.StringMap
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp], 0
jne 0x4062cd
push 0x104
push ebx
push ebp
call fcn.00413920
add esp, 0xc
mov eax, ebp
pop ebp
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.0041310b
add esp, 0x148
ret
mov ecx, dword [esp + 0x148]
pop ebp
xor ecx, esp
xor eax, eax
call fcn.0041310b
add esp, 0x148
ret

Function at 0x406400
Capabilities:
Get disk information

Disassembly:
sub esp, 0x208
mov eax, dword [0x42c400]
xor eax, esp
mov dword [esp + 0x204], eax
mov ax, word [0x425e44]
mov cl, byte [0x425e46]
push ebx
mov bl, 0x41
push esi
mov esi, dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
mov word [esp + 8], ax
mov byte [esp + 0xa], cl
mov byte [esp + 8], bl
jmp 0x406440
push 0x1ff
lea edx, [esp + 0x11]
push 0
push edx
mov byte [esp + 0x18], 0
call fcn.0041c150
add esp, 0xc
push 0x200
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
call esi
test eax, eax
je 0x406480
lea edx, [esp + 0xc]
push edx
push edi
call fcn.004157a3
add esp, 8
test eax, eax
je 0x4064a5
add bl, 1
cmp bl, 0x5a
mov byte [esp + 8], bl
jle 0x406440
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x204]
xor ecx, esp
call fcn.0041310b
add esp, 0x208
ret
mov ecx, dword [esp + 0x20c]
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.0041310b
add esp, 0x208
ret
Function at 0x4064c0
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x414
mov eax, dword [0x42c400]
xor eax, esp
mov dword [esp + 0x40c], eax
push ebx
push ebp
push esi
mov esi, ecx
cmp esi, 0xa
mov ebx, edx
push edi
mov dword [esp + 0x14], ebx
jae 0x406512
mov eax, dword [str._SYSTEM_PATH_]
mov dword [ebx], eax
mov ecx, dword [0x425e4c]
mov dword [ebx + 4], ecx
mov edx, dword [0x425e50]
mov dword [ebx + 8], edx
mov ax, word [0x425e54]
mov word [ebx + 0xc], ax
mov eax, 1
jmp 0x406670
push str.SeDebugPrivilege
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
mov eax, 1
call fcn.00406300
add esp, 4
push esi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
mov dword [esp + 0x10], edi
je 0x406670
push 0x104
push ebx
push 0
push edi
call sub.PSAPI.DLL_GetModuleFileNameExA
mov ebp, eax
test ebp, ebp
jne 0x406650
push str.GetProcessImageFileNameA
push 0x425e88
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x406650
push 0x3ff
lea ecx, [esp + 0x1d]
push ebp
push ecx
mov byte [esp + 0x24], 0
call fcn.0041c150
add esp, 0xc
push 0x400
lea edx, [esp + 0x1c]
push edx
push edi
call esi
test eax, eax
jbe 0x406650
push 8
lea eax, [esp + 0x1c]
push str.Device_
push eax
call fcn.0041e4d5
add esp, 0xc
test eax, eax
jne 0x406650
lea esi, [esp + 0x20]
mov edi, edi
mov bl, byte [esi]
lea edi, [esp + 0x18]
mov byte [esi], 0
call fcn.00406400
test al, al
mov byte [esi], bl
jg 0x4065fa
push 0x5c
add esi, 2
push esi
call fcn.00413610
mov esi, eax
add esp, 8
test esi, esi
jne 0x4065d0
jmp 0x40664c
mov edx, dword [esp + 0x14]
mov byte [edx], al
mov eax, esi
mov byte [edx + 1], 0x3a
lea edi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x406610
sub eax, edi
cmp eax, 0x103
jae 0x406634
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x406627
sub eax, edi
jmp 0x406639
mov eax, 0x103
push eax
add edx, 2
push esi
push edx
call fcn.00414320
add esp, 0xc
mov ebp, 1
mov edi, dword [esp + 0x10]
push str.SeDebugPrivilege
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
xor eax, eax
call fcn.00406300
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
mov ecx, dword [esp + 0x41c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041310b
add esp, 0x414
ret
Function at 0x406690
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x138
mov eax, dword [0x42c400]
xor eax, esp
mov dword [esp + 0x130], eax
push esi
push 0x128
lea eax, [esp + 0xc]
push 0
push eax
call fcn.0041c150
add esp, 0xc
push 0
push 2
mov dword [esp + 0x10], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [esp + 8]
mov esi, eax
push ecx
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x406705
jmp 0x4066e0
lea edx, [esp + 0x2c]
push edx
push 0x425ba8
call fcn.004157a3
add esp, 8
test eax, eax
je 0x406725
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4066e0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0041310b
add esp, 0x138
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x134]
mov eax, dword [esp + 0x10]
pop esi
xor ecx, esp
call fcn.0041310b
add esp, 0x138
ret

Function at 0x406840
Capabilities:
Check os version
Get token membership

Disassembly:
sub esp, 0x18
mov eax, dword [0x42c400]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push esi
xor ebx, ebx
push edi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx edi, al
lea eax, [esp + 0xc]
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x406893
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0041310b
add esp, 0x18
ret
cmp edi, 6
jae 0x406908
lea ecx, [esp + 0x14]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea edx, [esp + 0x40]
push edx
mov byte [esp + 0x44], bl
mov byte [esp + 0x45], bl
mov byte [esp + 0x46], bl
mov byte [esp + 0x47], bl
mov byte [esp + 0x48], bl
mov byte [esp + 0x49], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x40692f
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x4068fb
xor edx, edx
cmp dword [esp + 0x10], ebx
setne dl
add edx, 2
mov esi, edx
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
jmp 0x40692f
mov edi, dword [esp + 0xc]
call fcn.004067d0
mov edi, eax
cmp edi, ebx
je 0x40692f
mov ecx, dword [edi]
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
mov esi, dword [eax]
push edi
shr esi, 0xc
call fcn.0041336e
add esp, 4
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x20]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.0041310b
add esp, 0x18
ret
Function at 0x406950
Capabilities:
Acquire debug privileges
Terminate process

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push esi
push edi
push str.SeDebugPrivilege
xor edi, edi
call ebx
mov ecx, eax
lea eax, [edi + 1]
call fcn.00406300
mov eax, dword [esp + 0x18]
add esp, 4
push eax
push edi
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x406996
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.SeDebugPrivilege
call ebx
mov ecx, eax
xor eax, eax
call fcn.00406300
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4069b0
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x128
mov eax, dword [0x42c400]
xor eax, esp
mov dword [esp + 0x124], eax
push 0x103
lea eax, [esp + 0x25]
push 0
push eax
mov byte [esp + 0x2c], 0
call fcn.0041c150
add esp, 0xc
test edi, edi
je 0x406a94
push esi
push 1
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
push str.LCDEBUG
lea ecx, [esp + 0x28]
lea eax, [esp + 0x14]
push str.GlobalProcLock__s_Mutex
push ecx
mov dword [esp + 0x10], 0xc
mov dword [esp + 0x18], 1
mov dword [esp + 0x14], eax
call fcn.00413567
add esp, 0xc
lea edx, [esp + 0x24]
push edx
push 0
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x406a7c
push 0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x406a75
mov dword [edi], esi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.0041310b
add esp, 0x128
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.0041310b
add esp, 0x128
ret
mov ecx, dword [esp + 0x124]
xor ecx, esp
xor eax, eax
call fcn.0041310b
add esp, 0x128
ret
Function at 0x407170
Capabilities:
Create directory

Disassembly:
sub esp, 0x108
mov eax, dword [0x42c400]
xor eax, esp
mov dword [esp + 0x104], eax
push ebp
push esi
push 0x103
lea eax, [esp + 0xd]
push 0
push eax
mov esi, ecx
mov byte [esp + 0x14], 0
call fcn.0041c150
mov eax, esi
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4071a6
sub eax, edx
lea edx, [esp + 8]
mov ebp, eax
mov eax, esi
sub edx, esi
jmp 0x4071c0
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x4071c0
xor esi, esi
test ebp, ebp
jle 0x407209
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ebx, [ebx]
mov bl, byte [esp + esi + 0x10]
cmp bl, 0x5c
je 0x4071ee
cmp bl, 0x2f
jne 0x407200
push 0
lea ecx, [esp + 0x14]
push ecx
mov byte [esp + esi + 0x18], 0
call edi
mov byte [esp + esi + 0x10], bl
add esi, 1
cmp esi, ebp
jl 0x4071e0
pop edi
pop ebx
mov ecx, dword [esp + 0x10c]
pop esi
pop ebp
xor ecx, esp
call fcn.0041310b
add esp, 0x108
ret

Function at 0x407220
Capabilities:
Timestomp file

Disassembly:
sub esp, 0x30
push ebx
push ebp
mov ebp, dword [esp + 0x3c]
push esi
xor esi, esi
push edi
push esi
push 0x80
push 3
push esi
push 5
push 0x40000000
push eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
xor ebx, ebx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4072cd
cmp ebp, esi
je 0x4072a1
lea ecx, [esp + 0x10]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea ebx, [esp + 0x18]
push ebx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x30
ret
Function at 0x4072e0
Capabilities:
Copy file
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
sub esp, 0x108
mov eax, dword [0x42c400]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
push ebp
mov ecx, esi
call fcn.00407170
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 7
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
je 0x407316
push 0x80
push esi
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
push esi
push edi
call ebx
test eax, eax
jne 0x4073b6
push 0x103
push eax
mov byte [esp + 0x10], al
lea eax, [esp + 0x11]
push eax
call fcn.0041c150
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x407365
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0041310b
add esp, 0x108
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
and eax, 0xfff
push eax
push esi
lea ecx, [esp + 0x10]
push str._s._d
push ecx
call fcn.00413567
add esp, 0x10
lea edx, [esp + 8]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x40734c
push 4
push 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 6
lea ecx, [esp + 0xc]
push ecx
call ebp
push 0
push esi
push edi
call ebx
test eax, eax
je 0x40734c
mov ecx, dword [esp + 0x10c]
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0041310b
add esp, 0x108
ret

Function at 0x4073e0
Capabilities:
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
sub esp, 0x10c
mov eax, dword [0x42c400]
xor eax, esp
mov dword [esp + 0x108], eax
test esi, esi
jne 0x40740f
xor eax, eax
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0041310b
add esp, 0x10c
ret
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x407414
sub eax, edx
je 0x4073f8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
and eax, 0xfffffffe
push eax
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4074dc
push 0x103
push eax
mov byte [esp + 0x10], al
lea eax, [esp + 0x11]
push eax
call fcn.0041c150
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x407496
call dword [sym.imp.KERNEL32.dll_GetTickCount]
and eax, 0xfff
push eax
push esi
lea ecx, [esp + 0x10]
push str._s._d
push ecx
call fcn.00413567
add esp, 0x10
lea edx, [esp + 8]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x4074ae
xor eax, eax
pop edi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0041310b
add esp, 0x10c
ret
push 6
lea eax, [esp + 0xc]
push eax
call edi
push 4
push 0
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
pop edi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0041310b
add esp, 0x10c
ret
mov ecx, dword [esp + 0x10c]
pop edi
xor ecx, esp
mov eax, 1
call fcn.0041310b
add esp, 0x10c
ret
Function at 0x407500
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x214
mov eax, dword [0x42c400]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
xor edi, edi
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 4]
push eax
push 0x424a44
push 1
push edi
push 0x424a54
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4075fd
mov eax, dword [esp + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push esi
push eax
call edx
mov eax, dword [esp + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x2c]
push str._remove
push eax
call edx
mov eax, dword [esp + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x34]
push edi
push eax
call edx
mov eax, dword [esp + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x44]
push edi
push esi
push eax
call edx
mov eax, dword [esp + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push str.Remove_IsAgent
push eax
call edx
mov eax, dword [esp + 4]
mov ecx, dword [eax]
lea edx, [esp + 8]
push edx
push 0x424a64
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x4075f1
push 0x206
lea ecx, [esp + 0x12]
push edi
push ecx
mov word [esp + 0x18], di
call fcn.0041c150
add esp, 0xc
push 0x104
lea edx, [esp + 0x10]
push edx
push 0xffffffffffffffff
push ebx
push edi
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 8]
mov ecx, dword [eax]
push edi
lea edx, [esp + 0x10]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov edi, 1
mov eax, dword [esp + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.0041310b
add esp, 0x214
ret
Function at 0x407620
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
xor esi, esi
test eax, eax
push edi
mov edi, ecx
je 0x40766d
push esi
push 0x80
push 4
push esi
push 7
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x407667
cmp dword [ebp], 0xffffffff
jne 0x40766d
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp], eax
jne 0x40766d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebp
ret
mov eax, dword [ebp]
push ebx
mov ecx, edi
and ecx, 0x40000000
push 0
neg ecx
push eax
sbb ecx, ecx
push 0
and ecx, 2
add ecx, 2
push ecx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
test ebx, ebx
jne 0x4076a6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
ret
mov edx, dword [ebp]
push edx
push 0
and edi, 0xdfffffff
push 0
or edi, 0x9fffffff
shr edi, 0x1d
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
jne 0x4076dc
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call edi
push esi
call edi
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
ret
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov dword [edx], ebx
pop ebx
mov dword [ecx], esi
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov dword [ecx], eax
mov eax, 1
pop ebp
ret