joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403870
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x1c
push ebx
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push ecx
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [esp + 0x18], edi
test edi, edi
je 0x403a3b
push esi
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x403a33
cmp esi, 0xffffffff
je 0x403a33
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x403a33
push ebp
lea eax, [esi + 2]
push 2
push eax
call fcn.004909d3
mov ebp, eax
add esp, 8
mov dword [esp + 0x1c], ebp
test ebp, ebp
je 0x403a32
push 0
lea eax, [esp + 0x2c]
push eax
push esi
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esi + esi]
push esi
push ebp
mov dword [esp + 0x1c], eax
lea edi, [eax + 2]
call dword [sym.imp.ADVAPI32.dll_IsTextUnicode]
push 2
push edi
test eax, eax
jne 0x40392f
call fcn.004909d3
add esp, 8
mov edi, eax
push esi
push edi
push 0xffffffffffffffff
push ebp
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
jmp 0x403945
call fcn.004909d3
add esp, 8
mov edi, eax
push ebp
push edi
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
mov dword [esp + 0x10], esi
push ebx
push dword [0x4e6030]
call dword [sym.imp.USER32.dll_GetDlgItem]
xor ecx, ecx
mov dword [esp + 0x14], eax
test esi, esi
je 0x403972
nop dword [eax]
cmp word [edi + ecx*2], 0xd
jne 0x40396d
xor eax, eax
mov word [edi + ecx*2], ax
inc ecx
cmp ecx, esi
jb 0x403960
push 2
push 0x400
call fcn.004909d3
add esp, 8
mov dword [esp + 0x18], 0
cmp dword [esp + 0x10], 0
mov ebx, eax
jbe 0x403a19
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
xor ecx, ecx
nop
lea esi, [ecx + edi]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x400
jge 0x4039ea
push 0
push 0
push 0x1004
push dword [esp + 0x20]
call ebp
push esi
push ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x54], 0
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea eax, [esp + 0x30]
mov dword [esp + 0x44], ebx
push eax
push 0
push 0x104d
push dword [esp + 0x20]
call ebp
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4039f0
mov eax, dword [esp + 0x18]
sub esi, ecx
sar esi, 1
add eax, 2
add eax, esi
mov dword [esp + 0x18], eax
lea ecx, [eax + eax]
cmp dword [esp + 0x10], ecx
ja 0x4039a0
mov ebp, dword [esp + 0x1c]
push ebx
call fcn.004909de
push edi
call fcn.004909de
push ebp
call fcn.004909de
mov edi, dword [esp + 0x2c]
add esp, 0xc
pop ebp
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
mov eax, 1
pop ebx
add esp, 0x1c
ret
Function at 0x405c20
Capabilities:
Copy file

