joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cf580
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x577094]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x4cf63c
cmp byte [esi + 0x3d], 0
je 0x4cf63c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x4cf62a
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x4cf5f2
sub eax, 1
je 0x4cf5f6
sub eax, 2
jne 0x4cf62a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004eedbd
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4cf613
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.005144fb
add esp, 0x10
cmp edi, eax
jne 0x4cf62a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004eedbd
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004eedbd
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.004eedbd
mov esp, ebp
pop ebp
ret

Function at 0x4d0360
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54cf80
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x577094]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004eedcb
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.004d5914
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d19a0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54d1cd
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x577094]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax + 0x30]
mov esi, dword [eax + 4]
mov ecx, esi
mov dword [ebp - 0x10], esi
mov eax, dword [esi]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
call fcn.004d0ba0
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ebx, eax
test esi, esi
je 0x4d1a10
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
test eax, eax
je 0x4d1a10
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push ebx
lea eax, [ebp + 0x1c]
mov dword [ebp + 0x1c], 0
push eax
push 0x270f
push 0
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp + 0xc]
push eax
push edi
call fcn.004d28f0
mov ecx, dword [ebp + 0x20]
add esp, 0x1c
or dword [ecx], eax
test al, 2
jne 0x4d1a5a
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x24]
cmp eax, 0x45
jge 0x4d1a4d
add eax, 0x64
jmp 0x4d1a57
cmp eax, 0x64
jl 0x4d1a57
add eax, 0xfffff894
mov dword [ecx + 0x14], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20

Function at 0x4efc81
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4efcc0
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4efcc0
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4efcc0
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4efcc0
cmp dword [ecx + 0x74], 0xe
jbe 0x4efcc0
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x534d0a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00534902

Function at 0x534d15
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00534a8c

Function at 0x53ae56
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0053ad2a

Function at 0x53d743
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0053d101

Function at 0x549dc0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x549ded
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x549ded
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40124b
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 0x415084
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 0x40130b
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
lea eax, [ebp - 0xc]
push dword [0x416174]
mov dword [ebp - 0xc], 1
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0x415074
push dword [ebp - 4]
call ebx
push dword [0x416174]
call esi
push eax
push dword [0x416174]
call fcn.00401422
pop ecx
mov dword [0x4161e0], eax
pop ecx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push dword [0x416174]
mov dword [ebp - 8], edi
push eax
push 0
push 0x415064
push dword [ebp - 4]
call ebx
push dword [0x416174]
call esi
push eax
push dword [0x416174]
call fcn.00401422
pop ecx
mov dword [0x4161e4], eax
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push dword [0x416174]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push dword [0x416174]
call esi
push eax
push dword [0x416174]
call fcn.00401422
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
pop ecx
pop ecx
mov dword [0x4161e8], eax
push 0x415058
push dword [0x416174]
call ebx
push dword [0x416174]
call esi
push eax
push dword [0x416174]
call fcn.00401422
pop ecx
mov dword [0x4161f0], eax
pop ecx
push edi
push dword [0x416174]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push dword [0x416174]
call esi
push eax
push dword [0x416174]
call fcn.00401422
pop ecx
mov dword [0x4161ec], eax
pop ecx
push dword [0x416174]
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, dword [0x416174]
cmp byte [ecx + eax - 1], 0x5c
lea eax, [ecx + eax - 1]
jne 0x4013aa
and byte [eax], 0
push dword [0x416174]
call fcn.004014a9
test eax, eax
pop ecx
je 0x4013d7
push dword [0x416174]
call esi
push eax
push dword [0x416174]
call fcn.00401422
pop ecx
mov dword [0x4161f4], eax
pop ecx
jmp 0x40141d
push dword [0x4161e8]
push dword [0x416174]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x415050
push dword [0x416174]
call ebx
push dword [0x416174]
call esi
push eax
push dword [0x416174]
call fcn.00401422
push dword [0x416174]
mov dword [0x4161f4], eax
call fcn.00401521
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401457
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 [0x4161c8], eax
stosd dword es:[edi], eax
pop edi
je 0x4014a5
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push 0x4150b0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 8]
push dword [0x4161c8]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0x416304
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
leave
ret
xor eax, eax
leave
ret
Function at 0x4020d9
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 0x4150cc
push dword [0x4161f4]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0x180
lea eax, [ebp - 0x104]
push 0x8101
push eax
call fcn.004018df
mov esi, eax
or eax, 0xffffffff
add esp, 0xc
cmp esi, eax
je 0x40219d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.004019b8
push esi
call fcn.004019da
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 0x4021a2
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 0x4150d0
push dword [0x4161f4]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push dword [ebp + 8]
push eax
call fcn.004020d9
mov esi, eax
add esp, 0xc
test esi, esi
jl 0x402249
push 0x100
lea eax, [ebp - 0x104]
push 0x8000
push eax
call fcn.004018df
mov edi, eax
lea eax, [esi + 1]
add esp, 0xc
test eax, eax
je 0x402222
push eax
call fcn.0040765a
pop ecx
push esi
push eax
push edi
mov dword [0x4161d8], eax
call fcn.00401996
push edi
call fcn.004019da
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
jmp 0x40224c
or eax, 0xffffffff
pop edi
pop esi
leave
ret

