Function at 0x1003c896
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x1005f6c3
call fcn.1005dc80
sub esp, 0xb0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x44], ecx
push edi
mov dword [ebp - 0x10], esp
cmp byte [ebp + 0x28], bl
je 0x1003cbf5
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov eax, dword [ebp + 0x20]
mov dword [ebp - 4], ebx
cmp dword [eax + 0x10], ebx
je 0x1003cbdc
push 0x2e
pop eax
mov dword [ebp - 0x18], 0xfd011900
mov word [ebp - 0x24], ax
mov dword [ebp - 0x28], 0x7add
cmp dword [ebp - 0x28], 0x7dfa
jle 0x1003c955
push 0x9a7
push 0x1c42
push 0x633
push 0x26f
push 0x1d70
call dword [sym.imp.GDI32.dll_ExcludeClipRect]
mov esi, ebx
mov dword [ebp - 0x14], ebx
mov edi, ebx
mov ecx, edi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], ebx
shl esi, cl
mov eax, esi
mov ecx, 0x10079ad8
xor eax, ebx
cdq
push edx
push eax
call fcn.1000fde8
inc ebx
cmp ebx, 0x748
jl 0x1003c920
mov esi, dword [ebp - 0x14]
inc edi
push 0
pop ebx
cmp edi, 0x5523
jl 0x1003c916
inc esi
mov dword [ebp - 0x14], esi
cmp esi, 0x2683
jl 0x1003c914
push 2
mov ecx, ebx
pop esi
mov dword [ebp - 0x2c], ecx
cmp esi, 2
jne 0x1003c969
push esi
pop ecx
mov dword [ebp - 0x2c], ecx
jmp 0x1003c9db
movzx edx, byte [ebp + esi - 0x17]
mov eax, esi
sub eax, ecx
push 0xf66
push 0x11c8
push 0x4cae
movzx eax, byte [ebp + eax - 0x1a]
push 1
push 1
movzx ecx, word [ebp + eax*2 - 0x24]
mov eax, ecx
and eax, edx
add eax, eax
sub ecx, eax
movzx eax, byte [ebp + esi - 0x18]
add ecx, edx
mov edx, 0x74ff
mov word [ebp + eax*2 - 0x24], cx
lea eax, [ebp - 0x2c]
push eax
push 0x3c53
push 0xfd8
push ebx
push 0x469d
push 0x7d71
push 0x281e
push 0x5074
mov ecx, 0x87d
call fcn.1003dc30
mov ecx, dword [ebp - 0x2c]
add esp, 0x34
add esi, 2
cmp esi, 4
jb 0x1003c95d
mov byte [ebp - 4], 1
cmp dword [ebp - 0x28], 0x7916
jge 0x1003ca21
mov edx, str.kpnfpc_sym_jossdqyx_pru
mov ecx, 0x10079ad8
call fcn.10012b8c
jmp 0x1003ca21
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x68]
xor eax, eax
mov dword [ebp - 0x54], 7
mov word [ebp - 0x22], ax
mov word [ebp - 0x68], ax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x58], ebx
call fcn.1001d578
mov edx, dword [ebp + 0x20]
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.1003b734
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 5
call fcn.10010a23
mov edi, dword [ebp - 0x3c]
mov eax, edi
mov esi, dword [ebp - 0x40]
sub eax, esi
push 0x18
cdq
pop ecx
idiv ecx
mov dword [ebp - 0x24], ebx
test eax, eax
jne 0x1003cbcd
push 0x2d
pop eax
push 2
mov ecx, ebx
mov byte [ebp - 0x20], bl
mov dword [ebp - 0x1f], 0x94730266
mov word [ebp - 0x34], ax
pop esi
mov dword [ebp - 0x14], ecx
cmp esi, 2
jne 0x1003caaa
push 3
pop ecx
push ecx
mov dword [ebp - 0x14], ecx
pop esi
jmp 0x1003cb02
movzx edx, byte [ebp + esi - 0x1f]
mov eax, esi
sub eax, ecx
push 1
push 0x2965
push 0x7f8
movzx eax, byte [ebp + eax - 0x22]
push 0x26b8
movzx eax, word [ebp + eax*2 - 0x34]
mov ecx, eax
and eax, edx
or ecx, edx
mov dl, 1
sub ecx, eax
movzx eax, byte [ebp + esi - 0x20]
mov word [ebp + eax*2 - 0x34], cx
lea eax, [ebp - 0x14]
push eax
push 1
push 0x145b
push 0x5b44
mov ecx, 0x5b97
call fcn.1003c0a6
mov ecx, dword [ebp - 0x14]
add esp, 0x20
add esi, 2
cmp esi, 5
jb 0x1003ca9b
xor eax, eax
mov dword [ebp - 0x6c], 7
mov word [ebp - 0x32], ax
lea ecx, [ebp - 0x80]
mov word [ebp - 0x80], ax
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x70], ebx
call fcn.1001d578
mov edx, dword [ebp + 0x20]
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 6
call fcn.1003b734
pop ecx
mov esi, eax
lea eax, [ebp - 0x40]
cmp eax, esi
je 0x1003cb6a
mov ecx, eax
call fcn.100406a4
mov ecx, dword [esi]
mov dword [ebp - 0x40], ecx
mov eax, dword [esi + 4]
mov dword [ebp - 0x3c], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x38], eax
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
lea ecx, [ebp - 0x8c]
call fcn.100406a4
push ebx
push 1
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 5
call fcn.10010a23
mov edi, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x40]
jmp 0x1003cbcd
push esi
lea ecx, [ebp - 0xa4]
call fcn.1000fefd
push 0x5d44
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 8
push 0x46e5
push eax
lea edx, [ebp - 0x50]
call fcn.1003cfcd
add esp, 0xc
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xa4]
push ebx
push 1
call fcn.10010a23
add esi, 0x18
cmp esi, edi
jne 0x1003cb8c
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.100406a4
mov ecx, dword [ebp + 0x18]
lea eax, [ebp - 0x50]
push eax
call fcn.10040522
lea ecx, [ebp - 0x50]
call fcn.10040846
jmp 0x1003ccc3
mov dword [ebp - 0x30], 0x4675
cmp dword [ebp - 0x30], 0x49ff
jle 0x1003cc67
mov esi, ebx
mov edi, ebx
mov ecx, ebx
mov dword [ebp - 0x28], ebx
mov eax, edi
cdq
idiv ecx
mov eax, esi
mov ecx, edx
shl eax, cl
lea ecx, [ebp - 0xbc]
cdq
push edx
push eax
call fcn.10001b3f
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x1003cc31
mov eax, dword [eax]
push eax
call fcn.10047293
pop ecx
push ebx
push 1
lea ecx, [ebp - 0xbc]
call fcn.1001084f
mov ecx, dword [ebp - 0x28]
inc ecx
mov dword [ebp - 0x28], ecx
cmp ecx, 0x258e
jl 0x1003cc0e
inc edi
cmp edi, 0x6274
jl 0x1003cc09
inc esi
cmp esi, 0x70b0
jl 0x1003cc07
cmp dword [ebp - 0x30], 0x45e4
jge 0x1003cc7b
push str.heif_rodt_qfac_wguln_tsv
call fcn.10047293
pop ecx
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0x1c]
cmp dword [edi], ebx
je 0x1003cc89
mov eax, dword [edi]
mov eax, dword [esi]
mov eax, dword [esi]
xor edx, edx
mov eax, dword [ebp - 0x44]
mov dword [eax], 0xfffffffb
mov eax, dword [esi]
imul ecx, eax, 0xfffffffb
mov eax, dword [edi]
cmp ecx, eax
mov eax, dword [edi]
setge dl
xor ecx, ecx
cmp edx, 0xd2e8
setne cl
xor edx, edx
cmp ecx, eax
mov eax, dword [esi]
mov ecx, dword [esi]
setne dl
sub edx, eax
mov eax, dword [ebp + 8]
add ecx, edx
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret