joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403560
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.00401457
add esp, 0x1c
test eax, eax
jne 0x4035e4
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 0x403605
cmp dword [ebp + 0x10], 0
jne 0x403605
lea eax, [ebp - 0x118]
push eax
push dword [ebp + 8]
call esi
test ebx, ebx
je 0x403640
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 0x403637
push dword [0x416174]
push ebx
call esi
push 2
push ebx
call edi
mov ebx, eax
jmp 0x403605
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret

Function at 0x403647
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.00405bf0
lea eax, [ebp - 0x104]
push eax
call fcn.00405c2f
pop ecx
lea eax, [ebp - 0x104]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 3
je 0x4036ac
cmp eax, 2
jne 0x4036d8
cmp byte [ebp - 0x103], 0x3a
jne 0x4036d8
push 1
lea eax, [ebp - 0x104]
pop esi
push eax
call fcn.00403701
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 0x4036f5
xor eax, eax
test esi, esi
setne al
dec eax
dec eax
jmp 0x4036fd
xor eax, eax
test esi, esi
sete al
inc eax
pop edi
pop esi
leave
ret
Function at 0x403f3f
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 0x403fa1
push dword [0x416178]
call fcn.004038a7
cmp eax, dword [0x416118]
pop ecx
je 0x403fa1
push 0x23
pop eax
mov dword [0x416138], eax
jmp 0x4040b4
push ebx
push esi
push dword [ebp + 8]
call fcn.004040b7
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
pop ecx
test eax, eax
mov dword [0x416138], eax
mov edi, str._spftw_d.pkg
jne 0x404057
cmp dword [0x4160ec], 0
jne 0x404066
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 0x404049
push 1
pop ebx
cmp dword [0x41610c], ebx
jl 0x404049
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 0x404040
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.004059e3
pop ecx
mov dword [0x416138], eax
pop ecx
inc ebx
cmp ebx, dword [0x41610c]
jle 0x404000
push dword [ebp + 8]
call fcn.00404348
pop ecx
mov dword [0x416138], eax
cmp eax, 0xfffffff6
jne 0x404066
mov dword [0x416140], 1
push 1
pop ebx
cmp dword [0x41610c], ebx
jl 0x4040b2
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 0x4040a4
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
inc ebx
cmp ebx, dword [0x41610c]
jle 0x404071
mov eax, dword [0x416138]
pop esi
pop ebx
pop edi
leave
ret
Function at 0x404669
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, str._spftw_d.pkg
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 0x4047d7
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 0x4046f1
add dword [ebp - 0xc], eax
inc dword [ebp - 8]
jmp 0x4046f7
cmp dword [ebp - 4], 0xfffffff6
je 0x40470a
push dword [ebp - 8]
lea eax, [ebp - 0x110]
push dword [0x41617c]
push edi
push eax
jmp 0x4046b6
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 str.Strings
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 0x4047e4
xor eax, eax
leave
ret
push dword [ebp - 0xc]
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.004047f7
add esp, 0xc
leave
ret
Function at 0x404b47
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 0x404bcf
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 0x404bc5
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 0x404bc5
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 0x4052dd
Capabilities:
Delete file
Move file
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x7e04
call fcn.004081b0
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 0x4053d9
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 0x405378
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test esi, esi
jne 0x405392
lea eax, [ebp - 0x104]
push ebx
push eax
push 0x415208
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x4053d9
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 0x405416
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, word [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push 2
push eax
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x4054b3
mov cx, word [eax + 0xe]
cmp cx, 8
ja 0x4054b3
push 1
pop esi
shl esi, cl
movzx edi, si
lea eax, [edi*4 + 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [ebp + 8]
mov ebx, eax
mov eax, dword [ecx]
add eax, ecx
test ebx, ebx
je 0x4054b3
test si, si
mov word [ebx], 0x300
mov word [ebx + 2], si
jbe 0x4054a2
lea ecx, [ebx + 5]
mov dl, byte [eax + 2]
mov byte [ecx - 1], dl
mov dl, byte [eax + 1]
mov byte [ecx], dl
mov dl, byte [eax]
mov byte [ecx + 1], dl
and byte [ecx + 2], 0
add ecx, 4
add eax, 4
dec edi
jne 0x405485
push ebx
call dword [sym.imp.GDI32.dll_CreatePalette]
push ebx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405522
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push 2
push 0x76
push dword [0x4160d8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4055c6
push eax
push dword [0x4160d8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4055c6
push ebx
push edi
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_GetDC]
push 1
mov cl, byte [esi + 0xe]
pop edi
mov ebx, eax
push 0
push dword [0x4161f8]
shl edi, cl
push ebx
call dword [sym.imp.GDI32.dll_SelectPalette]
push ebx
call dword [sym.imp.GDI32.dll_RealizePalette]
mov ecx, dword [esi]
push 0
movzx eax, di
push esi
lea eax, [ecx + eax*4]
add eax, esi
push eax
push 4
push esi
push ebx
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
push eax
push 0
push 0x172
push 0x85
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push ebx
mov esi, eax
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_ReleaseDC]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
pop edi
pop ebx
pop esi
ret

Function at 0x40566a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, eax
dec eax
test ecx, ecx
je 0x4056a4
mov ecx, dword [ebp + 8]
push esi
lea edx, [eax + 1]
mov eax, dword [ebp + 0x10]
movzx esi, byte [ecx]
and eax, 0xff
xor eax, esi
mov esi, dword [0x41630c]
inc ecx
mov eax, dword [esi + eax*4]
mov esi, dword [ebp + 0x10]
shr esi, 8
xor esi, eax
dec edx
mov dword [ebp + 0x10], esi
jne 0x40567e
pop esi
mov eax, dword [ebp + 0x10]
pop ebp
ret
Function at 0x4056a9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
or dword [ebp - 0xc], 0xffffffff
cmp dword [ebp + 8], 0xffffffff
je 0x405727
push ebx
push esi
mov esi, 0x8000
push edi
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
call fcn.004081df
pop ecx
mov dword [ebp - 8], eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
push eax
push esi
push dword [ebp - 8]
push dword [ebp + 8]
call edi
test eax, eax
je 0x40571b
cmp dword [ebp - 4], ebx
je 0x40571b
push dword [ebp - 0xc]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0040566a
add esp, 0xc
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push ebx
push eax
push esi
push dword [ebp - 8]
push dword [ebp + 8]
jmp 0x4056ee
push dword [ebp - 8]
call fcn.004081ed
pop ecx
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
not eax
leave
ret

Function at 0x40598e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov byte [ebp - 4], 0x13
mov byte [ebp - 3], 0x35
mov byte [ebp - 2], 0x86
mov byte [ebp - 1], 7
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
push ebx
call fcn.004081df
mov esi, eax
pop ecx
test esi, esi
je 0x4059dc
xor edx, edx
test ebx, ebx
jbe 0x4059dc
sub edi, esi
mov eax, edx
lea ecx, [edx + esi]
and eax, 3
mov al, byte [ebp + eax - 4]
xor al, byte [edi + ecx]
inc edx
cmp edx, ebx
mov byte [ecx], al
jb 0x4059c6
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4059e3
Capabilities:
Get file size

Disassembly:
push esi
xor esi, esi
push edi
push esi
push 0x80
push 3
push esi
push 1
push 0xc0000000
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x405a65
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
push esi
push esi
push 4
push esi
push edi
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
cmp ebx, esi
je 0x405a5d
push ebp
push esi
push esi
push esi
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebp, eax
cmp ebp, esi
je 0x405a55
push dword [esp + 0x18]
push dword [esp + 0x18]
push ebp
call fcn.00405a6a
add esp, 0xc
mov esi, eax
push ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, esi
pop edi
pop esi
ret
Function at 0x405c6c
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 str.GetDiskFreeSpaceExA
push str.kernel32.dll
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 0x405cfd
cmp byte [eax + 1], cl
jne 0x405cfd
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 0x405d19
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 0x405d5b
cmp byte [ebp - 0x21c], bl
lea eax, [ebp - 0x21c]
jne 0x405d38
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 0x405df1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x405df1
cmp byte [ebp - 0x21c], bl
je 0x405d82
lea eax, [ebp - 0x118]
push 0x104
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00405df9
add esp, 0xc
test eax, eax
je 0x405df4
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 0x405ddc
push dword [ebp - 0xc]
mov dword [edi + 4], ebx
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00405e87
push dword [ebp - 0x10]
mov dword [edi], eax
mov dword [esi + 4], ebx
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00405e87
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 0x405df1
lea eax, [ebp - 0x118]
push eax
call fcn.00405eb0
pop ecx
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4064c4
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x20]
push 0xfffffffffffffff4
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_GetWindowLongA]
mov ebx, dword [eax]
mov esi, dword [eax + 0x30]
push ebx
mov dword [ebp - 4], esi
mov dword [ebp - 0x24], ebx
call edi
test esi, esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
je 0x406526
lea eax, [ebp - 0x24]
mov dword [ebp - 0x1c], 0xffffff37
push eax
push 0
push 0x4e
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [ebp - 0x18], 0
jne 0x40665d
mov eax, dword [ebp - 4]
push 0
push dword [eax]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
cmp dword [esi], eax
jne 0x4065e5
push esi
push 0x4073c9
push ebx
mov dword [ebp - 0x14], eax
push dword [esi + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0x13d
mov dword [ebp - 8], 0xc1
push dword [esi + 8]
call fcn.00406071
add esp, 0x14
mov dword [ebp + 0xc], eax
test eax, eax
je 0x406660
push 0xfffffffffffffff0
push eax
call edi
and eax, 0x7b30ff7f
or eax, 0x40000000
push eax
push 0xfffffffffffffff0
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 0xffffffffffffffec
push dword [ebp + 0xc]
call edi
and ax, 0xfefe
push eax
push 0xffffffffffffffec
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetWindowLongA]
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetParent]
mov eax, dword [esi + 4]
and eax, 2
test al, al
jne 0x4065bf
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x10], 0x2c
mov dword [ebp - 8], 0x8f
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.USER32.dll_MapDialogRect]
push 0x214
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
lea eax, [ebp - 0x24]
mov dword [ebp - 0x1c], 0xffffff38
push eax
push 0
push 0x4e
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [ebp - 0x18], 0xffffffff
je 0x40665d
xor edi, edi
cmp dword [ebp - 0x18], edi
je 0x406618
push dword [ebp - 0x18]
push dword [ebp + 8]
call fcn.00406688
pop ecx
pop ecx
jmp 0x406660
mov eax, dword [ebp + 8]
push 1
push edi
push ebx
mov dword [eax + 0x30], esi
call dword [sym.imp.USER32.dll_InvalidateRect]
push 5
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
call dword [sym.imp.USER32.dll_SetActiveWindow]
push edi
push edi
push dword [esi]
mov edi, dword [sym.imp.USER32.dll_GetNextDlgTabItem]
call edi
test eax, eax
jne 0x406652
push eax
push eax
push ebx
call edi
test eax, eax
je 0x406655
push eax
jmp 0x406657
push dword [esi]
call dword [sym.imp.USER32.dll_SetFocus]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4066dd
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
lea edi, [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 8]
push 0xe
mov dword [ebp - 0x90], ebx
stosd dword es:[edi], eax
pop ecx
lea edi, [ebp - 0x8c]
push dword [ebp + 8]
rep stosd dword es:[edi], eax
call dword [sym.imp.USER32.dll_GetDC]
push 0xc
mov dword [ebp - 4], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x53]
mov byte [ebp - 0x54], bl
rep stosd dword es:[edi], eax
push ebx
push ebx
push 0x31
push dword [ebp + 8]
stosb byte es:[edi], al
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp - 0x90]
push ecx
push 0x3c
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
lea eax, [ebp - 0x90]
mov byte [ebp - 0x75], 0x20
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push dword [ebp - 4]
call edi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x54]
push 0x32
push eax
push 0x3ee
push dword [ebp + 8]
call esi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.004075d0
pop ecx
push eax
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_GetTextExtentPointA]
push dword [ebp - 0x20]
push dword [ebp - 4]
call edi
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 4]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_ReleaseDC]
lea eax, [ebp - 0x1c]
push eax
push 0x3ed
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x1c]
push eax
push edi
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [ebp - 8]
push 0xfffffffffffffffe
mov eax, ecx
add ecx, 2
cdq
sub eax, edx
pop edx
sar eax, 1
sub edx, eax
mov eax, dword [ebp - 0xc]
add dword [ebp - 0x18], edx
push ebx
add eax, 5
push ecx
push eax
mov dword [ebp - 0x1c], ebx
push dword [ebp - 0x18]
push ebx
push 0x3ee
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
pop edi
pop esi
pop ebx
leave
ret