joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d35b
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
lea eax, [ebp - 0x10]
push edi
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
xor edi, edi
cmp esi, edi
jne 0x40d37f
or eax, 0xffffffff
jmp 0x40d4fa
push ebx
push esi
call fcn.0042200e
mov ebx, eax
pop ecx
cmp ebx, edi
mov dword [ebp - 0xc], ebx
jne 0x40d3a1
mov ecx, 0x47a7fc
call fcn.0041ab9e
push eax
call fcn.0041b6d2
pop ecx
push ebx
push esi
push dword [ebp - 0x10]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x40d3b9
push 0xfffffffffffffffd
jmp 0x40d4ed
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
lea eax, [ebp - 4]
push eax
push str.VarFileInfoTranslation
push ebx
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [ebp - 8]
mov bl, 3
test bl, al
jne 0x40d4eb
cmp eax, edi
je 0x40d4eb
shr eax, 2
test eax, eax
jle 0x40d4d1
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x40d3fd
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
mov dword [eax], ecx
lea ecx, [ebp - 0x1c]
call fcn.00419c64
mov eax, dword [ebp - 4]
mov esi, 0x427d8c
movzx eax, word [eax]
push eax
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.0041a30f
add esp, 0xc
test byte [ebp - 0x1c], bl
je 0x40d430
push edi
push 0x30
lea ecx, [ebp - 0x1c]
call fcn.0041a8a9
jmp 0x40d41e
push str.StringFileInfo_
lea ecx, [ebp - 0x28]
call fcn.00419cd4
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x28]
push eax
call fcn.00419f64
push 0x429ff8
lea ecx, [ebp - 0x1c]
call fcn.00419db1
mov eax, dword [ebp - 4]
movzx eax, word [eax + 2]
push eax
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.0041a30f
add esp, 0xc
test byte [ebp - 0x1c], bl
je 0x40d47d
push edi
push 0x30
lea ecx, [ebp - 0x1c]
call fcn.0041a8a9
jmp 0x40d46b
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x28]
push eax
call fcn.00419f64
push edi
push str.FileDescription
lea ecx, [ebp - 0x28]
call fcn.00419ee6
lea eax, [ebp - 8]
lea ecx, [ebp - 0x28]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0041ab9e
push eax
push dword [ebp - 0xc]
call sub.VERSION.dll_VerQueryValueA
mov ecx, dword [ebp + 0x10]
cmp ecx, edi
je 0x40d4bf
push dword [ebp + 8]
call fcn.00419db1
lea ecx, [ebp - 0x28]
call fcn.00419d9a
lea ecx, [ebp - 0x1c]
call fcn.00419d9a
jmp 0x40d4e7
mov eax, dword [ebp + 0xc]
mov word [ebp + 8], di
cmp eax, edi
mov word [ebp + 0xa], 0x4b0
je 0x40d4e7
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
push 1
jmp 0x40d4ed
push 0xfffffffffffffffc
pop esi
push dword [ebp - 0xc]
call fcn.0042201c
pop ecx
mov eax, esi
pop ebx
pop edi
pop esi
leave
ret
Function at 0x40d9bb
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call fcn.0040d55d
test al, al
pop ecx
je 0x40d9cc
xor al, al
ret
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret

Function at 0x40dc08
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
je 0x40ddd3
cmp dword [ebp + 0xc], ebx
je 0x40ddd3
cmp dword [ebp + 0x14], ebx
je 0x40ddd3
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call esi
add eax, 4
push eax
call fcn.0042200e
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x40dc5d
mov ecx, 0x47a7fc
call fcn.0041ab9e
push eax
call fcn.0041b6d2
pop ecx
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x427ed8
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x148]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push edi
mov dword [ebp - 4], eax
call fcn.0042201c
cmp dword [ebp - 4], 0xffffffff
pop ecx
jne 0x40dc98
push 0xfffffffffffffffd
jmp 0x40ddb6
mov ebx, dword [sym.imp.KERNEL32.dll_FindClose]
test byte [ebp - 0x148], 0x10
je 0x40dd45
cmp byte [ebp - 0x11c], 0x2e
je 0x40dd59
lea eax, [ebp - 0x11c]
push eax
call esi
push dword [ebp + 8]
mov edi, eax
call fcn.00421bb0
lea eax, [edi + eax + 2]
push eax
call fcn.0042200e
mov edi, eax
pop ecx
test edi, edi
pop ecx
jne 0x40dcf3
push dword [ebp - 4]
call ebx
mov ecx, 0x47a7fc
call fcn.0041ab9e
push eax
call fcn.0041b6d2
pop ecx
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x11c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push edi
call esi
cmp byte [eax + edi - 1], 0x5c
je 0x40dd22
push 0x427c6c
push edi
call fcn.004222d0
pop ecx
pop ecx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.0040dc08
push edi
mov dword [ebp - 8], eax
call fcn.0042201c
add esp, 0x14
cmp dword [ebp - 8], 0
jg 0x40dd72
jmp 0x40dd59
push dword [ebp + 0xc]
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40dd7c
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x40ddb9
jmp 0x40dc9e
push dword [ebp - 4]
call ebx
mov eax, dword [ebp - 8]
jmp 0x40ddd6
push dword [ebp - 4]
call ebx
push dword [ebp + 8]
call esi
inc eax
push eax
call fcn.0042200e
mov esi, eax
pop ecx
test esi, esi
jne 0x40dda5
mov ecx, 0x47a7fc
call fcn.0041ab9e
push eax
call fcn.0041b6d2
pop ecx
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp + 0x14]
push 1
mov dword [eax], esi
pop eax
jmp 0x40ddd6
push dword [ebp - 4]
call ebx
mov esi, 0x479ee8
mov ecx, esi
call fcn.00418518
cmp eax, 1
je 0x40ddc3
xor eax, eax
jmp 0x40ddd6
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40dddb
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
je 0x40de82
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x40de82
mov esi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push ebx
push ebx
mov dword [eax], ebx
call esi
mov edi, eax
cmp edi, ebx
jne 0x40de0f
push 0xfffffffffffffffe
pop eax
jmp 0x40de85
push edi
call fcn.0042200e
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
jne 0x40de2e
mov ecx, 0x47a7fc
call fcn.0041ab9e
push eax
call fcn.0041b6d2
pop ecx
push dword [ebp - 4]
push edi
call esi
test eax, eax
jne 0x40de48
push 0xfffffffffffffffc
pop edi
push dword [ebp - 4]
call fcn.0042201c
pop ecx
mov eax, edi
jmp 0x40de85
mov esi, dword [ebp - 4]
xor edi, edi
cmp byte [esi], bl
je 0x40de3b
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x40de75
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call fcn.0040dc08
mov edi, eax
add esp, 0x10
cmp edi, ebx
jg 0x40de3b
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
jmp 0x40de4d
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40e6a5
Capabilities:
Capture screenshot

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x10], 0
je 0x40e6b5
call fcn.0040f4cb
push dword [0x47a0a0]
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
test eax, eax
mov dword [esi + 0x10], eax
jne 0x40e6e3
push edi
push dword [0x47a0a0]
call dword [sym.imp.USER32.dll_ReleaseDC]
or eax, 0xffffffff
jmp 0x40e75a
push dword [esi + 4]
push dword [esi]
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push edi
mov ebx, eax
push dword [0x47a0a0]
call dword [sym.imp.USER32.dll_ReleaseDC]
test ebx, ebx
jne 0x40e710
push dword [esi + 0x10]
call dword [sym.imp.GDI32.dll_DeleteDC]
push 0xfffffffffffffffe
pop eax
jmp 0x40e75a
push ebx
push dword [esi + 0x10]
call dword [sym.imp.GDI32.dll_SelectObject]
test eax, eax
jne 0x40e72b
push dword [esi + 0x10]
call dword [sym.imp.GDI32.dll_DeleteDC]
push 0xfffffffffffffffd
jmp 0x40e750
push 0xcc0020
push dword [esi + 0xc]
push dword [esi + 8]
push dword [0x47a0ac]
push dword [esi + 4]
push dword [esi]
push 0
push 0
push dword [esi + 0x10]
call dword [sym.imp.GDI32.dll_BitBlt]
push 1
pop esi
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x40e8a9
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
xor eax, eax
cmp byte [0x47a044], al
je 0x40ea72
push ebx
push esi
push edi
push str.Times_New_Roman
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push 0x2bc
push 0x5a
push 0x5a
push eax
push 0x1e
call dword [sym.imp.GDI32.dll_CreateFontA]
push eax
mov dword [ebp - 4], eax
push dword [0x47a0ac]
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, dword [sym.imp.GDI32.dll_SetTextColor]
push 0xa0a0a
push dword [0x47a0ac]
call esi
push dword [0x479e98]
mov ecx, 0x479e98
call fcn.0041ab9e
mov edi, dword [sym.imp.GDI32.dll_TextOutA]
push eax
push 0x6f
push 0xc
push dword [0x47a0ac]
call edi
mov ebx, 0xff
push ebx
push dword [0x47a0ac]
call esi
push dword [0x479e98]
mov ecx, 0x479e98
call fcn.0041ab9e
push eax
push 0x6e
push 0xa
push dword [0x47a0ac]
call edi
mov byte [ebp - 0x38], 0x61
mov byte [ebp - 0x37], 0x84
mov byte [ebp - 0x36], 0x6a
mov byte [ebp - 0x35], 0xb7
mov byte [ebp - 0x34], 0x15
mov byte [ebp - 0x33], 0x42
mov byte [ebp - 0x32], 0x6c
mov byte [ebp - 0x31], 0x9b
mov byte [ebp - 0x30], 0xbf
mov byte [ebp - 0x2f], 0x9e
mov byte [ebp - 0x2e], 0xf3
mov byte [ebp - 0x2d], 0x44
mov byte [ebp - 0x2c], 0x75
mov byte [ebp - 0x2b], 0xa2
mov byte [ebp - 0x2a], 0xbb
mov byte [ebp - 0x29], 0xf2
mov byte [ebp - 0x28], 0x1e
mov byte [ebp - 0x27], 0x43
mov byte [ebp - 0x26], 0x7c
mov byte [ebp - 0x25], 0x31
mov byte [ebp - 0x24], 0x94
mov byte [ebp - 0x23], 0xa
mov byte [ebp - 0x22], 5
mov byte [ebp - 0x21], 0x4d
mov byte [ebp - 0x20], 0x74
mov byte [ebp - 0x1f], 0x3a
mov byte [ebp - 0x1e], 0x1b
mov byte [ebp - 0x1d], 0x48
mov byte [ebp - 0x1c], 0x98
mov byte [ebp - 0x1b], 0x16
mov byte [ebp - 0x1a], 0x63
mov byte [ebp - 0x19], 0xb2
mov byte [ebp - 0x18], 0x9f
mov byte [ebp - 0x17], 0xf4
lea ecx, [ebp - 0x10]
mov byte [ebp - 0x16], 0x74
mov byte [ebp - 0x15], 0xb6
mov byte [ebp - 0x14], 4
mov byte [ebp - 0x13], 0x8f
mov byte [ebp - 0x12], 0xda
call fcn.00419c64
lea eax, [ebp - 0x38]
push 0x27
push eax
lea ecx, [ebp - 0x10]
call fcn.00419ee6
lea ecx, [ebp - 0x10]
call fcn.0041a17f
lea ecx, [ebp - 0x10]
call fcn.0041a17f
push 0xa0a0a
push dword [0x47a0ac]
call esi
push dword [ebp - 0x10]
lea ecx, [ebp - 0x10]
call fcn.0041ab9e
push eax
push 0x8d
push 0x13
push dword [0x47a0ac]
call edi
push ebx
push dword [0x47a0ac]
call esi
push dword [ebp - 0x10]
lea ecx, [ebp - 0x10]
call fcn.0041ab9e
push eax
push 0x8c
push 0x11
push dword [0x47a0ac]
call edi
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_DeleteObject]
lea ecx, [ebp - 0x10]
call fcn.00419d9a
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ebfd
Capabilities:
Delete file
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov ecx, dword [0x47a618]
lea eax, [eax + eax*2]
push edi
lea ecx, [ecx + eax*4]
call fcn.0041ab9e
xor edi, edi
mov dword [ebp + 8], eax
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp ebx, 0xffffffff
mov dword [ebp - 0x10], eax
jne 0x40ec58
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40ed21
mov ecx, esi
call fcn.0040f4cb
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0xc], edi
push dword [ebp - 0x10]
push ebx
call fcn.0040f906
push ebx
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 0x10], edi
jl 0x40ed21
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov dword [esi], ecx
mov eax, dword [eax + 8]
mov dword [esi + 4], eax
mov eax, dword [0x47a098]
cdq
sub eax, edx
shr ecx, 1
sar eax, 1
sub eax, ecx
mov ecx, dword [esi + 4]
mov dword [esi + 8], eax
mov eax, dword [0x47a09c]
cdq
sub eax, edx
shr ecx, 1
sar eax, 1
sub eax, ecx
mov ecx, esi
mov dword [esi + 0xc], eax
call fcn.0040e6a5
test eax, eax
jge 0x40ece6
push dword [ebp - 8]
call fcn.0042201c
pop ecx
jmp 0x40ed21
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push 0xcc0020
push edi
push dword [ebp - 4]
push dword [ebp - 0x14]
push eax
push ecx
push edi
push edi
push eax
push ecx
push dword [esi + 0xc]
push dword [esi + 8]
push dword [0x47a0ac]
call dword [sym.imp.GDI32.dll_StretchDIBits]
push dword [ebp - 8]
call fcn.0042201c
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.GDI32.dll_DeleteObject]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40f526
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
push edi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
mov ecx, 0x47a560
call fcn.0041ab9e
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
or eax, 0xffffffff
cmp edi, eax
je 0x40f599
push esi
push esi
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 4]
push 2
push eax
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp word [ebp - 4], 0xd8ff
jne 0x40f58e
push 2
pop eax
jmp 0x40f599
xor eax, eax
cmp word [ebp - 4], 0x4d42
sete al
pop edi
pop esi
leave
ret 4

Function at 0x40f59f
Capabilities:
Delete file
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push ebx
push esi
mov dword [ebp - 8], ecx
mov esi, 0x47a1f8
push edi
push 0xc
mov ecx, esi
call fcn.0041a7a5
xor edi, edi
mov dword [ebp - 0x14], eax
cmp eax, edi
jne 0x40f5d3
mov dword [0x47a0a8], edi
push 1
pop eax
jmp 0x40f733
lea eax, [ebp - 0x12c]
push str..bmp
push eax
call fcn.0041ba38
mov eax, dword [0x47b0b0]
pop ecx
pop ecx
cmp eax, edi
push 1
pop ebx
mov dword [0x47b044], ebx
mov dword [0x47a19c], ebx
je 0x40f605
push eax
call fcn.0042201c
pop ecx
push 4
call fcn.0042200e
cmp eax, edi
pop ecx
mov dword [0x47b0b0], eax
jne 0x40f627
mov ecx, 0x47a7fc
call fcn.0041ab9e
push eax
call fcn.0041b6d2
pop ecx
push 8
mov ecx, esi
call fcn.0041a7a5
add eax, dword [ebp - 0x14]
mov ecx, dword [0x47b0b0]
push 0xc
mov dword [ecx], eax
mov ecx, esi
call fcn.0041a7a5
push eax
push 8
mov ecx, esi
call fcn.0041a7a5
push eax
lea eax, [ebp - 0x12c]
push eax
mov ecx, 0x47a560
call fcn.0041ab9e
push eax
call fcn.00401ac0
add esp, 0x10
test eax, eax
je 0x40f674
push 0xffffffffffffff9d
jmp 0x40f5cd
push edi
push 0x80
push 3
push edi
push ebx
lea eax, [ebp - 0x12c]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40f69e
push 0xffffffffffffff9c
jmp 0x40f5cd
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], edi
push ecx
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 8]
push eax
push esi
call fcn.0040f906
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp ebx, edi
jge 0x40f6e8
mov eax, ebx
or ah, 1
jmp 0x40f733
push dword [0x47a0a0]
call dword [sym.imp.USER32.dll_GetDC]
push edi
mov esi, eax
push dword [ebp - 4]
push dword [ebp - 0xc]
push 4
push dword [ebp - 4]
push esi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
push esi
mov dword [0x47a0a8], eax
push dword [0x47a0a0]
call dword [sym.imp.USER32.dll_ReleaseDC]
push dword [ebp - 0x10]
call fcn.0042201c
mov eax, dword [0x47a0a8]
pop ecx
neg eax
sbb eax, eax
and eax, 0x6a
add eax, 0xffffff97
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40f738
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], ecx
cmp eax, edi
jne 0x40f755
or eax, 0xffffffff
jmp 0x40f8ff
mov dword [eax], edi
xor ebx, ebx
cmp dword [0x47a428], edi
jle 0x40f78b
mov esi, 0x47a41c
push ebx
mov ecx, esi
call fcn.0041c45e
cmp eax, dword [ebp + 0xc]
je 0x40f77f
inc ebx
inc ebx
cmp ebx, dword [0x47a428]
jl 0x40f766
jmp 0x40f78b
inc ebx
mov ecx, esi
push ebx
call fcn.0041c45e
mov dword [ebp + 0xc], eax
xor esi, esi
cmp dword [0x47a414], edi
jle 0x40f7b9
push esi
mov ecx, 0x47a408
call fcn.0041c45e
mov ecx, dword [ebp + 0xc]
cmp dword [eax], ecx
je 0x40f7b2
inc esi
cmp esi, dword [0x47a414]
jl 0x40f795
jmp 0x40f7b9
lea ecx, [eax + 4]
cmp ecx, edi
jne 0x40f7c1
push 0xfffffffffffffffe
pop eax
jmp 0x40f8ff
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
call fcn.0041ab9e
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40f7e8
push 0xfffffffffffffffd
jmp 0x40f7bb
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], edi
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0x10]
push eax
push esi
call fcn.0040f906
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, edi
jge 0x40f822
push 0xfffffffffffffffc
jmp 0x40f7bb
push dword [0x47a0a0]
call dword [sym.imp.USER32.dll_GetDC]
push edi
mov dword [ebp + 0xc], eax
push dword [ebp - 4]
push dword [ebp - 8]
push 4
push dword [ebp - 4]
push eax
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
cmp esi, edi
mov dword [ecx], eax
jle 0x40f8d8
mov ecx, dword [ebp + 0x14]
cmp ecx, edi
jle 0x40f8d8
mov eax, dword [ebp - 4]
cmp esi, dword [eax + 4]
jne 0x40f868
cmp ecx, dword [eax + 8]
je 0x40f8d8
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [ebp + 0x14]
mov ebx, eax
push esi
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ebx
mov dword [ebp - 0x14], eax
call esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
push 0xcc0020
push edi
push eax
push dword [ebp - 8]
push dword [eax + 8]
push dword [eax + 4]
push edi
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push edi
push ebx
call dword [sym.imp.GDI32.dll_StretchDIBits]
push dword [ebp - 0x10]
mov edi, eax
push ebx
call esi
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp edi, 0xffffffff
je 0x40f8d8
mov esi, dword [ebp + 8]
push dword [esi]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 0x14]
mov dword [esi], eax
push dword [ebp + 0xc]
push dword [0x47a0a0]
call dword [sym.imp.USER32.dll_ReleaseDC]
push dword [ebp - 0x18]
call fcn.0042201c
mov eax, dword [ebp + 8]
pop ecx
mov eax, dword [eax]
neg eax
sbb eax, eax
and eax, 7
add eax, 0xfffffffa
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40f906
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
push 0xe
pop edi
push edi
push 0
push ebx
call fcn.00421740
add esp, 0xc
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp + 0x10]
push 0
push eax
push edi
push ebx
push dword [ebp + 8]
call esi
cmp dword [ebp + 0x10], edi
je 0x40f93d
push 0xfffffffffffffff8
jmp 0x40fa21
cmp word [ebx], 0x4d42
je 0x40f94b
push 0xfffffffffffffff7
jmp 0x40fa21
mov ebx, dword [ebp + 0xc]
sub ebx, edi
push ebx
call fcn.0042200e
mov edi, dword [ebp + 0x18]
pop ecx
test eax, eax
mov dword [edi], eax
jne 0x40f967
push 0xffffffffffffffe0
jmp 0x40fa21
lea ecx, [ebp + 0x10]
push 0
push ecx
push ebx
push eax
push dword [ebp + 8]
call esi
cmp dword [ebp + 0x10], ebx
je 0x40f97d
push 0xffffffffffffffdf
jmp 0x40f9cc
mov eax, dword [ebp + 0x14]
mov ecx, dword [edi]
push 1
mov dword [eax], ecx
mov ebx, dword [edi]
mov eax, ecx
pop esi
mov dword [ebp + 8], ebx
mov dx, word [eax + 0xe]
mov cl, dl
shl esi, cl
cmp dx, 8
jbe 0x40f9a0
xor esi, esi
jmp 0x40f9a9
mov eax, dword [eax + 0x20]
test eax, eax
je 0x40f9a9
mov esi, eax
mov ecx, dword [ebp + 0x1c]
lea eax, [ebx + esi*4 + 0x28]
test esi, esi
mov dword [ecx], eax
je 0x40fa1f
lea eax, [esi*4 + 8]
push eax
call fcn.0042200e
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x40f9d9
push 0xffffffffffffffde
pop esi
push dword [edi]
call fcn.0042201c
pop ecx
mov eax, esi
jmp 0x40fa22
test esi, esi
mov word [ebx], 0x300
mov word [ebx + 2], si
jle 0x40fa0c
mov ecx, dword [ebp + 8]
lea eax, [ebx + 5]
add ecx, 0x29
mov dl, byte [ecx + 1]
mov byte [eax - 1], dl
mov dl, byte [ecx]
mov byte [eax], dl
mov dl, byte [ecx - 1]
mov byte [eax + 1], dl
and byte [eax + 2], 0
add ecx, 4
add eax, 4
dec esi
jne 0x40f9ef
push ebx
call dword [sym.imp.GDI32.dll_CreatePalette]
mov ecx, dword [ebp + 0x20]
push ebx
mov dword [ecx], eax
call fcn.0042201c
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x1c
Function at 0x40fa29
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x47a240
lea ecx, [ebp - 0xc]
call fcn.00419d38
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0xc]
dec eax
push eax
call fcn.00419e82
cmp al, 0x5c
je 0x40fa57
push 0x5c
lea ecx, [ebp - 0xc]
call fcn.00419e97
push esi
push 0
push str.Backup_
lea ecx, [ebp - 0xc]
call fcn.00419ee6
push 1
lea ecx, [ebp - 0xc]
call fcn.0041ab9e
push eax
call fcn.0040d674
mov esi, dword [ebp + 8]
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
dec eax
test eax, eax
jle 0x40fa9d
cmp byte [eax + esi], 0x5c
jne 0x40fa83
lea eax, [eax + esi + 1]
push 0
push eax
lea ecx, [ebp - 0xc]
call fcn.00419ee6
push 0
lea ecx, [ebp - 0xc]
call fcn.0041ab9e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 9
lea ecx, [ebp - 0xc]
call fcn.00419e97
push 0
push esi
lea ecx, [ebp - 0xc]
call fcn.00419ee6
push dword [ebp + 0x14]
lea eax, [ebp - 0xc]
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push str._t_d_t_d_t_d_t_d
push eax
call fcn.0041a30f
add esp, 0x18
lea ecx, [ebp - 0xc]
call fcn.0041ab9e
push eax
mov ecx, 0x47a660
call fcn.0041f0f8
lea ecx, [ebp - 0xc]
call fcn.00419d9a
pop esi
leave
ret 0x14
Function at 0x40fb01
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
lea ecx, [ebp - 0x14]
mov dword [esi + 4], edi
mov dword [ebp - 4], edi
call fcn.00419c64
push dword [ebp - 4]
mov ebx, 0x47a490
mov ecx, ebx
call fcn.0041a87a
test al, al
je 0x40fc6a
jmp 0x40fb37
xor edi, edi
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
lea eax, [ebp - 4]
push eax
call fcn.0041a7d7
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
lea ecx, [ebp - 0x14]
call fcn.0041ab9e
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x40fc7e
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [ebp - 8]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x20]
push eax
mov dword [esi], edi
call fcn.00419d38
mov eax, dword [ebp - 0x20]
push 3
add eax, 0xfffffffd
lea ecx, [ebp - 0x20]
push eax
call fcn.0041a248
push 0
push 0x427ffc
lea ecx, [ebp - 0x20]
call fcn.00419ee6
cmp byte [0x47b0a0], 0
jne 0x40fc00
mov ecx, 0x47ad78
call fcn.0041ab9e
push eax
lea ecx, [ebp - 0x2c]
call fcn.00419cd4
push 0x20
lea ecx, [ebp - 0x2c]
call fcn.00419e97
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x2c]
push eax
call fcn.00419f64
lea ecx, [ebp - 0x2c]
call fcn.0041ab9e
push eax
push 0x14
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
lea ecx, [ebp - 0x2c]
call fcn.00419d9a
push 0x414530
push 0x4144e5
lea ecx, [ebp - 0x20]
call fcn.0041ab9e
push eax
lea ecx, [ebp - 0x14]
call fcn.0041ab9e
push eax
call dword [0x47a1e4]
test eax, eax
lea ecx, [ebp - 0x20]
jle 0x40fc79
call fcn.0041ab9e
push 0x47a66c
push eax
mov ecx, 0x47a660
call fcn.0041f0bc
lea ecx, [ebp - 0x14]
call fcn.0041ab9e
push eax
call fcn.0040d2a3
add dword [esi + 4], edi
pop ecx
lea ecx, [ebp - 0x20]
call fcn.00419d9a
push dword [ebp - 4]
mov ecx, ebx
call fcn.0041a87a
test al, al
jne 0x40fb35
lea ecx, [ebp - 0x14]
call fcn.00419d9a
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
call fcn.00419d9a
lea ecx, [ebp - 0x14]
call fcn.00419d9a
xor al, al
jmp 0x40fc74