joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409f14
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
cmp dword [ebp + 0xc], 0
je 0x409f29
mov eax, dword [ebp + 0xc]
and dword [eax], 0
mov eax, dword [ebp + 8]
movsx eax, byte [eax]
cmp eax, 0x5c
jne 0x409ff2
mov eax, dword [ebp + 8]
movsx eax, byte [eax + 1]
cmp eax, 0x5c
jne 0x409ff2
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x21c]
push eax
push dword [ebp + 8]
call fcn.00409c06
test eax, eax
jne 0x409f69
xor eax, eax
jmp 0x40a05c
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x409f8e
cmp dword [ebp - 0x220], 1
jne 0x409fa7
cmp dword [ebp - 0x220], 0x64
jle 0x409fa7
cmp dword [ebp - 0x220], 0
jge 0x409fa7
xor eax, eax
jmp 0x40a05c
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x409fd9
or eax, 0xffffffff
jmp 0x40a05c
push dword [ebp - 0x224]
push dword [ebp - 0x114]
push dword [ebp - 4]
call fcn.0040a6e3
add esp, 0xc
jmp 0x40a05c
mov eax, dword [ebp + 8]
mov al, byte [eax]
mov byte [ebp - 0x21c], al
mov eax, dword [ebp + 8]
mov al, byte [eax + 1]
mov byte [ebp - 0x21b], al
mov byte [ebp - 0x21a], 0x5c
and byte [ebp - 0x219], 0
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x40a045
xor eax, eax
jmp 0x40a05c
push dword [ebp - 0x224]
push dword [ebp - 0x114]
push dword [ebp - 4]
call fcn.0040a6e3
add esp, 0xc
leave
ret 8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp + 8]
movsx eax, byte [eax]
test eax, eax
je 0x40a1f4
mov eax, dword [ebp + 8]
movsx eax, byte [eax + 1]
cmp eax, 0x3a
jne 0x40a1f4
mov eax, dword [ebp + 8]
movsx eax, byte [eax + 2]
test eax, eax
jne 0x40a1f4
mov byte [ebp - 0x106], 0x5c
and byte [ebp - 0x105], 0
lea eax, [ebp - 0x108]
push eax
call fcn.004092f1
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0xffffffff
jne 0x40a221
or eax, 0xffffffff
jmp 0x40a22e
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10c]
mov dword [eax], ecx
xor eax, eax
leave
ret
Function at 0x40a230
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push dword [ebp + 8]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 0xc], 0xc
and dword [ebp - 8], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
je 0x40a28a
cmp dword [0x4246f4], 0
je 0x40a28a
push dword [ebp + 8]
call dword [0x4246f4]
xor eax, eax
cmp dword [ebp - 0x118], 0
sete al
leave
ret
Function at 0x40d6bc
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x424790], 0
je 0x40d6d3
push 1
pop eax
jmp 0x40d86b
push 0x1003
push 0x9c4
call fcn.00402b40
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x40d6f3
or eax, 0xffffffff
jmp 0x40d86b
push 0x32c
push dword [ebp - 0xc]
call fcn.00403130
mov dword [0x42478c], eax
cmp dword [0x42478c], 0
jne 0x40d716
or eax, 0xffffffff
jmp 0x40d86b
mov eax, dword [0x42478c]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov eax, dword [0x42478c]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0xc], ecx
mov eax, dword [0x42478c]
and byte [eax + 0x226], 0
mov eax, dword [0x42478c]
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov eax, dword [0x42478c]
and dword [eax + 4], 0
mov eax, dword [0x42478c]
and dword [eax + 0x18], 0
mov eax, dword [0x42478c]
and dword [eax + 0x14], 0
mov eax, dword [0x42478c]
mov dword [eax + 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 6
je 0x40d77e
cmp dword [ebp + 8], 7
jne 0x40d7a9
mov eax, dword [ebp - 4]
shr eax, 0x10
and eax, 0xffff
movzx eax, ax
sar eax, 8
and eax, 0xff
movzx eax, al
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 5
jge 0x40d7a9
mov eax, dword [0x42478c]
and dword [eax + 0x10], 0
push dword [ebp + 0x10]
mov eax, dword [0x42478c]
add eax, 0x1c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 0x14]
mov eax, dword [0x42478c]
add eax, 0x121
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.ISMSG16_REBOOT
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x4247a0], eax
push str.ISMSG16_TERMINATE
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x4247a4], eax
push str.ISMSG32_REBOOT
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x4247a8], eax
push str.ISMSG32_TERMINATE
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x4247ac], eax
push str.ISMSG32_DELETEFILE
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x4247b0], eax
push str.ISMSG32_RENAMEFILE
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x4247b4], eax
push str.ISMSG32_STRINGLEN
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x4247b8], eax
push str.ISMSG32_CHARS
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x4247bc], eax
push str.ISMSG32_DOFILEOP
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x4247c0], eax
mov dword [0x424790], 1
xor eax, eax
leave
ret 0x10
Function at 0x40dd88
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push dword [ebp + 8]
push str.file_d
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov eax, dword [0x42478c]
add eax, 0x226
push eax
push 0x105
lea eax, [ebp - 0x210]
push eax
push 0x42177c
push str.main
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x421794
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40ddf1
xor eax, eax
jmp 0x40de09
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0040de0b
pop ecx
pop ecx
push 1
pop eax
leave
ret

Function at 0x40de0b
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push dword [ebp + 0xc]
call fcn.0040d98e
and dword [ebp - 4], 0
jmp 0x40de29
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x64
jge 0x40de99
push dword [ebp - 4]
push str.alt_d
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov eax, dword [0x42478c]
add eax, 0x226
push eax
push 0x105
lea eax, [ebp - 0x214]
push eax
push 0x4217ac
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str.NOWAYVALUEXX
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40de8b
jmp 0x40de99
lea eax, [ebp - 0x214]
push eax
call fcn.0040d98e
jmp 0x40de22
push 1
pop eax
leave
ret

Function at 0x40dfb5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x528
push 0x105
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x4217fc
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00409bda
push str.tmpdelis.bat
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x528]
push eax
call fcn.00409bda
push 0x42181c
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x318]
push eax
call fcn.00409bda
push str.winstart.isk
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.00409bda
mov eax, dword [0x42478c]
and dword [eax + 0x14], 0
mov eax, dword [0x42478c]
and dword [eax + 0x18], 0
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x318]
push eax
call fcn.0040e0a5
add esp, 0xc
lea eax, [ebp - 0x528]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x318]
push eax
call fcn.0040e1a1
add esp, 0x10
lea eax, [ebp - 0x528]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x318]
push eax
call fcn.0040e2cb
add esp, 0xc
push 1
pop eax
leave
ret

Function at 0x40e843
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 4
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
xor eax, eax
pop ebp
ret
Function at 0x40e970
Capabilities:
Check for time delay via gettickcount
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0x14]
and dword [eax], 0
push 1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WinExec]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x20
jae 0x40e994
xor eax, eax
jmp 0x40ea08
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x1b58
mov dword [ebp - 0x24], eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x40e9ec
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [ebp - 0x24], eax
jbe 0x40e9ec
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [ebp - 4], eax
jmp 0x40e9b1
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40ea06
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
push 1
pop eax
jmp 0x40ea08
xor eax, eax
leave
ret
Function at 0x40ff9b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x814], eax
cmp dword [ebp - 0x814], 4
jl 0x40fff9
cmp dword [ebp - 0x814], 5
jle 0x40ffc1
jmp 0x40fff9
push dword [ebp + 0x1c]
lea eax, [ebp - 0x800]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x800]
push eax
call fcn.00419e20
pop ecx
mov dword [ebp - 0x808], eax
lea eax, [ebp - 0x808]
mov dword [ebp - 0x804], eax
mov dword [ebp + 0x18], 4
jmp 0x41001e
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x804], eax
cmp dword [ebp + 0x14], 1
je 0x41000e
cmp dword [ebp + 0x14], 2
jne 0x41001e
push dword [ebp - 0x804]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov dword [ebp + 0x18], eax
cmp dword [ebp + 0x18], 0xffffffff
jne 0x410034
push dword [ebp - 0x804]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov dword [ebp + 0x18], eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040fd1d
mov dword [ebp - 0x80c], eax
cmp dword [ebp - 0x80c], 0
jne 0x410071
push 0x4247d0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040fb59
mov dword [ebp - 0x80c], eax
cmp dword [ebp - 0x80c], 0
jne 0x410071
xor eax, eax
jmp 0x4100cf
push dword [ebp + 0x18]
push dword [ebp - 0x804]
push dword [ebp + 0x14]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x80c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x810], eax
cmp dword [ebp - 0x810], 0
je 0x4100ad
push dword [ebp - 0x80c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4100cf
push dword [ebp - 0x80c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x810], eax
cmp dword [ebp - 0x810], 0
je 0x4100cc
xor eax, eax
jmp 0x4100cf
push 1
pop eax
leave
ret 0x18
Function at 0x4100d3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.0041a000
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040fd1d
mov dword [ebp - 0x1010], eax
cmp dword [ebp - 0x1010], 0
jne 0x410101
xor eax, eax
jmp 0x410236
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x3ff
push dword [ebp + 0x18]
lea eax, [ebp - 0x800]
push eax
push dword [ebp + 0x14]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x1010]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x100c], eax
cmp dword [ebp - 0x100c], 0
je 0x41014a
push dword [ebp - 0x1010]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x410236
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x1014], eax
cmp dword [ebp - 0x1014], 0
jle 0x4101cb
cmp dword [ebp - 0x1014], 2
jle 0x41017b
cmp dword [ebp - 0x1014], 3
jle 0x4101cb
cmp dword [ebp - 0x1014], 5
jle 0x410190
jmp 0x4101cb
lea eax, [ebp - 0x800]
push eax
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x410214
lea eax, [ebp - 0x800]
mov dword [ebp - 0x1008], eax
mov eax, dword [ebp - 0x1008]
push dword [eax]
push 0x421a38
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x410214
and dword [ebp - 0x1004], 0
jmp 0x4101e1
mov eax, dword [ebp - 0x1004]
inc eax
mov dword [ebp - 0x1004], eax
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x1004]
cmp ecx, dword [eax]
jge 0x410208
mov eax, dword [ebp + 0x1c]
add eax, dword [ebp - 0x1004]
mov ecx, dword [ebp - 0x1004]
mov cl, byte [ebp + ecx - 0x800]
mov byte [eax], cl
jmp 0x4101d4
mov eax, dword [ebp + 0x1c]
add eax, dword [ebp - 0x1004]
and byte [eax], 0
push dword [ebp - 0x1010]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x100c], eax
cmp dword [ebp - 0x100c], 0
je 0x410233
xor eax, eax
jmp 0x410236
push 1
pop eax
leave
ret 0x18
Function at 0x41046c
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 0x14], 0
and byte [ebp - 0x10], 0
and byte [ebp - 0xf], 0
and byte [ebp - 0xe], 0
and byte [ebp - 0xd], 0
and byte [ebp - 0xc], 0
mov byte [ebp - 0xb], 5
cmp dword [0x425854], 0
je 0x41049f
push 1
pop eax
jmp 0x4105d0
lea eax, [ebp - 8]
push eax
push 0
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x4104ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x4104e5
lea eax, [ebp - 8]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4104e3
xor eax, eax
jmp 0x4105d0
jmp 0x4104ec
xor eax, eax
jmp 0x4105d0
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x41050a
xor eax, eax
jmp 0x4105d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x41051c
xor eax, eax
jmp 0x4105d0
mov eax, dword [ebp - 0x1c]
add eax, 3
and al, 0xfc
call fcn.0041a000
mov dword [ebp - 0x24], esp
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x41053f
xor eax, eax
jmp 0x4105d0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
push 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x41055c
xor eax, eax
jmp 0x4105d0
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x410587
xor eax, eax
jmp 0x4105d0
and dword [ebp - 4], 0
and dword [ebp - 0x20], 0
jmp 0x410598
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [eax]
jae 0x4105c4
push dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
push dword [ecx + eax*8 + 4]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x4105c2
mov dword [ebp - 4], 1
jmp 0x4105c4
jmp 0x410591
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 4]
lea esp, [ebp - 0x24]
leave
ret
Function at 0x411149
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_SetRectEmpty]
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax + 0xa0]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x41117e
xor eax, eax
jmp 0x4111fa
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax + 0xa0]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0xa0]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
add ecx, eax
mov eax, dword [ebp + 0x10]
mov dword [eax + 8], ecx
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
add ecx, eax
mov eax, dword [ebp + 0x10]
mov dword [eax + 0xc], ecx
xor eax, eax
leave
ret
Function at 0x4169a2
Capabilities:
Delete file
Enumerate files on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
push dword [ebp + 8]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 1
lea eax, [ebp - 0x214]
push eax
call fcn.0040831c
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x31c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 0xc]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x416a84
push 1
pop eax
test eax, eax
je 0x416a84
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push pe_nt_image_headers32
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x45c]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x416a6e
jmp 0x416a84
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x416a1e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 1
pop eax
leave
ret
Function at 0x416b2f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
push edi
and dword [ebp - 0xc], 0
and byte [ebp - 0x90], 0
push 0x20
pop ecx
xor eax, eax
lea edi, [ebp - 0x8f]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
and byte [ebp - 0x198], 0
push 0x41
pop ecx
xor eax, eax
lea edi, [ebp - 0x197]
rep stosd dword es:[edi], eax
mov dword [ebp - 4], 0x17
cmp dword [0x424f5c], 0
jne 0x416b7c
cmp dword [ebp + 0x18], 0
jne 0x416b83
mov dword [ebp - 4], 2
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x416baf
push 0x424840
push dword [ebp - 8]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
jl 0x416baf
mov dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0
jne 0x416bd4
push 0x105
push 0x424840
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.Start_MenuPrograms
push 0x424840
call fcn.00409bba
push dword [ebp + 8]
call fcn.00409268
test eax, eax
jne 0x416c07
mov eax, dword [ebp + 8]
movsx eax, byte [eax]
cmp eax, 0x5c
je 0x416c07
push dword [ebp + 8]
push 0x424840
push dword [ebp + 0x10]
call fcn.00409bda
push 1
push dword [ebp + 0x10]
call fcn.0040831c
jmp 0x416c1d
push dword [ebp + 8]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 1
push dword [ebp + 0x10]
call fcn.0040831c
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call fcn.00409bda
lea eax, [ebp - 0x90]
push eax
push dword [ebp + 0xc]
call fcn.00409458
push 0x421c88
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x416c5e
push str..lnk
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 1
pop eax
pop edi
leave
ret

Function at 0x417cee
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
cmp dword [0x424f54], 0
je 0x417d08
push 1
pop eax
jmp 0x417de2
lea eax, [ebp - 0x428]
push eax
push dword [ebp + 8]
call fcn.00408374
lea eax, [ebp - 0x110]
push eax
push dword [ebp + 8]
call fcn.00408266
push 0x105
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 1
lea eax, [ebp - 0x218]
push eax
call fcn.0040831c
push 1
lea eax, [ebp - 0x110]
push eax
call fcn.0040831c
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x417d71
push 1
pop eax
jmp 0x417de2
mov dword [ebp - 8], 0x579
push 0x105
lea eax, [ebp - 0x320]
push eax
push dword [ebp - 8]
push dword [0x424f58]
call dword [sym.imp.USER32.dll_LoadStringA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x417ddf
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x417db8
xor eax, eax
jmp 0x417de2
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
push 0x105
lea eax, [ebp - 0x320]
push eax
push dword [ebp - 8]
push dword [0x424f58]
call dword [sym.imp.USER32.dll_LoadStringA]
mov dword [ebp - 4], eax
jmp 0x417d96
push 1
pop eax
leave
ret