Function at 0x10340000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x10340941
mov eax, dword [edi + 0x78]
test al, 0x40
je 0x10340037
push str.invalid_after_png_start_read_image_or_png_read_update_info
push edi
test eax, 0x400000
je 0x1034094c
call sym.appincu.dll_png_warning
add esp, 8
pop edi
mov esp, ebp
pop ebp
ret
or dword [edi + 0x7c], 0x40
or eax, 0x4000
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x1c]
mov dword [edi + 0x78], eax
test esi, esi
jne 0x1034006d
push ebx
push edi
call sym.appincu.dll_png_malloc
add esp, 8
mov dword [edi + 0x208], eax
xor ecx, ecx
test ebx, ebx
jle 0x1034006d
mov byte [eax + ecx], cl
inc ecx
cmp ecx, ebx
jl 0x10340065
cmp ebx, dword [ebp + 0x14]
jle 0x10340770
cmp dword [ebp + 0x18], 0
je 0x10340352
test ebx, ebx
je 0x10340946
mov eax, dword [edi + 0x25c]
push ebx
test eax, eax
je 0x103400a0
push edi
call eax
mov esi, eax
add esp, 8
mov dword [ebp - 0xc], esi
jmp 0x103400ad
call fcn.103db5fc
add esp, 4
mov dword [ebp - 0xc], eax
mov esi, eax
test esi, esi
je 0x10340946
xor eax, eax
mov dword [edi + 0x268], esi
test ebx, ebx
jle 0x103400c9
mov byte [esi + eax], al
inc eax
cmp eax, ebx
jl 0x103400c1
mov ecx, dword [ebp + 0x14]
lea eax, [ebx - 1]
mov dword [ebp - 0x1c], eax
cmp eax, ecx
jl 0x10340138
mov ebx, dword [ebp + 0x18]
nop dword [eax]
mov dword [ebp - 0x20], 1
test eax, eax
jle 0x10340132
lea edx, [esi + 1]
mov edi, eax
mov al, byte [edx - 1]
movzx ecx, byte [edx]
mov byte [ebp - 2], al
movzx eax, al
mov ax, word [ebx + eax*2]
cmp ax, word [ebx + ecx*2]
jae 0x10340117
mov al, byte [edx]
mov byte [edx - 1], al
mov al, byte [ebp - 2]
mov byte [edx], al
xor eax, eax
mov dword [ebp - 0x20], eax
jmp 0x1034011a
mov eax, dword [ebp - 0x20]
inc edx
sub edi, 1
jne 0x103400f0
mov ecx, dword [ebp + 0x14]
test eax, eax
jne 0x10340132
mov eax, dword [ebp - 0x1c]
dec eax
mov dword [ebp - 0x1c], eax
cmp eax, ecx
jge 0x103400e0
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
xor edx, edx
cmp dword [ebp + 0x1c], edx
je 0x1034018e
test ecx, ecx
jle 0x1034031b
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x1c], ecx
movzx eax, byte [esi + edx]
cmp eax, edi
jl 0x1034017e
movzx eax, byte [esi + ebx - 1]
dec ebx
cmp eax, edi
jge 0x10340158
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp - 0x1c]
lea ecx, [eax + ebx*2]
mov ax, word [ecx + ebx]
mov word [edi], ax
mov al, byte [ecx + ebx + 2]
mov ecx, edi
mov edi, dword [ebp + 0x14]
mov byte [ecx + 2], al
inc edx
add ecx, 3
mov dword [ebp - 0x1c], ecx
cmp edx, edi
jl 0x10340150
jmp 0x10340318
mov ecx, ebx
mov dword [ebp - 0x20], edx
cmp dword [ebp + 0x14], edx
jle 0x1034020d
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x10], ebx
movzx eax, byte [esi + edx]
cmp eax, dword [ebp + 0x14]
jl 0x103401fb
mov edx, dword [ebp + 0x14]
nop
movzx eax, byte [esi + ecx - 1]
dec ecx
cmp eax, edx
jge 0x103401b0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], ecx
lea eax, [eax + ecx*2]
add ecx, eax
mov eax, dword [ebp - 0x10]
mov ax, word [eax]
mov dx, word [ecx]
mov bl, byte [ecx + 2]
mov word [ecx], ax
mov eax, dword [ebp - 0x10]
mov al, byte [eax + 2]
mov byte [ecx + 2], al
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x34]
mov word [eax], dx
mov edx, dword [ebp - 0x20]
mov byte [eax + 2], bl
mov eax, dword [edi + 0x208]
mov ebx, dword [ebp - 0x10]
mov byte [eax + ecx], dl
mov byte [eax + edx], cl
inc edx
add ebx, 3
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x10], ebx
cmp edx, dword [ebp + 0x14]
jl 0x103401a2
mov ebx, dword [ebp + 0x10]
xor eax, eax
mov dword [ebp - 0x10], eax
test ebx, ebx
jle 0x1034031b
mov ecx, dword [edi + 0x208]
mov dword [ebp - 0x28], ecx
add ecx, eax
mov dword [ebp - 0x2c], ecx
movzx ecx, byte [ecx]
cmp ecx, dword [ebp + 0x14]
jl 0x10340306
mov esi, dword [ebp + 0xc]
lea eax, [esi + ecx*2]
movzx edi, byte [ecx + eax + 2]
movzx edx, byte [ecx + eax + 1]
movzx eax, byte [ecx + eax]
movzx ecx, byte [esi + 1]
mov dword [ebp - 0x20], eax
mov eax, edx
sub eax, ecx
mov dword [ebp - 0x34], edx
cdq
mov esi, eax
mov dword [ebp - 0x30], edi
mov eax, dword [ebp + 0xc]
xor esi, edx
sub esi, edx
movzx ecx, byte [eax + 2]
mov eax, edi
mov edi, dword [ebp + 0xc]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
movzx ecx, byte [edi]
add esi, eax
mov eax, dword [ebp - 0x20]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
add esi, eax
xor eax, eax
mov dword [ebp - 0x14], esi
mov esi, 1
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], esi
cmp dword [ebp + 0x14], esi
jle 0x103402fe
mov ebx, eax
nop dword [eax + eax]
lea eax, [edi + esi*2]
add esi, eax
mov eax, dword [ebp - 0x34]
movzx ecx, byte [esi + 1]
sub eax, ecx
movzx ecx, byte [esi + 2]
cdq
mov edi, eax
mov eax, dword [ebp - 0x30]
sub eax, ecx
xor edi, edx
movzx ecx, byte [esi]
sub edi, edx
mov esi, dword [ebp - 0x18]
cdq
xor eax, edx
sub eax, edx
add edi, eax
mov eax, dword [ebp - 0x20]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
mov edx, dword [ebp - 0x14]
lea ecx, [edi + eax]
mov edi, dword [ebp + 0xc]
cmp ecx, edx
mov eax, esi
cmovge eax, ebx
inc esi
cmp ecx, edx
mov dword [ebp - 0x18], esi
mov ebx, eax
cmovge ecx, edx
mov dword [ebp - 0x14], ecx
cmp esi, dword [ebp + 0x14]
jl 0x103402a0
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x2c]
mov byte [ecx], al
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x10], eax
cmp eax, ebx
jl 0x10340223
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x260]
push esi
test eax, eax
je 0x1034033b
push edi
call eax
add esp, 8
mov dword [edi + 0x268], 0
jmp 0x10340767
call fcn.103d6816
add esp, 4
mov dword [edi + 0x268], 0
jmp 0x10340767
xor esi, esi
mov dword [ebp - 8], esi
test ebx, ebx
je 0x10340946
mov eax, dword [edi + 0x25c]
push ebx
test eax, eax
je 0x10340372
push edi
call eax
add esp, 8
jmp 0x1034037a
call fcn.103db5fc
add esp, 4
test eax, eax
je 0x10340946
mov dword [edi + 0x26c], eax
mov eax, dword [edi + 0x25c]
push ebx
test eax, eax
je 0x1034039b
push edi
call eax
add esp, 8
jmp 0x103403a3
call fcn.103db5fc
add esp, 4
mov edx, eax
test edx, edx
je 0x10340946
xor ecx, ecx
mov dword [edi + 0x270], edx
test ebx, ebx
jle 0x103403d5
mov eax, dword [edi + 0x26c]
sub eax, edx
mov dword [ebp - 0x34], eax
mov esi, eax
lea eax, [edx + ecx]
mov byte [eax + esi], cl
mov byte [eax], cl
inc ecx
cmp ecx, ebx
jl 0x103403c6
xor esi, esi
mov eax, dword [edi + 0x25c]
push 0xc04
test eax, eax
je 0x103403ec
push edi
call eax
add esp, 8
jmp 0x103403f4
call fcn.103db5fc
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
je 0x10340951
push 0xc04
push 0
push eax
call fcn.103ce630
add esp, 0xc
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x10], 0x60
nop dword [eax]
xor ecx, ecx
lea edx, [ebx - 1]
mov dword [ebp - 0x24], ecx
test edx, edx
jle 0x10340523
mov eax, dword [ebp + 0xc]
add eax, 2
mov dword [ebp - 0x1c], eax
nop dword [eax]
inc ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x20], ecx
cmp ecx, ebx
jge 0x1034050a
lea ecx, [eax + 2]
mov dword [ebp - 0x18], ecx
movzx eax, byte [eax - 2]
movzx ecx, byte [ecx - 1]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
movzx ecx, byte [eax + 1]
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax]
sub eax, ecx
mov ecx, dword [ebp - 0x18]
cdq
xor eax, edx
sub eax, edx
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
movzx ecx, byte [ecx]
movzx eax, byte [eax - 1]
sub eax, ecx
mov ecx, dword [ebp - 0x14]
cdq
xor eax, edx
sub eax, edx
add ecx, eax
mov dword [ebp - 0x14], ecx
cmp ecx, dword [ebp - 0x10]
jg 0x103404e9
mov eax, dword [edi + 0x25c]
push 8
test eax, eax
je 0x103404b8
push edi
call eax
mov esi, eax
add esp, 8
mov dword [ebp - 8], esi
jmp 0x103404c5
call fcn.103db5fc
add esp, 4
mov dword [ebp - 8], eax
mov esi, eax
test esi, esi
je 0x103406a8
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx*4]
mov dword [esi], eax
mov eax, dword [ebp - 0x24]
mov byte [esi + 4], al
mov eax, dword [ebp - 0x20]
mov byte [esi + 5], al
mov dword [edx + ecx*4], esi
jmp 0x103404ec
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x18]
inc eax
add ecx, 3
mov dword [ebp - 0x20], eax
cmp eax, ebx
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x1c]
jl 0x10340455
mov ecx, dword [ebp - 0x30]
lea edx, [ebx - 1]
test esi, esi
je 0x1034067f
add eax, 3
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], eax
cmp ecx, edx
jl 0x10340440
test esi, esi
je 0x1034067f
xor eax, eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x10], eax
jl 0x1034067f
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
nop
mov eax, dword [ecx + eax*4]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x10340670
mov ecx, dword [ebp + 0xc]
mov edx, dword [edi + 0x26c]
mov dword [ebp - 0x2c], edx
lea ecx, [ecx + ebx*2]
add ecx, ebx
mov dword [ebp - 0x14], ecx
movzx ecx, byte [eax + 4]
movzx eax, byte [ecx + edx]
cmp eax, ebx
jge 0x1034064f
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax + 5]
mov dword [ebp - 0x24], eax
movzx eax, byte [eax + edx]
cmp eax, ebx
jge 0x1034064f
mov esi, dword [ebp - 0x24]
mov eax, ebx
and eax, 1
cmove esi, ecx
test eax, eax
mov dword [ebp - 0x20], esi
cmove ecx, dword [ebp - 0x24]
dec ebx
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x28], ecx
sub esi, 3
mov dword [ebp - 0x14], esi
lea eax, [edx + ecx]
mov dword [ebp - 0x34], ebx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
movzx eax, byte [eax]
lea ecx, [ecx + eax*2]
add ecx, eax
cmp dword [ebp + 0x1c], 0
mov ax, word [esi]
mov word [ecx], ax
mov al, byte [esi + 2]
mov esi, dword [ebp - 8]
mov byte [ecx + 2], al
jne 0x1034061e
xor ecx, ecx
cmp dword [ebp + 0x10], ecx
jle 0x1034061e
mov eax, dword [edi + 0x208]
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
mov al, byte [eax + ecx]
cmp al, byte [edx + edi]
jne 0x103405fc
mov al, byte [edx + esi]
mov esi, dword [ebp - 0x1c]
mov byte [esi + ecx], al
mov esi, dword [ebp - 0x20]
movzx eax, al
cmp eax, ebx
jne 0x1034060f
mov esi, dword [ebp - 0x1c]
mov al, byte [edx + edi]
mov byte [esi + ecx], al
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
inc ecx
cmp ecx, dword [ebp + 0x10]
jl 0x103405e8
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
mov edx, dword [edi + 0x270]
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0x2c]
movzx ecx, byte [edx + ebx]
movzx eax, byte [eax]
mov byte [ecx + edi], al
mov edi, dword [ebp - 0x24]
movzx eax, byte [edx + ebx]
movzx ecx, byte [edi]
mov byte [ecx + edx], al
mov eax, dword [ebp - 0x28]
mov byte [edi], bl
mov edi, dword [ebp + 8]
mov byte [edx + ebx], al
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp + 0x14]
cmp ebx, ecx
jle 0x1034067f
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x10340562
cmp ebx, ecx
jle 0x1034067f
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp eax, edx
jle 0x10340540
mov ecx, dword [ebp - 0xc]
xor ebx, ebx
mov eax, dword [ecx + ebx*4]
test eax, eax
je 0x103406ce
nop dword [eax + eax]
mov ecx, dword [edi + 0x260]
mov esi, dword [eax]
mov dword [ebp - 8], esi
push eax
test ecx, ecx
je 0x103406bd
push edi
call ecx
add esp, 8
jmp 0x103406c5
push str.Out_of_memory
push edi
call sym.appincu.dll_png_warning
add esp, 8
xor esi, esi
mov dword [ebp - 8], esi
jmp 0x1034067f
call fcn.103d6816
add esp, 4
mov eax, esi
test esi, esi
jne 0x10340690
mov ecx, dword [ebp - 0xc]
mov dword [ecx + ebx*4], 0
inc ebx
cmp ebx, 0x301
jl 0x10340684
add dword [ebp - 0x10], 0x60
mov ebx, dword [ebp - 0x34]
cmp ebx, dword [ebp + 0x14]
jg 0x10340420
mov eax, dword [edi + 0x260]
push ecx
test eax, eax
je 0x10340701
push edi
call eax
add esp, 8
jmp 0x10340709
call fcn.103d6816
add esp, 4
mov eax, dword [edi + 0x270]
test eax, eax
je 0x1034072e
mov ecx, dword [edi + 0x260]
push eax
test ecx, ecx
je 0x10340726
push edi
call ecx
add esp, 8
jmp 0x1034072e
call fcn.103d6816
add esp, 4
mov eax, dword [edi + 0x26c]
test eax, eax
je 0x10340753
mov ecx, dword [edi + 0x260]
push eax
test ecx, ecx
je 0x1034074b
push edi
call ecx
add esp, 8
jmp 0x10340753
call fcn.103d6816
add esp, 4
mov dword [edi + 0x270], 0
mov dword [edi + 0x26c], 0
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x1c]
mov dword [ebp + 0x10], ebx
cmp dword [edi + 0x13c], 0
jne 0x10340782
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x13c], eax
mov word [edi + 0x140], bx
test esi, esi
je 0x1034093f
mov eax, dword [edi + 0x25c]
push 0x8000
test eax, eax
je 0x103407a8
push edi
call eax
add esp, 8
jmp 0x103407b0
call fcn.103db5fc
add esp, 4
mov esi, eax
test esi, esi
je 0x1034095c
push 0x8000
push 0
push esi
call fcn.103ce630
mov eax, dword [edi + 0x25c]
add esp, 0xc
mov dword [edi + 0x204], esi
push 0x8000
test eax, eax
je 0x103407ec
push edi
call eax
mov ebx, eax
add esp, 8
mov dword [ebp - 0x1c], ebx
jmp 0x103407f9
call fcn.103db5fc
add esp, 4
mov dword [ebp - 0x1c], eax
mov ebx, eax
test ebx, ebx
je 0x10340967
push 0x8000
push 0xff
push ebx
call fcn.103ce630
add esp, 0xc
mov dword [ebp - 0x20], 0
cmp dword [ebp + 0x10], 0
jle 0x1034091f
mov ecx, dword [ebp + 0xc]
add ecx, 2
mov dword [ebp - 0x28], ecx
nop
movzx edi, byte [ecx - 2]
movzx esi, byte [ecx - 1]
movzx ebx, byte [ecx]
shr edi, 3
shr esi, 3
shr ebx, 3
xor ecx, ecx
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], ecx
nop
mov edx, ecx
mov eax, edi
sub eax, ecx
sub edx, edi
cmp ecx, edi
cmovle edx, eax
mov eax, ecx
shl eax, 0xa
xor ecx, ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x34], ecx
nop dword [eax]
mov eax, esi
mov edi, ecx
sub eax, ecx
sub edi, esi
cmp ecx, esi
cmovle edi, eax
cmp edx, edi
lea eax, [edx + edi]
cmovg edi, edx
mov dword [ebp - 0x18], eax
mov eax, ecx
shl eax, 5
or eax, dword [ebp - 0x24]
xor edx, edx
mov dword [ebp - 0x14], eax
mov esi, edx
mov ecx, edx
or esi, eax
sub ecx, ebx
mov eax, ebx
sub eax, edx
cmp edx, ebx
cmovle ecx, eax
cmp edi, ecx
mov eax, ecx
cmovg eax, edi
add eax, ecx
mov ecx, dword [ebp - 0x1c]
add eax, dword [ebp - 0x18]
movzx ecx, byte [ecx + esi]
cmp eax, ecx
jge 0x103408d2
mov ecx, dword [ebp - 0x1c]
mov byte [ecx + esi], al
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
mov eax, dword [eax + 0x204]
mov byte [esi + eax], cl
mov eax, dword [ebp - 0x14]
inc edx
cmp edx, 0x20
jl 0x10340895
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x10]
inc ecx
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x34], ecx
cmp ecx, 0x20
jl 0x10340870
mov ecx, dword [ebp - 0x30]
mov edi, dword [ebp - 0xc]
inc ecx
mov dword [ebp - 0x30], ecx
cmp ecx, 0x20
jl 0x10340850
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x28]
inc eax
add ecx, 3
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], ecx
cmp eax, dword [ebp + 0x10]
jl 0x10340830
mov edi, dword [ebp + 8]
mov ebx, dword [ebp - 0x1c]
mov eax, dword [edi + 0x260]
push ebx
test eax, eax
je 0x10340937
push edi
call eax
add esp, 8
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
call fcn.103d6816
add esp, 4
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push str.Out_of_memory
push edi
call sym.appincu.dll_png_error
push str.Out_of_memory
push edi
call sym.appincu.dll_png_error
push str.Out_of_memory
push edi
call sym.appincu.dll_png_error
push str.Out_of_memory
push edi
call sym.appincu.dll_png_error
int3