joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40524c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
and byte [ebp - 0x148], 0
push esi
push edi
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x147]
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 8]
mov dword [ebp - 4], esi
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4052c5
cmp dword [ebp + 0xc], 1
mov dword [ebp - 0xc], 0x104
mov eax, str.CommonFilesDir
je 0x4052a5
mov eax, str.ProgramFilesDir
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x148]
push ecx
push esi
push esi
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x148], 0
je 0x40530b
lea eax, [ebp - 0x148]
mov edi, 0x409278
push esi
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x38], 0x409280
mov dword [ebp - 0x30], edi
call fcn.00406a5b
mov esi, 0x409274
push 0x40b3ec
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], esi
mov dword [ebp - 4], 1
call fcn.00404cdd
jmp 0x40533c
lea eax, [ebp - 0x148]
mov edi, 0x409278
push esi
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x1c], 0x409280
mov dword [ebp - 0x14], edi
call fcn.00406a5b
mov esi, 0x409274
mov dword [ebp - 4], 2
mov dword [ebp - 0x28], esi
lea eax, [ebp - 0x28]
mov ecx, dword [ebp + 8]
push 0
push eax
mov dword [ecx + 0xc], 0x409280
mov dword [ecx + 0x14], edi
call fcn.00406aca
mov edi, dword [ebp + 8]
test byte [ebp - 4], 2
mov dword [edi], esi
je 0x405368
and dword [ebp - 4], 0xfffffffd
lea ecx, [ebp - 0x28]
call fcn.00401b92
test byte [ebp - 4], 1
je 0x405376
lea ecx, [ebp - 0x44]
call fcn.00401b92
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x40537c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
and byte [ebp - 0x140], 0
push esi
push edi
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x13f]
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x140]
push 0x104
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp byte [ebp - 0x140], 0
je 0x4053fb
lea eax, [ebp - 0x140]
mov edi, 0x409278
push esi
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x14], 0x409280
mov dword [ebp - 0xc], edi
call fcn.00406a5b
mov esi, 0x409274
push 0x40b3ec
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 1
call fcn.00404cdd
jmp 0x40542c
lea eax, [ebp - 0x140]
mov edi, 0x409278
push esi
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x30], 0x409280
mov dword [ebp - 0x28], edi
call fcn.00406a5b
mov esi, 0x409274
mov dword [ebp - 4], 2
mov dword [ebp - 0x3c], esi
lea eax, [ebp - 0x3c]
mov ecx, dword [ebp + 8]
push 0
push eax
mov dword [ecx + 0xc], 0x409280
mov dword [ecx + 0x14], edi
call fcn.00406aca
mov edi, dword [ebp + 8]
test byte [ebp - 4], 2
mov dword [edi], esi
je 0x405458
and dword [ebp - 4], 0xfffffffd
lea ecx, [ebp - 0x3c]
call fcn.00401b92
test byte [ebp - 4], 1
je 0x405466
lea ecx, [ebp - 0x20]
call fcn.00401b92
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x406688
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
and dword [ebp - 4], 0
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 4]
push edi
mov ebx, 0xf003f
push eax
push ebx
push 0
mov edi, VariantInit
push str..DefaultControl_PaneldesktopResourceLocale
push edi
mov dword [ebp - 0xc], 0xa
call esi
test eax, eax
jne 0x4066dd
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0x40b6a0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x406738
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push ebx
push 0
push str..DEFAULTControl_PanelInternational
push edi
call esi
mov esi, eax
xor edi, edi
cmp esi, edi
jne 0x406712
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push edi
push str.Locale
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
cmp dword [ebp - 8], edi
je 0x406720
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
je 0x40673a
cmp dword [ebp - 4], edi
je 0x406732
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ax, 0x409
jmp 0x406757
xor edi, edi
lea eax, [ebp - 0x18]
push eax
call fcn.00407938
cmp dword [ebp - 4], edi
pop ecx
mov esi, eax
je 0x406754
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ax, si
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40675c
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
push ebx
push esi
xor esi, esi
push edi
mov ebx, ecx
lea eax, [ebp - 0x30]
mov ecx, dword [ebp + 8]
push esi
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call fcn.00404c09
add eax, 0x10
mov eax, dword [eax]
cmp eax, esi
je 0x406791
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov esi, eax
lea ecx, [ebp - 0x30]
call fcn.00401b92
mov ecx, dword [ebp + 8]
inc esi
push esi
lea eax, [ebp - 4]
push 1
push eax
mov dword [ebp - 4], 0x5c
call fcn.00406e2f
cmp dword [0x409200], eax
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
je 0x4068bc
xor esi, esi
inc eax
push esi
push eax
push esi
lea ecx, [ebp - 0x30]
push dword [ebp + 8]
mov dword [ebp - 0x24], 0x409280
mov dword [ebp - 0x1c], 0x409278
mov dword [ebp - 0x14], eax
call fcn.0040693c
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], 0x409274
call fcn.00406fc7
push esi
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x406890
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], eax
call fcn.00406fc7
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x406828
test al, 0x10
jne 0x406890
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
push 0x9011
call fcn.004065a1
lea ecx, [ebp - 0x30]
call fcn.004046cf
mov esi, eax
mov ecx, esi
call fcn.00406fc7
push dword [esi + 4]
lea ecx, [ebp - 0x10]
call fcn.0040740b
push eax
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea esi, [ebx + 0x5e0]
add esp, 0xc
push dword [esi]
call edi
lea eax, [ebp - 0x134]
push 0xffffffffffffffff
push eax
call fcn.004015ba
pop ecx
mov dword [esi], eax
pop ecx
push 0x4b1
mov ecx, ebx
push dword [ebp - 4]
call fcn.0040657a
lea ecx, [ebp - 0x30]
call fcn.00401b92
push dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x5c
push 1
push eax
call fcn.00406e2f
cmp dword [0x409200], eax
jne 0x4067c2
lea ecx, [ebp - 0xc]
call fcn.00401d65
push dword [ebp - 0x10]
call edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40797b
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push ebx
push eax
mov ebx, ecx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [ebp - 4], eax
je 0x4079cd
push eax
call fcn.00402590
pop ecx
mov dword [ebx + 0x40], eax
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4079cd
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x40b684
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x4079d1
xor al, al
jmp 0x407a32
push esi
push edi
mov edi, ebx
lea eax, [ebx + 4]
neg edi
sbb edi, edi
mov esi, dword [ebp - 0xc]
push 0xd
and edi, eax
pop ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
rep movsd dword es:[edi], dword [esi]
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
pop edi
pop esi
test eax, eax
je 0x407a30
mov eax, dword [ebp - 4]
shr eax, 2
mov dword [ebx + 0x3c], eax
shl eax, 2
push eax
call fcn.00402590
mov dword [ebx + 0x38], eax
xor eax, eax
cmp dword [ebx + 0x3c], eax
pop ecx
jbe 0x407a30
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x38]
mov edx, dword [edx + eax*4]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [ebx + 0x3c]
jb 0x407a1e
mov al, 1
pop ebx
leave
ret 4
Function at 0x401063
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401138
push edi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push esi
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401127
cmp dword [ebp - 0x114], 2
mov byte [ebp - 5], al
lea eax, [ebp - 0x108]
jne 0x401111
push edi
push dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb esi, esi
inc esi
jmp 0x401127
push eax
push edi
push dword [ebp - 0x110]
call section..text
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
jmp 0x40113a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0048ea75
leave
ret 4
Function at 0x4015d0
Capabilities:
Copy file

Disassembly:
mov eax, 0x1008
call fcn.004ac5b0
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x1004], eax
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SearchPathW]
lea eax, [esp + 0xc]
push edi
push eax
lea eax, [esp + 0x818]
push eax
push 0x400
push 0
push 0x4b3324
push 0
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_StrCpyW]
mov ebx, dword [sym.imp.SHLWAPI.dll_StrCatW]
mov ebp, dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x40164e
push 0x4e5c20
lea eax, [esp + 0x18]
push eax
call edi
push str.autobat.pnt
lea eax, [esp + 0x18]
push eax
call ebx
push 0
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x81c]
push eax
call ebp
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x818]
push eax
push 0x400
push 0
push str.config.sys
push 0
call esi
test eax, eax
je 0x401698
push 0x4e5c20
lea eax, [esp + 0x18]
push eax
call edi
push str.confsys.pnt
lea eax, [esp + 0x18]
push eax
call ebx
push 0
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x81c]
push eax
call ebp
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x818]
push eax
push 0x400
push 0
push str.autoexec.nt
push 0
call esi
test eax, eax
je 0x4016e2
push 0x4e5c20
lea eax, [esp + 0x18]
push eax
call edi
push str.autont.pnt
lea eax, [esp + 0x18]
push eax
call ebx
push 0
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x81c]
push eax
call ebp
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x818]
push eax
push 0x400
push 0
push 0x4b33b8
push 0
call esi
test eax, eax
je 0x40172c
push 0x4e5c20
lea eax, [esp + 0x18]
push eax
call edi
push str.confnt.pnt
lea eax, [esp + 0x18]
push eax
call ebx
push 0
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x81c]
push eax
call ebp
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x818]
push eax
push 0x400
push 0
push 0x4b33e4
push 0
call esi
test eax, eax
je 0x401776
push 0x4e5c20
lea eax, [esp + 0x18]
push eax
call edi
push str.winini.pnt
lea eax, [esp + 0x18]
push eax
call ebx
push 0
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x81c]
push eax
call ebp
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x818]
push eax
push 0x400
push 0
push str.system.ini
push 0
call esi
test eax, eax
je 0x4017c0
push 0x4e5c20
lea eax, [esp + 0x18]
push eax
call edi
push str.sysini.pnt
lea eax, [esp + 0x18]
push eax
call ebx
push 0
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x81c]
push eax
call ebp
mov ecx, dword [esp + 0x1014]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0048ea75
add esp, 0x1008
ret
Function at 0x401d60
Capabilities:
Delete file

Disassembly:
mov eax, 0x1854
call fcn.004ac5b0
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x184c], eax
push ebx
push ebp
push esi
push edi
xor eax, eax
xor edi, edi
push 0x7fe
push eax
mov word [esp + 0x60], ax
xor ebp, ebp
lea eax, [esp + 0x62]
push eax
call fcn.0048fb10
add esp, 0xc
xor eax, eax
mov word [esp + 0x858], ax
push 0x7fe
push eax
lea eax, [esp + 0x862]
push eax
call fcn.0048fb10
add esp, 0xc
push 0x2751
push dword [0x4e6030]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push ebp
push ebp
push 0x1004
push eax
mov dword [esp + 0x24], eax
call esi
mov dword [esp + 0x18], eax
test eax, eax
jle 0x401fb4
mov ebx, dword [sym.imp.SHLWAPI.dll_StrCatW]
push 0xf000
push edi
push 0x102c
push dword [esp + 0x20]
call esi
and eax, 0xfffff000
cmp eax, 0x2000
jne 0x401fa9
lea eax, [esp + 0x58]
mov dword [esp + 0x24], 0
mov dword [esp + 0x30], eax
lea eax, [esp + 0x1c]
push eax
push edi
push 0x1073
push dword [esp + 0x20]
mov dword [esp + 0x44], 0x104
call esi
lea eax, [esp + 0x58]
push eax
push 0x2727
push dword [0x4e6030]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0x4e5c20
lea eax, [esp + 0x85c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push str.Registry_
lea eax, [esp + 0x85c]
push eax
call ebx
xor eax, eax
push 0x7fe
push eax
mov word [esp + 0x1060], ax
lea eax, [esp + 0x1062]
push eax
call fcn.0048fb10
add esp, 0xc
lea eax, [esp + 0x1058]
push 0xa
push 0xa
push eax
push ebp
call fcn.0049099e
add esp, 0x10
lea eax, [esp + 0x1058]
push eax
lea eax, [esp + 0x85c]
push eax
call ebx
push str..pnt
lea eax, [esp + 0x85c]
push eax
call ebx
lea eax, [esp + 0x858]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [esp + eax*2 + 0x56], 0x5c
je 0x401efd
push 0x4b3500
lea eax, [esp + 0x5c]
push eax
call ebx
push 0x5c
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov esi, eax
lea eax, [esp + 0x58]
sub esi, eax
and esi, 0xfffffffe
cmp esi, 0x800
jae 0x401fd6
xor eax, eax
mov word [esp + esi + 0x58], ax
lea eax, [esp + 0x1058]
push 0x4b3504
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x105c]
push eax
call ebx
push 0x4b3500
lea eax, [esp + 0x105c]
push eax
call ebx
push 0
push 0
push 0x405
push 0x272a
push dword [0x4e6030]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esp + 0x858]
push eax
lea eax, [esp + 0x5e]
lea ecx, [esp + 0x5c]
add esi, eax
call fcn.00479700
mov edx, esi
mov ecx, eax
call fcn.004017e0
add esp, 4
cmp eax, 0xffffffff
je 0x401fd2
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
inc ebp
inc edi
cmp edi, dword [esp + 0x18]
jl 0x401df1
mov eax, 1
mov ecx, dword [esp + 0x185c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0048ea75
add esp, 0x1854
ret
xor eax, eax
jmp 0x401fb9
call fcn.0048eba6
int3
Function at 0x4028e0
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x125c
call fcn.004ac5b0
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x1258], eax
push ebx
push esi
push edi
mov ebx, ecx
lea eax, [esp + 0xa60]
push ebx
push eax
mov dword [esp + 0x14], ebx
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea ecx, [esp + 0xa60]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402920
mov esi, dword [sym.imp.SHLWAPI.dll_StrCatW]
lea eax, [esp + 0xa60]
sub ecx, edx
sar ecx, 1
cmp word [esp + ecx*2 + 0xa5e], 0x5c
jne 0x40294e
push 0x4b358c
jmp 0x402953
push 0x4b3508
push eax
call esi
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0xa64]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x402987
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1258]
xor ecx, esp
call fcn.0048ea75
mov esp, ebp
pop ebp
ret
test byte [esp + 0x10], 0x10
jne 0x4029ed
push ebx
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea ecx, [esp + 0x260]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4029a7
sub ecx, edx
sar ecx, 1
cmp word [esp + ecx*2 + 0x25e], 0x5c
je 0x4029d0
push 0x4b3500
lea eax, [esp + 0x264]
push eax
call esi
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x264]
push eax
call esi
lea eax, [esp + 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea eax, [esp + 0x10]
push eax
push edi
call ebx
test eax, eax
je 0x402a75
nop
test byte [esp + 0x10], 0x10
jne 0x402a69
push dword [esp + 0xc]
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea eax, [esp + 0x260]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402a23
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x25e], 0x5c
je 0x402a4c
push 0x4b3500
lea eax, [esp + 0x264]
push eax
call esi
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x264]
push eax
call esi
lea eax, [esp + 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x10]
push eax
push edi
call ebx
test eax, eax
jne 0x402a00
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x1264]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0048ea75
mov esp, ebp
pop ebp
ret
Function at 0x402fe0
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, 0x12b4
call fcn.004ac5b0
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x12ac], eax
push ebx
push ebp
push esi
push edi
push 0x2738
push dword [0x4e6030]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
push 0
push 0
push 0x1009
push esi
call edi
push 0x4e5c20
lea eax, [esp + 0x2bc]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push 0x4b358c
lea eax, [esp + 0x2bc]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x2bc]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ebx, eax
lea eax, [esp + 0x68]
push eax
push ebx
call ebp
test eax, eax
je 0x40317a
test byte [esp + 0x68], 0x10
je 0x40316a
push 0x4b3514
lea eax, [esp + 0x98]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
je 0x40316a
push 0x4b35bc
lea eax, [esp + 0x98]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x40316a
push 0
push 0
push 0x1004
push esi
call edi
push 0x4d57f0
push 0
mov dword [0x4d57f4], eax
lea eax, [esp + 0x9c]
push 0x104d
push esi
mov dword [0x4d580c], 0
mov dword [0x4d5804], eax
call edi
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx eax, word [esp + 0x62]
push eax
movzx eax, word [esp + 0x64]
push eax
movzx eax, word [esp + 0x60]
push eax
movzx eax, word [esp + 0x66]
push eax
movzx eax, word [esp + 0x6e]
push eax
push str._.2d._.2d._d__.2d:_.2d
lea eax, [esp + 0xad0]
push 0x400
push eax
call fcn.0040a420
add esp, 0x20
mov dword [esp + 0x24], 1
lea eax, [esp + 0xab8]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x1c]
push eax
push dword [0x4d57f4]
push 0x1074
push esi
call edi
lea eax, [esp + 0x68]
push eax
push ebx
call ebp
test eax, eax
jne 0x403072
lea eax, [esp + 0x1c]
mov dword [esp + 0x2c], 0xb
push eax
push 0
push 0x102b
push esi
mov dword [esp + 0x38], 2
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x478350
push 1
push 0x1051
push esi
mov dword [0x4e5c18], 0
mov dword [0x4e5c14], esi
call edi
mov ecx, dword [esp + 0x12bc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0048ea75
add esp, 0x12b4
ret
Function at 0x4031e0
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x1048
call fcn.004ac5b0
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x1044], eax
push ebx
push ebp
push esi
push 0x2751
push dword [0x4e6030]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
push 0
push 0
push 0x1009
push ebx
call ebp
push 0x7fc
lea eax, [esp + 0x858]
mov dword [esp + 0x854], 0x30
push 0
push eax
call fcn.0048fb10
add esp, 0xc
lea eax, [esp + 0x50]
xor esi, esi
push 0x4e5e28
push 0x400
push eax
push esi
lea eax, [esp + 0x860]
push eax
push 0x4b32e8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x403340
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
movzx eax, word [esp + 0x54]
inc esi
mov dword [esp + 0x10], eax
lea eax, [esp + 0x54]
mov dword [esp + 0x14], esi
xor esi, esi
push eax
call edi
test eax, eax
jle 0x4032a7
mov ax, word [esp + esi*2 + 0x56]
mov word [esp + esi*2 + 0x54], ax
lea eax, [esp + 0x54]
push eax
inc esi
call edi
cmp esi, eax
jl 0x403291
push 0
push 0
push 0x1004
push ebx
call ebp
push 0x4d5778
push 0
mov dword [0x4d577c], eax
lea eax, [esp + 0x5c]
push 0x104d
push ebx
mov dword [0x4d578c], eax
call ebp
cmp dword [esp + 0x10], 0x31
jne 0x4032fa
lea eax, [esp + 0x18]
mov dword [esp + 0x28], 0xf000
push eax
push dword [0x4d577c]
mov dword [esp + 0x2c], 0x2000
push 0x102b
push ebx
call ebp
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x854]
push 0xa
push 0xa
push eax
push esi
call fcn.0049099e
add esp, 0x10
lea eax, [esp + 0x54]
push 0x4e5e28
push 0x400
push eax
push 0
lea eax, [esp + 0x864]
push eax
push 0x4b32e8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jne 0x403276
pop edi
mov ecx, dword [esp + 0x1050]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0048ea75
add esp, 0x1048
ret
Function at 0x403360
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x4bc
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x4b8], eax
push ebx
push ebp
push esi
push 0x274c
push dword [0x4e6030]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
push 0
push 0
push 0x1009
push ebx
call ebp
push 0x204
lea eax, [esp + 0x2c4]
mov dword [esp + 0x2c0], 0x30
push 0
push eax
call fcn.0048fb10
add esp, 0xc
lea eax, [esp + 0x50]
xor esi, esi
push 0x4e5e28
push 0x136
push eax
push esi
lea eax, [esp + 0x2cc]
push eax
push str.UNINSTALLFOLDERS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x4034bf
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
movzx eax, word [esp + 0x54]
inc esi
mov dword [esp + 0x10], eax
lea eax, [esp + 0x54]
mov dword [esp + 0x14], esi
xor esi, esi
push eax
call edi
test eax, eax
jle 0x403426
nop dword [eax]
mov ax, word [esp + esi*2 + 0x56]
mov word [esp + esi*2 + 0x54], ax
lea eax, [esp + 0x54]
push eax
inc esi
call edi
cmp esi, eax
jl 0x403410
push 0
push 0
push 0x1004
push ebx
call ebp
push 0x4d57b4
push 0
mov dword [0x4d57b8], eax
lea eax, [esp + 0x5c]
push 0x104d
push ebx
mov dword [0x4d57c8], eax
call ebp
cmp dword [esp + 0x10], 0x31
jne 0x403479
lea eax, [esp + 0x18]
mov dword [esp + 0x28], 0xf000
push eax
push dword [0x4d57b8]
mov dword [esp + 0x2c], 0x2000
push 0x102b
push ebx
call ebp
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x2c0]
push 0xa
push 0xa
push eax
push esi
call fcn.0049099e
add esp, 0x10
lea eax, [esp + 0x54]
push 0x4e5e28
push 0x136
push eax
push 0
lea eax, [esp + 0x2d0]
push eax
push str.UNINSTALLFOLDERS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jne 0x4033f2
pop edi
mov ecx, dword [esp + 0x4c4]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0048ea75
add esp, 0x4bc
ret