Disassembly:
mov eax, 0x1014
call fcn.004ac5b0
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x100c], eax
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SearchPathW]
lea eax, [esp + 0x10]
push edi
push eax
lea eax, [esp + 0x1c]
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 0x405cb6
push 0x4e5c20
lea eax, [esp + 0x81c]
push eax
call edi
push str.autobat.pnt
lea eax, [esp + 0x81c]
push eax
call ebx
push 0
push 0x4d2610
lea eax, [esp + 0x20]
push eax
call ebp
push 0x4cf610
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x81c]
call fcn.00479a40
add esp, 4
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push 0x400
push 0
push str.config.sys
push 0
call esi
test eax, eax
je 0x405d18
push 0x4e5c20
lea eax, [esp + 0x81c]
push eax
call edi
push str.confsys.pnt
lea eax, [esp + 0x81c]
push eax
call ebx
push 0
push 0x4d1e10
lea eax, [esp + 0x20]
push eax
call ebp
push 0x4cee10
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x81c]
call fcn.00479a40
add esp, 4
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push 0x400
push 0
push str.autoexec.nt
push 0
call esi
test eax, eax
je 0x405d7a
push 0x4e5c20
lea eax, [esp + 0x81c]
push eax
call edi
push str.autont.pnt
lea eax, [esp + 0x81c]
push eax
call ebx
push 0
push 0x4d1610
lea eax, [esp + 0x20]
push eax
call ebp
push 0x4ce610
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x81c]
call fcn.00479a40
add esp, 4
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push 0x400
push 0
push 0x4b33b8
push 0
call esi
test eax, eax
je 0x405ddc
push 0x4e5c20
lea eax, [esp + 0x81c]
push eax
call edi
push str.confnt.pnt
lea eax, [esp + 0x81c]
push eax
call ebx
push 0
push 0x4d0e10
lea eax, [esp + 0x20]
push eax
call ebp
push 0x4cde10
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x81c]
call fcn.00479a40
add esp, 4
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push 0x400
push 0
push 0x4b33e4
push 0
call esi
test eax, eax
je 0x405e3e
push 0x4e5c20
lea eax, [esp + 0x81c]
push eax
call edi
push str.winini.pnt
lea eax, [esp + 0x81c]
push eax
call ebx
push 0
push 0x4d0610
lea eax, [esp + 0x20]
push eax
call ebp
push 0x4cd610
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x81c]
call fcn.00479a40
add esp, 4
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push 0x400
push 0
push str.system.ini
push 0
call esi
test eax, eax
je 0x405ea0
push 0x4e5c20
lea eax, [esp + 0x81c]
push eax
call edi
push str.sysini.pnt
lea eax, [esp + 0x81c]
push eax
call ebx
push 0
push 0x4cfe10
lea eax, [esp + 0x20]
push eax
call ebp
push 0x4cce10
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x81c]
call fcn.00479a40
add esp, 4
mov ecx, dword [esp + 0x101c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0048ea75
add esp, 0x1014
ret
Function at 0x407f80
Capabilities:
Delete file
Write file on windows

Disassembly:
mov eax, 0x124c
call fcn.004ac5b0
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x1248], eax
push ebx
push ebp
push edi
push ecx
push dword [0x4e6030]
mov ebp, edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x7fc
mov edi, eax
mov dword [esp + 0xa58], 0
lea eax, [esp + 0xa5c]
push 0
push eax
call fcn.0048fb10
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
add esp, 0xc
push 2
push 0xffffffffffffffff
push 0x100c
push edi
call ebx
lea ecx, [esp + 0xa54]
mov dword [esp + 0x18], 0
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x10]
push ecx
push eax
push 0x1073
push edi
mov dword [esp + 0x38], 0x400
call ebx
cmp word [esp + 0xa54], 0
mov ecx, 0x4b32d0
jne 0x408072
mov edx, 0x4b330c
call fcn.00478640
push eax
lea eax, [esp + 0x258]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea eax, [esp + 0x254]
mov edx, 0x4b3e80
push 0x30
push eax
mov ecx, 0x4b32d0
call fcn.00478640
push eax
push dword [0x4e6030]
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1248]
xor ecx, esp
call fcn.0048ea75
add esp, 0x124c
ret
mov edx, 0x4b3e88
call fcn.00478640
push eax
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea eax, [esp + 0x4c]
mov edx, 0x4b3ea8
push 0x24
push eax
mov ecx, 0x4b32d0
call fcn.00478640
push eax
push dword [0x4e6030]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x408058
push esi
push 2
push 0xffffffffffffffff
push 0x100c
push edi
call ebx
push 0
mov esi, eax
push esi
push 0x1008
push edi
call ebx
cmp esi, 0xffffffff
jne 0x4080b1
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0
push 0x1004
push edi
call ebx
mov esi, eax
test esi, esi
je 0x408181
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x408110
or eax, eax
jmp 0x408186
lea eax, [esp + 0x258]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x28], eax
dec esi
lea eax, [esp + 0x14]
mov dword [esp + 0x2c], 0x400
push eax
push esi
push 0x1073
push edi
call ebx
push 0
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
lea eax, [esp + 0x264]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [esp + 0x14]
push eax
push 4
push 0x4b348c
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test esi, esi
jne 0x408110
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0x1258]
pop esi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.0048ea75
add esp, 0x124c
ret
Function at 0x409920
Capabilities:
Create process on windows
Set registry value

Disassembly:
sub esp, 0x844
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x840], eax
push 0x7fc
lea eax, [esp + 0x48]
mov dword [esp + 0x44], 0
push 0
push eax
call fcn.0048fb10
add esp, 0xc
push 2
push 0xffffffffffffffff
push 0x100c
push 0x2740
push dword [0x4e6030]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [esp + 0x40]
mov dword [esp + 0xc], 0
mov dword [esp + 0x18], ecx
lea ecx, [esp + 4]
push ecx
push eax
push 0x1073
push 0x2740
push dword [0x4e6030]
mov dword [esp + 0x30], 0x400
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp word [esp + 0x40], 0
jne 0x4099e8
lea eax, [esp]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionAppletsRegedit
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x409a8a
push 0x4b34dc
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push 0x4b34dc
jmp 0x409a6e
push 0
push str.RegEdit_RegEdit
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x409a11
push 0
push 0
push 0x12
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push 0x2bc
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x5d
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.SHLWAPI.dll_StrChrW]
test eax, eax
je 0x409a8a
lea ecx, [esp + 0x40]
sub eax, ecx
sar eax, 1
lea eax, [eax*2 - 2]
cmp eax, 0x800
jae 0x409af4
xor ecx, ecx
mov word [esp + eax + 0x40], cx
lea eax, [esp]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionAppletsRegedit
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x409a8a
lea eax, [esp + 0x42]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
lea eax, [esp + 0x46]
push eax
push 1
push 0
push str.LastKey
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [esp]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x4e6030]
xorps xmm0, xmm0
mov dword [esp + 0xc], eax
lea eax, [esp + 4]
movlpd qword [esp + 0x28], xmm0
movlpd qword [esp + 0x30], xmm0
movlpd qword [esp + 0x38], xmm0
movaps xmm0, xmmword [0x4c77d0]
push eax
mov dword [esp + 8], 0x3c
mov dword [esp + 0xc], 0x4c
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], str.regedit.exe
movups xmmword [esp + 0x1c], xmm0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [esp + 0x840]
xor ecx, esp
call fcn.0048ea75
add esp, 0x844
ret
call fcn.0048eba6
int3
Function at 0x40d560
Capabilities:
Read .ini file

Disassembly:
sub esp, 0xc3c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xc38], eax
push ebx
push ebp
push esi
push edi
push 0x2780
push dword [0x4e6030]
mov dword [0x4d5838], 1
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov ebp, eax
push 0
push 0
push 0x1009
push ebp
call edi
call fcn.0040dc00
push 0x204
lea eax, [esp + 0x70]
mov dword [esp + 0x6c], 0x30
push 0
push eax
call fcn.0048fb10
add esp, 0xc
lea eax, [esp + 0x270]
xor esi, esi
push 0x4e5e28
push 0x3e8
push eax
push esi
lea eax, [esp + 0x78]
push eax
push str.TRASHFOLDERS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x40d748
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
nop dword [eax + eax]
movzx eax, word [esp + 0x270]
inc esi
mov dword [esp + 0x10], eax
lea eax, [esp + 0x270]
mov dword [esp + 0x14], esi
xor esi, esi
push eax
call ebx
test eax, eax
jle 0x40d680
nop dword [eax]
nop word [eax + eax]
movzx eax, word [esp + esi*2 + 0x272]
mov word [esp + esi*2 + 0x270], ax
cmp eax, 0x3e
jne 0x40d671
cmp esi, 0x3e8
jae 0x40d80a
xor eax, eax
mov word [esp + esi*2 + 0x270], ax
lea eax, [esp + esi*2 + 0x274]
push eax
lea eax, [esp + 0xa44]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea eax, [esp + 0x270]
inc esi
push eax
call ebx
cmp esi, eax
jl 0x40d630
push 0
push 0
push 0x1004
push ebp
call edi
push 0x4d68f4
push 0
mov dword [0x4d68f8], eax
lea eax, [esp + 0x278]
push 0x104d
push ebp
mov dword [0x4d6910], 0
mov dword [0x4d6908], eax
call edi
cmp dword [esp + 0x10], 0x31
jne 0x40d6e0
lea eax, [esp + 0x18]
mov dword [esp + 0x28], 0xf000
push eax
push dword [0x4d68f8]
mov dword [esp + 0x2c], 0x2000
push 0x102b
push ebp
call edi
lea eax, [esp + 0xa40]
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x18]
push eax
push dword [0x4d68f8]
push 0x1074
push ebp
call edi
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x68]
push 0xa
push 0xa
push eax
push esi
call fcn.0049099e
add esp, 0x10
lea eax, [esp + 0x270]
push 0x4e5e28
push 0x3e8
push eax
push 0
lea eax, [esp + 0x78]
push eax
push str.TRASHFOLDERS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jne 0x40d600
push 0x2780
push dword [0x4e6030]
call dword [sym.imp.USER32.dll_GetDlgItem]
xor esi, esi
mov ebx, eax
push esi
push esi
push 0x1004
push ebx
call edi
test eax, eax
js 0x40d7e7
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
xor eax, eax
xorps xmm0, xmm0
push 0xa
mov word [esp + 0x58], ax
mov word [esp + 0x6a], ax
lea eax, [esp + 0x58]
push 0xa
push eax
push esi
movups xmmword [esp + 0x66], xmm0
call fcn.0049099e
add esp, 0x10
mov dword [esp + 0x28], 0xf000
lea eax, [esp + 0x54]
push 0x4e5e28
push 0
push eax
push str.TRASHCHECK
call ebp
neg eax
sbb eax, eax
and eax, 0x1000
add eax, 0x1000
mov dword [esp + 0x24], eax
lea eax, [esp + 0x18]
push eax
push esi
push 0x102b
push ebx
call edi
push 0
push 0
push 0x1004
push ebx
inc esi
call edi
cmp esi, eax
jle 0x40d775
mov ecx, dword [esp + 0xc48]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov dword [0x4d5838], 0
call fcn.0048ea75
add esp, 0xc3c
ret
call fcn.0048eba6
int3
Function at 0x40d810
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x1848
call fcn.004ac5b0
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x1844], eax
push ebx
push ebp
push esi
push 0x2785
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 str.EXCLUDEFOLDERS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x40d9cb
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 0x40d902
movzx eax, word [esp + esi*2 + 0x56]
mov word [esp + esi*2 + 0x54], ax
cmp eax, 0x3e
jne 0x40d8f6
cmp esi, 0x400
jae 0x40d9e3
xor eax, eax
mov word [esp + esi*2 + 0x54], ax
lea eax, [esp + esi*2 + 0x58]
push eax
lea eax, [esp + 0x1058]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea eax, [esp + 0x54]
inc esi
push eax
call edi
cmp esi, eax
jl 0x40d8c1
push 0
push 0
push 0x1004
push ebx
call ebp
push 0x4d68b8
push 0
mov dword [0x4d68bc], eax
lea eax, [esp + 0x5c]
push 0x104d
push ebx
mov dword [0x4d68d4], 0
mov dword [0x4d68cc], eax
call ebp
cmp dword [esp + 0x10], 0x31
jne 0x40d95f
lea eax, [esp + 0x18]
mov dword [esp + 0x28], 0xf000
push eax
push dword [0x4d68bc]
mov dword [esp + 0x2c], 0x2000
push 0x102b
push ebx
call ebp
lea eax, [esp + 0x1054]
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x18]
push eax
push dword [0x4d68bc]
push 0x1074
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 str.EXCLUDEFOLDERS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jne 0x40d8a6
pop edi
mov ecx, dword [esp + 0x1850]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0048ea75
add esp, 0x1848
ret
call fcn.0048eba6
int3
Function at 0x40d9f0
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x1848
call fcn.004ac5b0
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x1844], eax
push ebx
push ebp
push esi
push 0x277b
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 str.TRASHFILES
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x40dbab
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 0x40dae2
movzx eax, word [esp + esi*2 + 0x56]
mov word [esp + esi*2 + 0x54], ax
cmp eax, 0x3e
jne 0x40dad6
cmp esi, 0x400
jae 0x40dbc3
xor eax, eax
mov word [esp + esi*2 + 0x54], ax
lea eax, [esp + esi*2 + 0x58]
push eax
lea eax, [esp + 0x1058]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea eax, [esp + 0x54]
inc esi
push eax
call edi
cmp esi, eax
jl 0x40daa1
push 0
push 0
push 0x1004
push ebx
call ebp
push 0x4d6930
push 0
mov dword [0x4d6934], eax
lea eax, [esp + 0x5c]
push 0x104d
push ebx
mov dword [0x4d694c], 0
mov dword [0x4d6944], eax
call ebp
cmp dword [esp + 0x10], 0x31
jne 0x40db3f
lea eax, [esp + 0x18]
mov dword [esp + 0x28], 0xf000
push eax
push dword [0x4d6934]
mov dword [esp + 0x2c], 0x2000
push 0x102b
push ebx
call ebp
lea eax, [esp + 0x1054]
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x18]
push eax
push dword [0x4d6934]
push 0x1074
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 str.TRASHFILES
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jne 0x40da86
pop edi
mov ecx, dword [esp + 0x1850]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0048ea75
add esp, 0x1848
ret
call fcn.0048eba6
int3
Function at 0x40e3b0
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x1004
call fcn.004ac5b0
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x1000], eax
mov edx, 0x4b3e70
mov ecx, str.FILE
call fcn.00478640
push eax
lea eax, [esp + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push 0x4e5e28
push 0x400
lea eax, [esp + 0x808]
push eax
push 0
push str.Folder
push str.SFOPTIONS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x800]
push eax
lea eax, [esp + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
lea eax, [esp]
push eax
push 0
push 0xc
push 0x278b
push dword [0x4e6030]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.0048ea75
add esp, 0x1004
ret

Function at 0x40f3b0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0xad4
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xad0], eax
push ebx
push ebp
mov ebp, edx
mov ebx, ecx
mov edx, 0x4b3f08
mov ecx, str.FILE
call fcn.00478640
push eax
lea eax, [esp + 0xd4]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea eax, [esp + 0xd0]
mov edx, 0x4b3f1c
push 0x24
push eax
mov ecx, str.FILE
call fcn.00478640
push eax
push dword [0x4e6030]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
je 0x40f42c
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xad0]
xor ecx, esp
call fcn.0048ea75
add esp, 0xad4
ret
push esi
push edi
push 0x4e5e28
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionW]
push 0xc4
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0x30
push 0
push eax
call fcn.0048fb10
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x2ec]
add esp, 0xc
xor esi, esi
push 0x4e5e28
push 0x400
push eax
push esi
lea eax, [esp + 0x20]
push eax
push ebp
call edi
test eax, eax
je 0x40f4cc
nop
push 0x4e5e28
lea eax, [esp + 0x2e4]
inc esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push 0xa
push 0xa
lea eax, [esp + 0x18]
push eax
push esi
call fcn.0049099e
add esp, 0x10
lea eax, [esp + 0x2e0]
push 0x4e5e28
push 0x400
push eax
push 0
lea eax, [esp + 0x20]
push eax
push ebp
call edi
test eax, eax
jne 0x40f480
mov ecx, dword [esp + 0xae0]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0048ea75
add esp, 0xad4
ret
Function at 0x40f4f0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0xad4
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xad0], eax
cmp byte [esp + 0xad8], 0
push ebx
push edi
mov ebx, edx
mov edi, ecx
je 0x40f576
mov edx, 0x4b3f08
mov ecx, str.FILE
call fcn.00478640
push eax
lea eax, [esp + 0xd4]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea eax, [esp + 0xd0]
mov edx, 0x4b3f1c
push 0x24
push eax
mov ecx, str.FILE
call fcn.00478640
push eax
push dword [0x4e6030]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
je 0x40f576
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xad0]
xor ecx, esp
call fcn.0048ea75
add esp, 0xad4
ret
push ebp
push esi
push 0x4e5e28
push 0
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionW]
push 0xc4
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0x30
push 0
push eax
call fcn.0048fb10
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x2ec]
add esp, 0xc
xor esi, esi
push 0x4e5e28
push 0x400
push eax
push esi
lea eax, [esp + 0x20]
push eax
push ebx
call ebp
test eax, eax
je 0x40f61c
nop dword [eax]
push 0x4e5e28
lea eax, [esp + 0x2e4]
inc esi
push eax
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push 0xa
push 0xa
lea eax, [esp + 0x18]
push eax
push esi
call fcn.0049099e
add esp, 0x10
lea eax, [esp + 0x2e0]
push 0x4e5e28
push 0x400
push eax
push 0
lea eax, [esp + 0x20]
push eax
push ebx
call ebp
test eax, eax
jne 0x40f5d0
mov ecx, dword [esp + 0xae0]
mov eax, 1
pop esi
pop ebp
pop edi
pop ebx
xor ecx, esp
call fcn.0048ea75
add esp, 0xad4
ret