joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002b470
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10039ef4
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x1007d00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
lea edi, [ebx + 0x30]
mov esi, dword [ebp + 0x18]
mov ecx, 0x21
mov edx, dword [ebp + 0xc]
mov dword [ebx + 4], eax
mov eax, dword [ebp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 0x90]
push 0x1000
mov dword [ebx + 0xc], edx
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], ecx
mov dword [ebx + 0x20], edx
mov dword [ebx + 0x24], edx
mov dword [ebx + 0x28], ecx
mov dword [ebx + 8], eax
call fcn.10035ceb
push 0x1000
push esi
push eax
mov dword [ebx + 0xb4], eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
lea eax, [ebx + 0x5c]
push dword [ebx + 0xb4]
push 0x400
push eax
lea eax, [ebx + 0x34]
push eax
push ecx
call fcn.100335a0
push 0x18
mov dword [ebx + 0xb8], 0x42c80000
mov dword [ebx + 0xbc], esi
mov dword [ebx + 0xc0], esi
mov dword [ebx + 0xc4], esi
mov dword [ebx + 0xc8], esi
mov dword [ebx + 0xcc], esi
mov dword [ebx + 0xd0], esi
mov dword [ebx + 0xd4], esi
call fcn.100351a1
add esp, 4
mov dword [ebp + 0x18], eax
mov dword [ebp - 4], esi
lea ecx, [ebp + 8]
push ecx
push 1
push 1
push 0x200
push 0x200
mov ecx, eax
mov dword [ebp + 8], esi
call fcn.1001d590
mov dword [ebp - 4], 0xffffffff
test eax, eax
mov ecx, 0x80004005
mov dword [ebx + 0xd8], eax
cmove esi, ecx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x401000
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push ebx
or dword [ebp - 4], 0xffffffff
push 0x80
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp + 0xc]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
mov dword [ecx], 0xfffffff6
je 0x4010bc
push ebx
push ebx
push ebx
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x4010b3
push edi
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, ebx
je 0x4010a9
cmp dword [edi], 0x4643534d
jne 0x40109d
push esi
mov esi, dword [edi + 0x10]
add esi, edi
cmp word [edi + 0x1c], bx
mov dword [ebp - 4], ebx
mov dword [ebp + 8], ebx
jbe 0x40109c
mov eax, dword [esi]
add esi, 0x11
add dword [ebp - 4], eax
push esi
call fcn.00407130
inc dword [ebp + 8]
lea esi, [esi + eax + 1]
mov ax, word [ebp + 8]
pop ecx
cmp ax, word [edi + 0x1c]
jb 0x40107c
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop ebx
leave
ret

Function at 0x4010c2
Capabilities:
Terminate process

Disassembly:
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0xc]
call fcn.00401141
add esp, 0xc
mov dword [0x415138], eax
test eax, eax
jne 0x4010ed
call fcn.00402221
test eax, eax
mov dword [0x415138], eax
je 0x401113
jle 0x40110c
cmp dword [0x4150ec], 0
jne 0x40110c
push 0x10
push 1
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call fcn.00402f5e
add esp, 0x10
call fcn.004049d0
jmp 0x401135
call fcn.004049d0
test eax, eax
mov dword [0x415138], eax
je 0x401135
push 0x10
push 1
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call fcn.00402f5e
add esp, 0x10
push dword [0x415138]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40123b
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [ebp - 4]
push edi
xor ebx, ebx
push eax
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, 0x104
test eax, eax
jne 0x4012fb
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
lea eax, [ebp - 0xc]
push dword [0x415148]
mov dword [ebp - 0xc], 1
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push str.ProgramFilesDir
push dword [ebp - 4]
call ebx
push dword [0x415148]
call esi
push eax
push dword [0x415148]
call fcn.00401412
pop ecx
mov dword [0x4151b4], eax
pop ecx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push dword [0x415148]
mov dword [ebp - 8], edi
push eax
push 0
push str.CommonFilesDir
push dword [ebp - 4]
call ebx
push dword [0x415148]
call esi
push eax
push dword [0x415148]
call fcn.00401412
pop ecx
mov dword [0x4151b8], eax
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push dword [0x415148]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push dword [0x415148]
call esi
push eax
push dword [0x415148]
call fcn.00401412
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
pop ecx
pop ecx
mov dword [0x4151bc], eax
push str.SYSTEM32
push dword [0x415148]
call ebx
push dword [0x415148]
call esi
push eax
push dword [0x415148]
call fcn.00401412
pop ecx
mov dword [0x4151c4], eax
pop ecx
push edi
push dword [0x415148]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push dword [0x415148]
call esi
push eax
push dword [0x415148]
call fcn.00401412
pop ecx
mov dword [0x4151c0], eax
pop ecx
push dword [0x415148]
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, dword [0x415148]
cmp byte [ecx + eax - 1], 0x5c
lea eax, [ecx + eax - 1]
jne 0x40139a
and byte [eax], 0
push dword [0x415148]
call fcn.00401499
test eax, eax
pop ecx
je 0x4013c7
push dword [0x415148]
call esi
push eax
push dword [0x415148]
call fcn.00401412
pop ecx
mov dword [0x4151c8], eax
pop ecx
jmp 0x40140d
push dword [0x4151bc]
push dword [0x415148]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.TEMP
push dword [0x415148]
call ebx
push dword [0x415148]
call esi
push eax
push dword [0x415148]
call fcn.00401412
push dword [0x415148]
mov dword [0x4151c8], eax
call fcn.00401511
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401447
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and byte [ebp - 8], 0
push edi
xor eax, eax
lea edi, [ebp - 7]
cmp dword [0x41519c], eax
stosd dword es:[edi], eax
pop edi
je 0x401495
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push 0x4140b0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 8]
push dword [0x41519c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0x4152d8
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
leave
ret
xor eax, eax
leave
ret
Function at 0x401499
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4014ab
xor eax, eax
ret
shr eax, 4
and eax, 1
ret

Function at 0x401511
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x401592
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
and byte [ebp - 0x104], 0
push 0x40
mov edx, eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
cmp edx, 0xb7
pop edi
je 0x401592
cmp edx, 5
jne 0x40155f
push 7
pop eax
jmp 0x401594
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.00401597
pop ecx
test eax, eax
pop ecx
je 0x401592
lea eax, [ebp - 0x104]
push eax
call fcn.00401511
test eax, eax
pop ecx
jne 0x401592
push eax
push dword [ebp + 8]
call esi
neg eax
sbb eax, eax
inc eax
jmp 0x401594
xor eax, eax
pop esi
leave
ret

Function at 0x40166b
Capabilities:
Get file size

Disassembly:
push ebx
push esi
push edi
push 3
pop ebx
xor edi, edi
push 0x100
push edi
push dword [esp + 0x18]
call fcn.00401751
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x401726
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov ebx, eax
call fcn.00401a0a
mov ebp, eax
pop ecx
cmp ebp, ebx
jne 0x4016ad
push 0xd
pop ebx
jmp 0x40171e
push edi
push ebp
push esi
call fcn.004017f3
push 4
push 0x415100
push esi
call fcn.00401808
mov eax, dword [0x415100]
add esp, 0x18
cmp eax, edi
je 0x4016d7
push eax
call fcn.004071da
pop ecx
mov edi, eax
push dword [0x415100]
push edi
push esi
call fcn.00401808
push dword [0x415100]
push edi
call fcn.00401ad2
push dword [0x415100]
push edi
call fcn.00401b0a
mov ebx, eax
add esp, 0x1c
test ebx, ebx
jne 0x401713
mov eax, dword [0x415100]
lea eax, [eax + ebp + 4]
mov dword [0x415104], eax
test edi, edi
je 0x40171e
push edi
call fcn.004071ab
pop ecx
push esi
call fcn.0040184c
pop ecx
pop ebp
pop edi
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x401f1d
Capabilities:
Copy file
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
mov byte [ebp - 0x104], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push eax
push ebx
push 0x4140cc
push dword [0x4151c8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0x180
lea eax, [ebp - 0x104]
push 0x8101
push eax
call fcn.00401751
mov esi, eax
or eax, 0xffffffff
add esp, 0xc
cmp esi, eax
je 0x401fe1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.0040182a
push esi
call fcn.0040184c
add esp, 0x10
lea eax, [ebp - 0x214]
push ebx
push eax
lea eax, [ebp - 0x104]
push eax
call sub.LZ32.dll_LZOpenFileA
mov esi, eax
lea eax, [ebp - 0x18c]
push 0x1001
push eax
push dword [ebp + 8]
call sub.LZ32.dll_LZOpenFileA
mov edi, eax
push edi
push esi
call sub.LZ32.dll_LZCopy
push esi
mov ebx, eax
call sub.LZ32.dll_LZClose
push edi
call sub.LZ32.dll_LZClose
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401fe6
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
and byte [ebp - 0x104], 0
push esi
push edi
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push eax
push 0
push str.welcome
push dword [0x4151c8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push dword [ebp + 8]
push eax
call fcn.00401f1d
mov esi, eax
add esp, 0xc
test esi, esi
jl 0x40208d
push 0x100
lea eax, [ebp - 0x104]
push 0x8000
push eax
call fcn.00401751
mov edi, eax
lea eax, [esi + 1]
add esp, 0xc
test eax, eax
je 0x402066
push eax
call fcn.004071da
pop ecx
push esi
push eax
push edi
mov dword [0x4151ac], eax
call fcn.00401808
push edi
call fcn.0040184c
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
jmp 0x402090
or eax, 0xffffffff
pop edi
pop esi
leave
ret

Function at 0x402094
Capabilities:
Get common file path

Disassembly:
push esi
push 0x104
call fcn.004071da
pop ecx
xor esi, esi
push eax
push esi
push 0x4140ec
mov dword [0x41519c], eax
push dword [0x4151c8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [0x41519c]
call fcn.00401f1d
add esp, 0xc
test eax, eax
jge 0x4020f8
push esi
push esi
push str.LoadLanguage_Failed
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [0x41519c]
cmp eax, esi
je 0x4020f2
push eax
call fcn.004071ab
pop ecx
mov dword [0x41519c], esi
xor eax, eax
pop esi
ret
Function at 0x4030d2
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
and byte [ebp - 0x14], 0
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x13]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and byte [ebp - 0x118], 0
push 0x40
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x117]
push 5
rep stosd dword es:[edi], eax
push dword [ebp + 8]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.USER32.dll_GetWindow]
call edi
push dword [ebp + 0xc]
mov ebx, eax
lea eax, [ebp - 0x14]
push str.Dialog_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, 0x104
lea eax, [ebp - 0x118]
push esi
push eax
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.00401447
add esp, 0x1c
test eax, eax
jne 0x403156
lea eax, [ebp - 0x118]
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp byte [ebp - 0x118], 0
je 0x403175
cmp dword [ebp + 0x10], 0
jne 0x403175
lea eax, [ebp - 0x118]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
test ebx, ebx
je 0x4031b0
push 0xfffffffffffffff4
push ebx
call dword [sym.imp.USER32.dll_GetWindowLongA]
push esi
push dword [0x415148]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00401447
add esp, 0x10
test eax, eax
je 0x4031a7
push dword [0x415148]
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 2
push ebx
call edi
mov ebx, eax
jmp 0x403175
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
and byte [ebp - 0x104], 0
push esi
push edi
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
xor esi, esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x104]
push eax
call fcn.00405752
lea eax, [ebp - 0x104]
push eax
call fcn.00405791
pop ecx
lea eax, [ebp - 0x104]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 3
je 0x40321c
cmp eax, 2
jne 0x403248
cmp byte [ebp - 0x103], 0x3a
jne 0x403248
push 1
lea eax, [ebp - 0x104]
pop esi
push eax
call fcn.00403271
lea eax, [ebp - 0x104]
mov dword [esp], 0x414180
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x403265
xor eax, eax
test esi, esi
setne al
dec eax
dec eax
jmp 0x40326d
xor eax, eax
test esi, esi
sete al
inc eax
pop edi
pop esi
leave
ret
Function at 0x403a99
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and byte [ebp - 0x104], 0
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
and byte [ebp - 0x208], 0
push 0x40
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x207]
cmp dword [0x415164], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
je 0x403afb
push dword [0x41514c]
call fcn.00403417
cmp eax, dword [0x415118]
pop ecx
je 0x403afb
push 0x23
pop eax
mov dword [0x415138], eax
jmp 0x403c0e
push ebx
push esi
push dword [ebp + 8]
call fcn.00403c11
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
pop ecx
test eax, eax
mov dword [0x415138], eax
mov edi, str._spftw_d.pkg
jne 0x403bb1
cmp dword [0x4150ec], 0
jne 0x403bc0
push dword [0x41514c]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x403ba3
push 1
pop ebx
cmp dword [0x41510c], ebx
jl 0x403ba3
push ebx
lea eax, [ebp - 0x104]
push dword [0x415150]
push edi
push eax
call esi
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.004014b2
add esp, 0x18
test eax, eax
je 0x403b9a
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00405545
pop ecx
mov dword [0x415138], eax
pop ecx
inc ebx
cmp ebx, dword [0x41510c]
jle 0x403b5a
push dword [ebp + 8]
call fcn.00403ed2
pop ecx
mov dword [0x415138], eax
cmp eax, 0xfffffff6
jne 0x403bc0
mov dword [0x415140], 1
push 1
pop ebx
cmp dword [0x41510c], ebx
jl 0x403c0c
push ebx
lea eax, [ebp - 0x104]
push dword [0x415150]
push edi
push eax
call esi
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.004014b2
add esp, 0x18
test eax, eax
je 0x403bfe
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
inc ebx
cmp ebx, dword [0x41510c]
jle 0x403bcb
mov eax, dword [0x415138]
pop esi
pop ebx
pop edi
leave
ret
Function at 0x4041cb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
push esi
push edi
push 1
and byte [ebp - 0x110], 0
pop edx
push 0x40
xor eax, eax
pop esi
lea edi, [ebp - 0x10f]
mov ecx, esi
and dword [ebp - 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
and dword [ebp - 0xc], 0
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push edx
mov dword [ebp - 8], edx
push dword [0x415150]
stosb byte es:[edi], al
mov edi, str._spftw_d.pkg
lea eax, [ebp - 0x110]
push edi
push eax
call ebx
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.004014b2
add esp, 0x18
test eax, eax
je 0x404339
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x110]
push eax
call section..text
cmp dword [ebp - 4], 0
pop ecx
pop ecx
jl 0x404253
add dword [ebp - 0xc], eax
inc dword [ebp - 8]
jmp 0x404259
cmp dword [ebp - 4], 0xfffffff6
je 0x40426c
push dword [ebp - 8]
lea eax, [ebp - 0x110]
push dword [0x415150]
push edi
push eax
jmp 0x404218
and byte [ebp - 0x318], 0
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x317]
rep stosd dword es:[edi], eax
and byte [ebp - 0x41c], 0
mov ecx, esi
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x41b]
rep stosd dword es:[edi], eax
and byte [ebp - 0x214], 0
mov ecx, esi
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x213]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov esi, 0x104
lea eax, [ebp - 0x318]
push esi
mov edi, 0x13e
push eax
push edi
push dword [0x4150d8]
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x318]
push esi
push eax
push edi
push str.Strings
call fcn.00401447
add esp, 0x10
lea eax, [ebp - 0x214]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x214]
push 4
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0x41c]
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x41c]
push 0x10
push dword [0x415178]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp dword [ebp - 4], 0xfffffff6
pop edi
pop esi
pop ebx
jne 0x404346
xor eax, eax
leave
ret
push dword [ebp - 0xc]
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.00404359
add esp, 0xc
leave
ret
Function at 0x4046a9
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0xc]
push 0x100
push 0x8000
push dword [ebp + 8]
movzx ebx, word [esi + 0x1c]
call fcn.00401751
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
je 0x404731
and dword [ebp - 0x10], 0
push edi
xor eax, eax
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
mov ax, word [esi + 0x1a]
push eax
mov ax, word [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
test eax, eax
je 0x404727
and dword [ebp - 8], 0
xor eax, eax
lea edi, [ebp - 4]
stosd dword es:[edi], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
test eax, eax
je 0x404727
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
and ebx, 0x27
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop esi
xor eax, eax
pop ebx
leave
ret

Function at 0x404e3f
Capabilities:
Delete file
Move file
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x7e04
call fcn.00407d10
push ebx
push esi
push edi
push 4
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x404f3b
and byte [ebp - 0x104], al
push 0x40
pop ecx
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
and byte [ebp - 0x7e04], 0
mov ecx, 0x1f3f
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x7e03]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ebx, str.wininit.ini
stosb byte es:[edi], al
push ebx
lea eax, [ebp - 0x7e04]
push 0x7cff
mov edi, str.rename
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
mov esi, eax
lea eax, [ebp - 0x104]
push 0x104
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
jne 0x404eda
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test esi, esi
jne 0x404ef4
lea eax, [ebp - 0x104]
push ebx
push eax
push 0x414208
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x404f3b
lea eax, [ebp + esi - 0x7e04]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x414208
push eax
mov dword [ebp + 8], eax
call esi
push 0x414204
push dword [ebp + 8]
call esi
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call esi
push 0x4152dc
push dword [ebp + 8]
call esi
lea eax, [ebp - 0x7e04]
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionA]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret