joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403a18
Capabilities:
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
mov edi, eax
mov ecx, edi
call fcn.00403ec9
test al, al
je 0x403a33
xor eax, eax
jmp 0x403be5
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
xor ecx, ecx
cmp eax, 2
push esi
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
jl 0x403a77
cmp eax, ecx
mov esi, 0x80070057
jge 0x403a58
push esi
call fcn.0040270b
mov eax, dword [edi]
cmp byte [eax], 0x5c
jne 0x403a77
cmp dword [eax - 0xc], 1
jge 0x403a6b
push esi
call fcn.0040270b
mov eax, dword [edi]
cmp byte [eax + 1], 0x5c
mov byte [ebp - 1], 1
je 0x403a7b
mov byte [ebp - 1], 0
push ebx
mov ebx, 0x4188b0
push ebx
lea esi, [ebp - 0xc]
call fcn.004029c8
mov eax, esi
push eax
lea eax, [ebp - 0x20]
push edi
push eax
call fcn.00403c14
mov eax, dword [ebp - 0xc]
add esp, 0xc
add eax, 0xfffffff0
call fcn.00402515
cmp byte [ebp - 1], 0
je 0x403af9
push 0
lea edi, [ebp - 0x20]
call fcn.00404c88
push 0
call fcn.00404c88
push 0x4187ec
lea esi, [ebp - 0xc]
call fcn.004029c8
xor eax, eax
cmp dword [ebp - 0x1c], eax
jle 0x403b03
mov esi, dword [ebp - 0x20]
mov eax, dword [esi]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.004028d2
lea eax, [ebp - 0xc]
mov edi, esi
call fcn.00402393
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00402515
jmp 0x403afc
mov esi, dword [ebp - 0x20]
xor eax, eax
cmp dword [ebp - 0x1c], eax
jg 0x403b12
push eax
push eax
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, dword [esi]
sub eax, 0x10
call fcn.0040252d
mov esi, eax
mov eax, dword [ebp - 0x1c]
xor edi, edi
add esi, 0x10
inc edi
dec eax
cmp eax, edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], eax
jle 0x403bd1
lea eax, [esi - 0x10]
call fcn.0040252d
add eax, 0x10
mov ecx, ebx
mov dword [ebp - 8], eax
call fcn.004023f4
push eax
push ebx
lea eax, [ebp - 8]
push eax
call fcn.004028d2
mov eax, edi
lea ecx, [ebp - 0x20]
call fcn.00404d14
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 8]
push eax
call fcn.004028d2
push 0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x403b8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov dword [ebp - 0x14], eax
jne 0x403be8
mov ecx, ebx
call fcn.004023f4
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
call fcn.004028d2
mov eax, edi
lea ecx, [ebp - 0x20]
call fcn.00404d14
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.004028d2
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00402515
mov esi, dword [ebp - 0xc]
inc edi
cmp edi, dword [ebp - 0x10]
jl 0x403b36
lea eax, [esi - 0x10]
call fcn.00402515
lea edi, [ebp - 0x20]
call fcn.00404cdf
xor eax, eax
pop ebx
pop esi
pop edi
leave
ret
cmp edi, 1
jle 0x403bf4
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00402515
lea eax, [esi - 0x10]
call fcn.00402515
lea edi, [ebp - 0x20]
call fcn.00404cdf
mov eax, dword [ebp - 0x14]
jmp 0x403be3
Function at 0x403fec
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x41b040]
xor eax, ebp
push ebx
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x70]
mov esi, ecx
call fcn.0040e294
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 3
push 0x80000000
call fcn.0040233c
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x88], eax
jne 0x40403e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4040db
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
sub edi, dword [ebp + 8]
mov esi, 0xc000
push esi
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
call fcn.00404d35
push ebx
jmp 0x40409a
mov ebx, dword [ebp - 0x80]
test ebx, ebx
je 0x4040b2
mov eax, dword [ebp - 0x7c]
lea ecx, [ebx + eax]
cmp ecx, edi
mov byte [ebp - 0x71], 0
jbe 0x404084
mov ebx, edi
sub ebx, eax
mov dword [ebp - 0x80], ebx
mov byte [ebp - 0x71], 1
push dword [ebp - 0x78]
lea eax, [ebp - 0x70]
call fcn.0040e121
cmp byte [ebp - 0x71], 0
jne 0x4040b2
add dword [ebp - 0x7c], ebx
push 0
lea eax, [ebp - 0x80]
push eax
push esi
push dword [ebp - 0x78]
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404064
lea esi, [ebp - 0x70]
call fcn.0040e1bb
mov eax, esi
call fcn.0040e23d
push dword [ebp - 0x78]
mov esi, eax
call fcn.00415c18
pop ecx
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00415ea8
leave
ret
Function at 0x404324
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x41b040]
push ebx
push esi
push edi
xor eax, ebp
mov edi, ecx
push str.SystemFolder
lea esi, [ebp - 0x7c]
mov dword [ebp + 0x8c], eax
mov dword [ebp - 0x80], edi
call fcn.004029c8
mov eax, dword [eax]
mov edi, dword [edi]
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
call edi
mov ebx, eax
mov eax, dword [ebp - 0x7c]
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
call fcn.00402515
test bl, bl
je 0x4043a3
push 0x104
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov byte [ebp + eax - 0x78], 0x5c
mov byte [ebp + eax - 0x77], 0
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x80]
call fcn.00402497
jmp 0x404502
push str.WindowsFolder
lea esi, [ebp - 0x7c]
call fcn.004029c8
mov eax, dword [eax]
mov esi, dword [ebp - 0x80]
mov ecx, dword [esi]
push eax
push ecx
call edi
mov ebx, eax
mov eax, dword [ebp - 0x7c]
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
call fcn.00402515
test bl, bl
je 0x4043f2
push 0x104
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov byte [ebp + eax - 0x78], 0x5c
mov byte [ebp + eax - 0x77], 0
lea eax, [ebp - 0x78]
push eax
push esi
jmp 0x404399
push str.WindowsVolume
lea esi, [ebp - 0x7c]
call fcn.004029c8
mov eax, dword [eax]
mov ecx, dword [ebp - 0x80]
mov ecx, dword [ecx]
push eax
push ecx
call edi
mov ebx, eax
mov eax, dword [ebp - 0x7c]
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
call fcn.00402515
test bl, bl
je 0x404439
push 0x104
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov byte [ebp - 0x75], 0
jmp 0x404392
mov ebx, dword [ebp - 0x80]
mov eax, dword [ebx]
push str.TempFolder
push eax
call edi
test eax, eax
jne 0x404468
lea eax, [ebp - 0x78]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov byte [ebp + eax - 0x78], 0
lea eax, [ebp - 0x78]
push eax
push ebx
jmp 0x404399
xor esi, esi
mov eax, dword [esi*4 + 0x41b074]
mov ecx, dword [ebx]
push eax
push ecx
call edi
test eax, eax
je 0x404481
inc esi
cmp esi, 0xa
jb 0x40446a
cmp esi, 0xa
jae 0x404502
lea eax, [ebp - 0x7c]
push eax
push dword [esi*4 + 0x4186ec]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x4044a6
mov edi, ebx
call fcn.0040451a
jmp 0x404502
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
and dword [ebp - 0x80], 0
mov esi, eax
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [ebp - 0x80]
push dword [ebp - 0x7c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test esi, esi
je 0x4044fb
lea eax, [ebp - 0x78]
push eax
push ebx
call fcn.00402497
mov eax, dword [ebx]
mov eax, dword [eax - 0xc]
lea esi, [eax - 1]
mov edi, ebx
call fcn.004027e2
cmp al, 0x5c
je 0x404502
push 0x5c
mov eax, ebx
call fcn.00404fa7
jmp 0x404502
mov eax, ebx
call fcn.00402888
mov ecx, dword [ebp + 0x8c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415ea8
add ebp, 0x90
leave
ret
Function at 0x40451a
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x108
mov eax, dword [0x41b040]
xor eax, ebp
push ebx
push esi
mov dword [ebp + 0x84], eax
call fcn.00403131
test al, al
jne 0x4045bc
mov eax, dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push str.ProgramFilesFolder
push eax
call esi
test eax, eax
mov ebx, str.AppDataFolder
je 0x404571
mov eax, dword [edi]
push str.ProgramFiles
push eax
call esi
test eax, eax
je 0x404571
mov eax, dword [edi]
push ebx
push eax
call esi
test eax, eax
jne 0x4045bc
mov eax, dword [edi]
push ebx
push eax
call esi
test eax, eax
mov eax, str.APPDATA
je 0x404585
mov eax, str.PROGRAMFILES
push 0x104
lea ecx, [ebp - 0x80]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jbe 0x40459f
mov byte [ebp + eax - 0x80], 0x5c
inc eax
mov byte [ebp + eax - 0x80], 0
lea eax, [ebp - 0x80]
push eax
push edi
call fcn.00402497
mov eax, dword [edi]
xor ecx, ecx
cmp dword [eax - 0xc], ecx
setne cl
mov al, cl
jmp 0x4045c5
mov eax, edi
call fcn.00402888
xor al, al
mov ecx, dword [ebp + 0x84]
pop esi
xor ecx, ebp
pop ebx
call fcn.00415ea8
add ebp, 0x88
leave
ret

Function at 0x4045dc
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x41b040]
and dword [ebp - 0x80], 0
and dword [ebp - 0x7c], 0
and dword [ebp - 0x78], 0
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x68]
push eax
push 0x64
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov dword [ebp - 0x6c], eax
xor edi, edi
lea esi, [ebp + edi - 0x68]
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x40464d
push esi
lea esi, [ebp - 0x74]
call fcn.004029c8
mov eax, esi
push eax
lea esi, [ebp - 0x80]
call fcn.00404c41
mov eax, dword [ebp - 0x74]
add eax, 0xfffffff0
call fcn.00402515
jmp 0x40464d
cmp byte [ebp + edi - 0x68], 0
je 0x404652
inc edi
cmp edi, dword [ebp - 0x6c]
jb 0x404645
inc edi
cmp edi, dword [ebp - 0x6c]
jb 0x404614
mov eax, dword [ebp - 0x70]
lea edi, [ebp - 0x80]
call fcn.00404bfb
lea edi, [ebp - 0x80]
call fcn.00404cdf
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x70]
pop edi
xor ecx, ebp
pop esi
call fcn.00415ea8
leave
ret
Function at 0x40467c
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push 0x3c
xor ebx, ebx
lea eax, [ebp - 0x3c]
push ebx
push eax
call fcn.00416080
add esp, 0xc
push 0x64
pop eax
lea ecx, [ebp - 0x3c]
push ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push ebx
push eax
mov dword [ebp - 0x3c], 0x3c
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
jne 0x4046ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40479d
push edi
push dword [ebp - 0x2c]
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp - 0x28]
call fcn.00402321
mov edi, dword [ebp + 0x14]
call fcn.00402393
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00402515
push dword [ebp - 0x10]
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00402321
mov edi, dword [ebp + 0x18]
call fcn.00402393
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00402515
cmp dword [ebp - 0x20], ebx
je 0x40473a
push dword [ebp - 0x20]
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00402321
mov edi, dword [ebp + 0x1c]
call fcn.00402393
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00402515
cmp dword [ebp - 0x18], ebx
je 0x404761
push dword [ebp - 0x18]
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00402321
mov edi, dword [ebp + 0x20]
call fcn.00402393
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00402515
cmp dword [ebp - 8], ebx
je 0x404788
push dword [ebp - 8]
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00402321
mov edi, dword [ebp + 0x24]
call fcn.00402393
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00402515
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov ax, word [ebp - 0x24]
mov ecx, dword [ebp + 0x10]
mov word [ecx], ax
xor eax, eax
pop edi
pop ebx
leave
ret

Function at 0x4047a0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x41b208]
push esi
push edi
mov ecx, 0x41b208
call dword [eax + 0xc]
mov edi, dword [ebp + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
lea esi, [eax - 1]
call fcn.004027e2
cmp al, 0x5c
jne 0x4047f4
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
lea ecx, [ebp + 0xc]
dec eax
push ecx
mov esi, edi
call fcn.004027fd
lea edi, [ebp - 4]
call fcn.00402393
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.00402515
jmp 0x4047fe
mov eax, edi
lea edi, [ebp - 4]
call fcn.00402393
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [esi]
mov edx, dword [eax - 0xc]
cmp edx, dword [ecx - 0xc]
jge 0x40484c
push 0x5c
call fcn.00404ae7
lea ecx, [ebp - 8]
push ecx
call fcn.004027fd
mov eax, dword [ebp - 8]
cmp dword [eax - 0xc], 0
je 0x40483e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.004047a0
pop ecx
pop ecx
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00402515
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00402515
pop edi
pop esi
leave
ret
Function at 0x404858
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x154
mov eax, dword [0x41b040]
and dword [ebp - 0xd0], 0
push ebx
mov ebx, dword [ebp + 0x7c]
push esi
xor eax, ebp
push edi
mov dword [ebp + 0x70], eax
xor eax, eax
push 0x4f
pop ecx
lea edi, [ebp - 0xcc]
rep stosd dword es:[edi], eax
mov eax, dword [ebx]
sub eax, 0x10
mov dword [ebp - 0xe0], ebx
call fcn.0040252d
add eax, 0x10
mov esi, 0x418674
mov ecx, esi
mov dword [ebp - 0xd8], eax
call fcn.004023f4
push eax
push esi
lea eax, [ebp - 0xd8]
push eax
call fcn.004028d2
lea eax, [ebp - 0xd0]
push eax
push dword [ebp - 0xd8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0xdc], eax
je 0x404a2b
cmp byte [ebp - 0xa4], 0x2e
jne 0x40491a
cmp byte [ebp - 0xa3], 0
je 0x404900
cmp byte [ebp - 0xa3], 0x2e
jne 0x40491a
cmp byte [ebp - 0xa2], 0
jne 0x40491a
lea eax, [ebp - 0xd0]
push eax
push dword [ebp - 0xdc]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov edi, eax
jmp 0x404a23
test byte [ebp - 0xd0], 0x10
je 0x4049d4
mov eax, dword [ebx]
sub eax, 0x10
call fcn.0040252d
add eax, 0x10
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0xd4], eax
call fcn.004023f4
push eax
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0xd4]
push eax
call fcn.004028d2
mov esi, 0x4188b0
mov ecx, esi
call fcn.004023f4
push eax
push esi
lea eax, [ebp - 0xd4]
push eax
call fcn.004028d2
lea eax, [ebp - 0xd0]
push eax
push dword [ebp - 0xdc]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov edi, eax
lea eax, [ebp - 0xd4]
push eax
call fcn.00404858
mov eax, dword [ebp - 0xd4]
mov ebx, dword [eax - 0xc]
pop ecx
push 0
dec ebx
lea eax, [ebp - 0xd4]
call fcn.00402353
lea esi, [ebp - 0xd4]
call fcn.0040233c
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov eax, dword [ebp - 0xd4]
add eax, 0xfffffff0
call fcn.00402515
mov ebx, dword [ebp - 0xe0]
jmp 0x404a23
mov eax, ebx
lea edi, [ebp - 0xd8]
call fcn.00402393
lea ecx, [ebp - 0xa4]
call fcn.004023f4
push eax
lea eax, [ebp - 0xa4]
push eax
mov eax, edi
push eax
call fcn.004028d2
lea eax, [ebp - 0xd0]
push eax
push dword [ebp - 0xdc]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea esi, [ebp - 0xd8]
mov edi, eax
call fcn.0040233c
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test edi, edi
jne 0x4048dc
push dword [ebp - 0xdc]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0xd8]
add eax, 0xfffffff0
call fcn.00402515
mov ecx, dword [ebp + 0x70]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415ea8
add ebp, 0x74
leave
ret
Function at 0x407168
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
neg esi
sbb esi, esi
lea ecx, [eax - 0x48]
and esi, ecx
cmp byte [eax + 0x1c], 0
je 0x4071ab
push 0xe801
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [ebp + 8], 2
jne 0x40719c
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4071b1
cmp dword [ebp + 8], 0
jne 0x4071ab
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp + 8], 1
je 0x4071c9
mov eax, dword [ebp + 0xc]
shr eax, 0x10
movsx eax, ax
push eax
movsx eax, word [ebp + 0xc]
push eax
add esi, 0x48
push esi
call fcn.004071d0
xor eax, eax
pop esi
pop ebp
ret 8

