joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40efbd
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call fcn.0040eb67
test al, al
pop ecx
je 0x40efce
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 0x40efe3
Capabilities:
Get common file path
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, 2
push edi
je 0x40f0ab
cmp esi, 7
je 0x40f0ab
cmp esi, 0x10
je 0x40f0ab
cmp esi, 0x14
je 0x40f0ab
cmp esi, 0xb
je 0x40f0ab
cmp esi, 5
je 0x40f0ab
cmp esi, 0x17
je 0x40f03e
cmp esi, 0x18
je 0x40f03e
cmp esi, 0x19
je 0x40f03e
cmp esi, 0x16
jne 0x40f134
lea eax, [ebp + 8]
mov dword [ebp + 8], ebx
push eax
push 0x20019
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40f134
cmp esi, 0x18
mov dword [ebp - 8], 0x104
mov eax, str.Common_Programs
jne 0x40f07b
mov eax, str.Common_Startup
jmp 0x40f091
cmp esi, 0x19
jne 0x40f087
mov eax, str.Common_Desktop
jmp 0x40f091
cmp esi, 0x16
jne 0x40f091
mov eax, str.Common_Start_Menu
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push ebx
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 8]
mov edi, eax
jmp 0x40f12a
lea eax, [ebp + 8]
mov dword [ebp + 8], ebx
push eax
push 0x20019
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40f134
cmp esi, 7
mov dword [ebp - 8], 0x104
mov eax, str.Programs
jne 0x40f0e4
mov eax, str.Startup
jmp 0x40f112
cmp esi, 0x10
jne 0x40f0f0
mov eax, str.Desktop
jmp 0x40f112
cmp esi, 0x14
jne 0x40f0fc
mov eax, str.Fonts
jmp 0x40f112
cmp esi, 0xb
jne 0x40f108
mov eax, str.Start_Menu
jmp 0x40f112
cmp esi, 5
jne 0x40f112
mov eax, str.Personal
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push ebx
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 8]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
je 0x40f170
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push esi
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x40f174
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], ebx
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x40f170
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov al, 1
jmp 0x40f176
xor al, al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40f384
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 0x40f54f
cmp dword [ebp + 0xc], ebx
je 0x40f54f
cmp dword [ebp + 0x14], ebx
je 0x40f54f
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call esi
add eax, 4
push eax
call fcn.00427869
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x40f3d9
mov ecx, 0x481a44
call fcn.0041f120
push eax
call fcn.0041fd97
pop ecx
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x42eed4
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.0042785e
cmp dword [ebp - 4], 0xffffffff
pop ecx
jne 0x40f414
push 0xfffffffffffffffd
jmp 0x40f532
mov ebx, dword [sym.imp.KERNEL32.dll_FindClose]
test byte [ebp - 0x148], 0x10
je 0x40f4c1
cmp byte [ebp - 0x11c], 0x2e
je 0x40f4d5
push dword [ebp + 8]
call fcn.00427400
mov edi, eax
pop ecx
lea eax, [ebp - 0x11c]
push eax
call esi
lea eax, [edi + eax + 2]
push eax
call fcn.00427869
mov edi, eax
pop ecx
test edi, edi
jne 0x40f46f
push dword [ebp - 4]
call ebx
mov ecx, 0x481a44
call fcn.0041f120
push eax
call fcn.0041fd97
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 0x40f49e
push 0x42eb7c
push edi
call fcn.00427b00
pop ecx
pop ecx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.0040f384
push edi
mov dword [ebp - 8], eax
call fcn.0042785e
add esp, 0x14
cmp dword [ebp - 8], 0
jg 0x40f4ee
jmp 0x40f4d5
push dword [ebp + 0xc]
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40f4f8
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x40f535
jmp 0x40f41a
push dword [ebp - 4]
call ebx
mov eax, dword [ebp - 8]
jmp 0x40f552
push dword [ebp - 4]
call ebx
push dword [ebp + 8]
call esi
inc eax
push eax
call fcn.00427869
mov esi, eax
pop ecx
test esi, esi
jne 0x40f521
mov ecx, 0x481a44
call fcn.0041f120
push eax
call fcn.0041fd97
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 0x40f552
push dword [ebp - 4]
call ebx
mov esi, 0x481080
mov ecx, esi
call fcn.0041c46e
cmp eax, 1
je 0x40f53f
xor eax, eax
jmp 0x40f552
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40f557
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 0x40f5fe
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x40f5fe
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 0x40f58b
push 0xfffffffffffffffe
pop eax
jmp 0x40f601
push edi
call fcn.00427869
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
jne 0x40f5aa
mov ecx, 0x481a44
call fcn.0041f120
push eax
call fcn.0041fd97
pop ecx
push dword [ebp - 4]
push edi
call esi
test eax, eax
jne 0x40f5c4
push 0xfffffffffffffffc
pop edi
push dword [ebp - 4]
call fcn.0042785e
pop ecx
mov eax, edi
jmp 0x40f601
mov esi, dword [ebp - 4]
xor edi, edi
cmp byte [esi], bl
je 0x40f5b7
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x40f5f1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call fcn.0040f384
mov edi, eax
add esp, 0x10
cmp edi, ebx
jg 0x40f5b7
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
jmp 0x40f5c9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret

Function at 0x410157
Capabilities:
Capture screenshot

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x10], 0
je 0x410167
call fcn.004112c1
push dword [0x481240]
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 0x410195
push edi
push dword [0x481240]
call dword [sym.imp.USER32.dll_ReleaseDC]
or eax, 0xffffffff
jmp 0x41020c
push dword [esi + 4]
push dword [esi]
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push edi
mov ebx, eax
push dword [0x481240]
call dword [sym.imp.USER32.dll_ReleaseDC]
test ebx, ebx
jne 0x4101c2
push dword [esi + 0x10]
call dword [sym.imp.GDI32.dll_DeleteDC]
push 0xfffffffffffffffe
pop eax
jmp 0x41020c
push ebx
push dword [esi + 0x10]
call dword [sym.imp.GDI32.dll_SelectObject]
test eax, eax
jne 0x4101dd
push dword [esi + 0x10]
call dword [sym.imp.GDI32.dll_DeleteDC]
push 0xfffffffffffffffd
jmp 0x410202
push 0xcc0020
push dword [esi + 0xc]
push dword [esi + 8]
push dword [0x48124c]
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 0x41035b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
xor eax, eax
cmp byte [0x4811dc], al
je 0x410524
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 [0x48124c]
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, dword [sym.imp.GDI32.dll_SetTextColor]
push 0xa0a0a
push dword [0x48124c]
call esi
push dword [0x481030]
mov ecx, 0x481030
call fcn.0041f120
mov edi, dword [sym.imp.GDI32.dll_TextOutA]
push eax
push 0x6f
push 0xc
push dword [0x48124c]
call edi
mov ebx, 0xff
push ebx
push dword [0x48124c]
call esi
push dword [0x481030]
mov ecx, 0x481030
call fcn.0041f120
push eax
push 0x6e
push 0xa
push dword [0x48124c]
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.0041e1c7
lea eax, [ebp - 0x38]
push 0x27
push eax
lea ecx, [ebp - 0x10]
call fcn.0041e449
lea ecx, [ebp - 0x10]
call fcn.0041e6e2
lea ecx, [ebp - 0x10]
call fcn.0041e6e2
push 0xa0a0a
push dword [0x48124c]
call esi
push dword [ebp - 0x10]
lea ecx, [ebp - 0x10]
call fcn.0041f120
push eax
push 0x8d
push 0x13
push dword [0x48124c]
call edi
push ebx
push dword [0x48124c]
call esi
push dword [ebp - 0x10]
lea ecx, [ebp - 0x10]
call fcn.0041f120
push eax
push 0x8c
push 0x11
push dword [0x48124c]
call edi
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_DeleteObject]
lea ecx, [ebp - 0x10]
call fcn.0041e2fd
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41131c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
mov ecx, 0x481800
call fcn.0041f120
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
or eax, 0xffffffff
cmp edi, eax
je 0x411396
lea eax, [ebp - 8]
push esi
push eax
mov dword [ebp - 8], esi
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0xc]
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 0x41138b
push 2
pop eax
jmp 0x411396
xor eax, eax
cmp word [ebp - 4], 0x4d42
sete al
pop edi
pop esi
leave
ret 4

Function at 0x41139c
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, 0x4813b8
push edi
push 0xc
mov ecx, esi
call fcn.0041ecff
xor edi, edi
mov dword [ebp - 0x14], eax
cmp eax, edi
jne 0x4113d0
mov dword [0x481248], edi
push 1
pop eax
jmp 0x411530
lea eax, [ebp - 0x12c]
push str..bmp
push eax
call fcn.004200c8
mov eax, dword [0x4823ac]
pop ecx
pop ecx
cmp eax, edi
push 1
pop ebx
mov dword [0x48233c], ebx
mov dword [0x481358], ebx
je 0x411402
push eax
call fcn.0042785e
pop ecx
push 4
call fcn.00427869
cmp eax, edi
pop ecx
mov dword [0x4823ac], eax
jne 0x411424
mov ecx, 0x481a44
call fcn.0041f120
push eax
call fcn.0041fd97
pop ecx
push 8
mov ecx, esi
call fcn.0041ecff
add eax, dword [ebp - 0x14]
mov ecx, dword [0x4823ac]
push 0xc
mov dword [ecx], eax
mov ecx, esi
call fcn.0041ecff
push eax
push 8
mov ecx, esi
call fcn.0041ecff
push eax
lea eax, [ebp - 0x12c]
push eax
mov ecx, 0x481800
call fcn.0041f120
push eax
call fcn.00401ac0
add esp, 0x10
test eax, eax
je 0x411471
push 0xffffffffffffff9d
jmp 0x4113ca
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 0x41149b
push 0xffffffffffffff9c
jmp 0x4113ca
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.004117c0
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 0x4114e5
mov eax, ebx
or ah, 1
jmp 0x411530
push dword [0x481240]
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 [0x481248], eax
push dword [0x481240]
call dword [sym.imp.USER32.dll_ReleaseDC]
push dword [ebp - 0x10]
call fcn.0042785e
mov eax, dword [0x481248]
pop ecx
neg eax
sbb eax, eax
and eax, 0x6a
add eax, 0xffffff97
pop edi
pop esi
pop ebx
leave
ret
Function at 0x411736
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4117b8
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp + 8]
push 0
push eax
lea eax, [ebp - 0x10]
push 0xe
push eax
push edi
call esi
cmp dword [ebp + 8], 0xe
jne 0x4117b1
cmp word [ebp - 0x10], 0x4d42
jne 0x4117b1
lea eax, [ebp + 8]
push 0
push eax
lea eax, [ebp - 0x38]
push 0x28
push eax
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 8], 0x28
jne 0x4117b8
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x34]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x30]
mov dword [eax + 4], ecx
mov al, 1
jmp 0x4117ba
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
leave
ret 8

Function at 0x4117c0
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.00426f90
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 0x4117f7
push 0xfffffffffffffff8
jmp 0x4118db
cmp word [ebx], 0x4d42
je 0x411805
push 0xfffffffffffffff7
jmp 0x4118db
mov ebx, dword [ebp + 0xc]
sub ebx, edi
push ebx
call fcn.00427869
mov edi, dword [ebp + 0x18]
pop ecx
test eax, eax
mov dword [edi], eax
jne 0x411821
push 0xffffffffffffffe0
jmp 0x4118db
lea ecx, [ebp + 0x10]
push 0
push ecx
push ebx
push eax
push dword [ebp + 8]
call esi
cmp dword [ebp + 0x10], ebx
je 0x411837
push 0xffffffffffffffdf
jmp 0x411886
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 0x41185a
xor esi, esi
jmp 0x411863
mov eax, dword [eax + 0x20]
test eax, eax
je 0x411863
mov esi, eax
mov ecx, dword [ebp + 0x1c]
lea eax, [ebx + esi*4 + 0x28]
test esi, esi
mov dword [ecx], eax
je 0x4118d9
lea eax, [esi*4 + 8]
push eax
call fcn.00427869
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x411893
push 0xffffffffffffffde
pop esi
push dword [edi]
call fcn.0042785e
pop ecx
mov eax, esi
jmp 0x4118dc
test esi, esi
mov word [ebx], 0x300
mov word [ebx + 2], si
jle 0x4118c6
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 0x4118a9
push ebx
call dword [sym.imp.GDI32.dll_CreatePalette]
mov ecx, dword [ebp + 0x20]
push ebx
mov dword [ecx], eax
call fcn.0042785e
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x1c
Function at 0x411957
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x481400
lea ecx, [ebp - 0xc]
call fcn.0041e29b
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0xc]
dec eax
push eax
call fcn.0041e3e5
cmp al, 0x5c
je 0x411985
push 0x5c
lea ecx, [ebp - 0xc]
call fcn.0041e3fa
push esi
push 0
push str.Backup_
lea ecx, [ebp - 0xc]
call fcn.0041e449
push 1
lea ecx, [ebp - 0xc]
call fcn.0041f120
push eax
call fcn.0040ec7b
mov esi, dword [ebp + 8]
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
dec eax
test eax, eax
jle 0x4119cb
cmp byte [eax + esi], 0x5c
jne 0x4119b1
lea eax, [eax + esi + 1]
push 0
push eax
lea ecx, [ebp - 0xc]
call fcn.0041e449
push 0
lea ecx, [ebp - 0xc]
call fcn.0041f120
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 9
lea ecx, [ebp - 0xc]
call fcn.0041e3fa
push 0
push esi
lea ecx, [ebp - 0xc]
call fcn.0041e449
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.0041e869
add esp, 0x18
lea ecx, [ebp - 0xc]
call fcn.0041f120
push eax
mov ecx, 0x4818b8
call fcn.0042471b
lea ecx, [ebp - 0xc]
call fcn.0041e2fd
pop esi
leave
ret 0x14
Function at 0x411a2f
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [ebp - 0x18]
mov dword [esi + 4], ebx
mov dword [ebp - 4], ebx
call fcn.0041e1c7
push dword [ebp - 4]
mov edi, 0x4816b4
mov ecx, edi
call fcn.0041edd4
test al, al
je 0x411bf6
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
lea eax, [ebp - 4]
push eax
call fcn.0041ed31
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
lea ecx, [ebp - 0x18]
call fcn.0041f120
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x411bea
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [ebp - 0xc]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x24]
mov dword [esi], eax
lea eax, [ebp - 0x18]
push eax
call fcn.0041e29b
mov eax, dword [ebp - 0x24]
push 3
add eax, 0xfffffffd
lea ecx, [ebp - 0x24]
push eax
call fcn.0041e7ab
push ebx
push 0x42ef38
lea ecx, [ebp - 0x24]
call fcn.0041e449
cmp byte [0x48239c], bl
jne 0x411b52
mov ecx, 0x481fc0
call fcn.0041f120
push eax
lea ecx, [ebp - 0x30]
call fcn.0041e237
push 0x20
lea ecx, [ebp - 0x30]
call fcn.0041e3fa
lea ecx, [ebp - 0x3c]
call fcn.0041e1c7
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x18]
push eax
call fcn.0041f120
push eax
call fcn.00420e53
pop ecx
lea eax, [ebp - 0x3c]
pop ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.0041e4c7
lea ecx, [ebp - 0x30]
call fcn.0041f120
push eax
push 0x14
push dword [esi + 8]
call fcn.00420f80
add esp, 0xc
lea ecx, [ebp - 0x3c]
call fcn.0041e2fd
lea ecx, [ebp - 0x30]
call fcn.0041e2fd
push 0x416c99
push 0x416c4e
lea ecx, [ebp - 0x24]
call fcn.0041f120
push eax
lea ecx, [ebp - 0x18]
call fcn.0041f120
push eax
call dword [0x4813a4]
test eax, eax
lea ecx, [ebp - 0x24]
jle 0x411be5
call fcn.0041f120
push 0x4818c4
push eax
mov ecx, 0x4818b8
call fcn.004246df
cmp dword [0x481714], ebx
je 0x411bc0
push 0xc
call fcn.00427869
cmp eax, ebx
pop ecx
je 0x411bb1
lea ecx, [ebp - 0x24]
push ecx
mov ecx, eax
call fcn.0041e29b
jmp 0x411bb3
xor eax, eax
push 0xffffffffffffffff
push eax
mov ecx, 0x481738
call fcn.004211eb
lea ecx, [ebp - 0x18]
call fcn.0041f120
push eax
call fcn.0040e8ad
mov eax, dword [ebp - 8]
pop ecx
add dword [esi + 4], eax
lea ecx, [ebp - 0x24]
call fcn.0041e2fd
push dword [ebp - 4]
jmp 0x411a52
call fcn.0041e2fd
lea ecx, [ebp - 0x18]
call fcn.0041e2fd
xor al, al
jmp 0x411c00
lea ecx, [ebp - 0x18]
call fcn.0041e2fd
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x411eaf
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
push esi
push edi
je 0x411f1d
cmp dword [ebp + 0xc], ebx
je 0x411f1d
cmp byte [0x42eeec], bl
mov ecx, 0x481800
jne 0x411ed6
mov ecx, 0x4817d0
call fcn.0041f120
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, 0x80
push ebx
push edi
push 3
push ebx
push 1
push 0x80000000
push eax
call esi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x411f1d
lea ecx, [ebp - 0x14]
push ebx
push ecx
mov dword [ebp - 0x14], ebx
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x411f26
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x10
push ebx
push edi
push 2
push ebx
push 1
push 0xc0000000
push dword [ebp + 8]
call esi
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x411f1d
mov edi, 0x8000
push edi
call fcn.00427869
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
pop ecx
mov dword [ebp + 0xc], eax
jne 0x411f73
push dword [ebp - 4]
call esi
push dword [ebp + 8]
call esi
mov ecx, 0x481a44
call fcn.0041f120
push eax
call fcn.0041fd97
pop ecx
mov dword [ebp - 8], ebx
cmp byte [ebp + 0x14], bl
je 0x411f91
lea eax, [ebp - 0x10]
push eax
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
call fcn.00412a14
add esp, 0x10
jmp 0x411fbc
mov ecx, dword [ebp - 8]
mov eax, edi
lea edx, [ecx + 0x8000]
cmp edx, dword [ebp + 0x10]
jbe 0x411fa6
mov eax, dword [ebp + 0x10]
sub eax, ecx
lea ecx, [ebp - 0x10]
push ebx
push ecx
push eax
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x411ff0
lea eax, [ebp - 0xc]
push ebx
push eax
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x411ff0
mov eax, dword [ebp - 0xc]
add dword [ebp - 8], eax
cmp byte [ebp + 0x14], bl
je 0x411fe6
push eax
call fcn.00416bbb
pop ecx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x10]
jae 0x412008
jmp 0x411f76
push dword [ebp + 0xc]
call fcn.0042785e
pop ecx
push dword [ebp - 4]
call esi
push dword [ebp + 8]
call esi
jmp 0x411f1d
push dword [ebp + 0xc]
call fcn.0042785e
pop ecx
push dword [ebp - 4]
call esi
push dword [ebp + 8]
call esi
mov ecx, dword [ebp - 0xc]
xor eax, eax
cmp ecx, dword [ebp - 0x10]
sete al
jmp 0x411f1f