joyce8/EMBER2024-capa huggingface dataset:
Function at 0x54a330
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, dword [esp + 8]
test ebp, ebp
je 0x54a4b8
mov eax, dword [ebp + 0x6c]
test al, 4
push edi
jne 0x54a351
mov edi, str.No_IDATs_written_into_file
mov eax, ebp
jmp fcn.0054c480
mov ecx, dword [ebp + 0x288]
cmp ecx, dword [ebp + 0x284]
je 0x54a36b
mov edi, str.Not_enough_frames_written
mov eax, ebp
jmp fcn.0054c480
test esi, esi
je 0x54a4ab
test dword [esi + 8], 0x200
je 0x54a391
test eax, 0x200
jne 0x54a391
lea edx, [esi + 0x3c]
push edx
mov ecx, ebp
call fcn.00562a40
add esp, 4
push ebx
xor ebx, ebx
cmp dword [esi + 0x30], ebx
jle 0x54a436
xor edi, edi
nop
mov eax, dword [esi + 0x38]
mov eax, dword [edi + eax]
test eax, eax
jle 0x54a3d7
mov ecx, dword [esi + 0x38]
mov edx, dword [ecx + edi + 8]
lea eax, [ecx + edi]
mov ecx, dword [eax + 0x14]
push edx
mov edx, dword [eax]
push ecx
mov ecx, dword [eax + 0x18]
push edx
mov edx, dword [eax + 4]
push ebp
call fcn.00562140
mov eax, dword [esi + 0x38]
add esp, 0x10
mov dword [edi + eax], 0xfffffffd
jmp 0x54a427
jl 0x54a400
mov ecx, dword [esi + 0x38]
mov edx, dword [ecx + edi]
lea eax, [ecx + edi]
mov ecx, dword [eax + 8]
push edx
mov edx, dword [eax + 4]
push ecx
mov ecx, ebp
call fcn.00561f90
mov edx, dword [esi + 0x38]
add esp, 8
mov dword [edi + edx], 0xfffffffe
jmp 0x54a427
cmp eax, 0xffffffff
jne 0x54a427
mov eax, dword [esi + 0x38]
mov ecx, dword [eax + edi + 8]
mov edx, dword [eax + edi + 4]
add eax, edi
push ecx
mov ecx, ebp
call fcn.00561e80
mov edx, dword [esi + 0x38]
add esp, 4
mov dword [edi + edx], 0xfffffffd
add ebx, 1
add edi, 0x1c
cmp ebx, dword [esi + 0x30]
jl 0x54a3a0
mov eax, dword [esi + 0xc4]
test eax, eax
je 0x54a4aa
mov edi, dword [esi + 0xc0]
lea eax, [eax + eax*4]
lea ecx, [edi + eax*4]
cmp edi, ecx
jae 0x54a4aa
push edi
mov ecx, ebp
call fcn.0054b610
add esp, 4
cmp eax, 1
je 0x54a491
mov cl, byte [edi + 0x10]
test cl, cl
je 0x54a491
test cl, 8
je 0x54a491
test byte [edi + 3], 0x20
jne 0x54a480
cmp eax, 3
je 0x54a480
test dword [ebp + 0x70], 0x10000
je 0x54a491
mov eax, dword [edi + 0xc]
mov ebx, dword [edi + 8]
push ebp
mov ecx, edi
call fcn.005601c0
add esp, 4
mov eax, dword [esi + 0xc4]
lea edx, [eax + eax*4]
mov eax, dword [esi + 0xc0]
add edi, 0x14
lea ecx, [eax + edx*4]
cmp edi, ecx
jb 0x54a450
pop ebx
or dword [ebp + 0x6c], 8
pop edi
mov ecx, ebp
pop ebp
jmp 0x560f70
pop ebp
ret
sub esp, 0xc
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 8], eax
push esi
mov esi, ecx
test esi, esi
mov byte [esp + 4], 0x49
mov byte [esp + 5], 0x45
mov byte [esp + 6], 0x4e
mov byte [esp + 7], 0x44
mov byte [esp + 8], 0
je 0x560fb3
push 0
lea ecx, [esp + 8]
call fcn.00560210
add esp, 4
mov eax, esi
call fcn.00560320
or dword [esi + 0x6c], 0x10
mov ecx, dword [esp + 0xc]
pop esi
xor ecx, esp
call fcn.005d28b3
add esp, 0xc
ret
Function at 0x54a720
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, eax
test esi, esi
je 0x54a935
cmp dword [esi + 0xe4], 0
push edi
jne 0x54a756
cmp byte [esi + 0x124], 0
jne 0x54a756
test dword [esi + 0x6c], 0x400
jne 0x54a751
mov edi, str.png_write_info_was_never_called_before_png_write_row
jmp fcn.0054c480
call fcn.00562dd0
cmp byte [esi + 0x123], 0
je case.default.0x54a77d
test byte [esi + 0x74], 2
je case.default.0x54a77d
movzx eax, byte [esi + 0x124]
cmp eax, 6
ja case.default.0x54a77d
jmp dword [eax*4 + 0x54a938]
test byte [esi + 0xe4], 7
je case.default.0x54a77d
pop edi
mov eax, esi
pop esi
jmp fcn.00562fa0
test byte [esi + 0xe4], 7
jne 0x54a7b0
cmp dword [esi + 0xcc], 5
jae case.default.0x54a77d
pop edi
mov eax, esi
pop esi
jmp fcn.00562fa0
mov eax, dword [esi + 0xe4]
and al, 7
cmp al, 4
je case.default.0x54a77d
pop edi
mov eax, esi
pop esi
jmp fcn.00562fa0
mov eax, 3
test byte [esi + 0xe4], al
jne 0x54a7e3
cmp dword [esi + 0xcc], eax
jae case.default.0x54a77d
pop edi
mov eax, esi
pop esi
jmp fcn.00562fa0
mov ecx, dword [esi + 0xe4]
and cl, 3
cmp cl, 2
je case.default.0x54a77d
pop edi
mov eax, esi
pop esi
jmp fcn.00562fa0
test byte [esi + 0xe4], 1
jne 0x54a815
cmp dword [esi + 0xcc], 2
jae case.default.0x54a77d
pop edi
mov eax, esi
pop esi
jmp fcn.00562fa0
test byte [esi + 0xe4], 1
jne case.default.0x54a77d
pop edi
mov eax, esi
pop esi
jmp fcn.00562fa0
movzx edx, byte [esi + 0x126]
mov al, byte [esi + 0x128]
mov ecx, dword [esi + 0xd8]
mov byte [esi + 0x108], dl
mov dl, byte [esi + 0x12b]
mov byte [esi + 0x109], al
imul dl
lea edi, [esi + 0x100]
mov byte [esi + 0x10b], al
cmp al, 8
mov dword [edi], ecx
mov byte [esi + 0x10a], dl
movzx eax, al
jb 0x54a87a
shr eax, 3
imul eax, ecx
jmp 0x54a883
imul eax, ecx
add eax, 7
shr eax, 3
mov ecx, dword [esi + 0xec]
push eax
mov dword [esi + 0x104], eax
mov eax, dword [esp + 0x10]
push eax
add ecx, 1
push ecx
call fcn.005d8ed0
add esp, 0xc
cmp byte [esi + 0x123], 0
je 0x54a8dd
mov al, byte [esi + 0x124]
cmp al, 6
jae 0x54a8dd
test byte [esi + 0x74], 2
je 0x54a8dd
mov ecx, dword [esi + 0xec]
movzx eax, al
add ecx, 1
push edi
call fcn.00563200
add esp, 4
cmp dword [edi], 0
jne 0x54a8dd
pop edi
mov eax, esi
pop esi
jmp fcn.00562fa0
cmp dword [esi + 0x74], 0
je 0x54a8e8
call fcn.00565b10
test byte [esi + 0x230], 4
je 0x54a90a
cmp byte [esi + 0x234], 0x40
jne 0x54a90a
mov ecx, dword [esi + 0xec]
add ecx, 1
mov eax, edi
call fcn.00566240
push esi
mov eax, edi
call fcn.005634b0
mov eax, dword [esi + 0x19c]
add esp, 4
test eax, eax
je 0x54a934
movzx edx, byte [esi + 0x124]
mov ecx, dword [esi + 0xe4]
push edx
push ecx
push esi
call eax
add esp, 0xc
pop edi
pop esi
ret
Function at 0x54a960
Capabilities:
Terminate process

Disassembly:
test esi, esi
je 0x54aa3a
mov eax, dword [esi + 0xe4]
cmp eax, dword [esi + 0xd4]
jae 0x54aa3a
push edi
lea edi, [esi + 0x78]
mov edi, edi
push 2
call fcn.005644f0
add esp, 4
test eax, eax
jne 0x54a9c8
cmp dword [esi + 0x88], eax
jne 0x54a9e3
mov ecx, dword [esi + 0xb4]
mov edx, dword [esi + 0xb0]
push ecx
push edx
mov ecx, esi
call fcn.00560d70
mov eax, dword [esi + 0xb0]
mov ecx, dword [esi + 0xb4]
add esp, 8
mov dword [esi + 0x84], eax
mov dword [esi + 0x88], ecx
jmp 0x54a980
mov edi, dword [esi + 0x90]
test edi, edi
mov eax, esi
je 0x54a9d9
jmp fcn.0054c480
mov edi, str.zlib_error
jmp fcn.0054c480
mov eax, dword [esi + 0xb4]
mov ecx, dword [esi + 0x88]
cmp eax, ecx
je 0x54aa1f
mov edx, dword [esi + 0xb0]
sub eax, ecx
push eax
push edx
mov ecx, esi
call fcn.00560d70
mov eax, dword [esi + 0xb0]
mov ecx, dword [esi + 0xb4]
add esp, 8
mov dword [esi + 0x84], eax
mov dword [esi + 0x88], ecx
mov eax, dword [esi + 0x14c]
test eax, eax
mov dword [esi + 0x154], 0
je 0x54aa39
push esi
call eax
add esp, 4
pop edi
ret

Function at 0x54ad80
Capabilities:
Terminate process

Disassembly:
test dword [ecx + 8], 0x10000
push ebx
push edi
mov edi, eax
mov ebx, edx
jne 0x54ad9b
mov edi, str.png_write_frame_head__:_acTL_not_set
mov eax, ebx
jmp fcn.0054c480
and dword [ebx + 0x6c], 0xfffffffb
xor eax, eax
mov dword [ebx + 0xe4], eax
mov byte [ebx + 0x124], al
push esi
mov eax, edi
call fcn.00564160
add esp, 4
cmp dword [ebx + 0x288], 0
jne 0x54adca
test byte [ebx + 0x268], 1
jne 0x54adf2
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push eax
push ecx
mov cl, byte [esp + 0x30]
push esi
push edi
push ebx
call fcn.00562bf0
add esp, 0x20
pop edi
pop ebx
ret
Function at 0x54b870
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov ebx, eax
xor edi, edi
test ebx, ebx
mov esi, ecx
jne 0x54b88f
mov ecx, str.Image_width_is_zero_in_IHDR
call fcn.0054c4a0
lea edi, [ebx + 1]
test ebp, ebp
jne 0x54b8a0
mov ecx, str.Image_height_is_zero_in_IHDR
call fcn.0054c4a0
lea edi, [ebp + 1]
cmp ebx, dword [esi + 0x258]
ja 0x54b8b0
cmp ebx, 0xf4240
jbe 0x54b8bf
mov ecx, str.Image_width_exceeds_user_limit_in_IHDR
call fcn.0054c4a0
mov edi, 1
cmp ebp, dword [esi + 0x25c]
ja 0x54b8cf
cmp ebp, 0xf4240
jbe 0x54b8de
mov ecx, str.Image_height_exceeds_user_limit_in_IHDR
call fcn.0054c4a0
mov edi, 1
cmp ebx, 0x7fffffff
jbe 0x54b8f5
mov ecx, str.Invalid_image_width_in_IHDR
call fcn.0054c4a0
mov edi, 1
cmp ebp, 0x7fffffff
jbe 0x54b90c
mov ecx, str.Invalid_image_height_in_IHDR
call fcn.0054c4a0
mov edi, 1
cmp ebx, 0x1fffff8e
jbe 0x54b91e
mov ecx, str.Width_is_too_large_for_libpng_to_process_pixels
call fcn.0054c4a0
mov ebx, dword [esp + 0x18]
cmp ebx, 1
je 0x54b94a
cmp ebx, 2
je 0x54b94a
cmp ebx, 4
je 0x54b94a
cmp ebx, 8
je 0x54b94a
cmp ebx, 0x10
je 0x54b94a
mov ecx, str.Invalid_bit_depth_in_IHDR
call fcn.0054c4a0
mov edi, 1
mov ebp, dword [esp + 0x1c]
test ebp, ebp
jl 0x54b961
cmp ebp, 1
je 0x54b961
cmp ebp, 5
je 0x54b961
cmp ebp, 6
jle 0x54b970
mov ecx, str.Invalid_color_type_in_IHDR
call fcn.0054c4a0
mov edi, 1
cmp ebp, 3
jne 0x54b97c
cmp ebx, 8
jg 0x54b990
jmp 0x54b99f
cmp ebp, 2
je 0x54b98b
cmp ebp, 4
je 0x54b98b
cmp ebp, 6
jne 0x54b99f
cmp ebx, 8
jge 0x54b99f
mov ecx, str.Invalid_color_type_bit_depth_combination_in_IHDR
call fcn.0054c4a0
mov edi, 1
cmp dword [esp + 0x20], 2
jl 0x54b9b5
mov ecx, str.Unknown_interlace_method_in_IHDR
call fcn.0054c4a0
mov edi, 1
cmp dword [esp + 0x24], 0
je 0x54b9cb
mov ecx, str.Unknown_compression_method_in_IHDR
call fcn.0054c4a0
mov edi, 1
mov ebx, 0x1000
test dword [esi + 0x6c], ebx
je 0x54b9e8
cmp dword [esi + 0x230], 0
je 0x54b9e8
mov ecx, str.MNG_features_are_not_allowed_in_a_PNG_datastream
call fcn.0054c4a0
mov eax, dword [esp + 0x28]
test eax, eax
je 0x54ba37
test byte [esi + 0x230], 4
je 0x54ba0d
cmp eax, 0x40
jne 0x54ba0d
test dword [esi + 0x6c], ebx
jne 0x54ba0d
cmp ebp, 2
je 0x54ba1c
cmp ebp, 6
je 0x54ba1c
mov ecx, str.Unknown_filter_method_in_IHDR
call fcn.0054c4a0
mov edi, 1
test dword [esi + 0x6c], ebx
je 0x54ba37
mov ecx, str.Invalid_filter_method_in_IHDR
call fcn.0054c4a0
mov edi, str.Invalid_IHDR_data
mov eax, esi
jmp fcn.0054c480
cmp edi, 1
jne 0x54ba48
mov edi, str.Invalid_IHDR_data
mov eax, esi
jmp fcn.0054c480
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x54bee0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x2c
mov edx, dword [esp + 0x38]
push ebx
push ebp
mov ebp, 8
sub ebp, edx
mov ecx, ebp
mov ebx, 1
shl ebx, cl
mov ecx, 0x10
sub ecx, edx
mov eax, 1
shl eax, cl
mov ecx, 0xf
sub ecx, edx
push esi
mov esi, dword [esp + 0x3c]
sub eax, 1
mov dword [esp + 0x10], eax
mov eax, 1
shl eax, cl
push edi
mov ecx, esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], eax
lea eax, [ebx*4]
call fcn.00560000
mov ecx, dword [esp + 0x44]
xor edi, edi
test ebx, ebx
mov dword [esp + 0x18], eax
mov dword [ecx], eax
ja 0x54bf54
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov esi, dword [esp + 0x40]
test esi, esi
je 0x54bf8c
mov eax, dword [esi + 0x23c]
test eax, eax
push 0x200
je 0x54bf6f
push esi
call eax
add esp, 8
jmp 0x54bf77
call fcn.005d3435
add esp, 4
test eax, eax
jne 0x54bf88
test dword [esi + 0x70], 0x100000
je 0x54c088
mov ebx, eax
jmp 0x54bf8e
xor ebx, ebx
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x18]
add eax, 0xfffe8ce8
xor esi, esi
cmp eax, 0x2710
mov dword [edx + edi*4], ebx
jbe 0x54c045
mov ecx, dword [esp + 0x14]
fild dword [esp + 0x14]
test ecx, ecx
jge 0x54bfbd
fadd qword [0x6406a0]
fstp qword [esp + 0x28]
fild dword [esp + 0x4c]
fmul qword [0x640690]
fstp qword [esp + 0x30]
mov edx, esi
mov ecx, ebp
shl edx, cl
add edx, edi
test edx, edx
mov dword [esp + 0x44], edx
fild dword [esp + 0x44]
jge 0x54bfe9
fadd qword [0x6406a0]
fdiv qword [esp + 0x28]
fld qword [esp + 0x30]
call fcn.005f4620
fmul qword [0x640698]
sub esp, 8
fadd qword [0x640688]
fstp qword [esp]
call fcn.005f44b0
fnstcw word [esp + 0x4c]
add esi, 1
movzx eax, word [esp + 0x4c]
or eax, 0xc00
mov dword [esp + 0x24], eax
add esp, 8
cmp esi, 0x100
fldcw word [esp + 0x1c]
fistp dword [esp + 0x1c]
mov ax, word [esp + 0x1c]
mov word [ebx + esi*2 - 2], ax
fldcw word [esp + 0x44]
jb 0x54bfcf
jmp 0x54c073
mov eax, esi
mov ecx, ebp
shl eax, cl
add eax, edi
cmp dword [esp + 0x48], 0
je 0x54c064
imul eax, eax, 0xffff
add eax, dword [esp + 0x20]
xor edx, edx
div dword [esp + 0x14]
mov word [ebx + esi*2], ax
add esi, 1
cmp esi, 0x100
jb 0x54c045
add edi, 1
cmp edi, dword [esp + 0x24]
jb 0x54bf50
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov edi, str.Out_of_Memory
mov eax, esi
jmp fcn.0054c480
Function at 0x54c0a0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x20]
push ebx
mov ecx, 8
sub ecx, eax
mov dword [esp + 8], ecx
mov ebx, 1
shl ebx, cl
mov ecx, 0x10
sub ecx, eax
mov eax, 1
shl eax, cl
push ebp
mov ebp, dword [esp + 0x20]
push esi
sub eax, 1
mov dword [esp + 0x18], eax
push edi
lea eax, [ebx*4]
mov ecx, ebp
mov dword [esp + 0x20], ebx
call fcn.00560000
mov edi, eax
mov eax, dword [esp + 0x2c]
xor esi, esi
test ebx, ebx
mov dword [esp + 0x18], edi
mov dword [eax], edi
jbe 0x54c142
test ebp, ebp
je 0x54c136
mov eax, dword [ebp + 0x23c]
test eax, eax
push 0x200
je 0x54c115
push ebp
call eax
add esp, 8
jmp 0x54c11d
call fcn.005d3435
add esp, 4
test eax, eax
jne 0x54c138
test dword [ebp + 0x70], 0x100000
jne 0x54c138
mov edi, str.Out_of_Memory
mov eax, ebp
jmp fcn.0054c480
xor eax, eax
mov dword [edi + esi*4], eax
add esi, 1
cmp esi, ebx
jb 0x54c0fa
xor esi, esi
xor ebp, ebp
mov dword [esp + 0x2c], ebp
lea ebx, [ebx]
mov edx, dword [esp + 0x34]
mov ecx, ebp
imul ecx, ecx, 0x101
movzx edi, cx
movzx eax, di
push edx
add eax, 0x80
call fcn.0054be30
movzx ecx, ax
imul ecx, dword [esp + 0x20]
add ecx, 0x8000
mov eax, 0x80008001
mul ecx
shr edx, 0xf
add edx, 1
add esp, 4
cmp esi, edx
jae 0x54c1c0
mov ecx, dword [esp + 0x30]
mov eax, 0xff
shr eax, cl
mov ecx, dword [esp + 0x14]
mov ebp, esi
shr ebp, cl
mov ecx, dword [esp + 0x18]
mov ebx, eax
and ebx, esi
mov ecx, dword [ecx + ebx*4]
add esi, 1
cmp esi, edx
mov word [ecx + ebp*2], di
jb 0x54c19a
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x2c]
add ebp, 1
cmp ebp, 0xff
mov dword [esp + 0x2c], ebp
jb 0x54c150
shl ebx, 8
cmp esi, ebx
jae 0x54c201
mov ecx, dword [esp + 0x30]
mov eax, 0xff
sar eax, cl
mov ecx, dword [esp + 0x14]
mov edi, esi
shr edi, cl
mov ecx, dword [esp + 0x18]
mov edx, eax
and edx, esi
mov edx, dword [ecx + edx*4]
add esi, 1
cmp esi, ebx
mov word [edx + edi*2], 0xffff
jb 0x54c1e1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret

Function at 0x54c210
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, eax
test esi, esi
push edi
je 0x54c254
mov eax, dword [esi + 0x23c]
test eax, eax
push 0x100
je 0x54c22f
push esi
call eax
add esp, 8
jmp 0x54c237
call fcn.005d3435
add esp, 4
test eax, eax
jne 0x54c250
test dword [esi + 0x70], 0x100000
jne 0x54c250
mov edi, str.Out_of_Memory
mov eax, esi
jmp fcn.0054c480
mov edi, eax
jmp 0x54c256
xor edi, edi
mov eax, dword [esp + 0xc]
lea ecx, [ebx - 0x17318]
cmp ecx, 0x2710
mov dword [eax], edi
jbe 0x54c28c
xor esi, esi
lea esp, [esp]
push ebx
mov eax, esi
call fcn.0054bdb0
mov byte [edi + esi], al
add esi, 1
add esp, 4
cmp esi, 0x100
jb 0x54c270
pop edi
pop esi
ret
xor eax, eax
mov edi, edi
mov byte [edi + eax], al
add eax, 1
cmp eax, 0x100
jb 0x54c290
pop edi
pop esi
ret

Function at 0x54c510
Capabilities:
Terminate process

Disassembly:
test dword [eax + 0x70], 0x800000
je 0x54c523
push esi
mov esi, eax
call fcn.0054c4a0
pop esi
ret
push edi
mov edi, ecx
jmp fcn.0054c480
Function at 0x54ce50
Capabilities:
Terminate process

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
mov edi, eax
je 0x54cead
test edi, edi
je 0x54cead
mov eax, dword [esp + 0x14]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
add ebp, 1
cmp dword [esp + 0x24], 3
ja 0x54d01a
push ebx
mov ebx, dword [esp + 0x2c]
xor esi, esi
test ebx, ebx
mov dword [esp + 0x10], esi
jg 0x54ceb5
mov esi, dword [esp + 0x18]
mov ecx, ebp
call fcn.005600d0
test eax, eax
mov dword [edi + 0xa4], eax
jne 0x54cef2
mov ecx, str.Insufficient_memory_for_pCAL_purpose
call fcn.0054c4a0
pop ebx
pop ebp
pop edi
pop esi
pop ecx
ret
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx + esi*4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x34]
mov esi, dword [ecx + esi*4]
call fcn.0054bb90
test eax, eax
je 0x54cee4
mov eax, dword [esp + 0x10]
add eax, 1
cmp eax, ebx
mov dword [esp + 0x10], eax
jl 0x54ceb1
jmp 0x54ce8c
mov eax, dword [esp + 0x18]
mov edi, str.Invalid_format_for_pCAL_parameter
jmp fcn.0054c480
mov edx, dword [esp + 0x1c]
push ebp
push edx
push eax
call fcn.005d8ed0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dl, byte [esp + 0x34]
mov dword [edi + 0xa8], eax
mov eax, dword [esp + 0x3c]
add esp, 0xc
push eax
mov dword [edi + 0xac], ecx
mov byte [edi + 0xb8], dl
mov byte [edi + 0xb9], bl
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
add ebp, 1
mov ecx, ebp
call fcn.005600d0
test eax, eax
mov dword [edi + 0xb0], eax
jne 0x54cf56
mov ecx, str.Insufficient_memory_for_pCAL_units
call fcn.0054c4a0
pop ebx
pop ebp
pop edi
pop esi
pop ecx
ret
mov ecx, dword [esp + 0x30]
push ebp
push ecx
push eax
call fcn.005d8ed0
lea ebp, [ebx*4 + 4]
add esp, 0xc
mov ecx, ebp
call fcn.005600d0
test eax, eax
mov dword [edi + 0xb4], eax
jne 0x54cf8d
mov ecx, str.Insufficient_memory_for_pCAL_params
call fcn.0054c4a0
pop ebx
pop ebp
pop edi
pop esi
pop ecx
ret
push ebp
push 0
push eax
call fcn.005da970
add esp, 0xc
xor ebp, ebp
test ebx, ebx
jle 0x54cff3
nop
mov edx, dword [esp + 0x34]
mov eax, dword [edx + ebp*4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, dword [esp + 0x18]
mov ebx, eax
add ebx, 1
mov ecx, ebx
call fcn.005600d0
mov ecx, dword [edi + 0xb4]
mov dword [ecx + ebp*4], eax
mov edx, dword [edi + 0xb4]
cmp dword [edx + ebp*4], 0
lea eax, [edx + ebp*4]
je 0x54d00a
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx + ebp*4]
mov eax, dword [eax]
push ebx
push edx
push eax
call fcn.005d8ed0
add ebp, 1
add esp, 0xc
cmp ebp, dword [esp + 0x2c]
jl 0x54cfa0
or dword [edi + 8], 0x400
or dword [edi + 0xbc], 0x80
pop ebx
pop ebp
pop edi
pop esi
pop ecx
ret
mov ecx, str.Insufficient_memory_for_pCAL_parameter
call fcn.0054c4a0
pop ebx
pop ebp
pop edi
pop esi
pop ecx
ret
mov edi, str.Invalid_pCAL_equation_type
mov eax, esi
jmp fcn.0054c480
Function at 0x54d030
Capabilities:
Terminate process

Disassembly:
push edi
mov edi, eax
mov eax, dword [esp + 8]
test eax, eax
je 0x54d12f
test edi, edi
je 0x54d12f
mov ecx, dword [esp + 0xc]
cmp ecx, 1
je 0x54d05f
cmp ecx, 2
je 0x54d05f
mov edi, str.Invalid_sCAL_unit
jmp fcn.0054c480
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x54d168
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call ebp
mov ebx, eax
test ebx, ebx
jbe 0x54d164
cmp byte [esi], 0x2d
je 0x54d164
call fcn.0054bb90
test eax, eax
je 0x54d164
mov esi, dword [esp + 0x20]
test esi, esi
je 0x54d156
push esi
call ebp
mov ebp, eax
test ebp, ebp
jbe 0x54d156
cmp byte [esi], 0x2d
je 0x54d156
call fcn.0054bb90
test eax, eax
je 0x54d156
mov al, byte [esp + 0x18]
mov esi, dword [esp + 0x14]
add ebx, 1
mov ecx, ebx
mov byte [edi + 0xe0], al
call fcn.005600d0
test eax, eax
mov dword [edi + 0xe4], eax
je 0x54d122
mov ecx, dword [esp + 0x1c]
push ebx
push ecx
push eax
call fcn.005d8ed0
add ebp, 1
add esp, 0xc
mov ecx, ebp
call fcn.005600d0
test eax, eax
mov dword [edi + 0xe8], eax
jne 0x54d131
mov edx, dword [edi + 0xe4]
mov ecx, esi
call fcn.005600a0
mov dword [edi + 0xe4], 0
mov ecx, str.Memory_allocation_failed_while_processing_sCAL
call fcn.0054c4a0
pop esi
pop ebp
pop ebx
pop edi
ret
mov edx, dword [esp + 0x20]
push ebp
push edx
push eax
call fcn.005d8ed0
or dword [edi + 8], 0x4000
or dword [edi + 0xbc], 0x100
add esp, 0xc
pop esi
pop ebp
pop ebx
pop edi
ret
mov eax, dword [esp + 0x14]
mov edi, str.Invalid_sCAL_height
jmp fcn.0054c480
mov eax, dword [esp + 0x14]
mov edi, str.Invalid_sCAL_width
jmp fcn.0054c480

Function at 0x54d180
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, ecx
test esi, esi
push edi
mov edi, eax
je 0x54d209
test edi, edi
je 0x54d209
cmp ebx, 0x100
ja 0x54d1ed
push 0
push 0x1000
push edi
push esi
call fcn.0054b040
mov eax, 0x300
mov ecx, esi
call fcn.00560000
mov edx, dword [esp + 0x1c]
lea ecx, [ebx + ebx*2]
push ecx
push edx
push eax
mov dword [esi + 0x114], eax
call fcn.005d8ed0
mov eax, dword [esi + 0x114]
mov dword [edi + 0x10], eax
mov word [esi + 0x118], bx
or dword [edi + 0xbc], 0x1000
add esp, 0x1c
or dword [edi + 8], 8
mov word [edi + 0x14], bx
pop edi
pop esi
ret
cmp byte [edi + 0x19], 3
jne 0x54d1ff
mov edi, str.Invalid_palette_length
mov eax, esi
jmp fcn.0054c480
mov ecx, str.Invalid_palette_length
call fcn.0054c4a0
pop edi
pop esi
ret
Function at 0x54d5e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, ecx
test esi, esi
push edi
mov edi, eax
je 0x54d6e7
test edi, edi
je 0x54d6e7
cmp dword [esp + 0x10], 0
je 0x54d670
push 0
push 0x2000
push edi
push esi
call fcn.0054b040
mov eax, dword [esi + 0x23c]
add esp, 0x10
test eax, eax
push 0x100
je 0x54d62a
push esi
call eax
add esp, 8
jmp 0x54d632
call fcn.005d3435
add esp, 4
test eax, eax
jne 0x54d64b
test dword [esi + 0x70], 0x100000
jne 0x54d64b
mov edi, str.Out_of_Memory
mov eax, esi
jmp fcn.0054c480
mov dword [edi + 0x50], eax
mov dword [esi + 0x188], eax
lea eax, [ebp - 1]
cmp eax, 0xff
ja 0x54d670
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 0x50]
push ebp
push ecx
push edx
call fcn.005d8ed0
add esp, 0xc
test ebx, ebx
je 0x54d6d1
movzx ecx, byte [edi + 0x18]
mov eax, 1
shl eax, cl
mov cl, byte [edi + 0x19]
test cl, cl
jne 0x54d68e
movzx edx, word [ebx + 8]
cmp edx, eax
jg 0x54d6ab
cmp cl, 2
jne 0x54d6b5
movzx ecx, word [ebx + 2]
cmp ecx, eax
jg 0x54d6ab
movzx edx, word [ebx + 4]
cmp edx, eax
jg 0x54d6ab
movzx ecx, word [ebx + 6]
cmp ecx, eax
jle 0x54d6b5
mov ecx, str.tRNS_chunk_has_out_of_range_samples_for_bit_depth
call fcn.0054c4a0
test ebp, ebp
mov edx, dword [ebx]
mov dword [edi + 0x54], edx
mov eax, dword [ebx + 4]
mov dword [edi + 0x58], eax
mov cx, word [ebx + 8]
mov word [edi + 0x5c], cx
jne 0x54d6d1
mov ebp, 1
test ebp, ebp
mov word [edi + 0x16], bp
je 0x54d6e7
or dword [edi + 8], 0x10
or dword [edi + 0xbc], 0x2000
pop edi
pop esi
pop ebp
ret

Function at 0x54d9c0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push ebp
lea ebp, [ecx + edx]
cmp ebp, dword [eax + 0x270]
push edi
mov edi, dword [esp + 0x10]
ja 0x54da5b
lea ebp, [esi + edi]
cmp ebp, dword [eax + 0x274]
ja 0x54da5b
cmp ecx, 0x7fffffff
jbe 0x54d9f6
mov edi, str.invalid_width_in_fcTL____231_1_
jmp fcn.0054c480
cmp esi, 0x7fffffff
jbe 0x54da08
mov edi, str.invalid_height_in_fcTL____231_1_
jmp fcn.0054c480
cmp edx, 0x7fffffff
jbe 0x54da1a
mov edi, str.invalid_x_offset_in_fcTL____231_1_
jmp fcn.0054c480
cmp edi, 0x7fffffff
jbe 0x54da2c
mov edi, str.invalid_y_offset_in_fcTL____231_1_
jmp fcn.0054c480
test bl, bl
je 0x54da44
cmp bl, 1
je 0x54da44
cmp bl, 2
je 0x54da44
mov edi, str.invalid_dispose_op_in_fcTL
jmp fcn.0054c480
mov cl, byte [esp + 0x14]
test cl, cl
je 0x54da65
cmp cl, 1
je 0x54da65
mov edi, str.invalid_blend_op_in_fcTL
jmp fcn.0054c480
mov edi, str.dimensions_of_a_frame_are_greater_thanthe_ones_in_IHDR
jmp fcn.0054c480
pop edi
pop ebp
ret