Function at 0x407b33
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push 0x40b
lea edi, [ebx + 4]
push dword [edi]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebx + 0x28], eax
push edi
xor eax, eax
call fcn.00402fe7
mov eax, dword [ebx + 0x24]
push dword [eax]
push dword [edi]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [0x41b208]
mov ecx, 0x41b208
call dword [eax + 0xc]
add eax, 0x10
lea esi, [ebx + 0x40]
mov dword [ebp - 4], eax
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jne 0x407b91
push 0xc8
lea eax, [ebp - 4]
push eax
call fcn.00402a1c
jmp 0x407ba6
call fcn.0040233c
push eax
push 0xc9
lea esi, [ebp - 4]
call fcn.00407c89
pop ecx
pop ecx
push 0x40a
push dword [edi]
call dword [sym.imp.USER32.dll_GetDlgItem]
lea esi, [ebp - 4]
mov dword [ebp - 8], eax
call fcn.0040233c
push eax
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
cmp byte [ebx + 0x3c], 0
je 0x407c0b
push 2
push dword [edi]
call dword [sym.imp.USER32.dll_GetDlgItem]
xor esi, esi
push esi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push esi
push dword [edi]
call dword [sym.imp.USER32.dll_GetSystemMenu]
push esi
push esi
push 1
push 0xf060
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_ModifyMenuA]
cmp dword [ebp - 8], esi
je 0x407c0d
lea esi, [ebp - 8]
call fcn.00407cca
xor esi, esi
lea eax, [ebp - 0xc]
push eax
push esi
push ebx
push 0x407c6f
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00402515
pop edi
xor eax, eax
pop esi
leave
ret
Function at 0x407e4e
Capabilities:
Delete file

Disassembly:
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x407e5c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebx + 0x90], 3
push ebp
push esi
push edi
je 0x407e6f
mov edi, ebx
call fcn.004085b2
mov ebp, dword [ebx + 0xa8]
xor edi, edi
test ebp, ebp
jle 0x407e9b
mov eax, edi
lea ecx, [ebx + 0xa4]
call fcn.00404d14
mov esi, eax
call fcn.0040233c
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
inc edi
cmp edi, ebp
jl 0x407e7b
lea edi, [ebx + 0xa4]
call fcn.00404cdf
lea edi, [ebx + 0x98]
call fcn.004097ba
mov eax, dword [ebx + 0x88]
push 0x10
pop ebp
sub eax, ebp
call fcn.00402515
mov eax, dword [ebx + 0x84]
sub eax, ebp
call fcn.00402515
lea esi, [ebx + 0x70]
call fcn.0040c339
lea esi, [ebx + 0x64]
call fcn.0040c339
lea edi, [ebx + 0x58]
call fcn.00404cdf
mov eax, dword [ebx + 0x54]
sub eax, ebp
call fcn.00402515
mov eax, dword [ebx + 0x50]
sub eax, ebp
call fcn.00402515
mov eax, dword [ebx]
pop edi
pop esi
sub eax, ebp
pop ebp
jmp fcn.00402515

Function at 0x4085b2
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
test byte [edi + 0x40], 1
jne 0x4086b0
and dword [ebp - 4], 0
cmp dword [edi + 0x5c], 0
jle 0x4086b0
push ebx
push esi
mov ecx, dword [ebp - 4]
lea eax, [edi + 0x70]
call fcn.004096e5
cmp byte [eax], 0
je 0x40869f
lea esi, [edi + 0x90]
cmp dword [esi], 2
jne 0x408605
mov eax, dword [ebp - 4]
lea ecx, [edi + 0x64]
call fcn.0040967e
cmp dword [eax], 0x64
jae 0x40869f
mov esi, dword [esi]
cmp esi, 1
je 0x408611
cmp esi, 2
jne 0x408621
mov eax, dword [ebp - 4]
lea ecx, [edi + 0x64]
call fcn.0040967e
cmp dword [eax], 1
je 0x40869f
lea ebx, [edi + 0x54]
mov eax, dword [ebx]
sub eax, 0x10
call fcn.0040252d
add eax, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
lea ecx, [edi + 0x58]
call fcn.00404d14
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 8]
push eax
call fcn.004028d2
lea esi, [ebp - 8]
call fcn.0040233c
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 8]
push 0x5c
call fcn.00404db2
test eax, eax
pop ecx
jne 0x408671
or eax, 0xffffffff
jmp 0x408674
sub eax, dword [ebp - 8]
push ebx
lea ecx, [ebp - 0xc]
push ecx
lea esi, [ebp - 8]
call fcn.004027fd
push eax
call fcn.004047a0
mov eax, dword [ebp - 0xc]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.00402515
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00402515
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [edi + 0x5c]
jl 0x4085d2
pop esi
pop ebx
leave
ret
Function at 0x4086b2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov edi, 0x800
push edi
mov esi, eax
call fcn.00415c13
test eax, eax
pop ecx
mov dword [ebp - 8], eax
jne 0x4086de
push eax
call fcn.00415c18
pop ecx
push 3
pop eax
jmp 0x4087da
and dword [ebp - 0xc], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0xc]
sub eax, edi
cmp eax, 0xfffff800
mov dword [ebp - 0xc], eax
jge 0x4086fb
add eax, 0xfffffff6
push 2
push 0
push eax
push dword [esi + 0x7c]
call ebx
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x4087cb
push 0
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp - 8]
push dword [esi + 0x7c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4087cb
cmp dword [ebp - 4], edi
jne 0x4087cb
xor eax, eax
mov ecx, dword [ebp - 8]
xor edi, edi
add ecx, eax
mov dl, byte [ecx]
cmp dl, byte [edi + str.ADVINSTSFX]
jne 0x40874f
inc edi
inc ecx
cmp edi, 0xa
jl 0x40873e
cmp edi, 0xa
je 0x408763
inc eax
cmp eax, 0x7f6
jb 0x408737
mov edi, 0x800
jmp 0x4086e9
mov ecx, dword [ebp - 0x10]
lea edi, [eax + ecx - 0x40]
test edi, edi
je 0x40875c
push 0
push 0
push edi
push dword [esi + 0x7c]
call ebx
cmp eax, 0xffffffff
je 0x4087cb
push 0
lea eax, [ebp - 4]
push eax
push 0x4c
lea eax, [esi + 4]
push eax
push dword [esi + 0x7c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4087cb
cmp dword [ebp - 4], 0
je 0x4087cb
xor eax, eax
movzx ecx, byte [esi + eax + 0x44]
movsx edx, byte [eax + str.ADVINSTSFX]
cmp ecx, edx
jne 0x4087ba
inc eax
cmp eax, 0xa
jl 0x40879e
cmp dword [esi + 0x10], 0x64
je 0x4087be
push 5
jmp 0x4087cd
sub edi, dword [esi + 0x14]
mov dword [esi + 0x94], edi
xor esi, esi
jmp 0x4087ce
push 2
pop esi
push dword [ebp - 8]
call fcn.00415c18
pop ecx
mov eax, esi
pop ebx
pop edi
pop esi
leave
ret
Function at 0x4087de
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [edi + 0x94]
add eax, dword [edi + 0x18]
push ebx
xor ebx, ebx
push ebx
push ebx
push eax
push dword [edi + 0x7c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x408809
push 2
pop eax
jmp 0x4088d4
cmp dword [edi + 0xc], ebx
push esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
jbe 0x4088c8
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea eax, [ebp - 8]
push eax
push 0x14
lea eax, [ebp - 0x24]
push eax
push dword [edi + 0x7c]
call esi
test eax, eax
je 0x4088c5
cmp dword [ebp - 8], ebx
je 0x4088c5
cmp dword [ebp - 4], ebx
je 0x408851
push dword [ebp - 4]
call fcn.00415c18
pop ecx
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x14]
inc eax
push eax
lea eax, [ebp - 4]
push eax
call fcn.00404d35
test al, al
je 0x4088c1
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x14]
push dword [ebp - 4]
push dword [edi + 0x7c]
call esi
test eax, eax
je 0x4088c5
cmp dword [ebp - 8], ebx
je 0x4088c5
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
mov byte [eax + ecx], bl
lea eax, [ebp - 0x24]
push eax
lea esi, [edi + 0x64]
call fcn.00409636
push dword [ebp - 4]
lea esi, [ebp - 0x10]
call fcn.004029c8
push eax
lea esi, [edi + 0x58]
call fcn.00404c41
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00402515
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [edi + 0xc]
jb 0x408819
jmp 0x4088c8
push 3
jmp 0x4088c7
push 2
pop ebx
push dword [ebp - 4]
call fcn.00415c18
pop ecx
mov eax, ebx
pop esi
pop ebx
leave
ret