joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4057a0
Capabilities:
Set registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0x14]
mov dword [esp], 0
test ecx, ecx
mov eax, 0x2001f
je 0x4057bb
mov eax, 0x2011f
mov edx, dword [esp + 8]
lea ecx, [esp]
push ecx
push eax
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405813
push esi
mov esi, dword [esp + 0x14]
test esi, esi
je 0x4057ef
push esi
call fcn.004447d0
add esp, 4
lea eax, [eax + eax + 2]
jmp 0x4057f1
xor eax, eax
mov ecx, dword [esp + 4]
push eax
mov eax, dword [esp + 0x14]
push esi
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ecx
ret 0x10

Function at 0x405820
Capabilities:
Set registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0x14]
mov dword [esp], 0
test ecx, ecx
mov eax, 0x2001f
je 0x40583b
mov eax, 0x2011f
mov edx, dword [esp + 8]
lea ecx, [esp]
push ecx
push eax
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40587d
mov ecx, dword [esp + 0xc]
mov edx, dword [esp]
lea eax, [esp + 0x10]
push 4
push eax
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
ret 0x10

Function at 0x405890
Capabilities:
Set registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0x18]
mov dword [esp], 0
test ecx, ecx
mov eax, 0x2001f
je 0x4058ab
mov eax, 0x2011f
mov edx, dword [esp + 8]
lea ecx, [esp]
push ecx
push eax
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4058ed
mov ecx, dword [esp + 0xc]
mov edx, dword [esp]
lea eax, [esp + 0x10]
push 8
push eax
push 3
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
ret 0x14

Function at 0x405900
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0xc]
lea eax, [esp]
push esi
push eax
xor esi, esi
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40599a
mov ecx, dword [esp + 4]
push ebx
lea edx, [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
push eax
lea eax, [esp + 0x18]
push eax
push esi
push edi
push ecx
call ebx
mov eax, dword [esp + 0x18]
cmp eax, 2
jb 0x405984
add eax, 2
mov dword [esp + 0x18], eax
shr eax, 1
lea edx, [eax + eax]
push edx
call fcn.005d62f8
mov esi, eax
add esp, 4
test esi, esi
je 0x405984
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push esi
push ecx
push 0
push edi
push edx
call ebx
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop ebx
pop esi
add esp, 8
ret 8
mov eax, esi
pop esi
add esp, 8
ret 8
Function at 0x4059b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x10]
lea eax, [esp]
push eax
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x405a14
mov dword [esp + 8], eax
lea edx, [esp + 0x10]
lea eax, [esp + 4]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 8]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 4]
add esp, 0xc
ret 8

Function at 0x405a20
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov ecx, dword [esp + 0x14]
lea eax, [esp]
push eax
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x405a8c
mov dword [esp + 4], eax
lea edx, [esp + 0x14]
lea eax, [esp + 8]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 8]
push eax
mov eax, dword [esp + 8]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x2c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
fld qword [esp + 8]
add esp, 0x10
ret 8
Function at 0x405bb0
Capabilities:
Copy file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5e5008
push eax
mov eax, dword [0x676468]
mov dword fs:[0], esp
sub esp, 8
test eax, eax
je 0x405bea
push str.CopyFile_1_______
push str.cmdtest
push 0xf
push 0x6763fc
call fcn.00429e80
add esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2c]
push edi
mov edi, dword [esp + 0x2c]
push edi
mov ecx, esi
call fcn.005d5db0
push str._NEW.txt
push str..txt
mov ecx, esi
call fcn.005d2d90
mov ebp, dword [esp + 0x28]
lea ecx, [esp + 0x14]
push ebp
call fcn.005d5ce7
push ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0
call fcn.005d5ce7
lea eax, [esp + 0x14]
push 0x6383c8
lea ecx, [esp + 0x34]
mov bl, 1
push eax
push ecx
mov byte [esp + 0x2c], bl
call fcn.005d5ebc
push edi
lea edx, [esp + 0x30]
push eax
push edx
mov byte [esp + 0x2c], 2
call fcn.005d5ebc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], 3
call fcn.005d5d60
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 2
call fcn.005d5c27
lea ecx, [esp + 0x30]
mov byte [esp + 0x20], bl
call fcn.005d5c27
lea eax, [esp + 0x10]
push 0x6383c8
lea ecx, [esp + 0x34]
push eax
push ecx
call fcn.005d5ebc
push esi
lea edx, [esp + 0x30]
push eax
push edx
mov byte [esp + 0x2c], 4
call fcn.005d5e56
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 5
call fcn.005d5d60
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 4
call fcn.005d5c27
lea ecx, [esp + 0x30]
mov byte [esp + 0x20], bl
call fcn.005d5c27
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov edi, eax
mov eax, dword [0x676468]
test eax, eax
je 0x405d2e
mov esi, dword [esi]
lea ecx, [esp + 0x2c]
push esi
call fcn.0045d440
mov eax, dword [eax]
push edi
push eax
push str.CopyFile_1______s___d_
push str.cmdtest
push 0xf
push 0x6763fc
mov byte [esp + 0x38], 6
call fcn.00429e80
add esp, 0x18
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], bl
call fcn.0045ddc0
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 0
call fcn.005d5c27
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
call fcn.005d5c27
mov ecx, dword [esp + 0x18]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4085d0
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
mov eax, 0x2808
call fcn.00444f40
mov eax, dword [esp + 0x280c]
test eax, eax
jne 0x4085ec
add esp, 0x2808
ret
push ebp
mov ebp, dword [esp + 0x2818]
push esi
push 0
push 0
push 3
push 0
push 3
push SysReAllocStringLen
push eax
mov dword [esp + 0x24], 0
mov dword [ebp], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4086fb
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, eax
test edx, edx
jne 0x40863d
mov dword [ebp], 2
jmp 0x4086a5
push edi
mov ecx, 0x9ff
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, 0x2800
pop edi
cmp edx, eax
jae 0x40865f
mov eax, edx
lea ecx, [esp + 0xc]
push 0
push ecx
lea edx, [esp + 0x18]
push eax
push edx
push esi
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40869e
lea eax, [esp + 0x10]
push 0x2800
push eax
call fcn.00408460
add esp, 8
test eax, eax
jne 0x4086a5
mov dword [ebp], 3
jmp 0x4086a5
mov dword [ebp], 5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp], 0
jne 0x40870d
mov eax, dword [esp + 0x2818]
test eax, eax
je 0x4086e6
mov ecx, dword [esp + 0x2814]
push eax
push ecx
call fcn.004084b0
add esp, 8
test eax, eax
jne 0x4086e6
mov eax, dword [esp + 8]
mov dword [ebp], 4
pop esi
pop ebp
add esp, 0x2808
ret
mov dword [esp + 8], 1
pop esi
mov eax, dword [esp + 4]
pop ebp
add esp, 0x2808
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40870d
mov dword [ebp], 1
mov eax, dword [esp + 8]
pop esi
pop ebp
add esp, 0x2808
ret
Function at 0x40cd60
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push edi
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x18]
mov eax, 0x1f3
not ecx
dec ecx
push edi
mov ebx, ecx
push ebp
sub eax, ebx
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
jne 0x40cda0
pop edi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
push esi
mov esi, 1
test byte [edi], 0x10
je 0x40ce8c
mov al, byte [edi + 0x2c]
lea edx, [edi + 0x2c]
cmp al, 0x2e
jne 0x40cdd3
mov al, byte [edi + 0x2d]
cmp al, 0x2e
jne 0x40cdcb
mov cl, byte [edi + 0x2e]
test cl, cl
je 0x40ce61
test al, al
je 0x40ce61
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x10]
not ecx
cmp eax, ecx
jb 0x40ce5d
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
mov byte [ebx + ebp - 1], 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x63e38c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x24]
mov ecx, edx
mov edx, dword [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x20]
push eax
push ecx
push edx
push ebp
call fcn.0040cd60
mov byte [ebx + ebp - 1], 0x2a
add esp, 0x10
mov esi, eax
mov byte [ebx + ebp], 0
mov edi, dword [esp + 0x1c]
test esi, esi
je 0x40ce79
mov edx, dword [esp + 0x18]
push edi
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40cda6
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop esi
pop edi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x24]
lea ecx, [edi + 0x2c]
push eax
push ecx
push ebp
mov byte [ebx + ebp - 1], 0
call dword [esp + 0x2c]
mov esi, eax
mov byte [ebx + ebp - 1], 0x2a
jmp 0x40ce61
Function at 0x40de30
Capabilities:
Set file attributes

Disassembly:
sub esp, 0x664
push ebx
push esi
mov esi, dword [esp + 0x670]
xor ebx, ebx
cmp esi, ebx
je 0x40e008
push esi
call fcn.004447d0
add esp, 4
test eax, eax
je 0x40e008
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x18]
push ebx
push eax
push esi
mov dword [esp + 0x24], ebx
call fcn.0040a990
add esp, 0x1c
test eax, eax
je 0x40e008
mov eax, dword [esp + 8]
cmp eax, 0xffffffff
je 0x40e008
test al, 1
je 0x40de9c
and al, 0xfe
push eax
push esi
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esp + 8]
test al, 0x10
push ebp
je 0x40dfe0
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x46e]
mov word [esp + 0x46c], bx
push esi
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x470]
push ecx
stosw word es:[edi], ax
call fcn.0044476e
lea edx, [esp + 0x474]
push 0x63e390
push edx
call fcn.00444744
mov ecx, 0x93
xor eax, eax
lea edi, [esp + 0x230]
mov dword [esp + 0x22c], ebx
add esp, 0x10
rep stosd dword es:[edi], eax
lea eax, [esp + 0x21c]
lea ecx, [esp + 0x46c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, dword [esp + 0x67c]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40dfbc
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea edx, [esp + 0x248]
push 0x63d250
push edx
call edi
test eax, eax
je 0x40df9e
lea eax, [esp + 0x248]
push 0x63d24c
push eax
call edi
test eax, eax
je 0x40df9e
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push esi
push ecx
stosw word es:[edi], ax
call fcn.0044476e
lea edx, [esp + 0x1c]
push 0x638498
push edx
call fcn.00444744
lea eax, [esp + 0x258]
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.00444744
lea edx, [esp + 0x2c]
push ebp
push edx
call fcn.0040de30
add esp, 0x20
lea eax, [esp + 0x21c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40df22
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
pop edi
jne 0x40dffe
test ebp, ebp
je 0x40dffe
push 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop ebp
pop esi
pop ebx
add esp, 0x664
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, ebx
jne 0x40dffe
cmp dword [esp + 0x678], ebx
je 0x40dffe
push 4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop ebp
pop esi
pop ebx
add esp, 0x664
ret
pop esi
xor eax, eax
pop ebx
add esp, 0x664
ret

Function at 0x40e580
Capabilities:
Copy file

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
push edi
push ebx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov edi, eax
test edi, edi
jne 0x40e5c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40e5c2
push edi
push esi
call fcn.0040dbd0
add esp, 8
push ebx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_CopyFileA]
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x40e5d0
Capabilities:
Check for time delay via gettickcount
Check if file exists
Copy file
Get file attributes
Move file
Set file attributes

Disassembly:
sub esp, 0x204
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push ebp
mov ebp, dword [esp + 0x214]
push esi
push edi
push ebp
call ebx
cmp eax, 0xffffffff
jne 0x40e605
mov eax, dword [esp + 0x220]
mov ecx, dword [esp + 0x218]
push eax
push ebp
push ecx
jmp 0x40e6ab
test al, 1
je 0x40e61b
and al, 0xfe
push eax
push ebp
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esp + 0x10]
test al, 0x10
je 0x40e69a
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
push eax
push ebp
lea edx, [esp + 0x1c]
push 0x63e73c
push edx
call fcn.004446b2
add esp, 0x10
lea eax, [esp + 0x14]
xor esi, esi
push eax
call ebx
cmp eax, 0xffffffff
je 0x40e68e
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
push eax
push ebp
lea ecx, [esp + 0x1c]
push 0x63e73c
push ecx
call fcn.004446b2
add esp, 0x10
lea edx, [esp + 0x14]
push edx
call ebx
inc esi
cmp esi, 0xa
jge 0x40e6c9
cmp eax, 0xffffffff
jne 0x40e65e
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov ecx, dword [esp + 0x220]
mov edx, dword [esp + 0x218]
push ecx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push ebp
mov esi, eax
call fcn.00410500
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x204
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x204
ret
Function at 0x40e6e0
Capabilities:
Check for time delay via gettickcount
Check if file exists
Copy file
Get file attributes
Move file
Set file attributes

