joyce8/EMBER2024-capa huggingface dataset:
Function at 0x476b40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x641a90]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x24]
push edi
mov edi, dword [ebp + 0xc]
push dword [esi]
push 1
push 0x11
push eax
call fcn.00595b79
add esp, 0x10
test eax, eax
jne 0x476b83
pop edi
mov eax, 4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
mov byte [ebp - 0x13], 0
lea eax, [ebp - 0x24]
mov ecx, str.PhotoFiltre_Image
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x476bb0
test dl, dl
je 0x476bac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x476bb0
add eax, 2
add ecx, 2
test dl, dl
jne 0x476b90
xor eax, eax
jmp 0x476bb5
sbb eax, eax
or eax, 1
test eax, eax
je 0x476bce
pop edi
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
push dword [esi]
call fcn.00597fff
push esi
mov byte [edi], al
call fcn.0045d030
push esi
mov dword [edi + 4], eax
call fcn.0045d030
push esi
mov dword [edi + 8], eax
call fcn.0045d030
push esi
mov dword [edi + 0xc], eax
call fcn.0045d030
push 0x100
push esi
call fcn.0045d3f0
push esi
call fcn.0045d030
mov ecx, dword [ebp - 4]
add esp, 0x20
mov dword [edi + 0x10], eax
xor ecx, ebp
xor eax, eax
pop edi
pop esi
call fcn.005920c1
mov esp, ebp
pop ebp
ret

Function at 0x476f50
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
push eax
lea eax, [ebp - 0xc]
mov dword [ebx], 0
push eax
push 0
push edi
call fcn.00477740
add esp, 0x10
test eax, eax
jne 0x476f90
push str.LWF:_MapFileReadOnly_failed_r_n
call fcn.005927a9
add esp, 4
xor eax, eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp - 4]
cmp dword [esi + 0x28], 0x464d4520
jne 0x476fb8
mov dword [eax], 0
mov eax, dword [ebp + 0xc]
push edi
mov dword [eax], str.Windows_Enhanced_metafile
call dword [sym.imp.GDI32.dll_GetEnhMetaFileA]
jmp 0x47700b
cmp dword [esi], 0x9ac6cdd7
jne 0x476fe5
push dword [ebp + 0x10]
mov dword [eax], 2
mov eax, dword [ebp + 0xc]
push esi
mov dword [eax], str.Windows_Placeable_metafile
call fcn.00477030
mov edi, eax
add esp, 8
movzx eax, word [esi + 0xe]
mov dword [ebx], eax
jmp 0x47700d
push 0
push 0
mov dword [eax], 1
mov eax, dword [ebp + 0xc]
push esi
push 0
push dword [ebp - 0xc]
mov dword [eax], str.Windows_metafile
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
call dword [sym.imp.GDI32.dll_SetWinMetaFileBits]
mov edi, eax
lea eax, [ebp - 0xc]
push eax
call fcn.00476f10
add esp, 4
mov eax, edi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x477740
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push 0
push 1
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, dword [ebp + 0x10]
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x4777b8
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
push 0
push 0
push 2
push 0
mov dword [ecx], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [edi + 4], eax
test eax, eax
je 0x4777b0
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi + 8], eax
test eax, eax
jne 0x4777bf
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x478ca0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x641a90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x18]
movzx eax, ax
push ebx
mov dword [ebp - 0x28], ecx
movsx ecx, ax
mov eax, dword [ebp + 0x10]
push esi
push edi
cdq
xor edi, edi
idiv ecx
mov ebx, dword [ebp + 0xc]
mov esi, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x20]
push dword [eax]
lea eax, [ebp - 0x15]
push 1
push 1
push eax
call fcn.00595b79
add esp, 0x10
test eax, eax
je 0x478e05
movsx ebx, byte [ebp - 0x15]
test ebx, ebx
jns 0x478d7a
and ebx, 0x7f
inc ebx
test ebx, ebx
jle 0x478ce5
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
push dword [ecx]
push 1
push eax
push esi
call fcn.00595b79
add esp, 0x10
test eax, eax
je 0x478e05
inc edi
cmp edi, dword [ebp - 0x2c]
jl 0x478d6b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp - 0x28]
call fcn.004585b0
movzx eax, ax
add esp, 0x10
test ax, ax
jne 0x478e0a
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp eax, dword [ebp + 0x14]
jge 0x478df2
mov esi, dword [ebp - 0x24]
xor edi, edi
mov eax, dword [ebp - 0x14]
jmp 0x478d70
mov eax, dword [ebp - 0x14]
add esi, eax
dec ebx
test ebx, ebx
jg 0x478d15
jmp 0x478ce5
mov eax, dword [ebp - 0x20]
inc ebx
push dword [eax]
lea eax, [ebp - 0x10]
push 1
push dword [ebp - 0x14]
push eax
call fcn.00595b79
add esp, 0x10
test eax, eax
je 0x478e05
test ebx, ebx
jle 0x478ce5
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.00592150
inc edi
add esp, 0xc
cmp edi, dword [ebp - 0x2c]
jl 0x478de3
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp - 0x28]
call fcn.004585b0
movzx eax, ax
add esp, 0x10
test ax, ax
jne 0x478e0a
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp eax, dword [ebp + 0x14]
jge 0x478df2
mov esi, dword [ebp - 0x24]
xor edi, edi
mov eax, dword [ebp - 0x14]
jmp 0x478de8
mov eax, dword [ebp - 0x14]
add esi, eax
dec ebx
test ebx, ebx
jg 0x478da0
jmp 0x478ce5
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
mov eax, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005920c1
mov esp, ebp
pop ebp
ret
Function at 0x4795f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x641a90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0x18]
xor ebx, ebx
cdq
idiv esi
mov ecx, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x14], esi
mov edi, eax
mov dword [ebp - 0x24], ecx
mov esi, ecx
mov dword [ebp - 0x20], 0
mov edi, edi
mov eax, dword [ebp - 0x28]
push dword [eax]
lea eax, [ebp - 0x15]
push 1
push 1
push eax
call fcn.00595b79
add esp, 0x10
test eax, eax
je 0x4797ac
movsx eax, byte [ebp - 0x15]
test eax, eax
jns 0x4796f4
and eax, 0x7f
inc eax
mov dword [ebp - 0x1c], eax
test eax, eax
jle 0x479630
mov eax, dword [ebp - 0x28]
push dword [eax]
push 1
push dword [ebp - 0x14]
push esi
call fcn.00595b79
add esp, 0x10
test eax, eax
je 0x4797ac
inc ebx
cmp ebx, edi
jl 0x4796dd
cmp dword [ebp - 0x14], 2
jne 0x4796a9
xor esi, esi
test edi, edi
jle 0x4796a9
mov ebx, dword [ebp - 0x24]
movzx eax, word [ebx + esi*2]
push eax
call fcn.0045c6f0
mov word [ebx + esi*2], ax
add esp, 4
inc esi
cmp esi, edi
jl 0x479693
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp - 0x2c]
call fcn.004585b0
movzx eax, ax
add esp, 0x10
test ax, ax
jne 0x4797b1
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp eax, dword [ebp + 0x14]
jge 0x479799
mov esi, dword [ebp - 0x24]
xor ebx, ebx
jmp 0x4796e0
add esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
dec eax
mov dword [ebp - 0x1c], eax
test eax, eax
jg 0x479664
jmp 0x479630
inc eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x28]
push dword [eax]
lea eax, [ebp - 0x10]
push 1
push dword [ebp - 0x14]
push eax
call fcn.00595b79
add esp, 0x10
test eax, eax
je 0x4797ac
cmp dword [ebp - 0x1c], 0
jle 0x479630
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.00592150
inc ebx
add esp, 0xc
cmp ebx, edi
jl 0x479786
cmp dword [ebp - 0x14], 2
jne 0x47975a
xor esi, esi
test edi, edi
jle 0x47975a
mov ebx, dword [ebp - 0x24]
movzx eax, word [ebx + esi*2]
push eax
call fcn.0045c6f0
mov word [ebx + esi*2], ax
add esp, 4
inc esi
cmp esi, edi
jl 0x479744
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp - 0x2c]
call fcn.004585b0
movzx eax, ax
add esp, 0x10
test ax, ax
jne 0x4797b1
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp eax, dword [ebp + 0x14]
jge 0x479799
mov esi, dword [ebp - 0x24]
xor ebx, ebx
jmp 0x479789
add esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
dec eax
mov dword [ebp - 0x1c], eax
test eax, eax
jg 0x479720
jmp 0x479630
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
mov eax, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005920c1
mov esp, ebp
pop ebp
ret
Function at 0x479c00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x641a90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x210], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x214], eax
push dword [edi]
mov eax, dword [ebp + 0x18]
push 1
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x204]
push 6
push eax
call fcn.00595b79
add esp, 0x10
test eax, eax
jne 0x479c64
pop edi
mov eax, 4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x204]
cmp dword [eax], 0x67616d69
jne 0x479c8c
cmp word [eax + 4], 0x2065
jne 0x479c8c
push 0x20
push 0xc
push eax
push edi
call fcn.0045d350
add esp, 0x10
test eax, eax
jne 0x479ca1
pop edi
mov eax, 2
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x206]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push str._d_c
push eax
call fcn.00593320
push 0x20
push 0xc
lea eax, [ebp - 0x204]
push eax
push edi
call fcn.0045d350
add esp, 0x20
test eax, eax
je 0x479c8c
lea eax, [ebp - 0x205]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x204]
push str._d_c
push eax
call fcn.00593320
mov al, byte [ebp - 0x206]
add esp, 0x10
cmp al, 0x6c
je 0x479d1a
cmp al, 0x4c
je 0x479d1a
mov al, byte [ebp - 0x205]
cmp al, 0x62
je 0x479d1a
cmp al, 0x42
jne 0x479c8c
mov eax, dword [ebp - 0x20c]
cmp eax, 4
jl 0x479c8c
push esi
xor esi, esi
test eax, eax
jle 0x479dda
push edi
lea eax, [ebp - 0x204]
push 0x200
push eax
call fcn.0045ca60
add esp, 0xc
test eax, eax
je 0x479ded
test esi, esi
jne 0x479d68
lea eax, [ebp - 0x204]
push eax
call fcn.00593e1b
add esp, 4
mov dword [ebx], eax
jmp 0x479dcd
cmp esi, 1
jne 0x479d86
lea eax, [ebp - 0x204]
push eax
call fcn.00593e1b
mov ecx, dword [ebp - 0x210]
add esp, 4
mov dword [ecx], eax
jmp 0x479dcd
cmp esi, 2
jne 0x479da4
lea eax, [ebp - 0x204]
push eax
call fcn.00593e1b
mov ecx, dword [ebp - 0x214]
add esp, 4
mov dword [ecx], eax
jmp 0x479dcd
cmp esi, 3
jne 0x479dcd
mov edx, dword [ebp - 0x218]
lea ecx, [ebp - 0x204]
mov eax, ecx
sub edx, eax
lea esp, [esp]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x479dc0
inc esi
cmp esi, dword [ebp - 0x20c]
jl 0x479d34
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 2
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.005920c1
mov esp, ebp
pop ebp
ret
Function at 0x47b9f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x18]
mov eax, dword [esi + 0x1c]
push dword [eax]
push 0x1000
push 1
push dword [esi + 0x20]
call fcn.00595b79
mov ecx, eax
add esp, 0x10
test ecx, ecx
jne 0x47ba58
cmp byte [esi + 0x24], al
je 0x47ba30
mov eax, dword [edi]
push edi
mov dword [eax + 0x14], 0x2a
mov eax, dword [edi]
mov eax, dword [eax]
call eax
add esp, 4
mov eax, dword [edi]
push 0xffffffffffffffff
push edi
mov dword [eax + 0x14], 0x78
mov eax, dword [edi]
mov eax, dword [eax + 4]
call eax
mov eax, dword [esi + 0x20]
add esp, 8
mov ecx, 2
mov byte [eax], 0xff
mov eax, dword [esi + 0x20]
mov byte [eax + 1], 0xd9
mov eax, dword [esi + 0x20]
mov dword [esi], eax
mov al, 1
pop edi
mov dword [esi + 4], ecx
mov byte [esi + 0x24], 0
pop esi
pop ebp
ret
Function at 0x47cee0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x641a90]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x54]
push edi
mov edi, dword [ebp + 0xc]
push dword [esi]
push 1
push 8
push eax
call fcn.00595b79
add esp, 0x10
test eax, eax
je 0x47d0da
lea ecx, [ebp - 0x54]
cmp dword [ecx], 0x74696225
jne 0x47d0da
cmp word [ecx + 4], 0x616d
jne 0x47d0da
cmp byte [ecx + 6], 0x70
jne 0x47d0da
push dword [esi]
mov eax, ecx
push 1
push 8
push eax
call fcn.00595b79
add esp, 0x10
test eax, eax
je 0x47d0da
lea eax, [ebp - 0x54]
push eax
call fcn.00593e1b
mov dword [edi], eax
lea eax, [ebp - 0x54]
push dword [esi]
push 1
push 8
push eax
call fcn.00595b79
add esp, 0x14
test eax, eax
je 0x47d0da
lea eax, [ebp - 0x54]
push eax
call fcn.00593e1b
mov dword [edi + 4], eax
lea eax, [ebp - 0x54]
push dword [esi]
push 1
push 8
push eax
call fcn.00595b79
add esp, 0x14
test eax, eax
je 0x47d0da
lea eax, [ebp - 0x54]
push eax
call fcn.00593e1b
mov dword [edi + 8], eax
lea eax, [ebp - 0x54]
push dword [esi]
push 1
push 8
push eax
call fcn.00595b79
add esp, 0x14
test eax, eax
je 0x47d0da
lea eax, [ebp - 0x54]
push eax
call fcn.00593e1b
mov dword [edi + 0xc], eax
lea eax, [ebp - 0x54]
push dword [esi]
push 1
push 8
push eax
call fcn.00595b79
add esp, 0x14
test eax, eax
je 0x47d0da
lea eax, [ebp - 0x54]
push eax
call fcn.00593e1b
mov dword [edi + 0x10], eax
lea eax, [ebp - 0x54]
push dword [esi]
push 1
push 0xc
push eax
call fcn.00595b79
add esp, 0x14
test eax, eax
je 0x47d0da
lea eax, [ebp - 0x54]
push eax
call fcn.00593e1b
mov dword [edi + 0x14], eax
lea eax, [ebp - 0x54]
push dword [esi]
push 1
push 0xc
push eax
call fcn.00595b79
add esp, 0x14
test eax, eax
je 0x47d0da
lea eax, [ebp - 0x54]
push eax
call fcn.00593e1b
mov dword [edi + 0x18], eax
lea eax, [ebp - 0x54]
push dword [esi]
push 1
push 0xc
push eax
call fcn.00595b79
add esp, 0x14
test eax, eax
je 0x47d0da
lea eax, [ebp - 0x54]
push eax
call fcn.00593e1b
mov dword [edi + 0x1c], eax
lea eax, [ebp - 0x54]
push dword [esi]
push 1
push 0xc
push eax
call fcn.00595b79
add esp, 0x14
test eax, eax
je 0x47d0da
lea eax, [ebp - 0x54]
push eax
call fcn.00593e1b
mov dword [edi + 0x20], eax
lea eax, [ebp - 0x54]
push dword [esi]
push 1
push 0x50
push eax
call fcn.00595b79
add esp, 0x14
test eax, eax
jne 0x47d0b2
pop edi
mov eax, 4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
push dword [esi]
lea eax, [ebp - 0x54]
push 1
push 0x50
push eax
call fcn.00595b79
add esp, 0x10
test eax, eax
je 0x47d09d
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 2
pop edi
xor ecx, ebp
pop esi
call fcn.005920c1
mov esp, ebp
pop ebp
ret
Function at 0x47e3a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x17c
mov eax, dword [0x641a90]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x16c]
push esi
mov esi, dword [ebp + 8]
push edi
push eax
mov dword [ebp - 0x174], ebx
call fcn.00457d90
movdqu xmm0, xmmword [str.Z80_Screen_dump]
push 0x1b00
mov dword [ebp - 0x15c], 0x100
mov dword [ebp - 0x158], 0xc0
movdqu xmmword [ebp - 0x86], xmm0
mov dword [ebp - 0x16c], 2
mov dword [ebp - 0x154], 0x40001
mov dword [ebp - 0x14c], 0x40
call fcn.00593e38
mov edi, eax
add esp, 8
mov dword [ebp - 0x170], edi
test edi, edi
jne 0x47e43d
lea eax, [edi + 1]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
push dword [esi]
push 1
push 0x1b00
push edi
call fcn.00595b79
add esp, 0x10
cmp eax, 1
je 0x47e473
push edi
call fcn.00592c4b
add esp, 4
mov eax, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x16c]
push eax
push ebx
call fcn.00456000
movzx esi, ax
add esp, 8
test si, si
jne 0x47e59b
xor ebx, ebx
mov dword [ebp - 0x178], ebx
cmp dword [ebp - 0x158], ebx
jle 0x47e581
jmp 0x47e4b0
xor esi, esi
cmp dword [ebp - 0x15c], esi
jle 0x47e54c
mov eax, ebx
cdq
and edx, 7
push ebx
lea edi, [edx + eax]
sar edi, 3
add edi, 0xc0
shl edi, 5
call fcn.0047e5f0
add esp, 4
shl eax, 5
mov dword [ebp - 0x17c], eax
mov eax, esi
cdq
and edx, 7
add eax, edx
mov edx, dword [ebp - 0x170]
sar eax, 3
lea ecx, [eax + edi]
add eax, dword [ebp - 0x17c]
mov bl, byte [ecx + edx]
mov ecx, esi
and ecx, 7
mov edx, 0x80
sar edx, cl
mov ecx, dword [ebp - 0x170]
test byte [eax + ecx], dl
je 0x47e52b
movzx ecx, bl
mov eax, ecx
and ecx, 7
shr eax, 3
and eax, 8
or eax, ecx
jmp 0x47e534
movzx eax, bl
shr eax, 3
and eax, 0xf
mov ecx, dword [ebp - 0x160]
mov byte [ecx + esi], al
inc esi
cmp esi, dword [ebp - 0x15c]
jl 0x47e4e5
mov ebx, dword [ebp - 0x178]
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp - 0x174]
call fcn.004585b0
movzx esi, ax
add esp, 0x10
test si, si
jne 0x47e57b
inc ebx
mov dword [ebp - 0x178], ebx
cmp ebx, dword [ebp - 0x158]
jl 0x47e4b0
mov edi, dword [ebp - 0x170]
push 0x638d88
push 8
push 0x100
push dword [ebp - 0x174]
call fcn.00453f80
add esp, 0x10
push edi
call fcn.00592c4b
mov ecx, dword [ebp - 4]
add esp, 4
mov ax, si
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.005920c1
mov esp, ebp
pop ebp
ret
Function at 0x480380
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 0x20]
push edi
cmp esi, 2
jne 0x48039f
xor ebx, ebx
mov dword [ebp - 0x10], 1
mov dword [ebp - 8], ebx
jmp 0x4803c8
cmp dword [ebp + 0x24], 0
jne 0x4803b8
cmp esi, 4
jne 0x4803b8
xor ebx, ebx
mov dword [ebp - 0x10], 3
mov dword [ebp - 8], ebx
jmp 0x4803c8
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], ebx
test esi, esi
jle 0x480570
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x10]
mov edi, edi
xor esi, esi
add ebx, ecx
mov dword [ebp - 0xc], esi
test eax, eax
jle 0x480560
nop
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 1]
push 1
push 1
push eax
call fcn.00595b79
add esp, 0x10
test eax, eax
je 0x480579
movzx edi, byte [ebp - 1]
cmp edi, 0x80
jl 0x4804bf
mov eax, 0x100
sub eax, edi
mov dword [ebp - 0x18], eax
cmp eax, 0x80
jne 0x48042f
push dword [ebp + 8]
call fcn.0045d240
movzx eax, ax
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
test eax, eax
jle 0x48054c
mov edi, dword [ebp - 0xc]
imul edi, dword [ebp + 0x1c]
mov eax, dword [ebp - 8]
add edi, eax
add edi, dword [ebp + 0x10]
lea ecx, [ecx]
mov ecx, dword [ebp + 0x20]
cmp ecx, 2
jne 0x48045d
cmp eax, 1
je 0x48046d
cmp dword [ebp + 0x24], 0
jne 0x48047c
cmp ecx, 4
jne 0x48047c
cmp eax, 3
jne 0x48047c
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.00597fff
add esp, 4
jmp 0x48048e
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.00597fff
add esp, 4
mov byte [ebx], al
add ebx, dword [ebp - 0x10]
inc esi
cmp esi, dword [ebp + 0x14]
jl 0x4804ab
mov eax, dword [ebp - 0xc]
xor esi, esi
add edi, dword [ebp + 0x1c]
inc eax
mov ebx, edi
mov dword [ebp - 0xc], eax
cmp eax, dword [ebp + 0x18]
jge 0x48055a
mov eax, dword [ebp - 0x14]
inc eax
cmp eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
jl 0x480450
jmp 0x48054c
inc edi
cmp edi, 0x80
jne 0x4804d6
push dword [ebp + 8]
call fcn.0045d240
add esp, 4
movzx edi, ax
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 1]
push 1
push 1
push eax
call fcn.00595b79
add esp, 0x10
test eax, eax
je 0x480579
xor edx, edx
test edi, edi
jle 0x48054c
mov eax, dword [ebp - 0xc]
mov ecx, eax
imul ecx, dword [ebp + 0x1c]
add ecx, dword [ebp - 8]
add ecx, dword [ebp + 0x10]
cmp dword [ebp + 0x20], 2
jne 0x480514
cmp dword [ebp - 8], 1
je 0x480531
cmp dword [ebp + 0x24], 0
jne 0x480526
cmp dword [ebp + 0x20], 4
jne 0x480526
cmp dword [ebp - 8], 3
je 0x480531
mov al, byte [ebp - 1]
mov byte [ebx], al
add ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
inc esi
cmp esi, dword [ebp + 0x14]
jl 0x480547
add ecx, dword [ebp + 0x1c]
inc eax
xor esi, esi
mov dword [ebp - 0xc], eax
mov ebx, ecx
cmp eax, dword [ebp + 0x18]
jge 0x48055a
inc edx
cmp edx, edi
jl 0x480508
mov eax, dword [ebp + 0x18]
cmp dword [ebp - 0xc], eax
jl 0x4803e0
jmp 0x48055d
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ebp - 8]
inc ebx
mov dword [ebp - 8], ebx
cmp ebx, dword [ebp + 0x20]
jl 0x4803d0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 4
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x480af0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x641a90]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push edi
mov edi, dword [ebp + 8]
push dword [edi]
push 1
push 0xe
push eax
call fcn.00595b79
add esp, 0x10
test eax, eax
je 0x480bc2
push 9
lea eax, [ebp - 0x14]
push str.gimp_xcf
push eax
call fcn.00596360
add esp, 0xc
test eax, eax
jne 0x480bc2
mov ecx, str.file
lea eax, [ebp - 0xb]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x480b65
test dl, dl
je 0x480b61
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x480b65
add eax, 2
add ecx, 2
test dl, dl
jne 0x480b45
xor eax, eax
jmp 0x480b6a
sbb eax, eax
or eax, 1
test eax, eax
jne 0x480b72
mov dword [esi], eax
jmp 0x480b86
cmp byte [ebp - 0xb], 0x76
jne 0x480bc2
lea eax, [ebp - 0xa]
push eax
call fcn.00593e1b
add esp, 4
mov dword [esi], eax
push edi
call fcn.0045d070
push edi
mov dword [esi + 4], eax
call fcn.0045d070
push edi
mov dword [esi + 8], eax
call fcn.0045d070
mov dword [esi + 0xc], eax
push dword [edi]
call fcn.00595867
add esp, 0x10
neg eax
sbb eax, eax
and eax, 4
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 2
pop edi
xor ecx, ebp
pop esi
call fcn.005920c1
mov esp, ebp
pop ebp
ret