Function at 0x402250
Capabilities:
Get common file path

Disassembly:
push esi
push 0x104
call fcn.0040765a
pop ecx
xor esi, esi
push eax
push esi
push 0x4150ec
mov dword [0x4161c8], eax
push dword [0x4161f4]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [0x4161c8]
call fcn.004020d9
add esp, 0xc
test eax, eax
jge 0x4022b4
push esi
push esi
push 0x4150d8
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [0x4161c8]
cmp eax, esi
je 0x4022ae
push eax
call fcn.0040762b
pop ecx
mov dword [0x4161c8], esi
xor eax, eax
pop esi
ret
Function at 0x40354a
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 0x41513c
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.00401457
add esp, 0x1c
test eax, eax
jne 0x4035ce
lea eax, [ebp - 0x118]
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp byte [ebp - 0x118], 0
mov esi, dword [sym.imp.USER32.dll_SetWindowTextA]
je 0x4035ef
cmp dword [ebp + 0x10], 0
jne 0x4035ef
lea eax, [ebp - 0x118]
push eax
push dword [ebp + 8]
call esi
test ebx, ebx
je 0x40362a
push 0xfffffffffffffff4
push ebx
call dword [sym.imp.USER32.dll_GetWindowLongA]
push 0x208
push dword [0x416174]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00401457
add esp, 0x10
test eax, eax
je 0x403621
push dword [0x416174]
push ebx
call esi
push 2
push ebx
call edi
mov ebx, eax
jmp 0x4035ef
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret

Function at 0x403631
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.00405bda
lea eax, [ebp - 0x104]
push eax
call fcn.00405c19
pop ecx
lea eax, [ebp - 0x104]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 3
je 0x403696
cmp eax, 2
jne 0x4036c2
cmp byte [ebp - 0x103], 0x3a
jne 0x4036c2
push 1
lea eax, [ebp - 0x104]
pop esi
push eax
call fcn.004036eb
lea eax, [ebp - 0x104]
mov dword [esp], 0x415180
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 0x4036df
xor eax, eax
test esi, esi
setne al
dec eax
dec eax
jmp 0x4036e7
xor eax, eax
test esi, esi
sete al
inc eax
pop edi
pop esi
leave
ret
Function at 0x403f29
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 [0x416190], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
je 0x403f8b
push dword [0x416178]
call fcn.00403891
cmp eax, dword [0x416118]
pop ecx
je 0x403f8b
push 0x23
pop eax
mov dword [0x416138], eax
jmp 0x40409e
push ebx
push esi
push dword [ebp + 8]
call fcn.004040a1
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
pop ecx
test eax, eax
mov dword [0x416138], eax
mov edi, 0x4150b8
jne 0x404041
cmp dword [0x4160ec], 0
jne 0x404050
push dword [0x416178]
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 0x404033
push 1
pop ebx
cmp dword [0x41610c], ebx
jl 0x404033
push ebx
lea eax, [ebp - 0x104]
push dword [0x41617c]
push edi
push eax
call esi
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.004014c2
add esp, 0x18
test eax, eax
je 0x40402a
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.004059cd
pop ecx
mov dword [0x416138], eax
pop ecx
inc ebx
cmp ebx, dword [0x41610c]
jle 0x403fea
push dword [ebp + 8]
call fcn.00404332
pop ecx
mov dword [0x416138], eax
cmp eax, 0xfffffff6
jne 0x404050
mov dword [0x416140], 1
push 1
pop ebx
cmp dword [0x41610c], ebx
jl 0x40409c
push ebx
lea eax, [ebp - 0x104]
push dword [0x41617c]
push edi
push eax
call esi
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.004014c2
add esp, 0x18
test eax, eax
je 0x40408e
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
inc ebx
cmp ebx, dword [0x41610c]
jle 0x40405b
mov eax, dword [0x416138]
pop esi
pop ebx
pop edi
leave
ret
Function at 0x404653
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 [0x41617c]
stosb byte es:[edi], al
mov edi, 0x4150b8
lea eax, [ebp - 0x110]
push edi
push eax
call ebx
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.004014c2
add esp, 0x18
test eax, eax
je 0x4047c1
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 0x4046db
add dword [ebp - 0xc], eax
inc dword [ebp - 8]
jmp 0x4046e1
cmp dword [ebp - 4], 0xfffffff6
je 0x4046f4
push dword [ebp - 8]
lea eax, [ebp - 0x110]
push dword [0x41617c]
push edi
push eax
jmp 0x4046a0
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 [0x4160d8]
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x318]
push esi
push eax
push edi
push 0x415178
call fcn.00401457
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 [0x4161a4]
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 0x4047ce
xor eax, eax
leave
ret
push dword [ebp - 0xc]
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.004047e1
add esp, 0xc
leave
ret
Function at 0x404b31
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.004018df
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
je 0x404bb9
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 0x404baf
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 0x404baf
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 0x4052c7
Capabilities:
Delete file
Move file
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x7e04
call fcn.00408190
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 0x4053c3
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, 0x415214
stosb byte es:[edi], al
push ebx
lea eax, [ebp - 0x7e04]
push 0x7cff
mov edi, 0x41520c
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 0x405362
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test esi, esi
jne 0x40537c
lea eax, [ebp - 0x104]
push ebx
push eax
push 0x415208
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x4053c3
lea eax, [ebp + esi - 0x7e04]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x415208
push eax
mov dword [ebp + 8], eax
call esi
push 0x415204
push dword [ebp + 8]
call esi
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call esi
push 0x416308
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
Function at 0x405c56
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x117]
mov byte [ebp - 0x118], bl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x21b]
mov byte [ebp - 0x21c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x415240
push 0x415230
stosb byte es:[edi], al
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov cl, byte [eax]
cmp cl, 0x5c
jne 0x405ce7
cmp byte [eax + 1], cl
jne 0x405ce7
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x21c]
push 0x4151dc
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x405d03
mov al, byte [eax + 1]
mov byte [ebp - 0x118], cl
mov byte [ebp - 0x117], al
mov byte [ebp - 0x116], 0x5c
mov byte [ebp - 0x115], bl
cmp dword [ebp - 0x14], ebx
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
je 0x405d45
cmp byte [ebp - 0x21c], bl
lea eax, [ebp - 0x21c]
jne 0x405d22
lea eax, [ebp - 0x118]
push esi
push edi
push dword [ebp + 0xc]
push eax
call dword [ebp - 0x14]
cmp eax, ebx
mov dword [ebp + 8], eax
jne 0x405ddb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x405ddb
cmp byte [ebp - 0x21c], bl
je 0x405d6c
lea eax, [ebp - 0x118]
push 0x104
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00405de3
add esp, 0xc
test eax, eax
je 0x405dde
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x405dc6
push dword [ebp - 0xc]
mov dword [edi + 4], ebx
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00405e71
push dword [ebp - 0x10]
mov dword [edi], eax
mov dword [esi + 4], ebx
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00405e71
mov dword [esi], eax
mov ecx, eax
mov eax, dword [ebp + 0xc]
add esp, 0x18
mov dword [eax], ecx
mov ecx, dword [esi + 4]
mov dword [eax + 4], ecx
cmp byte [ebp - 0x21c], bl
je 0x405ddb
lea eax, [ebp - 0x118]
push eax
call fcn.00405e9a
pop ecx
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret