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

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
inc eax
cmp eax, 1
sbb eax, eax
inc eax
ret

Function at 0x40127e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
push esi
lea eax, [ebp + 0x10]
push edi
xor esi, esi
mov di, word [ebp + 8]
push eax
mov si, di
lea edx, [ebp - 0x800]
push dword [ebp + 0xc]
and di, 0xff
and esi, 0x1000
push edx
call dword [sym.imp.USER32.dll_wvsprintfA]
movzx eax, di
test eax, eax
je 0x4012e5
cmp eax, 1
je 0x401303
cmp eax, 2
je 0x401321
cmp eax, 8
je 0x4012e5
cmp eax, 0x2711
je 0x40133f
mov edi, dword [ebp - 4]
test esi, esi
je 0x4012dd
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x40
lea eax, [ebp - 0x800]
push 0x40628c
push eax
push dword [0x405a24]
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edi, eax
jmp 0x4012d1
push 0x10
lea eax, [ebp - 0x800]
push 0x40628c
push eax
push dword [0x405a24]
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edi, eax
jmp 0x4012d1
push 0x24
lea eax, [ebp - 0x800]
push 0x40628c
push eax
push dword [0x405a24]
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edi, eax
jmp 0x4012d1
push 0x41
lea eax, [ebp - 0x800]
push 0x40628c
push eax
push dword [0x405a24]
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x41
mov eax, str.Empty_space
push eax
push eax
push dword [0x405a24]
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x41
mov eax, str.Empty_space_second
push eax
push eax
push dword [0x405a24]
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x41
mov eax, str.Empty_space_third
push eax
push eax
push dword [0x405a24]
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edi, eax
jmp 0x4012d1

Function at 0x40139f
Capabilities:
Get file size

Disassembly:
push ebx
push esi
mov eax, dword [edx]
mov esi, edx
push 0
cmp eax, 1
sbb edx, edx
push pe_nt_image_headers32
add edx, 3
cmp eax, 1
sbb eax, eax
push edx
push 0
and eax, 0x40000000
push 3
sub eax, 0x80000000
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov ebx, eax
je 0x4013e2
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi], eax
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4013e7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push esi
lea eax, [ebp - 4]
push 0
mov esi, dword [ebp + 8]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401409
cmp dword [ebp - 4], esi
je 0x40141e
push dword [ebp + 0xc]
push str.Error_reading_file__s
push 0x2001
call fcn.0040127e
add esp, 0xc
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4017bb
Capabilities:
Create process on windows
Get common file path
Resume thread
Set current directory
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x670
push ebx
lea eax, [ebp - 0x15c]
push esi
push edi
xor esi, esi
push eax
push 0x103
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x406f60
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push str.guninst.bat
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str._echo_off_r_n:try_r_ndel_guninst.exe_r_nif_exist_guninst.exe_goto_try_r_ndel_guninst.bat_r_ncls_r_n
lea eax, [ebp - 0x670]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [ebp - 4]
lea ecx, [ebp - 0x260]
call fcn.0040139f
cmp eax, 0xffffffff
mov edi, eax
je 0x4018a9
push esi
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x670]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea ecx, [ebp - 0x670]
push ecx
push edi
mov ebx, 0x44
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
lea ecx, [ebp - 0x58]
mov edx, ebx
call fcn.0040126b
mov word [ebp - 0x28], si
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x58]
push ecx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x2c], 1
push esi
push esi
push ebx
push esi
push esi
push esi
push str.command.com__c_guninst.bat
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4018a9
push 0xfffffffffffffffe
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [ebp - 0x10]
call edi
push dword [ebp - 0x14]
call edi
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401c88
Capabilities:
Enumerate gui resources
Terminate process

Disassembly:
push ebp
mov eax, dword [0x40630c]
mov ebp, esp
sub esp, 0x548
push ebx
push esi
push edi
xor esi, esi
mov edi, dword [eax + 4]
push esi
inc edi
lea ecx, [ebp - 0x208]
mov edx, edi
call fcn.00401505
lea ecx, [ebp - 0x208]
call fcn.004015d5
mov word [ebp - 2], ax
push 1
lea ecx, [ebp - 0x108]
mov edx, edi
call fcn.00401505
push 2
lea ecx, [ebp - 0x408]
mov edx, edi
call fcn.00401505
push 3
lea ecx, [ebp - 0x208]
mov edx, edi
call fcn.00401505
lea ecx, [ebp - 0x208]
call fcn.004015d5
mov word [ebp - 4], ax
lea ecx, [ebp - 0x108]
call fcn.00401c54
lea ecx, [ebp - 0x408]
call fcn.00401c54
lea ecx, [ebp - 0x408]
call fcn.00401117
movzx eax, word [ebp - 4]
test eax, eax
je 0x401d3c
cmp eax, 1
je 0x401d45
cmp eax, 2
je 0x401d4e
cmp eax, 3
je 0x401d57
cmp eax, 4
je 0x401d60
cmp eax, 5
je 0x401d69
jmp 0x401d70
mov dword [ebp - 8], 0x42
jmp 0x401d70
mov dword [ebp - 8], 0x40
jmp 0x401d70
mov dword [ebp - 8], 0x41
jmp 0x401d70
mov dword [ebp - 8], 0x45
jmp 0x401d70
mov dword [ebp - 8], 0x24
jmp 0x401d70
mov dword [ebp - 8], 0x23
mov edi, 1
xor ebx, ebx
cmp word [ebp - 2], bx
jne 0x401dc9
lea eax, [ebp - 0x548]
lea ecx, [ebp - 0x108]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x401dc9
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
lea eax, [ebp - 0x108]
push pe_nt_image_headers32
push 3
push ebx
push ebx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x401dc2
mov ebx, edi
jmp 0x401dc9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp word [ebp - 2], di
jne 0x401df0
lea eax, [ebp - 0x108]
push eax
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
je 0x401df0
mov ebx, edi
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp word [ebp - 2], 2
jne 0x401e0c
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x401e0c
mov ebx, edi
cmp word [ebp - 2], 3
jne 0x401e2b
lea eax, [ebp - 0x108]
push eax
push 0x401be8
call dword [sym.imp.USER32.dll_EnumWindows]
test eax, eax
jne 0x401e2b
mov ebx, edi
test ebx, ebx
je 0x401e7b
push dword [ebp - 8]
push 0x40628c
lea ecx, [ebp - 0x408]
push ecx
push dword [0x405a24]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, edi
je 0x401e6c
cmp eax, 2
je 0x401e76
cmp eax, 3
je 0x401e76
cmp eax, 4
je 0x401d75
cmp eax, 6
je 0x401d75
jmp 0x401e7b
cmp word [ebp - 4], di
jne 0x401d75
mov esi, 1
test esi, esi
je 0x401e87
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401e8e
Capabilities:
Terminate process

Disassembly:
push ebp
mov eax, dword [0x40630c]
mov ebp, esp
sub esp, 0x794
mov eax, dword [eax + 4]
push ebx
push esi
inc eax
push edi
mov esi, 1
push 0
mov edx, eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x794]
call fcn.00401505
push esi
lea ecx, [ebp - 0x54]
mov edx, dword [ebp - 4]
call fcn.00401505
mov edx, str.DllUnregisterServer
lea ecx, [ebp - 0x54]
call fcn.00401000
test eax, eax
je 0x401f1f
lea eax, [ebp - 0x794]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp + eax - 0x797]
mov edx, 0x405154
call fcn.00401000
test eax, eax
je 0x401f0c
lea ecx, [ebp - 0x794]
call fcn.00401095
jmp 0x4020f6
lea edx, [ebp - 0x54]
lea ecx, [ebp - 0x794]
call fcn.0040101e
jmp 0x4020f6
push 2
lea ecx, [ebp - 0x94]
mov edx, dword [ebp - 4]
call fcn.00401505
lea ecx, [ebp - 0x94]
call fcn.004015d5
mov ebx, eax
lea eax, [ebp - 0x794]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x4020db
mov dword [ebp - 8], 0
test ebx, ebx
je 0x401f98
lea eax, [ebp - 0x594]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
add eax, 3
mov ecx, dword [ebp - 0x14]
push eax
call fcn.00401505
add dword [ebp - 0x14], 0x100
inc dword [ebp - 8]
cmp dword [ebp - 8], ebx
jb 0x401f77
cmp dword [ebp - 0xc], 0
je 0x402049
test ebx, ebx
jne 0x401faa
call edi
mov esi, eax
cmp ebx, 1
jne 0x401fba
lea eax, [ebp - 0x594]
push eax
call edi
mov esi, eax
cmp ebx, 2
jne 0x401fd1
lea eax, [ebp - 0x494]
lea ecx, [ebp - 0x594]
push eax
push ecx
call edi
mov esi, eax
cmp ebx, 3
jne 0x401fef
lea eax, [ebp - 0x394]
lea ecx, [ebp - 0x494]
push eax
lea edx, [ebp - 0x594]
push ecx
push edx
call edi
mov esi, eax
cmp ebx, 4
jne 0x402014
lea eax, [ebp - 0x294]
lea ecx, [ebp - 0x394]
push eax
lea edx, [ebp - 0x494]
push ecx
lea eax, [ebp - 0x594]
push edx
push eax
call edi
mov esi, eax
cmp ebx, 5
jne 0x4020db
lea eax, [ebp - 0x194]
lea ecx, [ebp - 0x294]
push eax
lea edx, [ebp - 0x394]
push ecx
lea eax, [ebp - 0x494]
push edx
lea ecx, [ebp - 0x594]
push eax
push ecx
call edi
mov esi, eax
jmp 0x4020db
test ebx, ebx
jne 0x40204f
call edi
cmp ebx, 1
jne 0x40205d
lea eax, [ebp - 0x594]
push eax
call edi
cmp ebx, 2
jne 0x402072
lea eax, [ebp - 0x494]
lea ecx, [ebp - 0x594]
push eax
push ecx
call edi
cmp ebx, 3
jne 0x40208e
lea eax, [ebp - 0x394]
lea ecx, [ebp - 0x494]
push eax
lea edx, [ebp - 0x594]
push ecx
push edx
call edi
cmp ebx, 4
jne 0x4020b1
lea eax, [ebp - 0x294]
lea ecx, [ebp - 0x394]
push eax
lea edx, [ebp - 0x494]
push ecx
lea eax, [ebp - 0x594]
push edx
push eax
call edi
cmp ebx, 5
jne 0x4020db
lea eax, [ebp - 0x194]
lea ecx, [ebp - 0x294]
push eax
lea edx, [ebp - 0x394]
push ecx
lea eax, [ebp - 0x494]
push edx
lea ecx, [ebp - 0x594]
push eax
push ecx
call edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0xc], 0
je 0x4020f6
test esi, esi
jne 0x4020f6
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4020fd
Capabilities:
Create process on windows

Disassembly:
push ebp
mov eax, dword [0x40630c]
mov ebp, esp
sub esp, 0x654
mov edx, dword [eax + 4]
push esi
push edi
inc edx
xor esi, esi
lea ecx, [ebp - 0x254]
push esi
mov edi, 0x44
call fcn.00401505
lea ecx, [ebp - 0x54]
mov edx, edi
call fcn.0040126b
cmp byte [ebp - 0x254], 0x22
mov dword [ebp - 0x54], edi
jne 0x40219c
lea eax, [ebp - 0x254]
lea ecx, [ebp - 0x454]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
inc esi
cmp byte [ebp + esi - 0x454], 0x22
jne 0x40214e
push esi
lea eax, [ebp - 0x453]
push eax
lea ecx, [ebp - 0x654]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x200
lea ecx, [ebp - 0x254]
push ecx
lea edx, [ebp - 0x654]
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea ecx, [ebp + esi - 0x453]
lea edx, [ebp - 0x254]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x54]
push eax
push ecx
xor eax, eax
lea edx, [ebp - 0x254]
push eax
push eax
push 0x4000020
push 1
push eax
push eax
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4021e0
push 0xffffffffffffffff
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4021e6
Capabilities:
Read .ini file

Disassembly:
push ebp
mov eax, dword [0x40630c]
mov ebp, esp
sub esp, 0x500
push esi
lea ecx, [ebp - 0x300]
push edi
xor esi, esi
mov edi, dword [eax + 4]
push esi
inc edi
mov edx, edi
call fcn.00401505
push 1
lea ecx, [ebp - 0x500]
mov edx, edi
call fcn.00401505
push 2
lea ecx, [ebp - 0x100]
mov edx, edi
call fcn.004014b7
lea ecx, [ebp - 0x300]
call fcn.00401179
test eax, eax
je 0x4022c9
lea eax, [ebp - 0x300]
lea ecx, [ebp - 0x100]
push eax
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push ecx
call edi
lea ecx, [ebp - 0x100]
cmp eax, 1
mov eax, 0
adc eax, 0xffffffff
and eax, ecx
lea ecx, [ebp - 0x500]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [ebp - 0x100]
push ecx
call edi
test eax, eax
je 0x4022c9
lea eax, [ebp - 0x300]
lea ecx, [ebp - 0x100]
push eax
lea edx, [ebp - 0x500]
push 0xc8
push ecx
push 0x405020
push esi
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x100]
push ecx
call edi
test eax, eax
jne 0x4022c9
lea eax, [ebp - 0x300]
lea ecx, [ebp - 0x500]
push eax
push esi
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4022cf
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x290
mov dword [ebp - 8], pe_nt_image_headers32
push ebx
lea eax, [ebp - 4]
push esi
xor ebx, ebx
push edi
mov esi, ecx
mov edi, edx
push eax
push 0x2001f
push ebx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4023a9
lea eax, [ebp - 0x10]
lea ecx, [ebp - 8]
push eax
lea edx, [ebp - 0x90]
push ebx
push ebx
push ebx
push ecx
push edx
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x4023a0
push edi
lea eax, [ebp - 0x290]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [edi + eax - 1], 0x5c
je 0x402350
push 0x405024
lea eax, [ebp - 0x290]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x90]
lea ecx, [ebp - 0x290]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [ebp - 0x290]
mov ecx, esi
call fcn.004022cf
test eax, eax
je 0x402376
inc ebx
lea eax, [ebp - 0x10]
lea ecx, [ebp - 8]
push eax
lea edx, [ebp - 0x90]
mov dword [ebp - 8], pe_nt_image_headers32
push 0
push 0
push 0
push ecx
push edx
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x402322
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4023b8
Capabilities:
Delete registry value

Disassembly:
push ebp
mov eax, dword [0x40630c]
mov ebp, esp
sub esp, 0x284
push esi
lea ecx, [ebp - 0x284]
push edi
push 0
mov edi, dword [eax + 4]
inc edi
mov edx, edi
call fcn.00401505
lea ecx, [ebp - 0x284]
call fcn.004015d5
movzx eax, al
test eax, eax
je 0x40243d
cmp eax, 1
je 0x402444
cmp eax, 2
je 0x40244b
cmp eax, 3
je 0x402452
mov esi, dword [ebp - 4]
push 1
lea ecx, [ebp - 0x284]
mov edx, edi
call fcn.00401505
push 2
lea ecx, [ebp - 0x84]
mov edx, edi
call fcn.00401505
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x402459
lea edx, [ebp - 0x284]
mov ecx, esi
call fcn.004022cf
jmp 0x4024aa
mov esi, 0x80000000
jmp 0x4023ff
mov esi, 0x80000001
jmp 0x4023ff
mov esi, 0x80000002
jmp 0x4023ff
mov esi, 0x80000003
jmp 0x4023ff
lea eax, [ebp - 4]
lea ecx, [ebp - 0x284]
push eax
push 0x20006
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4024aa
mov edx, str.default
lea ecx, [ebp - 0x84]
call fcn.00401000
test eax, eax
je 0x402491
push 0x405020
jmp 0x402498
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4024b0
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov eax, dword [0x40630c]
mov ebp, esp
sub esp, 0x210
push esi
push edi
mov edi, dword [eax + 4]
xor esi, esi
inc edi
lea eax, [ebp - 4]
mov dword [ebp - 0x10], 4
push eax
push 0xf003f
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionSharedDLLs
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402582
push esi
lea ecx, [ebp - 0x210]
mov edx, edi
call fcn.00401505
lea eax, [ebp - 0x10]
lea ecx, [ebp - 8]
push eax
lea edx, [ebp - 0xc]
push ecx
lea eax, [ebp - 0x210]
push edx
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402579
dec dword [ebp - 8]
je 0x40253f
push 4
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0x210]
push dword [ebp - 0xc]
push esi
push edx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x402579
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea ecx, [ebp - 0x210]
push ecx
push 0
push 0x180
push 0x3ea
push dword [0x405a24]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
lea ecx, [ebp - 0x210]
call fcn.00403789
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4028dd
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebx
push esi
mov bl, dl
mov esi, ecx
call fcn.00401179
test eax, eax
je 0x40298d
mov ecx, esi
call fcn.00403789
test eax, eax
je 0x40298d
cmp bl, 1
jne 0x402921
push esi
mov ecx, 0x33
call fcn.004015a6
push eax
push 2
call fcn.0040127e
add esp, 0xc
cmp eax, 6
jne 0x402921
xor bl, bl
test bl, bl
jne 0x40296f
push pe_nt_image_headers32
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, str..ttf
lea ecx, [esi + eax - 4]
call fcn.00401000
test eax, eax
je 0x402962
push esi
call dword [sym.imp.GDI32.dll_RemoveFontResourceA]
push 0
push 0
push 0x1d
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40296f
mov bl, 2
cmp bl, 2
jne 0x40298d
push esi
mov eax, dword [0x405a24]
push 0
push 0x180
push 0x3ea
push eax
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
pop esi
pop ebx
ret
Function at 0x4029e1
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4c
push ebx
mov dword [ebp - 8], edx
push esi
mov ebx, ecx
push edi
xor esi, esi
xor edi, edi
push ebx
lea eax, [ebp - 0x74c]
mov dword [ebp - 0xc], esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp - 0x74c]
call fcn.0040155d
lea edx, [ebp - 0x34c]
mov ecx, ebx
call fcn.00401141
lea eax, [ebp - 0x34c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x84c]
lea edx, [ebp - 0x94c]
push eax
lea ecx, [ebp - 0x34c]
call fcn.00402990
cmp byte [ebp - 0x34c], 0x2a
jne 0x402a52
mov edi, 1
test eax, eax
jl 0x402a60
cmp byte [ebp + eax - 0x34b], 0x2a
jne 0x402a67
mov dword [ebp - 0xc], 1
test edi, edi
jne 0x402a79
test eax, eax
jl 0x402a7e
cmp byte [ebp + eax - 0x34b], 0x2a
jne 0x402a7e
mov esi, 1
lea eax, [ebp - 0x74c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 2
jne 0x402aab
cmp byte [ebp - 0x74b], 0x3a
jne 0x402aab
push 0x405024
lea eax, [ebp - 0x74c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
test esi, esi
je 0x402add
lea eax, [ebp - 0x74c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 3
jle 0x402c5b
push 0x4051c4
lea edx, [ebp - 0x74c]
lea ecx, [ebp - 0xb4c]
call fcn.00401188
jmp 0x402aeb
push ebx
lea eax, [ebp - 0xb4c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x14c]
lea ecx, [ebp - 0xb4c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x402c5b
xor ebx, ebx
test esi, esi
je 0x402b64
lea eax, [ebp - 0x54c]
lea edx, [ebp - 0x34c]
push eax
lea ecx, [ebp - 0x120]
call fcn.00402990
test edi, edi
jne 0x402b42
lea edx, [ebp - 0x94c]
lea ecx, [ebp - 0x34c]
call fcn.00401000
test eax, eax
je 0x402b64
cmp dword [ebp - 0xc], 0
mov ebx, 1
jne 0x402b64
lea edx, [ebp - 0x84c]
lea ecx, [ebp - 0x54c]
call fcn.00401000
test eax, eax
jne 0x402b64
xor ebx, ebx
lea eax, [ebp - 0x120]
lea edx, [ebp - 0x74c]
push eax
lea ecx, [ebp - 0x54c]
call fcn.00401188
test esi, esi
je 0x402b88
test ebx, ebx
je 0x402c3a
test byte [ebp - 0x14c], 0x10
je 0x402c03
cmp dword [ebp - 8], 0
je 0x402c3a
mov edx, 0x4051c0
lea ecx, [ebp - 0x120]
call fcn.00401000
test eax, eax
jne 0x402c3a
mov edx, 0x4051bc
lea ecx, [ebp - 0x120]
call fcn.00401000
test eax, eax
jne 0x402c3a
push str..
lea edx, [ebp - 0x54c]
lea ecx, [ebp - 0x34c]
call fcn.00401188
cmp byte [ebp + 8], 2
je 0x402bf4
lea ecx, [ebp - 0x34c]
mov edx, dword [ebp - 8]
push dword [ebp + 8]
call fcn.004029e1
lea eax, [ebp - 0x54c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x402c3a
cmp dword [ebp - 8], 0
jne 0x402c14
lea ecx, [ebp - 0x54c]
mov edx, dword [ebp + 8]
jmp 0x402c35
cmp byte [ebp + 8], 0
jne 0x402c27
lea ecx, [ebp - 0x54c]
mov edx, 2
jmp 0x402c35
cmp byte [ebp + 8], 1
jne 0x402c3a
lea ecx, [ebp - 0x54c]
xor edx, edx
call fcn.004028dd
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402b0b
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x402d21
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebx
cmp ecx, 0xffffffff
push esi
push edi
je 0x402e74
mov edi, ecx
mov ebx, 0x405610
push ebx
mov eax, dword [0x405a24]
push edi
mov esi, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push 0x189
push 0x3ea
push eax
call esi
mov ecx, ebx
call fcn.00401179
test eax, eax
je 0x402dff
push pe_nt_image_headers32
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [eax + 0x40560c]
mov edx, str..ttf
call fcn.00401000
test eax, eax
je 0x402d9c
push ebx
call dword [sym.imp.GDI32.dll_RemoveFontResourceA]
push 0
push 0
push 0x1d
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x405610
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x402dd6
mov ebx, 0x405610
push ebx
mov ecx, 0x34
call fcn.004015a6
push eax
push 2
call fcn.0040127e
add esp, 0xc
cmp eax, 6
jne 0x402dff
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x402db0
mov ebx, 0x405610
mov ecx, ebx
call fcn.0040155d
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
je 0x402dff
mov ecx, ebx
call fcn.0040155d
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x402ded
xor ebx, ebx
mov eax, dword [0x405a24]
push ebx
push edi
push 0x182
mov edi, 0x3ea
push edi
push eax
call esi
push ebx
mov eax, dword [0x405a24]
push ebx
push 0x18b
push edi
push eax
call esi
test eax, eax
jne 0x402e5e
push ebx
mov eax, dword [0x405a24]
push 0x3eb
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push ebx
mov eax, dword [0x405a24]
push 0x3ec
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x402e74
push 0
mov eax, dword [0x405a24]
push 0
push 0x186
push 0x3ea
push eax
call esi
pop edi
pop esi
pop ebx
ret