Function at 0x481230
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [eax + 0x14], 0
push edi
call fcn.0045d070
push edi
lea esi, [eax + 1]
call fcn.0045d070
add esp, 8
mov ebx, eax
cmp esi, 0x14
ja case.0x481267.2
movzx ecx, byte [esi + 0x481328]
jmp dword [ecx*4 + 0x481310]
push edi
call fcn.0045d070
mov ecx, dword [ebp + 0xc]
add esp, 4
mov edx, eax
cmp dword [ecx], 0
mov dword [ecx + 0x14], edx
jne 0x481290
push edx
push edi
call fcn.0045d3f0
add esp, 8
jmp 0x481243
push dword [edi]
mov eax, 0x100
cmp edx, eax
push 3
cmovl eax, edx
push eax
lea eax, [ecx + 0x28]
push eax
call fcn.00595b79
add esp, 0x10
cmp eax, 3
je 0x481243
pop edi
pop esi
mov eax, 4
pop ebx
pop ebp
ret
push dword [edi]
call fcn.00597fff
mov ecx, dword [ebp + 0xc]
add esp, 4
mov dword [ecx + 0x10], eax
jmp 0x481243
mov esi, dword [ebp + 0xc]
lea eax, [esi + 0x18]
push eax
push edi
call fcn.0045cf30
lea eax, [esi + 0x20]
push eax
push edi
call fcn.0045cf30
lea eax, [ebx - 8]
push eax
push edi
call fcn.0045d3f0
add esp, 0x18
jmp 0x481243
push ebx
push edi
call fcn.0045d3f0
add esp, 8
test eax, eax
jmp 0x4812ae
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret