joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f72
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
shr eax, 4
and eax, 1
ret

Function at 0x4020af
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x41228c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
call ebx
push 1
xor esi, esi
push esi
push esi
mov dword [ebp - 0x38], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x30], eax
cmp eax, esi
jne 0x4020e3
xor eax, eax
jmp 0x40212f
push edi
push 0x24
push str.JavaQuickStarterService
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp edi, esi
jne 0x402106
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x40212c
lea eax, [ebp - 0x34]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
push edi
call esi
test eax, eax
jne 0x40213d
push dword [ebp - 0x30]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b376
leave
ret
cmp dword [ebp - 0x24], 1
je 0x4021dc
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40217b
push dword [ebp - 0x10]
call edi
lea eax, [ebp - 0x34]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push dword [ebp - 0x2c]
call esi
test eax, eax
je 0x402181
cmp dword [ebp - 0x24], 1
je 0x402181
call ebx
sub eax, dword [ebp - 0x38]
cmp eax, 0x7530
ja 0x402181
cmp dword [ebp - 0x24], 3
je 0x40214f
lea eax, [ebp - 0x28]
push eax
push 1
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x4021d6
xor edi, edi
push dword [ebp - 0x30]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp - 0x2c]
call esi
mov eax, edi
jmp 0x40212e
push dword [ebp - 0x10]
call edi
lea eax, [ebp - 0x34]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push dword [ebp - 0x2c]
call esi
test eax, eax
je 0x4021dc
cmp dword [ebp - 0x24], 1
je 0x4021dc
call ebx
sub eax, dword [ebp - 0x38]
cmp eax, 0x7530
ja 0x4021dc
cmp dword [ebp - 0x24], 1
jne 0x4021aa
xor edi, edi
inc edi
jmp 0x402196

Function at 0x4021e1
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
push edi
mov esi, 0x800
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
cmp eax, 1
jl 0x402204
cmp eax, esi
jle 0x40220e
push 0x40e08c
push edi
call ebx
pop ecx
pop ecx
push edi
push str._sjqs.log
push edi
call ebx
add esp, 0xc
pop edi
pop esi
pop ebx
ret
Function at 0x4035e1
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x41228c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x105
lea eax, [ebp - 0x214]
push eax
push edi
call fcn.00401f17
add esp, 0xc
test eax, eax
jne 0x403619
xor eax, eax
jmp 0x40365b
lea eax, [ebp - 0x10c]
push eax
push 0
push 0x40d7d8
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x403615
push 0
lea eax, [ebp - 0x10c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x403615
lea eax, [ebp - 0x10c]
push edi
push eax
call fcn.00402b4e
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040b376
leave
ret
Function at 0x403fd2
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x17e0]
mov eax, 0x1860
call fcn.0040b390
mov eax, dword [0x41228c]
xor eax, ebp
mov dword [ebp + 0x17dc], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x17e8]
mov esi, 0x7ff
xor ebx, ebx
push esi
lea eax, [ebp + 0x7dd]
push ebx
push eax
mov byte [ebp + 0x7dc], bl
call sub.MSVCR100.dll_memset
push esi
lea eax, [ebp - 0x23]
push ebx
push eax
mov byte [ebp - 0x24], bl
call sub.MSVCR100.dll_memset
push esi
lea eax, [ebp + 0xfdd]
push ebx
push eax
mov byte [ebp + 0xfdc], bl
call sub.MSVCR100.dll_memset
push ebx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 0xfdc]
push eax
push edi
mov dword [ebp - 0x28], 0x800
call fcn.004032c7
add esp, 0x34
test eax, eax
jne 0x40405e
xor eax, eax
jmp 0x404162
lea eax, [ebp + 0xfdc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax + 0xfdb], 0x5c
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
je 0x40408d
lea eax, [ebp + 0xfdc]
push eax
push 0x40e060
push eax
call esi
add esp, 0xc
push str.jqs.exe
lea eax, [ebp + 0xfdc]
push eax
lea eax, [ebp + 0x7dc]
push str._sbin_s
push eax
call esi
lea eax, [ebp + 0x7dc]
push eax
call fcn.00401f83
add esp, 0x14
test eax, eax
je 0x404057
call fcn.004020af
push 0x44
lea eax, [ebp - 0x80]
push ebx
push eax
call sub.MSVCR100.dll_memset
xor eax, eax
lea edi, [ebp - 0x3c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov word [ebp - 0x50], ax
lea eax, [ebp + 0x7dc]
push eax
xor edi, edi
lea eax, [ebp - 0x24]
push str.__s___unregister
inc edi
push eax
mov dword [ebp - 0x80], 0x44
mov dword [ebp - 0x54], edi
call esi
add esp, 0x18
lea eax, [ebp - 0x2c]
push eax
push 0x2000000
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x404057
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push ebx
push 0x8000008
push ebx
push ebx
push ebx
lea eax, [ebp - 0x24]
push eax
push ebx
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
cmp eax, ebx
je 0x404057
push 0x7530
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x38]
call esi
mov eax, edi
mov ecx, dword [ebp + 0x17dc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b376
add ebp, 0x17e0
leave
ret
Function at 0x4052b7
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x41228c]
xor eax, ebp
mov dword [ebp + 0x9c], eax
mov eax, dword [ebp + 0xa8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
call fcn.00401545
mov ebx, eax
cmp ebx, esi
je 0x40532a
lea ecx, [ebp - 0x74]
call fcn.004014c2
mov eax, ebx
mov ecx, dword [ebp + 0x9c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b376
add ebp, 0xa0
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x405342
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x74]
call fcn.004052b7
cmp eax, esi
jne 0x405374
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x68], 0x100
call ebx
test eax, eax
je 0x405332
lea ecx, [ebp - 0x74]
call fcn.004014c2
push dword [ebp - 0x78]
mov ecx, edi
call fcn.00401453
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.004014c2
mov eax, esi
jmp 0x405310
Function at 0x4069f3
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x41228c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x108]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x406a11
lea eax, [ebp - 0x108]
cmp byte [ebp - 0x108], cl
je 0x406a37
cmp byte [eax], 0x5c
jne 0x406a31
mov byte [eax], 0x2f
inc eax
cmp byte [eax], 0
jne 0x406a29
push ebx
mov ebx, dword [sym.imp.MSVCR100.dll_strchr]
push esi
lea eax, [ebp - 0x108]
push 0x2f
push eax
call ebx
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x406a91
push edi
lea eax, [ebp - 0x108]
mov edi, esi
sub edi, eax
push edi
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.MSVCR100.dll_strncpy]
lea eax, [ebp - 0x20c]
push eax
mov byte [ebp + edi - 0x20c], 0
call dword [sym.imp.MSVCR100.dll__mkdir]
push 0x2f
inc esi
push esi
call ebx
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x406a53
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b376
leave
ret
Function at 0x406a9f
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xb0]
sub esp, 0x130
mov eax, dword [0x41228c]
xor eax, ebp
mov dword [ebp + 0xac], eax
mov eax, dword [ebp + 0xb8]
push esi
mov esi, dword [ebp + 0xbc]
push 0x40e490
push eax
call dword [sym.imp.MSVCR100.dll_fopen]
pop ecx
pop ecx
mov dword [ebp - 0x7c], eax
test eax, eax
je 0x406c0a
push esi
call dword [sym.imp.MSVCR100.dll__chdir]
pop ecx
test eax, eax
jne 0x406c0a
mov esi, dword [sym.imp.MSVCR100.dll_fread]
push ebx
push dword [ebp - 0x7c]
xor ebx, ebx
inc ebx
push ebx
lea eax, [ebp - 0x78]
push 0x1e
push eax
call esi
add esp, 0x10
cmp eax, ebx
jne 0x406bff
push edi
cmp dword [ebp - 0x78], 0x4034b50
jne 0x406bfe
cmp word [ebp - 0x70], 0
jne 0x406bfe
movzx eax, word [ebp - 0x5e]
push dword [ebp - 0x7c]
movzx edi, word [ebp - 0x5e]
push eax
lea eax, [ebp - 0x58]
push ebx
push eax
call esi
add esp, 0x10
cmp eax, edi
jne 0x406bfe
lea eax, [ebp - 0x58]
push eax
mov byte [ebp + edi - 0x58], 0
call fcn.004069f3
cmp word [ebp - 0x5c], 0
pop ecx
jbe 0x406b78
movzx eax, word [ebp - 0x5c]
push ebx
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.MSVCR100.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x406bfe
movzx eax, word [ebp - 0x5e]
cmp byte [ebp + eax - 0x59], 0x2f
je 0x406bde
lea eax, [ebp - 0x58]
push 0x40e494
push eax
call dword [sym.imp.MSVCR100.dll_fopen]
pop ecx
pop ecx
mov dword [ebp - 0x80], eax
test eax, eax
je 0x406bfe
push dword [ebp - 0x62]
call sub.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_
push dword [ebp - 0x7c]
mov edi, eax
push dword [ebp - 0x62]
push ebx
push edi
call esi
add esp, 0x14
cmp eax, dword [ebp - 0x62]
jne 0x406bf7
push dword [ebp - 0x80]
push dword [ebp - 0x62]
push ebx
push edi
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
push edi
cmp eax, dword [ebp - 0x62]
jne 0x406bf8
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x80]
call dword [sym.imp.MSVCR100.dll_fclose]
pop ecx
pop ecx
push dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
push ebx
push 0x1e
push eax
call esi
add esp, 0x10
cmp eax, ebx
je 0x406b12
jmp 0x406bfe
push edi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
push dword [ebp - 0x7c]
call dword [sym.imp.MSVCR100.dll_fclose]
pop ecx
pop ebx
mov ecx, dword [ebp + 0xac]
xor ecx, ebp
pop esi
call fcn.0040b376
add ebp, 0xb0
leave
ret
Function at 0x406c20
Capabilities:
Create directory
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x10cc]
mov eax, 0x114c
call fcn.0040b390
mov eax, dword [0x41228c]
xor eax, ebp
mov dword [ebp + 0x10c8], eax
push ebx
mov ebx, dword [ebp + 0x10d4]
push esi
push edi
mov esi, 0x7ff
xor edi, edi
push esi
lea eax, [ebp + 0x8c9]
push edi
push eax
mov dword [ebp - 0x7c], edi
call sub.MSVCR100.dll_memset
push esi
lea eax, [ebp + 0xc9]
push edi
push eax
mov byte [ebp + 0xc8], 0
call sub.MSVCR100.dll_memset
add esp, 0x18
push 8
pop ecx
mov esi, str.SOFTWAREMozillaMozilla_Firefox
lea edi, [ebp + 0x8c8]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x7c]
push eax
movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea eax, [ebp + 0x8c8]
push eax
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push edi
mov dword [ebp - 0x80], 0x800
call esi
test eax, eax
je 0x406cb4
xor eax, eax
jmp 0x406d9f
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0xc8]
push eax
push 0
push 0
push str.CurrentVersion
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x7c]
test eax, eax
je 0x406ce0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x406cad
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp + 0xc8]
push eax
lea eax, [ebp + 0x8c8]
push str.SOFTWAREMozillaMozilla_Firefox_sMain
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x8c8]
push eax
push edi
call esi
test eax, eax
jne 0x406cad
lea eax, [ebp - 0x80]
push eax
push ebx
push 0
push 0
push str.Install_Directory
push dword [ebp - 0x7c]
mov dword [ebp - 0x80], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x7c]
test eax, eax
jne 0x406cd8
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406d44
sub eax, esi
cmp byte [eax + ebx - 1], 0x5c
je 0x406d66
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x406d57
mov esi, 0x40e50c
movsw word es:[edi], word [esi]
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x406d69
mov esi, str.extensions
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x78]
push eax
push ebx
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x406db7
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x406cad
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x10c8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b376
add ebp, 0x10cc
leave
ret
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [ebp - 0x78], 0x10
jmp 0x406d96
Function at 0x406e8d
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x10c4]
mov eax, 0x1144
call fcn.0040b390
mov eax, dword [0x41228c]
xor eax, ebp
mov dword [ebp + 0x10c0], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10cc]
push 0x140
lea eax, [ebp - 0x80]
push 0
push eax
call sub.MSVCR100.dll_memset
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push edi
lea eax, [ebp + 0xc0]
push str._s.
push eax
call esi
add esp, 0x18
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406faa
push 0x40e53c
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x406f76
push 0x40e540
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x406f76
lea eax, [ebp - 0x54]
push eax
push edi
lea eax, [ebp + 0x8c0]
push 0x40e544
push eax
call esi
mov eax, dword [ebp - 0x80]
add esp, 0x10
and eax, 0xfffffffe
push eax
lea eax, [ebp + 0x8c0]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test byte [ebp - 0x80], 0x10
lea eax, [ebp + 0x8c0]
push eax
jne 0x406f70
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x406f76
push eax
lea eax, [ebp + 0x8c0]
push eax
call fcn.00402b4e
pop ecx
jmp 0x406f75
call fcn.00406e8d
pop ecx
lea eax, [ebp - 0x80]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x406ef9
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov esi, eax
test esi, esi
jne 0x406fa6
push eax
push edi
call fcn.00402b4e
pop ecx
pop ecx
mov eax, esi
jmp 0x406fad
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x10c0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b376
add ebp, 0x10c4
leave
ret

Function at 0x407201
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x41228c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4123fc], 0
je 0x407224
mov eax, dword [0x4123f8]
jmp 0x407277
push 0x94
lea eax, [ebp - 0x98]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor ecx, ecx
inc ecx
cmp dword [ebp - 0x88], 2
jne 0x40726a
cmp dword [ebp - 0x94], 6
jb 0x40726a
mov eax, ecx
jmp 0x40726c
xor eax, eax
mov dword [0x4123f8], eax
mov dword [0x4123fc], ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b376
leave
ret
Function at 0x407d71
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x41228c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push eax
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x824]
push 0x400
push eax
call dword [sym.imp.MSVCR100.dll__vsnprintf_s]
add esp, 0x14
test eax, eax
jns 0x407db0
mov byte [ebp - 0x425], 0
lea eax, [ebp - 0x24]
push 0x20
push eax
call fcn.00407cf2
push 0x40e9f8
lea eax, [ebp - 0x24]
push 0x20
push eax
call dword [sym.imp.MSVCR100.dll_strcat_s]
mov eax, esi
add esp, 0x14
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407dd4
sub eax, edx
cmp eax, 6
jbe 0x407dfd
lea eax, [esi + eax - 6]
push str.__08x_
push eax
call dword [sym.imp.MSVCR100.dll__mbscmp]
pop ecx
pop ecx
test eax, eax
jne 0x407dfd
xor edi, edi
inc edi
jmp 0x407dff
xor edi, edi
lea eax, [ebp - 0x24]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407e05
sub eax, edx
mov esi, eax
mov eax, str.Error:
test edi, edi
jne 0x407e1e
mov eax, 0x40e90e
lea ecx, [ebp - 0x824]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.P:_04d_T:_04d__s_s
mov eax, 0x3ff
sub eax, esi
push 0xffffffffffffffff
push eax
lea eax, [ebp + esi - 0x424]
push eax
call dword [sym.imp.MSVCR100.dll__snprintf_s]
add esp, 0x20
test eax, eax
jns 0x407e5f
mov dword [ebp - 0x29], 0x2e2e2e
push esi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x424]
push eax
call sub.MSVCR100.dll_memcpy
lea edi, [ebp - 0x424]
add esp, 0xc
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x407e7a
lea eax, [ebp - 0x424]
mov esi, 0x40ea24
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040b376
leave
ret
Function at 0x407fd4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [sym.imp.MSVCR100.dll_malloc]
push 0x24c
call edi
mov ebx, eax
pop ecx
mov dword [ebp - 4], 0
test ebx, ebx
jne 0x408008
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], 0xc
xor eax, eax
jmp 0x408160
push esi
mov esi, dword [ebp + 8]
cmp byte [esi + 1], 0
jne 0x40802f
cmp byte [esi], 0x5c
jne 0x40802f
call dword [sym.imp.MSVCR100.dll__getdrive]
add al, 0x40
mov byte [ebp - 4], al
mov word [ebp - 3], 0x5c3a
mov byte [ebp - 1], 0
lea esi, [ebp - 4]
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x408034
sub eax, ecx
add eax, 5
push eax
call edi
pop ecx
mov dword [ebx + 0x104], eax
test eax, eax
jne 0x408067
push ebx
call dword [sym.imp.MSVCR100.dll_free]
pop ecx
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], 0xc
jmp 0x408159
mov cl, byte [esi]
inc esi
mov byte [eax], cl
inc eax
test cl, cl
jne 0x408067
push dword [ebx + 0x104]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4080a6
push dword [ebx + 0x104]
mov esi, dword [sym.imp.MSVCR100.dll_free]
call esi
push ebx
call esi
pop ecx
pop ecx
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], 2
jmp 0x408159
test al, 0x10
jne 0x4080ce
push dword [ebx + 0x104]
mov esi, dword [sym.imp.MSVCR100.dll_free]
call esi
push ebx
call esi
pop ecx
pop ecx
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], 0x14
jmp 0x408159
mov eax, dword [ebx + 0x104]
cmp byte [eax + 1], 0x3a
jne 0x4080ff
mov cl, byte [eax + 2]
test cl, cl
je 0x4080ec
cmp cl, 0x5c
jne 0x4080ff
cmp byte [eax + 3], 0
jne 0x4080ff
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4080ed
mov edi, eax
mov esi, 0x40eb54
movsd dword es:[edi], dword [esi]
jmp 0x408111
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x408100
mov edi, eax
mov esi, str..
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea eax, [ebx + 0x10c]
push eax
push dword [ebx + 0x104]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebx + 0x108], eax
cmp eax, 0xffffffff
jne 0x40815d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40815d
push dword [ebx + 0x104]
mov esi, dword [sym.imp.MSVCR100.dll_free]
call esi
push ebx
call esi
pop ecx
pop ecx
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], 0xd
xor eax, eax
jmp 0x40815f
mov eax, ebx
pop esi
pop edi
pop ebx
leave
ret

Function at 0x4082fd
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x408314
test al, 0x10
je 0x408314
xor eax, eax
inc eax
ret
xor eax, eax
ret
Function at 0x40845d
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00408317
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
add esp, 0xc
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40847e
sub eax, esi
add eax, 4
push eax
call dword [sym.imp.MSVCR100.dll_malloc]
mov esi, eax
pop ecx
test esi, esi
je 0x4084fa
push dword [ebp + 8]
push str._s
push esi
call dword [sym.imp.MSVCR100.dll_sprintf]
mov eax, esi
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4084af
push edi
sub eax, ecx
mov byte [eax + esi + 1], dl
and dword [ebp - 0x24], 0
push 6
xor eax, eax
pop ecx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
and dword [ebp - 0x18], 0
mov eax, 0x614
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x20], 3
mov dword [ebp - 0x1c], esi
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
push esi
call dword [sym.imp.MSVCR100.dll_free]
mov eax, dword [ebp - 4]
pop ecx
pop edi
pop esi
leave
ret