Function at 0x1000ceb0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x50
push ebx
push ebp
mov ebp, dword [esp + 0x64]
push esi
test ebp, ebp
push edi
je 0x1000d510
mov esi, dword [esp + 0x70]
test esi, esi
je 0x1000d510
mov ebx, dword [esp + 0x64]
test ebx, ebx
je 0x1000d500
mov edi, dword [esp + 0x68]
test edi, edi
je 0x1000d500
push ebx
call sym.GEAR32PO.OCX_GPb_iIG_image_is_valid
test eax, eax
jne 0x1000cf02
push eax
push ebx
push 0xfffff7f3
push 0x491
jmp 0x1000d51e
push edi
call sym.GEAR32PO.OCX_GPb_iIG_image_is_valid
test eax, eax
jne 0x1000cf1d
push eax
push edi
push 0xfffff7f3
push 0x494
jmp 0x1000d51e
mov edi, dword [ebp]
mov ecx, dword [ebp + 8]
mov eax, edi
cdq
and edx, 7
add eax, edx
mov ebx, eax
mov eax, dword [esi]
mov dword [esp + 0x3c], eax
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [esp + 0x1c], eax
mov eax, ecx
cdq
xor eax, edx
sub eax, edx
and eax, 7
xor eax, edx
sub eax, edx
sar ebx, 3
cmp eax, 7
mov dword [esp + 0x38], eax
mov eax, ecx
cdq
and edx, 7
add eax, edx
mov esi, eax
mov eax, dword [esp + 0x70]
sar esi, 3
mov ecx, dword [eax + 8]
sub esi, ebx
mov eax, ecx
cdq
xor eax, edx
sub eax, edx
and eax, 7
xor eax, edx
sub eax, edx
cmp eax, 7
mov eax, ecx
cdq
and edx, 7
add eax, edx
mov ecx, eax
mov eax, edi
cdq
xor eax, edx
sub eax, edx
and eax, 7
xor eax, edx
mov edi, eax
mov eax, dword [esp + 0x3c]
sub edi, edx
cdq
xor eax, edx
mov dword [esp + 0x2c], edi
sub eax, edx
and eax, 7
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x1c]
sar ecx, 3
sub ecx, eax
inc edx
inc ecx
inc esi
mov dword [esp + 0x34], edx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x14], esi
call fcn.100a0c60
push esi
push eax
mov dword [esp + 0x44], eax
call fcn.100a0c80
mov esi, eax
lea eax, [esp + 0x50]
push eax
mov eax, dword [esp + 0x68]
lea ecx, [esp + 0x48]
lea edx, [esp + 0x58]
push ecx
push edx
push eax
call fcn.100839c0
lea ecx, [esp + 0x58]
lea edx, [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x6c]
lea eax, [esp + 0x60]
push edx
push eax
push ecx
call fcn.100839c0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 4]
sub eax, edx
mov edx, dword [esp + 0x68]
inc eax
push edx
mov dword [esp + 0x3c], eax
call sym.GEAR32PO.OCX_GPb_image_pointer_get
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x64]
push eax
call sym.GEAR32PO.OCX_GPb_image_pointer_get
mov ebp, eax
mov eax, edi
sub eax, dword [esp + 0x28]
cdq
mov edi, eax
or al, 0xff
xor edi, edx
sub edi, edx
mov ecx, edi
mov dword [esp + 0x20], edi
shl al, cl
mov ecx, 8
sub ecx, edi
mov dword [esp + 0x24], ecx
mov byte [esp + 0x12], al
or al, 0xff
shl al, cl
mov ecx, dword [esp + 0x68]
push ecx
not al
mov byte [esp + 0x17], al
call sym.GEAR32PO.OCX_GPb_bytes_per_raster_get
mov edi, eax
mov edx, dword [esp + 0x64]
mov dword [esp + 0x4c], edi
push edx
call sym.GEAR32PO.OCX_GPb_bytes_per_raster_get
mov ecx, 8
mov edx, dword [esp + 0x34]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x2c]
sub ecx, eax
or al, 0xff
shl al, cl
mov ecx, 8
sub ecx, edx
or dl, 0xff
shl dl, cl
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x64], al
mov byte [esp + 0x68], dl
mov edx, dword [esp + 0x70]
sub ecx, dword [edx + 0xc]
mov edx, dword [esp + 0x18]
dec ecx
imul ecx, edi
add edx, ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x6c]
sub ecx, dword [edx + 0xc]
dec ecx
mov dword [esp + 0x34], 0
imul ecx, dword [esp + 0x30]
add ebp, ecx
mov ecx, dword [esp + 0x38]
test ecx, ecx
jle 0x1000d4c0
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
cmp ecx, edx
jne 0x1000d125
mov ecx, dword [esp + 0x14]
xor edi, edi
test ecx, ecx
jle 0x1000d264
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
add ecx, edx
mov dl, byte [edi + ecx]
mov byte [edi + esi], dl
mov edx, dword [esp + 0x14]
inc edi
cmp edi, edx
jl 0x1000d111
jmp 0x1000d264
jge 0x1000d1e5
mov ecx, dword [esp + 0x14]
xor edi, edi
dec ecx
test ecx, ecx
jle 0x1000d18d
mov al, byte [esp + 0x12]
mov edx, dword [esp + 0x1c]
not al
mov byte [esp + 0x70], al
mov eax, dword [esp + 0x18]
lea edx, [edx + eax + 1]
mov dword [esp + 0x6c], edx
jmp 0x1000d156
mov edx, dword [esp + 0x6c]
mov al, byte [edi + edx - 1]
mov ecx, dword [esp + 0x20]
shl al, cl
mov cl, byte [esp + 0x24]
mov byte [edi + esi], al
mov dl, byte [edi + edx]
shr dl, cl
mov cl, byte [esp + 0x70]
and dl, cl
mov cl, byte [esp + 0x12]
and cl, al
or dl, cl
mov byte [edi + esi], dl
mov edx, dword [esp + 0x14]
inc edi
lea eax, [edx - 1]
cmp edi, eax
jl 0x1000d152
mov al, byte [esp + 0x64]
mov ecx, dword [esp + 0x1c]
lea edx, [edi + ecx]
mov ecx, dword [esp + 0x18]
add ecx, edx
mov dword [esp + 0x6c], ecx
mov dl, byte [ecx]
mov ecx, dword [esp + 0x20]
shl dl, cl
mov ecx, dword [esp + 0x48]
mov byte [esp + 0x70], dl
mov byte [edi + esi], dl
mov edx, dword [esp + 0x14]
cmp edx, ecx
jge 0x1000d264
mov eax, dword [esp + 0x6c]
mov cl, byte [esp + 0x24]
mov dl, byte [eax + 1]
mov al, byte [esp + 0x12]
shr dl, cl
mov cl, al
not cl
and dl, cl
mov cl, byte [esp + 0x70]
and al, cl
or dl, al
mov al, byte [esp + 0x64]
mov byte [edi + esi], dl
jmp 0x1000d264
cmp ecx, edx
jle 0x1000d264
mov ecx, dword [esp + 0x14]
mov edi, 1
cmp ecx, edi
jle 0x1000d251
mov al, byte [esp + 0x13]
mov edx, dword [esp + 0x1c]
not al
mov byte [esp + 0x70], al
mov eax, dword [esp + 0x18]
lea eax, [edx + eax + 1]
mov dword [esp + 0x6c], eax
jmp 0x1000d216
mov eax, dword [esp + 0x6c]
mov dl, byte [eax - 1]
mov ecx, dword [esp + 0x24]
shl dl, cl
mov cl, byte [esp + 0x20]
mov byte [edi + esi], dl
mov al, byte [eax]
shr al, cl
mov cl, byte [esp + 0x13]
and al, cl
mov cl, byte [esp + 0x70]
and dl, cl
mov ecx, dword [esp + 0x6c]
or al, dl
mov byte [edi + esi], al
mov eax, dword [esp + 0x14]
inc edi
inc ecx
cmp edi, eax
mov dword [esp + 0x6c], ecx
jl 0x1000d212
mov al, byte [esp + 0x64]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov dl, byte [ecx + edx]
mov cl, byte [esp + 0x20]
shr dl, cl
mov byte [esi], dl
mov edi, dword [esp + 0x74]
lea ecx, [edi - 1]
cmp ecx, 9
ja case.0x1000d274.9
jmp dword [ecx*4 + 0x1000d538]
mov ecx, dword [esp + 0x14]
mov edi, 1
dec ecx
cmp ecx, edi
jle 0x1000d29c
lea edx, [ebx + ebp]
mov cl, byte [edi + esi]
mov byte [edi + edx], cl
mov ecx, dword [esp + 0x14]
inc edi
dec ecx
cmp edi, ecx
jl 0x1000d28c
mov cl, byte [ebx + ebp]
mov dl, al
and dl, cl
mov cl, al
not cl
and cl, byte [esi]
or dl, cl
mov cl, byte [esp + 0x68]
mov byte [ebx + ebp], dl
lea edx, [edi + ebx]
add edx, ebp
mov dword [esp + 0x6c], edx
mov dl, byte [edi + esi]
mov edi, dword [esp + 0x6c]
and dl, cl
not cl
and cl, byte [edi]
or dl, cl
mov byte [edi], dl
jmp 0x1000d497
mov ecx, dword [esp + 0x14]
mov edi, 1
dec ecx
cmp ecx, edi
jle 0x1000d2f2
lea edx, [ebx + ebp]
mov cl, byte [edi + esi]
or byte [edi + edx], cl
mov ecx, dword [esp + 0x14]
inc edi
dec ecx
cmp edi, ecx
jl 0x1000d2e2
mov cl, byte [esi]
mov dl, al
not dl
and dl, cl
mov cl, byte [ebx + ebp]
or cl, dl
mov byte [ebx + ebp], cl
mov dl, byte [edi + esi]
lea ecx, [edi + ebx]
add ecx, ebp
mov dword [esp + 0x6c], ecx
mov cl, byte [esp + 0x68]
mov edi, dword [esp + 0x6c]
and dl, cl
or byte [edi], dl
jmp 0x1000d497
mov ecx, dword [esp + 0x14]
mov edi, 1
dec ecx
cmp ecx, edi
jle 0x1000d342
lea edx, [ebx + ebp]
mov cl, byte [edi + esi]
not cl
and byte [edi + edx], cl
mov ecx, dword [esp + 0x14]
inc edi
dec ecx
cmp edi, ecx
jl 0x1000d330
mov dl, byte [esi]
mov cl, al
not dl
not cl
and dl, cl
mov cl, byte [ebx + ebp]
or dl, al
and cl, dl
lea edx, [edi + ebx]
add edx, ebp
mov byte [ebx + ebp], cl
mov cl, byte [esp + 0x68]
mov dword [esp + 0x6c], edx
mov dl, byte [edi + esi]
mov edi, dword [esp + 0x6c]
not dl
and dl, cl
not cl
or dl, cl
mov cl, byte [edi]
and cl, dl
mov byte [edi], cl
jmp 0x1000d497
mov ecx, dword [esp + 0x14]
mov edi, 1
dec ecx
cmp ecx, edi
mov dword [esp + 0x70], ecx
jle 0x1000d3a3
lea ecx, [ebx + ebp]
mov dl, byte [edi + esi]
not dl
or byte [edi + ecx], dl
mov edx, dword [esp + 0x70]
inc edi
cmp edi, edx
jl 0x1000d392
mov dl, byte [esi]
mov cl, byte [ebx + ebp]
not dl
or dl, cl
mov cl, al
not cl
and dl, cl
mov cl, byte [ebx + ebp]
and al, cl
or dl, al
mov byte [ebx + ebp], dl
mov cl, byte [edi + esi]
lea edx, [edi + ebx]
not cl
lea eax, [edx + ebp]
mov dword [esp + 0x6c], eax
mov al, byte [eax]
mov byte [esp + 0x70], al
or cl, al
jmp 0x1000d47d
mov ecx, dword [esp + 0x14]
mov edi, 1
dec ecx
cmp ecx, edi
jle 0x1000d3f9
lea edx, [ebx + ebp]
mov cl, byte [edi + esi]
and byte [edi + edx], cl
mov ecx, dword [esp + 0x14]
inc edi
dec ecx
cmp edi, ecx
jl 0x1000d3e9
mov cl, byte [esi]
mov dl, al
not dl
and dl, cl
mov cl, byte [ebx + ebp]
or dl, al
and cl, dl
mov byte [ebx + ebp], cl
mov dl, byte [edi + esi]
lea ecx, [edi + ebx]
add ecx, ebp
mov dword [esp + 0x6c], ecx
mov cl, byte [esp + 0x68]
mov edi, dword [esp + 0x6c]
and dl, cl
not cl
or dl, cl
mov cl, byte [edi]
and cl, dl
mov byte [edi], cl
jmp 0x1000d497
mov ecx, dword [esp + 0x14]
mov edi, 1
dec ecx
cmp ecx, edi
mov dword [esp + 0x70], ecx
jle 0x1000d451
lea ecx, [ebx + ebp]
mov dl, byte [edi + esi]
xor byte [edi + ecx], dl
mov edx, dword [esp + 0x70]
inc edi
cmp edi, edx
jl 0x1000d442
mov cl, byte [ebx + ebp]
mov dl, byte [esi]
xor dl, cl
mov cl, al
not cl
and dl, cl
mov cl, byte [ebx + ebp]
and al, cl
or dl, al
mov byte [ebx + ebp], dl
mov cl, byte [edi + esi]
lea edx, [edi + ebx]
lea eax, [edx + ebp]
mov dword [esp + 0x6c], eax
mov al, byte [eax]
mov byte [esp + 0x70], al
xor cl, al
mov al, byte [esp + 0x68]
mov dl, byte [esp + 0x70]
and cl, al
not al
and al, dl
mov edx, dword [esp + 0x6c]
or cl, al
mov al, byte [esp + 0x64]
mov byte [edx], cl
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x18]
add edx, ecx
mov ecx, dword [esp + 0x30]
add ebp, ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x38]
inc ecx
cmp ecx, edx
mov dword [esp + 0x34], ecx
jl 0x1000d0ed
push esi
mov esi, dword [esp + 0x40]
push esi
call fcn.100a1010
push esi
call fcn.100a12c0
call fcn.10046b40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 0x14
push esi
mov esi, dword [esp + 0x40]
push esi
call fcn.100a1010
push esi
call fcn.100a12c0
push 0
push edi
push 0xfffff308
push 0x564
jmp 0x1000d51e
push 0
push 0
push 0xfffff40c
push 0x48e
jmp 0x1000d51e
push 0
push 0
push 0xfffff2fe
push 0x489
push str.C:_accusoftgear_sourceIMG_PROCARITH.C
call fcn.10046940
call fcn.10046b40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 0x14