Disassembly:
sub esp, 0x404
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push ebp
mov ebp, dword [esp + 0x414]
push esi
push edi
push ebp
call ebx
cmp eax, 0xffffffff
jne 0x40e715
mov eax, dword [esp + 0x420]
mov ecx, dword [esp + 0x418]
push eax
push ebp
push ecx
jmp 0x40e7ba
test al, 1
je 0x40e72b
and al, 0xfe
push eax
push ebp
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esp + 0x10]
test al, 0x10
je 0x40e7a9
xor esi, esi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
push eax
push ebp
lea edx, [esp + 0x1c]
push str._s.bak_08X
push edx
call fcn.004447ed
add esp, 0x10
lea eax, [esp + 0x14]
push eax
call ebx
cmp eax, 0xffffffff
je 0x40e79d
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
push eax
push ebp
lea ecx, [esp + 0x1c]
push str._s.bak_08X
push ecx
call fcn.004447ed
add esp, 0x10
lea edx, [esp + 0x14]
push edx
call ebx
inc esi
cmp esi, 0xa
jge 0x40e7d8
cmp eax, 0xffffffff
jne 0x40e76d
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ecx, dword [esp + 0x420]
mov edx, dword [esp + 0x418]
push ecx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push ebp
mov esi, eax
call fcn.00410540
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x404
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x404
ret
Function at 0x40e7f0
Capabilities:
Check for time delay via gettickcount
Check if file exists
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5e56eb
push eax
mov dword fs:[0], esp
sub esp, 0x208
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x228]
xor ebx, ebx
cmp edi, ebx
je 0x40e9d1
mov esi, dword [esp + 0x22c]
cmp esi, ebx
je 0x40e9d1
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [esp + 0x230]
mov dword [esp + 0x14], eax
cmp ecx, ebx
je 0x40e84e
cmp eax, 0xffffffff
jne 0x40e9d1
push esi
lea ecx, [esp + 0x14]
call fcn.005d5c95
push 0x63e760
lea ecx, [esp + 0x14]
mov dword [esp + 0x224], ebx
call fcn.005d6003
mov eax, dword [esp + 0x10]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call ebp
mov ecx, dword [esp + 0x10]
push 0
push ecx
push edi
call fcn.0040e5d0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x40e9bd
mov eax, dword [esp + 0x234]
test eax, eax
je 0x40e8b4
mov edx, dword [esp + 0x10]
push edx
push edi
call eax
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40e9ec
mov eax, dword [esp + 0x10]
push 1
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov ebx, eax
test ebx, ebx
jne 0x40e9bd
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x40e9f5
test al, 1
je 0x40e8e7
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
stosw word es:[edi], ax
stosb byte es:[edi], al
call ebp
push eax
push esi
lea ecx, [esp + 0x20]
push 0x63e73c
push ecx
call fcn.004446b2
add esp, 0x10
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor edi, edi
cmp eax, 0xffffffff
je 0x40e95e
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call ebp
push eax
push esi
lea eax, [esp + 0x20]
push 0x63e73c
push eax
call fcn.004446b2
add esp, 0x10
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
inc edi
cmp edi, 0xa
jge 0x40e9b2
cmp eax, 0xffffffff
jne 0x40e92a
mov ebp, dword [sym.imp.KERNEL32.dll_MoveFileA]
lea edx, [esp + 0x18]
push edx
push esi
call ebp
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 1
push esi
push eax
call edi
mov ebx, eax
test ebx, ebx
jne 0x40e99d
mov eax, dword [esp + 0x238]
test eax, eax
je 0x40e999
mov ecx, dword [esp + 0x10]
push 5
push esi
push ecx
call edi
mov ebx, eax
test ebx, ebx
je 0x40e9aa
push 4
lea edx, [esp + 0x1c]
push 0
push edx
call edi
jmp 0x40e9bd
lea eax, [esp + 0x18]
push esi
push eax
call ebp
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x10]
mov dword [esp + 0x220], 0xffffffff
call fcn.005d5c27
mov ecx, dword [esp + 0x218]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x214
ret
mov edx, dword [esp + 0x10]
push edx
call ebp
jmp 0x40e9bd
mov eax, dword [esp + 0x10]
push eax
call ebp
jmp 0x40e9bd
Function at 0x40ec10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5e5762
push eax
mov dword fs:[0], esp
sub esp, 0x158
push ebx
push esi
mov esi, dword [esp + 0x170]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x40ee25
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40ee25
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40ee25
test al, 0x10
je 0x40ee25
push esi
lea ecx, [esp + 0x10]
call fcn.005d5c95
push 0x5c
lea ecx, [esp + 0x10]
mov dword [esp + 0x170], ebx
call fcn.005d366d
mov ecx, 0x4e
xor eax, eax
lea edi, [esp + 0x28]
mov dword [esp + 0x24], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
push 0x63e38c
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.005d5ebc
mov eax, dword [eax]
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea ecx, [esp + 0x10]
mov edi, eax
call fcn.005d5c27
cmp edi, 0xffffffff
mov ebx, 1
je 0x40ee0d
mov esi, dword [esp + 0x178]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpA]
lea eax, [esp + 0x54]
push 0x63e674
push eax
call ebp
test eax, eax
je 0x40edf1
lea ecx, [esp + 0x54]
push 0x63e670
push ecx
call ebp
test eax, eax
je 0x40edf1
lea edx, [esp + 0x54]
lea ecx, [esp + 0x14]
push edx
call fcn.005d5c95
mov al, byte [esp + 0x28]
mov byte [esp + 0x170], bl
test al, 0x10
push 0x6383c8
je 0x40ed84
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.005d5ebc
lea edx, [esp + 0x14]
mov byte [esp + 0x170], 2
push edx
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.005d5e56
mov eax, dword [eax]
push esi
push eax
mov byte [esp + 0x178], 3
call fcn.0040ec10
add esp, 8
lea ecx, [esp + 0x24]
mov byte [esp + 0x170], 2
call fcn.005d5c27
mov byte [esp + 0x170], bl
lea ecx, [esp + 0x18]
jmp 0x40eddb
lea ecx, [esp + 0x14]
lea edx, [esp + 0x24]
push ecx
push edx
call fcn.005d5ebc
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push eax
push edx
mov byte [esp + 0x17c], 4
call fcn.005d5e56
mov ecx, dword [esi + 8]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x178], 5
call fcn.005d4326
lea ecx, [esp + 0x1c]
mov byte [esp + 0x170], 4
call fcn.005d5c27
mov byte [esp + 0x170], bl
lea ecx, [esp + 0x20]
call fcn.005d5c27
lea ecx, [esp + 0x14]
mov byte [esp + 0x170], 0
call fcn.005d5c27
lea eax, [esp + 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40ece1
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
lea ecx, [esp + 0xc]
mov dword [esp + 0x16c], 0xffffffff
call fcn.005d5c27
mov eax, ebx
jmp 0x40ee27
xor eax, eax
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x164
ret